Class ClampLayout
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class ClampLayout : LayoutManager, Orientable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
ClampLayout
- Implements
- Inherited Members
Constructors
ClampLayout(ClampLayoutHandle)
protected ClampLayout(ClampLayoutHandle handle)
Parameters
handleClampLayoutHandle
ClampLayout(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 ClampLayout(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ClampLayout(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ClampLayout(CreationData data)
Parameters
dataCreationData
Fields
MaximumSizePropertyDefinition
public static readonly Property<int, ClampLayout> MaximumSizePropertyDefinition
Field Value
TighteningThresholdPropertyDefinition
public static readonly Property<int, ClampLayout> TighteningThresholdPropertyDefinition
Field Value
UnitPropertyDefinition
public static readonly Property<LengthUnit, ClampLayout> UnitPropertyDefinition
Field Value
Properties
MaximumSize
public int MaximumSize { get; set; }
Property Value
TighteningThreshold
public int TighteningThreshold { get; set; }
Property Value
Unit
public LengthUnit Unit { get; set; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetMaximumSize()
public int GetMaximumSize()
Returns
GetOrientation()
public Orientation GetOrientation()
Returns
GetTighteningThreshold()
public int GetTighteningThreshold()
Returns
GetUnit()
[Version("1.4")]
public LengthUnit GetUnit()
Returns
New()
public static ClampLayout New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ClampLayout instance for a given pointer.
public static ClampLayout NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ClampLayout and sets the properties specified by the construct arguments.
public static ClampLayout NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaximumSize(int)
public void SetMaximumSize(int maximumSize)
Parameters
maximumSizeint
SetOrientation(Orientation)
public void SetOrientation(Orientation orientation)
Parameters
orientationOrientation
SetTighteningThreshold(int)
public void SetTighteningThreshold(int tighteningThreshold)
Parameters
tighteningThresholdint
SetUnit(LengthUnit)
[Version("1.4")]
public void SetUnit(LengthUnit unit)
Parameters
unitLengthUnit