logo top
Main Page   Widgets   Namespaces   Book  

Gtk::SpinButton Class Reference
[Widgets]

numeric Entry with up/down buttons Slightly misnamed, this should be called a SpinEntry. More...

Inheritance diagram for Gtk::SpinButton:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~SpinButton ()
GtkSpinButton* gobj ()
 Provides access to the underlying C GtkObject.

const GtkSpinButton* gobj () const
 Provides access to the underlying C GtkObject.

 SpinButton (double climb_rate=0.0, guint digits=0)
 SpinButton (Adjustment& adjustment, double climb_rate=0.0, guint digits=0)
void configure (Adjustment& adjustment, double climb_rate, guint digits)
void set_adjustment (Adjustment& adjustment)
void unset_adjustment ()
Gtk::Adjustmentget_adjustment ()
const Gtk::Adjustmentget_adjustment () const
void set_digits (guint digits)
guint get_digits () const
void set_increments (double step, double page)
void get_increments (double& step, double& page) const
void set_range (double min, double max)
void get_range (double& min, double& max) const
double get_value () const
int get_value_as_int () const
void set_value (double value)
void set_update_policy (SpinButtonUpdatePolicy policy)
SpinButtonUpdatePolicy get_update_policy () const
void set_numeric (bool numeric=true)
bool get_numeric () const
void spin (SpinType direction, double increment)
void set_wrap (bool wrap=true)
bool get_wrap () const
void set_snap_to_ticks (bool snap_to_ticks=true)
bool get_snap_to_ticks () const
void update ()
Glib::SignalProxy1<int, double*> signal_input ()
Glib::SignalProxy0<bool> signal_output ()
Glib::SignalProxy0<void> signal_value_changed ()
Glib::PropertyProxy<Gtk::Adjustment*> property_adjustment ()
Glib::PropertyProxy<double> property_climb_rate ()
Glib::PropertyProxy<guint> property_digits ()
Glib::PropertyProxy<bool> property_snap_to_ticks ()
Glib::PropertyProxy<bool> property_numeric ()
Glib::PropertyProxy<bool> property_wrap ()
Glib::PropertyProxy<SpinButtonUpdatePolicyproperty_update_policy ()
Glib::PropertyProxy<double> property_value ()

Protected Member Functions

virtual int on_input (double* new_value)
virtual bool on_output ()
virtual void on_value_changed ()

Related Functions

(Note that these are not member functions.)

Gtk::SpinButtonwrap (GtkSpinButton* object, bool take_copy=false)

Detailed Description

numeric Entry with up/down buttons Slightly misnamed, this should be called a SpinEntry.


Constructor & Destructor Documentation

virtual Gtk::SpinButton::~SpinButton (  )  [virtual]
 

Gtk::SpinButton::SpinButton ( double  climb_rate = 0.0,
guint  digits = 0
 

Gtk::SpinButton::SpinButton ( Adjustment adjustment,
double  climb_rate = 0.0,
guint  digits = 0
[explicit]
 


Member Function Documentation

void Gtk::SpinButton::configure ( Adjustment adjustment,
double  climb_rate,
guint  digits
 

const Gtk::Adjustment* Gtk::SpinButton::get_adjustment (  )  const
 

Gtk::Adjustment* Gtk::SpinButton::get_adjustment (  ) 
 

guint Gtk::SpinButton::get_digits (  )  const
 

void Gtk::SpinButton::get_increments ( double&  step,
double&  page
const
 

bool Gtk::SpinButton::get_numeric (  )  const
 

void Gtk::SpinButton::get_range ( double&  min,
double&  max
const
 

bool Gtk::SpinButton::get_snap_to_ticks (  )  const
 

SpinButtonUpdatePolicy Gtk::SpinButton::get_update_policy (  )  const
 

double Gtk::SpinButton::get_value (  )  const
 

int Gtk::SpinButton::get_value_as_int (  )  const
 

bool Gtk::SpinButton::get_wrap (  )  const
 

const GtkSpinButton* Gtk::SpinButton::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Entry.

GtkSpinButton* Gtk::SpinButton::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Entry.

virtual int Gtk::SpinButton::on_input ( double*  new_value  )  [protected, virtual]
 

virtual bool Gtk::SpinButton::on_output (  )  [protected, virtual]
 

virtual void Gtk::SpinButton::on_value_changed (  )  [protected, virtual]
 

Glib::PropertyProxy<Gtk::Adjustment*> Gtk::SpinButton::property_adjustment (  ) 
 

Glib::PropertyProxy<double> Gtk::SpinButton::property_climb_rate (  ) 
 

Glib::PropertyProxy<guint> Gtk::SpinButton::property_digits (  ) 
 

Glib::PropertyProxy<bool> Gtk::SpinButton::property_numeric (  ) 
 

Glib::PropertyProxy<bool> Gtk::SpinButton::property_snap_to_ticks (  ) 
 

Glib::PropertyProxy<SpinButtonUpdatePolicy> Gtk::SpinButton::property_update_policy (  ) 
 

Glib::PropertyProxy<double> Gtk::SpinButton::property_value (  ) 
 

Glib::PropertyProxy<bool> Gtk::SpinButton::property_wrap (  ) 
 

void Gtk::SpinButton::set_adjustment ( Adjustment adjustment  ) 
 

void Gtk::SpinButton::set_digits ( guint  digits  ) 
 

void Gtk::SpinButton::set_increments ( double  step,
double  page
 

void Gtk::SpinButton::set_numeric ( bool  numeric = true  ) 
 

void Gtk::SpinButton::set_range ( double  min,
double  max
 

void Gtk::SpinButton::set_snap_to_ticks ( bool  snap_to_ticks = true  ) 
 

void Gtk::SpinButton::set_update_policy ( SpinButtonUpdatePolicy  policy  ) 
 

void Gtk::SpinButton::set_value ( double  value  ) 
 

void Gtk::SpinButton::set_wrap ( bool  wrap = true  ) 
 

Glib::SignalProxy1<int,double*> Gtk::SpinButton::signal_input (  ) 
 

Prototype:
int input(double* new_value)

Glib::SignalProxy0<bool> Gtk::SpinButton::signal_output (  ) 
 

Prototype:
bool output()

Glib::SignalProxy0<void> Gtk::SpinButton::signal_value_changed (  ) 
 

Prototype:
void value_changed()

void Gtk::SpinButton::spin ( SpinType  direction,
double  increment
 

void Gtk::SpinButton::unset_adjustment (  ) 
 

void Gtk::SpinButton::update (  ) 
 


Friends And Related Function Documentation

Gtk::SpinButton* wrap ( GtkSpinButton*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by Doxygen 1.3.3 © 1997-2001