SpinButton Class Reference

Inheritance diagram for SpinButton:

Entry List of all members.

Detailed Description

A visual selector for sequencial numeric values within a range.


Public Member Functions

 this (Adjustment adjustment, gdouble climbRate, guint digits)
 Creates a new spin button.
 this (gdouble min, gdouble max, gdouble step)
 Creates a new spin button.
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.

Static Public Member Functions

GType getType ()
 Gets this class type.


Member Function Documentation

void SpinButton.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

Adjustment SpinButton.getAdjustement  ) 
 

Gets this spin buttons adjustment.

Returns:
the adjustment

guint SpinButton.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

void SpinButton.getIncrements gdouble *  step,
gdouble *  page
 

Gets the imcrements for this spin button.

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

bit SpinButton.getNumeric  ) 
 

Check if the current value is numeric ???

Returns:
true if the current value is numeric

void SpinButton.getRange gdouble *  min,
gdouble *  max
 

Gets the valid minimum and maximum values.

Parameters:
min 
max 

bit SpinButton.getSnapToTics  ) 
 

get Snat to tics

Returns:

GType SpinButton.getType  )  [static]
 

Gets this class type.

Returns:
this class type

Reimplemented from Widget.

GtkSpinButtonUpdatePolicy SpinButton.getUpdatePolicy  ) 
 

Gets the update policy.

Returns:
the update policy

gdouble SpinButton.getValue  ) 
 

Gets the current value as a double.

Returns:
the current values as a double

gint SpinButton.getValueAsInt  ) 
 

Gest the current value as an integer.

Returns:
the current values as an integer

bit SpinButton.getWrap  ) 
 

Checks if the value will wrap when reaches the top or bottom range limites.

Returns:
true is the value will wrap

void SpinButton.setAdjustment Adjustment  adjustment  ) 
 

Sets this spin buttons adjustment.

Parameters:
adjustment the adjustment

void SpinButton.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

void SpinButton.setIncrements gdouble  step,
gdouble  page
 

Setes the increments for this spin button.

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

void SpinButton.setNumeric bit  numeric  ) 
 

Sets the value to be force to be numeric???

Parameters:
numeric 

void SpinButton.setRange gdouble  min,
gdouble  max
 

Sets the valid range for this spin.

Parameters:
min 
max 

void SpinButton.setSnapToTicks bit  snapToTicks  ) 
 

Set snap to ticks.

Parameters:
snapToTicks 

void SpinButton.setUpdatePolicy GtkSpinButtonUpdatePolicy  policy  ) 
 

Sets the update pllicy.

Parameters:
policy the update policy

void SpinButton.setValue gdouble  value  ) 
 

Sets the value.

Parameters:
value the new value

void SpinButton.setWrap bit  wrap  ) 
 

Set the wrapping mode.

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

void SpinButton.spin GtkSpinType  direction,
gdouble  increment
 

Sets the spin direction and increment.

Parameters:
direction the spin direction
increment the spin increments

SpinButton.this gdouble  min,
gdouble  max,
gdouble  step
 

Creates a new spin button.

Parameters:
min 
max 
step 

SpinButton.this Adjustment  adjustment,
gdouble  climbRate,
guint  digits
 

Creates a new spin button.

Parameters:
adjustment 
climbRate 
digits 

void SpinButton.update  ) 
 

Update.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo