#include <OgreGuiControl.h>
Inheritance diagram for Ogre::GuiControl:
Public Methods | |
GuiControl (const String &name) | |
virtual | ~GuiControl () |
void | processEvent (InputEvent *e) |
const String & | getActionCommand () const |
void | setActionCommand (const String &action) |
bool | isPressed () const |
virtual void | setPressed (bool b) |
bool | isEnabled () const |
virtual void | setEnabled (bool b) |
bool | isMouseWithin () const |
virtual void | setMouseWithin (bool b) |
void | processActionEvent (ActionEvent *e) |
void | addActionListener (ActionListener *l) |
void | removeActionListener (ActionListener *l) |
Protected Methods | |
void | fireActionPerformed () |
Protected Attributes | |
String | mActionCommand |
bool | mPressed |
bool | mMouseWithin |
bool | mButtonDown |
bool | mEnabled |
ActionListener * | mActionListener |
(To track mouse moves and mouse drags, use the MouseMotionListener.)
The class that is interested in processing a mouse event either implements this interface (and all the methods it contains) or extends the abstract MouseAdapter
class (overriding only the methods of interest).
The listener object created from that class is then registered with a component using the component's addMouseListener
method. A mouse event is generated when the mouse is pressed, released clicked (pressed and released). A mouse event is also generated when the mouse cursor enters or leaves a component. When a mouse event occurs the relevant method in the listener object is invoked, and the MouseEvent
is passed to it.
Definition at line 54 of file OgreGuiControl.h.
|
Definition at line 34 of file OgreGuiControl.cpp. References mActionCommand, mEnabled, mMouseWithin, mPressed, and Ogre::String. |
|
Definition at line 67 of file OgreGuiControl.h. |
|
Definition at line 62 of file OgreActionTarget.cpp. References Ogre::ActionTarget::mActionListener. Referenced by Ogre::ScrollBarGuiElement::setDownButtonName(), and Ogre::ScrollBarGuiElement::setUpButtonName(). |
|
Definition at line 140 of file OgreGuiControl.cpp. References getActionCommand(), and processEvent(). Referenced by processEvent(). |
|
Definition at line 82 of file OgreGuiControl.cpp. References mActionCommand, and Ogre::String. Referenced by fireActionPerformed(). |
|
Definition at line 106 of file OgreGuiControl.cpp. References mEnabled. |
|
Definition at line 128 of file OgreGuiControl.cpp. References mMouseWithin. |
|
Definition at line 94 of file OgreGuiControl.cpp. References mPressed. |
|
Definition at line 46 of file OgreActionTarget.cpp. References Ogre::ActionListener::actionPerformed(), Ogre::InputEvent::getID(), and Ogre::ActionTarget::mActionListener. Referenced by Ogre::TextBoxGuiElement::processEvent(), Ogre::GuiElement::processEvent(), and processEvent(). |
|
Implements Ogre::EventTarget. Definition at line 45 of file OgreGuiControl.cpp. References fireActionPerformed(), Ogre::InputEvent::getID(), Ogre::InputEvent::isConsumed(), mEnabled, Ogre::ActionTarget::processActionEvent(), setMouseWithin(), and setPressed(). Referenced by fireActionPerformed(). |
|
Definition at line 72 of file OgreActionTarget.cpp. References Ogre::ActionTarget::mActionListener. |
|
Definition at line 88 of file OgreGuiControl.cpp. References mActionCommand, and Ogre::String. |
|
Definition at line 112 of file OgreGuiControl.cpp. References mButtonDown, mEnabled, mMouseWithin, and mPressed. |
|
Definition at line 134 of file OgreGuiControl.cpp. References mMouseWithin. Referenced by processEvent(). |
|
Definition at line 100 of file OgreGuiControl.cpp. References mPressed. Referenced by processEvent(). |
|
Definition at line 57 of file OgreGuiControl.h. Referenced by getActionCommand(), GuiControl(), and setActionCommand(). |
|
Definition at line 58 of file OgreActionTarget.h. Referenced by Ogre::ActionTarget::ActionTarget(), Ogre::ActionTarget::addActionListener(), Ogre::ActionTarget::processActionEvent(), and Ogre::ActionTarget::removeActionListener(). |
|
Definition at line 60 of file OgreGuiControl.h. Referenced by setEnabled(). |
|
Definition at line 61 of file OgreGuiControl.h. Referenced by GuiControl(), isEnabled(), processEvent(), and setEnabled(). |
|
Definition at line 59 of file OgreGuiControl.h. Referenced by GuiControl(), isMouseWithin(), setEnabled(), and setMouseWithin(). |
|
Definition at line 58 of file OgreGuiControl.h. Referenced by GuiControl(), isPressed(), setEnabled(), and setPressed(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:01 2004