Class ConstraintGuide
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class ConstraintGuide : Object, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
ConstraintGuide
- Implements
- Inherited Members
Constructors
ConstraintGuide(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 ConstraintGuide(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ConstraintGuide(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ConstraintGuide(CreationData data)
Parameters
dataCreationData
ConstraintGuide(ConstraintGuideHandle)
protected ConstraintGuide(ConstraintGuideHandle handle)
Parameters
handleConstraintGuideHandle
Fields
MaxHeightPropertyDefinition
public static readonly Property<int, ConstraintGuide> MaxHeightPropertyDefinition
Field Value
MaxWidthPropertyDefinition
public static readonly Property<int, ConstraintGuide> MaxWidthPropertyDefinition
Field Value
MinHeightPropertyDefinition
public static readonly Property<int, ConstraintGuide> MinHeightPropertyDefinition
Field Value
MinWidthPropertyDefinition
public static readonly Property<int, ConstraintGuide> MinWidthPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, ConstraintGuide> NamePropertyDefinition
Field Value
NatHeightPropertyDefinition
public static readonly Property<int, ConstraintGuide> NatHeightPropertyDefinition
Field Value
NatWidthPropertyDefinition
public static readonly Property<int, ConstraintGuide> NatWidthPropertyDefinition
Field Value
StrengthPropertyDefinition
public static readonly Property<ConstraintStrength, ConstraintGuide> StrengthPropertyDefinition
Field Value
Properties
MaxHeight
public int MaxHeight { get; set; }
Property Value
MaxWidth
public int MaxWidth { get; set; }
Property Value
MinHeight
public int MinHeight { get; set; }
Property Value
MinWidth
public int MinWidth { get; set; }
Property Value
Name
public string? Name { get; set; }
Property Value
NatHeight
public int NatHeight { get; set; }
Property Value
NatWidth
public int NatWidth { get; set; }
Property Value
Strength
public ConstraintStrength Strength { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetMaxSize(out int, out int)
public void GetMaxSize(out int width, out int height)
Parameters
GetMinSize(out int, out int)
public void GetMinSize(out int width, out int height)
Parameters
GetName()
public string? GetName()
Returns
GetNatSize(out int, out int)
public void GetNatSize(out int width, out int height)
Parameters
GetStrength()
public ConstraintStrength GetStrength()
Returns
New()
public static ConstraintGuide New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ConstraintGuide instance for a given pointer.
public static ConstraintGuide NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ConstraintGuide and sets the properties specified by the construct arguments.
public static ConstraintGuide NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaxSize(int, int)
public void SetMaxSize(int width, int height)
Parameters
SetMinSize(int, int)
public void SetMinSize(int width, int height)
Parameters
SetName(string?)
public void SetName(string? name)
Parameters
namestring
SetNatSize(int, int)
public void SetNatSize(int width, int height)
Parameters
SetStrength(ConstraintStrength)
public void SetStrength(ConstraintStrength strength)
Parameters
strengthConstraintStrength