Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.SpinButton

Class SpinButton

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Entry.Entry
                                dui.SpinButton.SpinButton

Implemented interfaces:


public class

SpinButton



A visual selector for sequencial numeric values within a range.

Constructor Summary
(GtkWidget* gtkWidget)
          
public (Adjustment adjustment, gdouble climbRate, guint digits)
          Creates a new spin button.
(gdouble min, gdouble max, gdouble step)
          Creates a new spin button

Methods Summary
static GType getType()
          Gets this class type
void configure(Adjustment adjustment, gdouble climb_rate, guint digits)
          Configures this spin button parameters
void setAdjustment(Adjustment adjustment)
          Sets this spin buttons adjustment
Adjustment getAdjustement()
          Gets this spin buttons adjustment
void setDigits(guint digits)
          Sets the number of digits to the right of the decimal point
guint getDigits()
          Gets the number of digits to the right of the decimal point
void setIncrements(gdouble step, gdouble page)
          Setes the increments for this spin button
void getIncrements(gdouble* step, gdouble* page)
          Gets the imcrements for this spin button
void setRange(gdouble min, gdouble max)
          Sets the valid range for this spin
void getRange(gdouble* min, gdouble* max)
          Gets the valid minimum and maximum values
gdouble getValue()
          Gets the current value as a double
gint getValueAsInt()
          Gest the current value as an integer
void setValue(gdouble value)
          Sets the value
void setUpdatePolicy(GtkSpinButtonUpdatePolicy policy)
          Sets the update pllicy
GtkSpinButtonUpdatePolicy getUpdatePolicy()
          Gets the update policy
void setNumeric(bit numeric)
          Sets the value to be force to be numeric???
bit getNumeric()
          Check if the current value is numeric ???
void spin(GtkSpinType direction, gdouble increment)
          Sets the spin direction and increment
void setWrap(bit wrap)
          Set the wrapping mode
bit getWrap()
          Checks if the value will wrap when reaches the top or bottom range limites
void setSnapToTicks(bit snapToTicks)
          Set snap to ticks
bit getSnapToTics()
          get Snat to tics
void update()
          Update


getType

static GType getType()
Gets this class type

Returns:
this class type



ctor(SpinButton)(GtkWidget* gtkWidget)



public ctor(SpinButton)(Adjustment adjustment, gdouble climbRate, guint digits)
Creates a new spin button.

Parameters:
adjustment -
climbRate -
digits -



ctor(SpinButton)(gdouble min, gdouble max, gdouble step)
Creates a new spin button

Parameters:
min -
max -
step -

configure

void configure(Adjustment adjustment, gdouble climb_rate, guint digits)
Configures this spin button parameters

Parameters:
adjustment - the new adjustment
climb_rate - the spin step
digits - the number of digits to the right of the decimal point

setAdjustment

void setAdjustment(Adjustment adjustment)
Sets this spin buttons adjustment

Parameters:
adjustment - the adjustment

getAdjustement

Adjustment getAdjustement()
Gets this spin buttons adjustment

Returns:
the adjustment

setDigits

void setDigits(guint digits)
Sets the number of digits to the right of the decimal point

Parameters:
digits - the number of digits to the right of the decimal point

getDigits

guint getDigits()
Gets the number of digits to the right of the decimal point

Returns:
the number of digits to the right of the decimal point

setIncrements

void setIncrements(gdouble step, gdouble page)
Setes the increments for this spin button

Parameters:
step - the small increment
page - the larger increment (where is it???)

getIncrements

void getIncrements(gdouble* step, gdouble* page)
Gets the imcrements for this spin button

Parameters:
step - teh small increament
page - the larger increment (where is it???)

setRange

void setRange(gdouble min, gdouble max)
Sets the valid range for this spin

Parameters:
min -
max -

getRange

void getRange(gdouble* min, gdouble* max)
Gets the valid minimum and maximum values

Parameters:
min -
max -

getValue

gdouble getValue()
Gets the current value as a double

Returns:
the current values as a double

getValueAsInt

gint getValueAsInt()
Gest the current value as an integer

Returns:
the current values as an integer

setValue

void setValue(gdouble value)
Sets the value

Parameters:
value - the new value

setUpdatePolicy

void setUpdatePolicy(GtkSpinButtonUpdatePolicy policy)
Sets the update pllicy

Parameters:
policy - the update policy

getUpdatePolicy

GtkSpinButtonUpdatePolicy getUpdatePolicy()
Gets the update policy

Returns:
the update policy

setNumeric

void setNumeric(bit numeric)
Sets the value to be force to be numeric???

Parameters:
numeric -

getNumeric

bit getNumeric()
Check if the current value is numeric ???

Returns:
true if the current value is numeric

spin

void spin(GtkSpinType direction, gdouble increment)
Sets the spin direction and increment

Parameters:
direction - the spin direction
increment - the spin increments

setWrap

void setWrap(bit wrap)
Set the wrapping mode

Parameters:
wrap - if true the value will wrap the top or bottom limits are reached

getWrap

bit getWrap()
Checks if the value will wrap when reaches the top or bottom range limites

Returns:
true is the value will wrap

setSnapToTicks

void setSnapToTicks(bit snapToTicks)
Set snap to ticks

Parameters:
snapToTicks -

getSnapToTics

bit getSnapToTics()
get Snat to tics

Returns:

update

void update()
Update