cheshirekow
v0.1.0
|
a very simple drawing area which just rescales the area to (0,0),(1,1) and emits the context via a signal so that things can draw themselves More...
#include <mpblocks/gtk/SimpleView.h>
Public Member Functions | |
virtual bool | on_draw (const Cairo::RefPtr< Cairo::Context > &ctx) |
overload which does the drawing, just scales ctx and then emits it over sig_draw More... | |
bool | on_motion (GdkEventMotion *evt) |
bool | on_press (GdkEventButton *evt) |
bool | on_release (GdkEventButton *evt) |
SimpleView () | |
subscribes to event messages More... | |
virtual | ~SimpleView () |
needs a vtable More... | |
Public Attributes | |
sigc::signal< void, const Cairo::RefPtr< Cairo::Context > & > | sig_draw |
signal through which we emit the context More... | |
sigc::signal< void, double, double > | sig_motion |
signal through which we emit mouse motion More... | |
sigc::signal< void, double, double > | sig_press |
signal through which we emit mouse press events More... | |
sigc::signal< void, double, double > | sig_release |
signal through which we emit mouse press events More... | |
a very simple drawing area which just rescales the area to (0,0),(1,1) and emits the context via a signal so that things can draw themselves
Definition at line 37 of file SimpleView.h.
|
inlinevirtual |
needs a vtable
Definition at line 52 of file SimpleView.h.
mpblocks::gtk::SimpleView::SimpleView | ( | ) |
subscribes to event messages
|
virtual |
overload which does the drawing, just scales ctx and then emits it over sig_draw
bool mpblocks::gtk::SimpleView::on_motion | ( | GdkEventMotion * | evt | ) |
bool mpblocks::gtk::SimpleView::on_press | ( | GdkEventButton * | evt | ) |
bool mpblocks::gtk::SimpleView::on_release | ( | GdkEventButton * | evt | ) |
sigc::signal<void, const Cairo::RefPtr<Cairo::Context>&> mpblocks::gtk::SimpleView::sig_draw |
signal through which we emit the context
Definition at line 40 of file SimpleView.h.
sigc::signal<void, double, double> mpblocks::gtk::SimpleView::sig_motion |
signal through which we emit mouse motion
Definition at line 49 of file SimpleView.h.
sigc::signal<void, double, double> mpblocks::gtk::SimpleView::sig_press |
signal through which we emit mouse press events
Definition at line 43 of file SimpleView.h.
sigc::signal<void, double, double> mpblocks::gtk::SimpleView::sig_release |
signal through which we emit mouse press events
Definition at line 46 of file SimpleView.h.