Table of Contents

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

ptr IntPtr
ownedRef bool

Fields

ActivateSignal

Signal Descriptor for OnActivate.

public static readonly Signal<SpinButton> ActivateSignal

Field Value

Signal<SpinButton>

ActivatesDefaultPropertyDefinition

public static readonly Property<bool, SpinButton> ActivatesDefaultPropertyDefinition

Field Value

Property<bool, SpinButton>

AdjustmentPropertyDefinition

public static readonly Property<Adjustment?, SpinButton> AdjustmentPropertyDefinition

Field Value

Property<Adjustment, SpinButton>

ChangeValueSignal

Signal Descriptor for OnChangeValue.

public static readonly Signal<SpinButton, SpinButton.ChangeValueSignalArgs> ChangeValueSignal

Field Value

Signal<SpinButton, SpinButton.ChangeValueSignalArgs>

ClimbRatePropertyDefinition

public static readonly Property<double, SpinButton> ClimbRatePropertyDefinition

Field Value

Property<double, SpinButton>

DigitsPropertyDefinition

public static readonly Property<uint, SpinButton> DigitsPropertyDefinition

Field Value

Property<uint, SpinButton>

InputSignal

Signal Descriptor for OnInput.

public static readonly ReturningSignal<SpinButton, SpinButton.InputSignalArgs, int> InputSignal

Field Value

ReturningSignal<SpinButton, SpinButton.InputSignalArgs, int>

NumericPropertyDefinition

public static readonly Property<bool, SpinButton> NumericPropertyDefinition

Field Value

Property<bool, SpinButton>

OutputSignal

Signal Descriptor for OnOutput.

public static readonly ReturningSignal<SpinButton, bool> OutputSignal

Field Value

ReturningSignal<SpinButton, bool>

SnapToTicksPropertyDefinition

public static readonly Property<bool, SpinButton> SnapToTicksPropertyDefinition

Field Value

Property<bool, SpinButton>

UpdatePolicyPropertyDefinition

public static readonly Property<SpinButtonUpdatePolicy, SpinButton> UpdatePolicyPropertyDefinition

Field Value

Property<SpinButtonUpdatePolicy, SpinButton>

ValueChangedSignal

Signal Descriptor for OnValueChanged.

public static readonly Signal<SpinButton> ValueChangedSignal

Field Value

Signal<SpinButton>

ValuePropertyDefinition

public static readonly Property<double, SpinButton> ValuePropertyDefinition

Field Value

Property<double, SpinButton>

WrapPropertyDefinition

public static readonly Property<bool, SpinButton> WrapPropertyDefinition

Field Value

Property<bool, SpinButton>

WrappedSignal

Signal Descriptor for OnWrapped.

public static readonly Signal<SpinButton> WrappedSignal

Field Value

Signal<SpinButton>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

ActivatesDefault

public bool ActivatesDefault { get; set; }

Property Value

bool

Adjustment

public Adjustment? Adjustment { get; set; }

Property Value

Adjustment

ClimbRate

public double ClimbRate { get; set; }

Property Value

double

CursorPosition

public int CursorPosition { get; }

Property Value

int

Digits

public uint Digits { get; set; }

Property Value

uint

Editable

public bool Editable { get; set; }

Property Value

bool

EditingCanceled

public bool EditingCanceled { get; set; }

Property Value

bool

EnableUndo

public bool EnableUndo { get; set; }

Property Value

bool

MaxWidthChars

public int MaxWidthChars { get; set; }

Property Value

int

Numeric

public bool Numeric { get; set; }

Property Value

bool

SelectionBound

public int SelectionBound { get; }

Property Value

int

SnapToTicks

public bool SnapToTicks { get; set; }

Property Value

bool

Text_

public string? Text_ { get; set; }

Property Value

string

UpdatePolicy

public SpinButtonUpdatePolicy UpdatePolicy { get; set; }

Property Value

SpinButtonUpdatePolicy

Value

public double Value { get; set; }

Property Value

double

WidthChars

public int WidthChars { get; set; }

Property Value

int

Wrap

public bool Wrap { get; set; }

Property Value

bool

Xalign

public float Xalign { get; set; }

Property Value

float

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

Configure(Adjustment?, double, uint)

public void Configure(Adjustment? adjustment, double climbRate, uint digits)

Parameters

adjustment Adjustment
climbRate double
digits uint

DelegateGetAccessiblePlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool DelegateGetAccessiblePlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

DeleteSelection()

public void DeleteSelection()

DeleteText(int, int)

public void DeleteText(int startPos, int endPos)

Parameters

startPos int
endPos int

EditingDone()

public void EditingDone()

FinishDelegate()

public void FinishDelegate()

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActivatesDefault()

[Version("4.14")]
public bool GetActivatesDefault()

Returns

bool

GetAdjustment()

public Adjustment GetAdjustment()

Returns

Adjustment

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

GetChars(int, int)

public string GetChars(int startPos, int endPos)

Parameters

startPos int
endPos int

Returns

string

GetClimbRate()

public double GetClimbRate()

Returns

double

GetDelegate()

public Editable? GetDelegate()

Returns

Editable

GetDigits()

public uint GetDigits()

Returns

uint

GetEditable()

public bool GetEditable()

Returns

bool

GetEnableUndo()

public bool GetEnableUndo()

Returns

bool

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetIncrements(out double, out double)

public void GetIncrements(out double step, out double page)

Parameters

step double
page double

GetMaxWidthChars()

public int GetMaxWidthChars()

Returns

int

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetNumeric()

public bool GetNumeric()

Returns

bool

GetOrientation()

public Orientation GetOrientation()

Returns

Orientation

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetPosition()

public int GetPosition()

Returns

int

GetRange(out double, out double)

public void GetRange(out double min, out double max)

Parameters

min double
max double

GetSelectionBounds(out int, out int)

public bool GetSelectionBounds(out int startPos, out int endPos)

Parameters

startPos int
endPos int

Returns

bool

GetSnapToTicks()

public bool GetSnapToTicks()

Returns

bool

GetText()

public string GetText()

Returns

string

GetUpdatePolicy()

public SpinButtonUpdatePolicy GetUpdatePolicy()

Returns

SpinButtonUpdatePolicy

GetValue()

public double GetValue()

Returns

double

GetValueAsInt()

public int GetValueAsInt()

Returns

int

GetWidthChars()

public int GetWidthChars()

Returns

int

GetWrap()

public bool GetWrap()

Returns

bool

InitDelegate()

public void InitDelegate()

InsertText(string, int, ref int)

public void InsertText(string text, int length, ref int position)

Parameters

text string
length int
position int

New(Adjustment?, double, uint)

public static SpinButton New(Adjustment? adjustment, double climbRate, uint digits)

Parameters

adjustment Adjustment
climbRate double
digits uint

Returns

SpinButton

NewWithRange(double, double, double)

public static SpinButton NewWithRange(double min, double max, double step)

Parameters

min double
max double
step double

Returns

SpinButton

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

startPos int
endPos int

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling 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

step double
page double

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

min double
max double

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

direction SpinType
increment double

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

SignalHandler<SpinButton>

OnChangeValue

public event SignalHandler<SpinButton, SpinButton.ChangeValueSignalArgs> OnChangeValue

Event Type

SignalHandler<SpinButton, SpinButton.ChangeValueSignalArgs>

OnInput

public event ReturningSignalHandler<SpinButton, SpinButton.InputSignalArgs, int> OnInput

Event Type

ReturningSignalHandler<SpinButton, SpinButton.InputSignalArgs, int>

OnOutput

public event ReturningSignalHandler<SpinButton, bool> OnOutput

Event Type

ReturningSignalHandler<SpinButton, bool>

OnValueChanged

public event SignalHandler<SpinButton> OnValueChanged

Event Type

SignalHandler<SpinButton>

OnWrapped

public event SignalHandler<SpinButton> OnWrapped

Event Type

SignalHandler<SpinButton>