Table of Contents

Class LayoutManager

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

LayoutManager(CreationData)

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

Parameters

data CreationData

LayoutManager(LayoutManagerHandle)

protected LayoutManager(LayoutManagerHandle handle)

Parameters

handle LayoutManagerHandle

Methods

Allocate(Widget, int, int, int)

public void Allocate(Widget widget, int width, int height, int baseline)

Parameters

widget Widget
width int
height int
baseline int

GetGType()

public static Type GetGType()

Returns

Type

GetLayoutChild(Widget)

public LayoutChild GetLayoutChild(Widget child)

Parameters

child Widget

Returns

LayoutChild

GetRequestMode()

public SizeRequestMode GetRequestMode()

Returns

SizeRequestMode

GetWidget()

public Widget? GetWidget()

Returns

Widget

LayoutChanged()

public void LayoutChanged()

Measure(Widget, Orientation, int, out int, out int, out int, out int)

public void Measure(Widget widget, Orientation orientation, int forSize, out int minimum, out int natural, out int minimumBaseline, out int naturalBaseline)

Parameters

widget Widget
orientation Orientation
forSize int
minimum int
natural int
minimumBaseline int
naturalBaseline int

NewFromPointer(nint, bool)

Creates a new managed LayoutManager instance for a given pointer.

public static LayoutManager NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

LayoutManager

NewWithProperties(ConstructArgument[])

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

public static LayoutManager NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

LayoutManager