synfig-studio  1.0.3
Public Member Functions | Protected Member Functions | List of all members
studio::Renderer_Dragbox Class Reference

#include <renderer_dragbox.h>

Inheritance diagram for studio::Renderer_Dragbox:
studio::WorkAreaRenderer

Public Member Functions

 ~Renderer_Dragbox ()
void render_vfunc (const Glib::RefPtr< Gdk::Window > &drawable, const Gdk::Rectangle &expose_area)
 Redraw the drag box.
bool event_vfunc (GdkEvent *event)
 Catch some mouse events to select objects (handles) in the workarea.
const synfig::Point & get_drag_point () const
const synfig::Point & get_curr_point () const
- Public Member Functions inherited from studio::WorkAreaRenderer
sigc::signal< void > & signal_changed ()
int get_w () const
int get_h () const
float get_pw () const
float get_ph () const
synfig::Point screen_to_comp_coords (synfig::Point pos) const
 Converts screen coords (ie: pixels) to composition coordinates.
synfig::Point comp_to_screen_coords (synfig::Point pos) const
 Converts composition coordinates to screen coords (ie: pixels)
 WorkAreaRenderer ()
virtual ~WorkAreaRenderer ()
bool get_enabled () const
int get_priority () const
WorkAreaget_work_area () const
void set_enabled (bool x)
void set_priority (int x)
void set_work_area (WorkArea *work_area_)
bool operator< (const WorkAreaRenderer &rhs)

Protected Member Functions

bool get_enabled_vfunc () const

Additional Inherited Members

- Public Types inherited from studio::WorkAreaRenderer
typedef etl::handle
< WorkAreaRenderer
Handle
typedef etl::loose_handle
< WorkAreaRenderer
LooseHandle

Constructor & Destructor Documentation

Renderer_Dragbox::~Renderer_Dragbox ( )

Member Function Documentation

void Renderer_Dragbox::render_vfunc ( const Glib::RefPtr< Gdk::Window > &  drawable,
const Gdk::Rectangle &  expose_area 
)
virtual

Redraw the drag box.

TODO : make HARDCODED Ui specification configure ready

Reimplemented from studio::WorkAreaRenderer.

References DRAGBOX_COLOR_OUTLINE, and GDK_COLOR_TO_RGB.

bool Renderer_Dragbox::event_vfunc ( GdkEvent *  event)
virtual

Catch some mouse events to select objects (handles) in the workarea.

TODO : Make HARDCODED shortcut key access configure ready.

Save the handles (ducks) selection and global context

The selection context guid set is used for quicker lookup

Do nothing this time.

Start by cleaning the field

Treat what's in the box accordingly to the selection context

Do the job only on selectable handles (not origin handle)

Reimplemented from studio::WorkAreaRenderer.

const synfig::Point & Renderer_Dragbox::get_drag_point ( ) const
const synfig::Point & Renderer_Dragbox::get_curr_point ( ) const
bool Renderer_Dragbox::get_enabled_vfunc ( ) const
protectedvirtual

Reimplemented from studio::WorkAreaRenderer.


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