Table of Contents

Class CenterLayout

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class CenterLayout : LayoutManager, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
CenterLayout
Implements
Inherited Members

Constructors

CenterLayout(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public CenterLayout(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

CenterLayout(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected CenterLayout(CreationData data)

Parameters

data CreationData

CenterLayout(CenterLayoutHandle)

protected CenterLayout(CenterLayoutHandle handle)

Parameters

handle CenterLayoutHandle

Fields

ShrinkCenterLastPropertyDefinition

public static readonly Property<bool, CenterLayout> ShrinkCenterLastPropertyDefinition

Field Value

Property<bool, CenterLayout>

Properties

ShrinkCenterLast

public bool ShrinkCenterLast { get; set; }

Property Value

bool

Methods

GetBaselinePosition()

public BaselinePosition GetBaselinePosition()

Returns

BaselinePosition

GetCenterWidget()

public Widget? GetCenterWidget()

Returns

Widget

GetEndWidget()

public Widget? GetEndWidget()

Returns

Widget

GetGType()

public static Type GetGType()

Returns

Type

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetShrinkCenterLast()

[Version("4.12")]
public bool GetShrinkCenterLast()

Returns

bool

GetStartWidget()

public Widget? GetStartWidget()

Returns

Widget

New()

public static CenterLayout New()

Returns

CenterLayout

NewFromPointer(nint, bool)

Creates a new managed CenterLayout instance for a given pointer.

public static CenterLayout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

CenterLayout

NewWithProperties(ConstructArgument[])

Creates a new CenterLayout and sets the properties specified by the construct arguments.

public static CenterLayout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

CenterLayout

SetBaselinePosition(BaselinePosition)

public void SetBaselinePosition(BaselinePosition baselinePosition)

Parameters

baselinePosition BaselinePosition

SetCenterWidget(Widget?)

public void SetCenterWidget(Widget? widget)

Parameters

widget Widget

SetEndWidget(Widget?)

public void SetEndWidget(Widget? widget)

Parameters

widget Widget

SetOrientation(Orientation)

public void SetOrientation(Orientation orientation)

Parameters

orientation Orientation

SetShrinkCenterLast(bool)

[Version("4.12")]
public void SetShrinkCenterLast(bool shrinkCenterLast)

Parameters

shrinkCenterLast bool

SetStartWidget(Widget?)

public void SetStartWidget(Widget? widget)

Parameters

widget Widget