Table of Contents

Class ConstraintLayout

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

ConstraintLayout(CreationData)

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

Parameters

data CreationData

ConstraintLayout(ConstraintLayoutHandle)

protected ConstraintLayout(ConstraintLayoutHandle handle)

Parameters

handle ConstraintLayoutHandle

Methods

AddConstraint(Constraint)

public void AddConstraint(Constraint constraint)

Parameters

constraint Constraint

AddGuide(ConstraintGuide)

public void AddGuide(ConstraintGuide guide)

Parameters

guide ConstraintGuide

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

New()

public static ConstraintLayout New()

Returns

ConstraintLayout

NewFromPointer(nint, bool)

Creates a new managed ConstraintLayout instance for a given pointer.

public static ConstraintLayout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ConstraintLayout

NewWithProperties(ConstructArgument[])

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

public static ConstraintLayout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ConstraintLayout

ObserveConstraints()

public ListModel ObserveConstraints()

Returns

ListModel

ObserveGuides()

public ListModel ObserveGuides()

Returns

ListModel

RemoveAllConstraints()

public void RemoveAllConstraints()

RemoveConstraint(Constraint)

public void RemoveConstraint(Constraint constraint)

Parameters

constraint Constraint

RemoveGuide(ConstraintGuide)

public void RemoveGuide(ConstraintGuide guide)

Parameters

guide ConstraintGuide