Papyrus::Handlebox Class Reference

#include <papyrus/handlebox.h>

Inheritance diagram for Papyrus::Handlebox:

Inheritance graph
[legend]
List of all members.

Detailed Description

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>


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


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Sun Mar 11 10:01:40 2007 by  doxygen 1.5.1