Class Scale
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Scale : Range, IObject, INotifyPropertyChanged, IDisposable, Accessible, AccessibleRange, Buildable, ConstraintTarget, Orientable, IHandle, GTypeProvider
- Inheritance
-
Scale
- Implements
-
- Inherited Members
-
Constructors
Scale()
Scale(params ConstructArgument[])
protected Scale(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Scale(IntPtr, bool)
protected Scale(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
DigitsPropertyDefinition
public static readonly Property<int, Scale> DigitsPropertyDefinition
Field Value
- Property<int, Scale>
DrawValuePropertyDefinition
public static readonly Property<bool, Scale> DrawValuePropertyDefinition
Field Value
- Property<bool, Scale>
HasOriginPropertyDefinition
public static readonly Property<bool, Scale> HasOriginPropertyDefinition
Field Value
- Property<bool, Scale>
ValuePosPropertyDefinition
public static readonly Property<PositionType, Scale> ValuePosPropertyDefinition
Field Value
- Property<PositionType, Scale>
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
- AccessibleRole
Digits
public int Digits { get; set; }
Property Value
- int
DrawValue
public bool DrawValue { get; set; }
Property Value
- bool
HasOrigin
public bool HasOrigin { get; set; }
Property Value
- bool
ValuePos
public PositionType ValuePos { get; set; }
Property Value
- PositionType
Methods
AddMark(double, PositionType, string?)
public void AddMark(double value, PositionType position, string? markup)
Parameters
value
double
position
PositionType
markup
string
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
string
priority
AccessibleAnnouncementPriority
ClearMarks()
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
- Accessible
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
- AccessibleRole
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
- ATContext
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
x
int
y
int
width
int
height
int
Returns
- bool
GetBuildableId()
public string? GetBuildableId()
Returns
- string
GetDigits()
Returns
- int
GetDrawValue()
public bool GetDrawValue()
Returns
- bool
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
- Accessible
GetGType()
public static Type GetGType()
Returns
- Type
GetHasOrigin()
public bool GetHasOrigin()
Returns
- bool
GetLayout()
public Layout? GetLayout()
Returns
- Layout
GetLayoutOffsets(out int, out int)
public void GetLayoutOffsets(out int x, out int y)
Parameters
x
int
y
int
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
- Accessible
GetOrientation()
public Orientation GetOrientation()
Returns
- Orientation
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
- bool
GetValuePos()
public PositionType GetValuePos()
Returns
- PositionType
New(Orientation, Adjustment?)
public static Scale New(Orientation orientation, Adjustment? adjustment)
Parameters
orientation
Orientation
adjustment
Adjustment
Returns
- Scale
NewWithRange(Orientation, double, double, double)
public static Scale NewWithRange(Orientation orientation, double min, double max, double step)
Parameters
orientation
Orientation
min
double
max
double
step
double
Returns
- Scale
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
property
AccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relation
AccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
state
AccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parent
Accessible
nextSibling
Accessible
SetDigits(int)
public void SetDigits(int digits)
Parameters
digits
int
SetDrawValue(bool)
public void SetDrawValue(bool drawValue)
Parameters
drawValue
bool
public void SetFormatValueFunc(ScaleFormatValueFunc? func)
Parameters
func
ScaleFormatValueFunc
SetHasOrigin(bool)
public void SetHasOrigin(bool hasOrigin)
Parameters
hasOrigin
bool
SetOrientation(Orientation)
public void SetOrientation(Orientation orientation)
Parameters
orientation
Orientation
SetValuePos(PositionType)
public void SetValuePos(PositionType pos)
Parameters
pos
PositionType
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible