#include <rubband.h>
Public Member Functions | |
Rubberband (RubberAction *=nil, Canvas *=nil) | |
virtual | ~Rubberband () |
virtual boolean | event (Event &) |
Coord | x_begin () const |
Coord | y_begin () const |
Coord | x () const |
Coord | y () const |
void | canvas (Canvas *) |
Canvas * | canvas () const |
const Transformer & | transformer () const |
const Event & | event () const |
virtual void | help () |
virtual void | snapshot (Printer *) |
Static Public Member Functions | |
static const Color * | color () |
static const Brush * | brush () |
static Rubberband * | current () |
Protected Member Functions | |
virtual void | draw (Coord x, Coord y) |
virtual void | undraw (Coord x, Coord y) |
virtual void | press (Event &) |
virtual void | drag (Event &) |
virtual void | release (Event &) |
void | rubber_on (Canvas *) |
void | rubber_off (Canvas *) |
Private Attributes | |
Canvas * | canvas_ |
Transformer | t_ |
Event * | e_ |
RubberAction * | ra_ |
Coord | x_begin_ |
Coord | y_begin_ |
Coord | x_ |
Coord | y_ |
Static Private Attributes | |
static const Color * | xor_color_ |
static const Brush * | brush_ |
static Rubberband * | current_ |
Rubberband::Rubberband | ( | RubberAction * | = nil , |
|
Canvas * | = nil | |||
) |
virtual Rubberband::~Rubberband | ( | ) | [virtual] |
static const Brush* Rubberband::brush | ( | ) | [static] |
Canvas* Rubberband::canvas | ( | ) | const [inline] |
References canvas_.
void Rubberband::canvas | ( | Canvas * | ) |
static const Color* Rubberband::color | ( | ) | [static] |
static Rubberband* Rubberband::current | ( | ) | [inline, static] |
References current_.
virtual void Rubberband::drag | ( | Event & | ) | [protected, virtual] |
Reimplemented in Rotate3Band.
virtual void Rubberband::draw | ( | Coord | x, | |
Coord | y | |||
) | [protected, virtual] |
Reimplemented in RubberRect, RubberLine, and Rotate3Band.
const Event& Rubberband::event | ( | ) | const [inline] |
References e_.
virtual boolean Rubberband::event | ( | Event & | ) | [virtual] |
Reimplemented in Rotate3Band.
virtual void Rubberband::help | ( | ) | [virtual] |
Reimplemented from OcHandler.
Reimplemented in RubberRect, RubberLine, and Rotate3Band.
virtual void Rubberband::press | ( | Event & | ) | [protected, virtual] |
Reimplemented in Rotate3Band.
virtual void Rubberband::release | ( | Event & | ) | [protected, virtual] |
void Rubberband::rubber_off | ( | Canvas * | c | ) | [protected] |
void Rubberband::rubber_on | ( | Canvas * | c | ) | [protected] |
virtual void Rubberband::snapshot | ( | Printer * | ) | [virtual] |
const Transformer& Rubberband::transformer | ( | ) | const [inline] |
References t_.
virtual void Rubberband::undraw | ( | Coord | x, | |
Coord | y | |||
) | [protected, virtual] |
Coord Rubberband::x | ( | ) | const [inline] |
References x_.
Coord Rubberband::x_begin | ( | ) | const [inline] |
References x_begin_.
Coord Rubberband::y | ( | ) | const [inline] |
References y_.
Coord Rubberband::y_begin | ( | ) | const [inline] |
References y_begin_.
const Brush* Rubberband::brush_ [static, private] |
Canvas* Rubberband::canvas_ [private] |
Referenced by canvas().
Rubberband* Rubberband::current_ [static, private] |
Referenced by current().
Event* Rubberband::e_ [private] |
Referenced by event().
RubberAction* Rubberband::ra_ [private] |
Transformer Rubberband::t_ [private] |
Referenced by transformer().
Coord Rubberband::x_ [private] |
Referenced by x().
Coord Rubberband::x_begin_ [private] |
Referenced by x_begin().
const Color* Rubberband::xor_color_ [static, private] |
Coord Rubberband::y_ [private] |
Referenced by y().
Coord Rubberband::y_begin_ [private] |
Referenced by y_begin().