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
constructArgumentsConstructArgument[]
ConstraintLayout(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ConstraintLayout(CreationData data)
Parameters
dataCreationData
ConstraintLayout(ConstraintLayoutHandle)
protected ConstraintLayout(ConstraintLayoutHandle handle)
Parameters
handleConstraintLayoutHandle
Methods
AddConstraint(Constraint)
public void AddConstraint(Constraint constraint)
Parameters
constraintConstraint
AddGuide(ConstraintGuide)
public void AddGuide(ConstraintGuide guide)
Parameters
guideConstraintGuide
GetBuildableId()
public string? GetBuildableId()
Returns
GetGType()
public static Type GetGType()
Returns
New()
public static ConstraintLayout New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ConstraintLayout instance for a given pointer.
public static ConstraintLayout NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ConstraintLayout and sets the properties specified by the construct arguments.
public static ConstraintLayout NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ObserveConstraints()
public ListModel ObserveConstraints()
Returns
ObserveGuides()
public ListModel ObserveGuides()
Returns
RemoveAllConstraints()
public void RemoveAllConstraints()
RemoveConstraint(Constraint)
public void RemoveConstraint(Constraint constraint)
Parameters
constraintConstraint
RemoveGuide(ConstraintGuide)
public void RemoveGuide(ConstraintGuide guide)
Parameters
guideConstraintGuide