
#include <scaler.h>

Public Types | |
| typedef PapyrusPointer< Scaler > | pointer |
Public Member Functions | |
| virtual | ~Scaler () |
| unsigned | sides () |
| void | set_sides (unsigned sides) |
| void | enable_sides (unsigned sides) |
| void | disable_sides (unsigned sides) |
Static Public Member Functions | |
| static Scaler::pointer | create (unsigned side=TOP|RIGHT|BOTTOM|LEFT) |
| static Scaler::pointer | create (const Glib::ustring &id, DrawableSet::pointer drawables, unsigned side=TOP|RIGHT|BOTTOM|LEFT) |
| static Scaler::pointer | create (const Glib::ustring &id, unsigned side=TOP|RIGHT|BOTTOM|LEFT) |
| static Scaler::pointer | create (DrawableSet::pointer drawables, unsigned side=TOP|RIGHT|BOTTOM|LEFT) |
Protected Member Functions | |
| Scaler (const Glib::ustring &id, DrawableSet::pointer drawables, unsigned side=0) | |
| virtual bool | on_motion (const Event::Motion &event) |
| virtual bool | on_button_press (const Event::ButtonPress &event) |
Protected Attributes | |
| double | m_last_position [2] |
| Gets the current grid size. | |
| double | m_original_position [2] |
| unsigned | m_sides |
| double | m_grid [2] |
| typedef PapyrusPointer<Scaler> Papyrus::Scaler::pointer |
Reimplemented from Papyrus::AffineController.
| Papyrus::Scaler::Scaler | ( | const Glib::ustring & | id, | |
| DrawableSet::pointer | drawables, | |||
| unsigned | side = 0 | |||
| ) | [protected] |
References m_grid, Papyrus::AffineController::m_matrix_level, m_original_position, and Papyrus::AffineController::recalculate_matrix().
Referenced by create().
| Papyrus::Scaler::~Scaler | ( | ) | [virtual] |
| Scaler::pointer Papyrus::Scaler::create | ( | DrawableSet::pointer | drawables, | |
| unsigned | side = TOP|RIGHT|BOTTOM|LEFT | |||
| ) | [static] |
References PAPYRUS_CREATE, and Scaler().
| Scaler::pointer Papyrus::Scaler::create | ( | const Glib::ustring & | id, | |
| unsigned | side = TOP|RIGHT|BOTTOM|LEFT | |||
| ) | [static] |
References PAPYRUS_CREATE, and Scaler().
| Scaler::pointer Papyrus::Scaler::create | ( | const Glib::ustring & | id, | |
| DrawableSet::pointer | drawables, | |||
| unsigned | side = TOP|RIGHT|BOTTOM|LEFT | |||
| ) | [static] |
References PAPYRUS_CREATE, and Scaler().
| Scaler::pointer Papyrus::Scaler::create | ( | unsigned | side = TOP|RIGHT|BOTTOM|LEFT |
) | [static] |
References PAPYRUS_CREATE, and Scaler().
| void Papyrus::Scaler::disable_sides | ( | unsigned | sides | ) |
References m_sides.
| void Papyrus::Scaler::enable_sides | ( | unsigned | sides | ) |
References m_sides.
| bool Papyrus::Scaler::on_button_press | ( | const Event::ButtonPress & | event | ) | [protected, virtual] |
Reimplemented from Papyrus::Controller.
References m_last_position, and m_original_position.
| bool Papyrus::Scaler::on_motion | ( | const Event::Motion & | event | ) | [protected, virtual] |
| void Papyrus::Scaler::set_sides | ( | unsigned | sides | ) |
References m_sides.
| unsigned Papyrus::Scaler::sides | ( | ) |
References m_sides.
double Papyrus::Scaler::m_grid[2] [protected] |
Referenced by Scaler().
double Papyrus::Scaler::m_last_position[2] [protected] |
Gets the current grid size.
Sets the grid x and y sizes. If either is <= 0.0 then the grid will be turned off for that dimension.
Referenced by on_button_press(), and on_motion().
double Papyrus::Scaler::m_original_position[2] [protected] |
Referenced by on_button_press(), and Scaler().
unsigned Papyrus::Scaler::m_sides [protected] |
Referenced by disable_sides(), enable_sides(), on_motion(), set_sides(), and sides().
1.6.1