Class Index Cross Index Namespace Index

Class Gtk::SpinButton

numeric Entry with up/down buttons
Contained in: Gtk
Derived from: Gtk::Entry
Derived by: none

#include <gtk--/spinbutton.h>


public function member index:

SpinButton(gfloat climb_rate=0, gint digits=0);
SpinButton(Adjustment& adjustment, gfloat climb_rate=0, gint digits=0);
Adjustment* get_adjustment() const;
guint get_digits() const;
bool get_numeric() const;
GtkShadowType get_shadow_type() const;
bool get_snap_to_ticks() const;
GtkSpinButtonUpdatePolicy get_update_policy() const;
gfloat get_value_as_float() const;
gint get_value_as_int() const;
bool get_wrap() const;
GtkSpinButton* gtkobj();
const GtkSpinButton* gtkobj() const;
static bool isA(Object* object);
void set_adjustment(Adjustment& adjustment);
void set_adjustment(Adjustment* adjustment);
void set_digits(gint digits);
void set_numeric(bool numeric);
void set_shadow_type(GtkShadowType shadow_type);
void set_snap_to_ticks(bool snap_to_ticks);
void set_update_policy(GtkSpinButtonUpdatePolicy policy);
void set_value(gfloat value);
void set_wrap(bool wrap);
void spin(GtkSpinType direction, gfloat step);
void update();
virtual ~SpinButton();
 

Description:



Function Member Descriptions:

Gtk::SpinButton::SpinButton - create instance

SpinButton(gfloat climb_rate=0, gint digits=0);

Gtk::SpinButton::get_adjustment - get range/value

Adjustment* get_adjustment() const;

Gtk::SpinButton::get_value_as_float - get value

gfloat get_value_as_float() const;

Gtk::SpinButton::get_value_as_int - get value

gint get_value_as_int() const;

Gtk::SpinButton::gtkobj - Returns the underlaying gtk+ object.

GtkSpinButton* gtkobj();

Gtk::SpinButton::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::SpinButton::set_adjustment - set a new range/value

void set_adjustment(Adjustment& adjustment);

Gtk::SpinButton::set_digits - set number of decimals

void set_digits(gint digits);

Gtk::SpinButton::set_value - set value

void set_value(gfloat value);