Table of Contents

Class Box

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Box : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, Orientable, IHandle, GTypeProvider
Inheritance
Box
Implements
Derived
Inherited Members

Constructors

Box()

public Box()

Box(params ConstructArgument[])

protected Box(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Box(IntPtr, bool)

protected Box(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

BaselineChildPropertyDefinition

public static readonly Property<int, Box> BaselineChildPropertyDefinition

Field Value

Property<int, Box>

BaselinePositionPropertyDefinition

public static readonly Property<BaselinePosition, Box> BaselinePositionPropertyDefinition

Field Value

Property<BaselinePosition, Box>

HomogeneousPropertyDefinition

public static readonly Property<bool, Box> HomogeneousPropertyDefinition

Field Value

Property<bool, Box>

SpacingPropertyDefinition

public static readonly Property<int, Box> SpacingPropertyDefinition

Field Value

Property<int, Box>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

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

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

Append(Widget)

public void Append(Widget child)

Parameters

child Widget

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBaselineChild()

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

Returns

int

GetBaselinePosition()

public BaselinePosition GetBaselinePosition()

Returns

BaselinePosition

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetHomogeneous()

public bool GetHomogeneous()

Returns

bool

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetSpacing()

public int GetSpacing()

Returns

int

InsertChildAfter(Widget, Widget?)

public void InsertChildAfter(Widget child, Widget? sibling)

Parameters

child Widget
sibling Widget

New(Orientation, int)

public static Box New(Orientation orientation, int spacing)

Parameters

orientation Orientation
spacing int

Returns

Box

Prepend(Widget)

public void Prepend(Widget child)

Parameters

child Widget

Remove(Widget)

public void Remove(Widget child)

Parameters

child Widget

ReorderChildAfter(Widget, Widget?)

public void ReorderChildAfter(Widget child, Widget? sibling)

Parameters

child Widget
sibling Widget

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

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(int)

public void SetSpacing(int spacing)

Parameters

spacing int

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible