Table of Contents

Class BoxLayout

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

Constructors

BoxLayout(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 BoxLayout(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

BoxLayout(CreationData)

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

Parameters

data CreationData

BoxLayout(BoxLayoutHandle)

protected BoxLayout(BoxLayoutHandle handle)

Parameters

handle BoxLayoutHandle

Fields

BaselineChildPropertyDefinition

public static readonly Property<int, BoxLayout> BaselineChildPropertyDefinition

Field Value

Property<int, BoxLayout>

BaselinePositionPropertyDefinition

public static readonly Property<BaselinePosition, BoxLayout> BaselinePositionPropertyDefinition

Field Value

Property<BaselinePosition, BoxLayout>

HomogeneousPropertyDefinition

public static readonly Property<bool, BoxLayout> HomogeneousPropertyDefinition

Field Value

Property<bool, BoxLayout>

SpacingPropertyDefinition

public static readonly Property<int, BoxLayout> SpacingPropertyDefinition

Field Value

Property<int, BoxLayout>

Properties

BaselineChild

public int BaselineChild { get; set; }

Property Value

int

BaselinePosition

public BaselinePosition BaselinePosition { get; set; }

Property Value

BaselinePosition

Homogeneous

public bool Homogeneous { get; set; }

Property Value

bool

Spacing

public int Spacing { get; set; }

Property Value

int

Methods

GetBaselineChild()

[Version("4.12")]
public int GetBaselineChild()

Returns

int

GetBaselinePosition()

public BaselinePosition GetBaselinePosition()

Returns

BaselinePosition

GetGType()

public static Type GetGType()

Returns

Type

GetHomogeneous()

public bool GetHomogeneous()

Returns

bool

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetSpacing()

public uint GetSpacing()

Returns

uint

New(Orientation)

public static BoxLayout New(Orientation orientation)

Parameters

orientation Orientation

Returns

BoxLayout

NewFromPointer(nint, bool)

Creates a new managed BoxLayout instance for a given pointer.

public static BoxLayout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

BoxLayout

NewWithProperties(ConstructArgument[])

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

public static BoxLayout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

BoxLayout

SetBaselineChild(int)

[Version("4.12")]
public void SetBaselineChild(int child)

Parameters

child int

SetBaselinePosition(BaselinePosition)

public void SetBaselinePosition(BaselinePosition position)

Parameters

position BaselinePosition

SetHomogeneous(bool)

public void SetHomogeneous(bool homogeneous)

Parameters

homogeneous bool

SetOrientation(Orientation)

public void SetOrientation(Orientation orientation)

Parameters

orientation Orientation

SetSpacing(uint)

public void SetSpacing(uint spacing)

Parameters

spacing uint