G3D::Widget Class ReferenceInterface for 2D or 3D objects that experience standard virtual world events and are rendered.
More...
#include <Widget.h>
Inherits G3D::ReferenceCountedObject.
Inherited by G3D::GConsole, G3D::GuiWindow, G3D::Manipulator, and G3D::WidgetManager.
List of all members.
Detailed Description
Interface for 2D or 3D objects that experience standard virtual world events and are rendered.
Widget is an interface for "widget"-like objects. You could think of it as a bare-bones scene graph.
Modules are objects like the G3D::FirstPersonController, G3D::GConsole, and debug text overlay that need to receive almost the same set of events (onXXX methods) as GApp and that you would like to be called from the corresponding methods of a GApp. They are a way to break large pieces of functionality for UI and debugging off so that they can be mixed and matched.
- BETA API Likely to receive incompatible changes in future releases.
Member Typedef Documentation
Constructor & Destructor Documentation
| G3D::Widget::Widget |
( |
|
) |
[inline, protected] |
Member Function Documentation
| virtual void G3D::Widget::fireEvent |
( |
const GEvent & |
event |
) |
[virtual] |
| virtual bool G3D::Widget::onEvent |
( |
const GEvent & |
event |
) |
[pure virtual] |
Returning true consumes the event and prevents other GModules from seeing it.
Motion events (GEventType::MOUSEMOTION, GEventType::JOYHATMOTION, JGEventType::OYBALLMOTION, and GEventType::JOYAXISMOTION) cannot be cancelled.
Implemented in G3D::CameraControlWindow, G3D::DeveloperWindow, G3D::FirstPersonManipulator, G3D::GConsole, G3D::GuiWindow, G3D::ThirdPersonManipulator, G3D::UprightSplineManipulator, and G3D::WidgetManager.
| virtual void G3D::Widget::onLogic |
( |
|
) |
[pure virtual] |
| virtual void G3D::Widget::onNetwork |
( |
|
) |
[pure virtual] |
| virtual void G3D::Widget::onUserInput |
( |
UserInput * |
ui |
) |
[pure virtual] |
| void G3D::ReferenceCountedObject::ReferenceCountedObject_zeroWeakPointers |
( |
|
) |
[inline, inherited] |
Automatically called immediately before the object is deleted.
This is not called from the destructor because it needs to be invoked before the subclass destructor.
| virtual void G3D::Widget::setManager |
( |
WidgetManager * |
m |
) |
[inline, virtual] |
| virtual GWindow* G3D::Widget::window |
( |
|
) |
const [virtual] |
Member Data Documentation
The manager, set by setManager().
This cannot be a reference counted pointer because that would create a cycle between the Widget and its manager.
The long name is to keep this from accidentally conflicting with a subclass's variable name.
Do not use or explicitly manipulate this value--its type may change in the future and is not part of the supported API.
Linked list of all weak pointers that reference this (some may be on the stack!).
Do not use or explicitly manipulate this value.
The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:48 2007 for G3D by
1.5.2
Hosted by
|