Class SpinButton
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class SpinButton : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, AccessibleRange, Buildable, CellEditable, ConstraintTarget, Editable, Orientable, IHandle, GTypeProvider
- Inheritance
-
SpinButton
- Implements
- Inherited Members
Constructors
SpinButton()
public SpinButton()
SpinButton(params ConstructArgument[])
protected SpinButton(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
SpinButton(IntPtr, bool)
protected SpinButton(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActivateSignal
Signal Descriptor for OnActivate.
public static readonly Signal<SpinButton> ActivateSignal
Field Value
ActivatesDefaultPropertyDefinition
public static readonly Property<bool, SpinButton> ActivatesDefaultPropertyDefinition
Field Value
AdjustmentPropertyDefinition
public static readonly Property<Adjustment?, SpinButton> AdjustmentPropertyDefinition
Field Value
ChangeValueSignal
Signal Descriptor for OnChangeValue.
public static readonly Signal<SpinButton, SpinButton.ChangeValueSignalArgs> ChangeValueSignal
Field Value
ClimbRatePropertyDefinition
public static readonly Property<double, SpinButton> ClimbRatePropertyDefinition
Field Value
DigitsPropertyDefinition
public static readonly Property<uint, SpinButton> DigitsPropertyDefinition
Field Value
InputSignal
Signal Descriptor for OnInput.
public static readonly ReturningSignal<SpinButton, SpinButton.InputSignalArgs, int> InputSignal
Field Value
NumericPropertyDefinition
public static readonly Property<bool, SpinButton> NumericPropertyDefinition
Field Value
OutputSignal
Signal Descriptor for OnOutput.
public static readonly ReturningSignal<SpinButton, bool> OutputSignal
Field Value
SnapToTicksPropertyDefinition
public static readonly Property<bool, SpinButton> SnapToTicksPropertyDefinition
Field Value
UpdatePolicyPropertyDefinition
public static readonly Property<SpinButtonUpdatePolicy, SpinButton> UpdatePolicyPropertyDefinition
Field Value
ValueChangedSignal
Signal Descriptor for OnValueChanged.
public static readonly Signal<SpinButton> ValueChangedSignal
Field Value
ValuePropertyDefinition
public static readonly Property<double, SpinButton> ValuePropertyDefinition
Field Value
WrapPropertyDefinition
public static readonly Property<bool, SpinButton> WrapPropertyDefinition
Field Value
WrappedSignal
Signal Descriptor for OnWrapped.
public static readonly Signal<SpinButton> WrappedSignal
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
ActivatesDefault
public bool ActivatesDefault { get; set; }
Property Value
Adjustment
public Adjustment? Adjustment { get; set; }
Property Value
ClimbRate
public double ClimbRate { get; set; }
Property Value
CursorPosition
public int CursorPosition { get; }
Property Value
Digits
public uint Digits { get; set; }
Property Value
Editable
public bool Editable { get; set; }
Property Value
EditingCanceled
public bool EditingCanceled { get; set; }
Property Value
EnableUndo
public bool EnableUndo { get; set; }
Property Value
MaxWidthChars
public int MaxWidthChars { get; set; }
Property Value
Numeric
public bool Numeric { get; set; }
Property Value
SelectionBound
public int SelectionBound { get; }
Property Value
SnapToTicks
public bool SnapToTicks { get; set; }
Property Value
Text_
public string? Text_ { get; set; }
Property Value
UpdatePolicy
public SpinButtonUpdatePolicy UpdatePolicy { get; set; }
Property Value
Value
public double Value { get; set; }
Property Value
WidthChars
public int WidthChars { get; set; }
Property Value
Wrap
public bool Wrap { get; set; }
Property Value
Xalign
public float Xalign { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
Configure(Adjustment?, double, uint)
public void Configure(Adjustment? adjustment, double climbRate, uint digits)
Parameters
adjustment
AdjustmentclimbRate
doubledigits
uint
DelegateGetAccessiblePlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool DelegateGetAccessiblePlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
DeleteSelection()
public void DeleteSelection()
DeleteText(int, int)
public void DeleteText(int startPos, int endPos)
Parameters
EditingDone()
public void EditingDone()
FinishDelegate()
public void FinishDelegate()
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetActivatesDefault()
[Version("4.14")]
public bool GetActivatesDefault()
Returns
GetAdjustment()
public Adjustment GetAdjustment()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetChars(int, int)
public string GetChars(int startPos, int endPos)
Parameters
Returns
GetClimbRate()
public double GetClimbRate()
Returns
GetDelegate()
public Editable? GetDelegate()
Returns
GetDigits()
public uint GetDigits()
Returns
GetEditable()
public bool GetEditable()
Returns
GetEnableUndo()
public bool GetEnableUndo()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetIncrements(out double, out double)
public void GetIncrements(out double step, out double page)
Parameters
GetMaxWidthChars()
public int GetMaxWidthChars()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetNumeric()
public bool GetNumeric()
Returns
GetOrientation()
public Orientation GetOrientation()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetPosition()
public int GetPosition()
Returns
GetRange(out double, out double)
public void GetRange(out double min, out double max)
Parameters
GetSelectionBounds(out int, out int)
public bool GetSelectionBounds(out int startPos, out int endPos)
Parameters
Returns
GetSnapToTicks()
public bool GetSnapToTicks()
Returns
GetText()
public string GetText()
Returns
GetUpdatePolicy()
public SpinButtonUpdatePolicy GetUpdatePolicy()
Returns
GetValue()
public double GetValue()
Returns
GetValueAsInt()
public int GetValueAsInt()
Returns
GetWidthChars()
public int GetWidthChars()
Returns
GetWrap()
public bool GetWrap()
Returns
InitDelegate()
public void InitDelegate()
InsertText(string, int, ref int)
public void InsertText(string text, int length, ref int position)
Parameters
New(Adjustment?, double, uint)
public static SpinButton New(Adjustment? adjustment, double climbRate, uint digits)
Parameters
adjustment
AdjustmentclimbRate
doubledigits
uint
Returns
NewWithRange(double, double, double)
public static SpinButton NewWithRange(double min, double max, double step)
Parameters
Returns
RemoveWidget()
public void RemoveWidget()
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
SelectRegion(int, int)
public void SelectRegion(int startPos, int endPos)
Parameters
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parent
AccessiblenextSibling
Accessible
SetActivatesDefault(bool)
[Version("4.14")]
public void SetActivatesDefault(bool activatesDefault)
Parameters
activatesDefault
bool
SetAdjustment(Adjustment)
public void SetAdjustment(Adjustment adjustment)
Parameters
adjustment
Adjustment
SetClimbRate(double)
public void SetClimbRate(double climbRate)
Parameters
climbRate
double
SetDigits(uint)
public void SetDigits(uint digits)
Parameters
digits
uint
SetEditable(bool)
public void SetEditable(bool isEditable)
Parameters
isEditable
bool
SetEnableUndo(bool)
public void SetEnableUndo(bool enableUndo)
Parameters
enableUndo
bool
SetIncrements(double, double)
public void SetIncrements(double step, double page)
Parameters
SetMaxWidthChars(int)
public void SetMaxWidthChars(int nChars)
Parameters
nChars
int
SetNumeric(bool)
public void SetNumeric(bool numeric)
Parameters
numeric
bool
SetOrientation(Orientation)
public void SetOrientation(Orientation orientation)
Parameters
orientation
Orientation
SetPosition(int)
public void SetPosition(int position)
Parameters
position
int
SetRange(double, double)
public void SetRange(double min, double max)
Parameters
SetSnapToTicks(bool)
public void SetSnapToTicks(bool snapToTicks)
Parameters
snapToTicks
bool
SetText(string)
public void SetText(string text)
Parameters
text
string
SetUpdatePolicy(SpinButtonUpdatePolicy)
public void SetUpdatePolicy(SpinButtonUpdatePolicy policy)
Parameters
policy
SpinButtonUpdatePolicy
SetValue(double)
public void SetValue(double value)
Parameters
value
double
SetWidthChars(int)
public void SetWidthChars(int nChars)
Parameters
nChars
int
SetWrap(bool)
public void SetWrap(bool wrap)
Parameters
wrap
bool
Spin(SpinType, double)
public void Spin(SpinType direction, double increment)
Parameters
StartEditing(Event?)
public void StartEditing(Event? @event)
Parameters
event
Event
Update()
public void Update()
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
Events
OnActivate
public event SignalHandler<SpinButton> OnActivate
Event Type
OnChangeValue
public event SignalHandler<SpinButton, SpinButton.ChangeValueSignalArgs> OnChangeValue
Event Type
OnInput
public event ReturningSignalHandler<SpinButton, SpinButton.InputSignalArgs, int> OnInput
Event Type
OnOutput
public event ReturningSignalHandler<SpinButton, bool> OnOutput
Event Type
OnValueChanged
public event SignalHandler<SpinButton> OnValueChanged
Event Type
OnWrapped
public event SignalHandler<SpinButton> OnWrapped