papyrus logo

Papyrus::Zoomer Class Reference

#include <zoomer.h>

Inheritance diagram for Papyrus::Zoomer:
Inheritance graph
[legend]

List of all members.

Public Types

typedef PapyrusPointer< Zoomerpointer

Public Member Functions

virtual ~Zoomer ()
void zoom_in ()
void zoom_out ()
double zoom_step ()
void set_zoom_step (double zs)
unsigned zoom_in_buttons ()
unsigned zoom_out_buttons ()
void set_zoom_in_buttons (unsigned b)
void set_zoom_out_buttons (unsigned b)
void set_zoom_buttons (unsigned in, unsigned out)
void set_zoom_buttons (unsigned set)
void add_zoom_buttons (unsigned in, unsigned out)
void add_zoom_buttons (unsigned set)
void perform_button_action (Event::ButtonID b)

Static Public Member Functions

static Zoomer::pointer create (double zoom_step=0.25)
static Zoomer::pointer create (const Glib::ustring &id, DrawableSet::pointer drawables, double zoom_step=1.0)
static Zoomer::pointer create (const Glib::ustring &id, double zoom_step=1.0)
static Zoomer::pointer create (DrawableSet::pointer drawables, double zoom_step=1.0)

Protected Member Functions

 Zoomer (const Glib::ustring &id, DrawableSet::pointer drawables, double zoom_step=1.0)
virtual bool on_button_press (const Event::ButtonPress &event)
virtual bool on_scroll (const Event::Scroll &event)

Protected Attributes

double m_zoom_step
unsigned m_zoom_in_buttons
unsigned m_zoom_out_buttons

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation

typedef PapyrusPointer<Zoomer> Papyrus::Zoomer::pointer

Reimplemented from Papyrus::AffineController.


Constructor & Destructor Documentation

Papyrus::Zoomer::Zoomer ( const Glib::ustring &  id,
DrawableSet::pointer  drawables,
double  zoom_step = 1.0 
) [protected]

Referenced by create().

Papyrus::Zoomer::~Zoomer (  )  [virtual]

Member Function Documentation

void Papyrus::Zoomer::add_zoom_buttons ( unsigned  set  ) 
void Papyrus::Zoomer::add_zoom_buttons ( unsigned  in,
unsigned  out 
)
Zoomer::pointer Papyrus::Zoomer::create ( DrawableSet::pointer  drawables,
double  zoom_step = 1.0 
) [static]

References PAPYRUS_CREATE, and Zoomer().

Zoomer::pointer Papyrus::Zoomer::create ( const Glib::ustring &  id,
double  zoom_step = 1.0 
) [static]

References PAPYRUS_CREATE, and Zoomer().

Zoomer::pointer Papyrus::Zoomer::create ( const Glib::ustring &  id,
DrawableSet::pointer  drawables,
double  zoom_step = 1.0 
) [static]

References PAPYRUS_CREATE, and Zoomer().

Zoomer::pointer Papyrus::Zoomer::create ( double  zoom_step = 0.25  )  [static]

References PAPYRUS_CREATE, and Zoomer().

bool Papyrus::Zoomer::on_button_press ( const Event::ButtonPress event  )  [protected, virtual]
bool Papyrus::Zoomer::on_scroll ( const Event::Scroll event  )  [protected, virtual]
void Papyrus::Zoomer::perform_button_action ( Event::ButtonID  b  ) 
void Papyrus::Zoomer::set_zoom_buttons ( unsigned  set  ) 
void Papyrus::Zoomer::set_zoom_buttons ( unsigned  in,
unsigned  out 
)
void Papyrus::Zoomer::set_zoom_in_buttons ( unsigned  b  ) 

References m_zoom_in_buttons.

void Papyrus::Zoomer::set_zoom_out_buttons ( unsigned  b  ) 

References m_zoom_out_buttons.

void Papyrus::Zoomer::set_zoom_step ( double  zs  ) 

References m_zoom_step.

void Papyrus::Zoomer::zoom_in (  ) 
unsigned Papyrus::Zoomer::zoom_in_buttons (  ) 

References m_zoom_in_buttons.

void Papyrus::Zoomer::zoom_out (  ) 
unsigned Papyrus::Zoomer::zoom_out_buttons (  ) 

References m_zoom_out_buttons.

double Papyrus::Zoomer::zoom_step (  ) 

References m_zoom_step.


Member Data Documentation

unsigned Papyrus::Zoomer::m_zoom_in_buttons [protected]
double Papyrus::Zoomer::m_zoom_step [protected]

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

Generated on Fri Apr 16 12:41:10 2010 for papyrus by doxygen 1.6.1