|
Gnash 0.8.9
|
What is being dragged and how. More...
#include <DragState.h>
Public Member Functions | |
| DragState (DisplayObject *d) | |
| 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 | reset () |
| Reset drag state to its initial condition. | |
| void | markReachableResources () const |
| Mark DisplayObject as reachable (if any) | |
What is being dragged and how.
| gnash::DragState::DragState | ( | DisplayObject * | d | ) | [inline] |
| const SWFRect& gnash::DragState::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::DragState::getCharacter | ( | ) | const [inline] |
May return NULL !!
| bool gnash::DragState::hasBounds | ( | ) | const [inline] |
| bool gnash::DragState::isLockCentered | ( | ) | const [inline] |
| void gnash::DragState::markReachableResources | ( | ) | const [inline] |
Mark DisplayObject as reachable (if any)
References gnash::GcResource::setReachable().
| void gnash::DragState::reset | ( | ) | [inline] |
Reset drag state to its initial condition.
References gnash::SWFRect::set_null().
| void gnash::DragState::setBounds | ( | const SWFRect & | bounds | ) | [inline] |
Set the boundaries to constraint the drag into.
Coordinates of the rectangle are expected in TWIPS.
| void gnash::DragState::setLockCentered | ( | bool | lock | ) | [inline] |
| void gnash::DragState::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)
References gnash::key::x, and gnash::key::y.
Referenced by gnash::movie_root::setDragState().
| boost::int32_t gnash::DragState::xOffset | ( | ) | const [inline] |
| boost::int32_t gnash::DragState::yOffset | ( | ) | const [inline] |
1.7.3