cheshirekow  v0.1.0
mpblocks::gtk::SimpleView Class Reference

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>

Inheritance diagram for mpblocks::gtk::SimpleView:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual mpblocks::gtk::SimpleView::~SimpleView ( )
inlinevirtual

needs a vtable

Definition at line 52 of file SimpleView.h.

mpblocks::gtk::SimpleView::SimpleView ( )

subscribes to event messages

Member Function Documentation

virtual bool mpblocks::gtk::SimpleView::on_draw ( const Cairo::RefPtr< Cairo::Context > &  ctx)
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)

Member Data Documentation

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.


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