ardour
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Gtkmm2ext::AutoSpin Class Reference

#include <auto_spin.h>

Inheritance diagram for Gtkmm2ext::AutoSpin:
Gtkmm2ext::ClickBox

Public Member Functions

 AutoSpin (Gtk::Adjustment &adj, gfloat cr=0, bool round_to_steps_yn=false)
 
Gtk::Adjustment & get_adjustment ()
 
void use_left_as_decrement (bool yn)
 
void set_wrap (bool yn)
 
void set_climb_rate (gfloat cr)
 
void set_bounds (gfloat initial, gfloat low, gfloat high, bool with_reset=true)
 
gint button_press (GdkEventButton *)
 
gint stop_spinning (GdkEventButton *ignored_but_here_for_clicked)
 
void start_spinning (bool decrementing, bool use_page)
 

Private Member Functions

void stop_timer ()
 
gint timer ()
 
bool adjust_value (gfloat increment)
 
void set_value (gfloat value)
 

Static Private Member Functions

static gint _timer (void *arg)
 

Private Attributes

Gtk::Adjustment & adjustment
 
gfloat climb_rate
 
gfloat timer_increment
 
gfloat initial
 
unsigned int timer_calls
 
bool have_timer
 
bool need_timer
 
bool wrap
 
gint timeout_tag
 
bool left_is_decrement
 
bool round_to_steps
 

Static Private Attributes

static const unsigned int initial_timer_interval = 500
 
static const unsigned int timer_interval = 20
 
static const unsigned int climb_timer_calls = 5
 

Detailed Description

Definition at line 33 of file auto_spin.h.

Constructor & Destructor Documentation

AutoSpin::AutoSpin ( Gtk::Adjustment &  adj,
gfloat  cr = 0,
bool  round_to_steps_yn = false 
)

Definition at line 37 of file auto_spin.cc.

Member Function Documentation

gint AutoSpin::_timer ( void *  arg)
staticprivate

Definition at line 161 of file auto_spin.cc.

bool AutoSpin::adjust_value ( gfloat  increment)
private

Definition at line 176 of file auto_spin.cc.

gint AutoSpin::button_press ( GdkEventButton *  ev)

Definition at line 69 of file auto_spin.cc.

Gtk::Adjustment& Gtkmm2ext::AutoSpin::get_adjustment ( )
inline

Definition at line 39 of file auto_spin.h.

void AutoSpin::set_bounds ( gfloat  initial,
gfloat  low,
gfloat  high,
bool  with_reset = true 
)

Definition at line 257 of file auto_spin.cc.

void Gtkmm2ext::AutoSpin::set_climb_rate ( gfloat  cr)
inline

Definition at line 43 of file auto_spin.h.

void AutoSpin::set_value ( gfloat  value)
private

Definition at line 167 of file auto_spin.cc.

void Gtkmm2ext::AutoSpin::set_wrap ( bool  yn)
inline

Definition at line 42 of file auto_spin.h.

void AutoSpin::start_spinning ( bool  decrementing,
bool  use_page 
)

Definition at line 143 of file auto_spin.cc.

gint AutoSpin::stop_spinning ( GdkEventButton *  ignored_but_here_for_clicked)

Definition at line 61 of file auto_spin.cc.

void AutoSpin::stop_timer ( )
private

Definition at line 52 of file auto_spin.cc.

gint AutoSpin::timer ( )
private

Definition at line 206 of file auto_spin.cc.

void Gtkmm2ext::AutoSpin::use_left_as_decrement ( bool  yn)
inline

Definition at line 41 of file auto_spin.h.

Member Data Documentation

Gtk::Adjustment& Gtkmm2ext::AutoSpin::adjustment
private

Definition at line 52 of file auto_spin.h.

gfloat Gtkmm2ext::AutoSpin::climb_rate
private

Definition at line 53 of file auto_spin.h.

const unsigned int AutoSpin::climb_timer_calls = 5
staticprivate

Definition at line 66 of file auto_spin.h.

bool Gtkmm2ext::AutoSpin::have_timer
private

Definition at line 57 of file auto_spin.h.

gfloat Gtkmm2ext::AutoSpin::initial
private

Definition at line 55 of file auto_spin.h.

const unsigned int AutoSpin::initial_timer_interval = 500
staticprivate

Definition at line 64 of file auto_spin.h.

bool Gtkmm2ext::AutoSpin::left_is_decrement
private

Definition at line 61 of file auto_spin.h.

bool Gtkmm2ext::AutoSpin::need_timer
private

Definition at line 58 of file auto_spin.h.

bool Gtkmm2ext::AutoSpin::round_to_steps
private

Definition at line 62 of file auto_spin.h.

gint Gtkmm2ext::AutoSpin::timeout_tag
private

Definition at line 60 of file auto_spin.h.

unsigned int Gtkmm2ext::AutoSpin::timer_calls
private

Definition at line 56 of file auto_spin.h.

gfloat Gtkmm2ext::AutoSpin::timer_increment
private

Definition at line 54 of file auto_spin.h.

const unsigned int AutoSpin::timer_interval = 20
staticprivate

Definition at line 65 of file auto_spin.h.

bool Gtkmm2ext::AutoSpin::wrap
private

Definition at line 59 of file auto_spin.h.


The documentation for this class was generated from the following files: