Table of Contents

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

handle ClampLayoutHandle

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

constructArguments ConstructArgument[]

ClampLayout(CreationData)

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

Parameters

data CreationData

Fields

MaximumSizePropertyDefinition

public static readonly Property<int, ClampLayout> MaximumSizePropertyDefinition

Field Value

Property<int, ClampLayout>

TighteningThresholdPropertyDefinition

public static readonly Property<int, ClampLayout> TighteningThresholdPropertyDefinition

Field Value

Property<int, ClampLayout>

UnitPropertyDefinition

public static readonly Property<LengthUnit, ClampLayout> UnitPropertyDefinition

Field Value

Property<LengthUnit, ClampLayout>

Properties

MaximumSize

public int MaximumSize { get; set; }

Property Value

int

TighteningThreshold

public int TighteningThreshold { get; set; }

Property Value

int

Unit

public LengthUnit Unit { get; set; }

Property Value

LengthUnit

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetMaximumSize()

public int GetMaximumSize()

Returns

int

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetTighteningThreshold()

public int GetTighteningThreshold()

Returns

int

GetUnit()

[Version("1.4")]
public LengthUnit GetUnit()

Returns

LengthUnit

New()

public static ClampLayout New()

Returns

ClampLayout

NewFromPointer(nint, bool)

Creates a new managed ClampLayout instance for a given pointer.

public static ClampLayout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ClampLayout

NewWithProperties(ConstructArgument[])

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

public static ClampLayout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ClampLayout

SetMaximumSize(int)

public void SetMaximumSize(int maximumSize)

Parameters

maximumSize int

SetOrientation(Orientation)

public void SetOrientation(Orientation orientation)

Parameters

orientation Orientation

SetTighteningThreshold(int)

public void SetTighteningThreshold(int tighteningThreshold)

Parameters

tighteningThreshold int

SetUnit(LengthUnit)

[Version("1.4")]
public void SetUnit(LengthUnit unit)

Parameters

unit LengthUnit