Table of Contents

Class CustomLayout

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

CustomLayout(CreationData)

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

Parameters

data CreationData

CustomLayout(CustomLayoutHandle)

protected CustomLayout(CustomLayoutHandle handle)

Parameters

handle CustomLayoutHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

New(CustomRequestModeFunc?, CustomMeasureFunc, CustomAllocateFunc)

public static CustomLayout New(CustomRequestModeFunc? requestMode, CustomMeasureFunc measure, CustomAllocateFunc allocate)

Parameters

requestMode CustomRequestModeFunc
measure CustomMeasureFunc
allocate CustomAllocateFunc

Returns

CustomLayout

NewFromPointer(nint, bool)

Creates a new managed CustomLayout instance for a given pointer.

public static CustomLayout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

CustomLayout

NewWithProperties(ConstructArgument[])

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

public static CustomLayout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

CustomLayout