Table of Contents

Class Constraint

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Constraint : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Constraint
Implements
Inherited Members

Constructors

Constraint(bool, params ConstructArgument[])

protected Constraint(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Constraint(IntPtr, bool)

protected Constraint(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ConstantPropertyDefinition

public static readonly Property<double, Constraint> ConstantPropertyDefinition

Field Value

Property<double, Constraint>

MultiplierPropertyDefinition

public static readonly Property<double, Constraint> MultiplierPropertyDefinition

Field Value

Property<double, Constraint>

RelationPropertyDefinition

public static readonly Property<ConstraintRelation, Constraint> RelationPropertyDefinition

Field Value

Property<ConstraintRelation, Constraint>

SourceAttributePropertyDefinition

public static readonly Property<ConstraintAttribute, Constraint> SourceAttributePropertyDefinition

Field Value

Property<ConstraintAttribute, Constraint>

SourcePropertyDefinition

public static readonly Property<ConstraintTarget, Constraint> SourcePropertyDefinition

Field Value

Property<ConstraintTarget, Constraint>

StrengthPropertyDefinition

public static readonly Property<int, Constraint> StrengthPropertyDefinition

Field Value

Property<int, Constraint>

TargetAttributePropertyDefinition

public static readonly Property<ConstraintAttribute, Constraint> TargetAttributePropertyDefinition

Field Value

Property<ConstraintAttribute, Constraint>

TargetPropertyDefinition

public static readonly Property<ConstraintTarget, Constraint> TargetPropertyDefinition

Field Value

Property<ConstraintTarget, Constraint>

Properties

Constant

public double Constant { get; }

Property Value

double

Multiplier

public double Multiplier { get; }

Property Value

double

Relation

public ConstraintRelation Relation { get; }

Property Value

ConstraintRelation

Source

public ConstraintTarget Source { get; }

Property Value

ConstraintTarget

SourceAttribute

public ConstraintAttribute SourceAttribute { get; }

Property Value

ConstraintAttribute

Strength

public int Strength { get; }

Property Value

int

Target

public ConstraintTarget Target { get; }

Property Value

ConstraintTarget

TargetAttribute

public ConstraintAttribute TargetAttribute { get; }

Property Value

ConstraintAttribute

Methods

GetConstant()

public double GetConstant()

Returns

double

GetGType()

public static Type GetGType()

Returns

Type

GetMultiplier()

public double GetMultiplier()

Returns

double

GetRelation()

public ConstraintRelation GetRelation()

Returns

ConstraintRelation

GetSource()

public ConstraintTarget? GetSource()

Returns

ConstraintTarget

GetSourceAttribute()

public ConstraintAttribute GetSourceAttribute()

Returns

ConstraintAttribute

GetStrength()

public int GetStrength()

Returns

int

GetTarget()

public ConstraintTarget? GetTarget()

Returns

ConstraintTarget

GetTargetAttribute()

public ConstraintAttribute GetTargetAttribute()

Returns

ConstraintAttribute

IsAttached()

public bool IsAttached()

Returns

bool

IsConstant()

public bool IsConstant()

Returns

bool

IsRequired()

public bool IsRequired()

Returns

bool

New(ConstraintTarget?, ConstraintAttribute, ConstraintRelation, ConstraintTarget?, ConstraintAttribute, double, double, int)

public static Constraint New(ConstraintTarget? target, ConstraintAttribute targetAttribute, ConstraintRelation relation, ConstraintTarget? source, ConstraintAttribute sourceAttribute, double multiplier, double constant, int strength)

Parameters

target ConstraintTarget
targetAttribute ConstraintAttribute
relation ConstraintRelation
source ConstraintTarget
sourceAttribute ConstraintAttribute
multiplier double
constant double
strength int

Returns

Constraint

NewConstant(ConstraintTarget?, ConstraintAttribute, ConstraintRelation, double, int)

public static Constraint NewConstant(ConstraintTarget? target, ConstraintAttribute targetAttribute, ConstraintRelation relation, double constant, int strength)

Parameters

target ConstraintTarget
targetAttribute ConstraintAttribute
relation ConstraintRelation
constant double
strength int

Returns

Constraint