#include <papyrus/handlebox.h>
Inheritance diagram for Papyrus::Handlebox:
Public Types | |
typedef PapyrusSmartPointer< Handlebox > | pointer |
Public Member Functions | |
Handlebox (Handles handles=CORNER_HANDLES) | |
void | set_handle_shape (Position p, Drawable::pointer shape, bool activate=true) |
void | set_handle_shape (Handles h, Drawable::pointer shape, bool activate=true) |
Drawable::pointer | get_handle_shape (Position p) |
void | activate_handle (Position p, bool activate=true) |
void | activate_handle (Handles h, bool activate=true) |
void | deactivate_handle (Position p) |
void | deactivate_handle (Handles h) |
bool | is_active (Position p) |
bool | is_active (Handles h) |
int | inside_handle (double x, double y) |
PAPYRUS_CLASS_NAME ("Handle Box") | |
PAPYRUS_CLONE_METHOD (Handlebox) | |
Static Public Member Functions | |
static Handlebox::pointer | create (Handles handles=CORNER_HANDLES) |
Protected Member Functions | |
virtual void | rebuild_extents () |
Reimplements Boxed' behavior when extents need to be updated. | |
virtual void | position_handle (Drawable::pointer, double x, double y) |
virtual void | on_child_added (Drawable::pointer child) |
virtual void | on_child_removed (Drawable::pointer child) |
Protected Attributes | |
Drawable::pointer | m_handle_shape [8] |
bool | m_handle_active [8] |
bool | m_initializing |
void Papyrus::Handlebox::rebuild_extents | ( | ) | [protected, virtual] |
Reimplements Boxed' behavior when extents need to be updated.
Performs same behavior, but also adjusts handle shapes to their proper places.
Reimplemented from Papyrus::Boxed.