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
constructArgumentsConstructArgument[]
LayoutManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected LayoutManager(CreationData data)
Parameters
dataCreationData
LayoutManager(LayoutManagerHandle)
protected LayoutManager(LayoutManagerHandle handle)
Parameters
handleLayoutManagerHandle
Methods
Allocate(Widget, int, int, int)
public void Allocate(Widget widget, int width, int height, int baseline)
Parameters
GetGType()
public static Type GetGType()
Returns
GetLayoutChild(Widget)
public LayoutChild GetLayoutChild(Widget child)
Parameters
childWidget
Returns
GetRequestMode()
public SizeRequestMode GetRequestMode()
Returns
GetWidget()
public Widget? GetWidget()
Returns
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
widgetWidgetorientationOrientationforSizeintminimumintnaturalintminimumBaselineintnaturalBaselineint
NewFromPointer(nint, bool)
Creates a new managed LayoutManager instance for a given pointer.
public static LayoutManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new LayoutManager and sets the properties specified by the construct arguments.
public static LayoutManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.