ardour
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Gtkmm2ext::ClickBox Class Reference

#include <click_box.h>

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

Public Member Functions

 ClickBox (Gtk::Adjustment *adj, const std::string &name, bool round_to_steps=false)
 
 ~ClickBox ()
 
void set_printer (sigc::slot< bool, char *, Gtk::Adjustment & >)
 
- Public Member Functions inherited from Gtkmm2ext::AutoSpin
 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)
 

Protected Member Functions

bool on_expose_event (GdkEventExpose *)
 

Private Member Functions

void set_label ()
 
void style_changed (const Glib::RefPtr< Gtk::Style > &)
 
bool button_press_handler (GdkEventButton *)
 
bool button_release_handler (GdkEventButton *)
 

Private Attributes

Glib::RefPtr< Pango::Layout > layout
 
int twidth
 
int theight
 
sigc::slot< bool, char
*, Gtk::Adjustment & > 
_printer
 

Detailed Description

Definition at line 35 of file click_box.h.

Constructor & Destructor Documentation

ClickBox::ClickBox ( Gtk::Adjustment *  adj,
const std::string &  name,
bool  round_to_steps = false 
)

Definition at line 32 of file click_box.cc.

ClickBox::~ClickBox ( )

Definition at line 53 of file click_box.cc.

Member Function Documentation

bool ClickBox::button_press_handler ( GdkEventButton *  ev)
private

Definition at line 58 of file click_box.cc.

bool ClickBox::button_release_handler ( GdkEventButton *  ev)
private

Definition at line 66 of file click_box.cc.

bool ClickBox::on_expose_event ( GdkEventExpose *  ev)
protected

Definition at line 105 of file click_box.cc.

void ClickBox::set_label ( )
private

Definition at line 81 of file click_box.cc.

void ClickBox::set_printer ( sigc::slot< bool, char *, Gtk::Adjustment & >  p)

Set a slot to `print' the value to put in the box. The slot should write the value of the Gtk::Adjustment into the char array, and should return true if it has done the printing, or false to use the ClickBox's default printing method.

Definition at line 143 of file click_box.cc.

void ClickBox::style_changed ( const Glib::RefPtr< Gtk::Style > &  )
private

Definition at line 98 of file click_box.cc.

Member Data Documentation

sigc::slot<bool, char *, Gtk::Adjustment &> Gtkmm2ext::ClickBox::_printer
private

Definition at line 61 of file click_box.h.

Glib::RefPtr<Pango::Layout> Gtkmm2ext::ClickBox::layout
private

Definition at line 52 of file click_box.h.

int Gtkmm2ext::ClickBox::theight
private

Definition at line 54 of file click_box.h.

int Gtkmm2ext::ClickBox::twidth
private

Definition at line 53 of file click_box.h.


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