Public Member Functions | Public Attributes

gnash::MouseButtonState Struct Reference

Helper to generate mouse events, given mouse state & history. More...

#include <MouseButtonState.h>

Collaboration diagram for gnash::MouseButtonState:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MouseButtonState ()
void markReachableResources () const
 Mark reachable objects (active and topmost entities).

Public Attributes

InteractiveObjectactiveEntity
 entity that currently owns the mouse pointer
InteractiveObjecttopmostEntity
 what's underneath the mouse right now
bool wasDown
 previous state of mouse button
bool isDown
 current state of mouse button
bool wasInsideActiveEntity
 whether mouse was inside the active_entity last frame

Detailed Description

Helper to generate mouse events, given mouse state & history.


Constructor & Destructor Documentation

gnash::MouseButtonState::MouseButtonState (  )  [inline]

Member Function Documentation

void gnash::MouseButtonState::markReachableResources (  )  const [inline]

Mark reachable objects (active and topmost entities).

References activeEntity, gnash::GcResource::setReachable(), and topmostEntity.


Member Data Documentation

entity that currently owns the mouse pointer

Referenced by markReachableResources().

current state of mouse button

what's underneath the mouse right now

Referenced by markReachableResources().

previous state of mouse button

whether mouse was inside the active_entity last frame


The documentation for this struct was generated from the following file: