What is being dragged and how. More...
#include <drag_state.h>
Public Member Functions | |
| bool | isLockCentered () const |
| void | setLockCentered (bool lock) |
| void | setOffset (boost::int32_t x, boost::int32_t y) |
| boost::int32_t | xOffset () const |
| boost::int32_t | yOffset () const |
| bool | hasBounds () const |
| const SWFRect & | getBounds () const |
| Get the boundaries to constraint the drag into. | |
| void | setBounds (const SWFRect &bounds) |
| Set the boundaries to constraint the drag into. | |
| DisplayObject * | getCharacter () const |
| May return NULL !! | |
| void | setCharacter (DisplayObject *ch) |
| Stores DisplayObject in an intrusive pointer. | |
| void | reset () |
| Reset drag state to its initial condition. | |
| drag_state () | |
| void | markReachableResources () const |
| Mark DisplayObject as reachable (if any). | |
What is being dragged and how.
| gnash::drag_state::drag_state | ( | ) | [inline] |
| const SWFRect& gnash::drag_state::getBounds | ( | ) | const [inline] |
Get the boundaries to constraint the drag into.
Coordinates of the rectangle are expected in TWIPS.
Note that if hasBounds() is false the returned rectangle is the NULL rectangle - see SWFRect::is_null().
| DisplayObject* gnash::drag_state::getCharacter | ( | ) | const [inline] |
May return NULL !!
| bool gnash::drag_state::hasBounds | ( | ) | const [inline] |
| bool gnash::drag_state::isLockCentered | ( | ) | const [inline] |
| void gnash::drag_state::markReachableResources | ( | ) | const [inline] |
Mark DisplayObject as reachable (if any).
References gnash::GcResource::setReachable().
| void gnash::drag_state::reset | ( | ) | [inline] |
Reset drag state to its initial condition.
References gnash::SWFRect::set_null().
Referenced by gnash::movie_root::add_interval_timer().
| void gnash::drag_state::setBounds | ( | const SWFRect & | bounds | ) | [inline] |
Set the boundaries to constraint the drag into.
Coordinates of the rectangle are expected in TWIPS.
| void gnash::drag_state::setCharacter | ( | DisplayObject * | ch | ) | [inline] |
Stores DisplayObject in an intrusive pointer.
| void gnash::drag_state::setLockCentered | ( | bool | lock | ) | [inline] |
| void gnash::drag_state::setOffset | ( | boost::int32_t | x, | |
| boost::int32_t | y | |||
| ) | [inline] |
Set displacement offset from origin at time of drag start. Coordinates are in stage space (twips)
| boost::int32_t gnash::drag_state::xOffset | ( | ) | const [inline] |
| boost::int32_t gnash::drag_state::yOffset | ( | ) | const [inline] |
1.7.1