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

#include <scroomer.h>

Inheritance diagram for Gtkmm2ext::Scroomer:
MidiScroomer

Classes

struct  UpdateRect
 

Public Types

enum  Component {
  TopBase = 0, Handle1 = 1, Slider = 2, Handle2 = 3,
  BottomBase = 4, Total = 5, None = 6
}
 

Public Member Functions

 Scroomer (Gtk::Adjustment &adjustment)
 
 ~Scroomer ()
 
bool on_motion_notify_event (GdkEventMotion *)
 
bool on_button_press_event (GdkEventButton *)
 
bool on_button_release_event (GdkEventButton *)
 
bool on_scroll_event (GdkEventScroll *)
 
virtual void on_size_allocate (Gtk::Allocation &)
 
void set_comp_rect (GdkRectangle &, Component) const
 
Component point_in (double point) const
 
void set_min_page_size (double page_size)
 
int get_handle_size ()
 
int position_of (Component comp)
 

Public Attributes

sigc::signal0< void > DragStarting
 
sigc::signal0< void > DragFinishing
 
sigc::signal0< void > DoubleClicked
 

Protected Attributes

Gtk::Adjustment & adj
 

Private Member Functions

void update ()
 
void adjustment_changed ()
 

Private Attributes

int position [6]
 
int old_pos [6]
 
int handle_size
 
double min_page_size
 
GdkWindow * grab_window
 
Component grab_comp
 
double grab_y
 
double unzoomed_val
 
double unzoomed_page
 
bool pinch
 

Detailed Description

Definition at line 31 of file scroomer.h.

Member Enumeration Documentation

Enumerator
TopBase 
Handle1 
Slider 
Handle2 
BottomBase 
Total 
None 

Definition at line 34 of file scroomer.h.

Constructor & Destructor Documentation

Scroomer::Scroomer ( Gtk::Adjustment &  adjustment)

Definition at line 30 of file scroomer.cc.

Scroomer::~Scroomer ( )

Definition at line 51 of file scroomer.cc.

Member Function Documentation

void Scroomer::adjustment_changed ( )
private

Definition at line 373 of file scroomer.cc.

int Gtkmm2ext::Scroomer::get_handle_size ( )
inline

Definition at line 58 of file scroomer.h.

bool Scroomer::on_button_press_event ( GdkEventButton *  ev)

Definition at line 229 of file scroomer.cc.

bool Scroomer::on_button_release_event ( GdkEventButton *  ev)

Definition at line 262 of file scroomer.cc.

bool Scroomer::on_motion_notify_event ( GdkEventMotion *  ev)

Definition at line 56 of file scroomer.cc.

bool Scroomer::on_scroll_event ( GdkEventScroll *  ev)

Definition at line 212 of file scroomer.cc.

void Scroomer::on_size_allocate ( Gtk::Allocation &  )
virtual

Definition at line 301 of file scroomer.cc.

Scroomer::Component Scroomer::point_in ( double  point) const

Definition at line 332 of file scroomer.cc.

int Gtkmm2ext::Scroomer::position_of ( Component  comp)
inline

Definition at line 60 of file scroomer.h.

void Scroomer::set_comp_rect ( GdkRectangle &  r,
Component  c 
) const

Assumes that x and width are correct, and they will not be altered.

Definition at line 313 of file scroomer.cc.

void Scroomer::set_min_page_size ( double  page_size)

Definition at line 344 of file scroomer.cc.

void Scroomer::update ( )
private

Definition at line 353 of file scroomer.cc.

Member Data Documentation

Gtk::Adjustment& Gtkmm2ext::Scroomer::adj
protected

Definition at line 68 of file scroomer.h.

sigc::signal0<void> Gtkmm2ext::Scroomer::DoubleClicked

Definition at line 65 of file scroomer.h.

sigc::signal0<void> Gtkmm2ext::Scroomer::DragFinishing

Definition at line 63 of file scroomer.h.

sigc::signal0<void> Gtkmm2ext::Scroomer::DragStarting

Definition at line 62 of file scroomer.h.

Component Gtkmm2ext::Scroomer::grab_comp
private

Definition at line 84 of file scroomer.h.

GdkWindow* Gtkmm2ext::Scroomer::grab_window
private

Definition at line 83 of file scroomer.h.

double Gtkmm2ext::Scroomer::grab_y
private

Definition at line 85 of file scroomer.h.

int Gtkmm2ext::Scroomer::handle_size
private

Definition at line 81 of file scroomer.h.

double Gtkmm2ext::Scroomer::min_page_size
private

Definition at line 82 of file scroomer.h.

int Gtkmm2ext::Scroomer::old_pos[6]
private

Definition at line 80 of file scroomer.h.

bool Gtkmm2ext::Scroomer::pinch
private

Definition at line 88 of file scroomer.h.

int Gtkmm2ext::Scroomer::position[6]
private

Definition at line 79 of file scroomer.h.

double Gtkmm2ext::Scroomer::unzoomed_page
private

Definition at line 87 of file scroomer.h.

double Gtkmm2ext::Scroomer::unzoomed_val
private

Definition at line 86 of file scroomer.h.


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