#include <widgets.h>

Public Member Functions | |
| FEMarineButton (GraphicsInteractionManager *gim, const std::set< OIS::KeyCode > *modifierKeys, const OIS::MouseButtonID oisMouseButtonId, std::string caption="FEButton", Widget *aParent=0, Ogre::ColourValue color=Ogre::ColourValue::Red, Ogre::Vector2 defaultPos=Ogre::Vector2::NEGATIVE_UNIT_X, Ogre::Vector2 defaultSize=DEFAULT_LABEL_SIZE, Ogre::GuiMetricsMode defaultMode=Ogre::GMM_RELATIVE) | |
| ~FEMarineButton () | |
| virtual void | handleMouseEvent (const OIS::MouseEvent &args) |
| FEMarineButton (GraphicsInteractionManager *gim, const std::set< OIS::KeyCode > *modifierKeys, const OIS::MouseButtonID oisMouseButtonId, std::string caption="FEButton", Widget *aParent=0, Ogre::ColourValue color=Ogre::ColourValue::Red, Ogre::Vector2 defaultPos=Ogre::Vector2::NEGATIVE_UNIT_X, Ogre::Vector2 defaultSize=DEFAULT_LABEL_SIZE, Ogre::GuiMetricsMode defaultMode=Ogre::GMM_RELATIVE) | |
| ~FEMarineButton () | |
| virtual void | handleMouseEvent (const OIS::MouseEvent &args) |
| FEMarineButton (GraphicsInteractionManager *gim, const std::set< OIS::KeyCode > *modifierKeys, const OIS::MouseButtonID oisMouseButtonId, std::string caption="FEButton", Widget *aParent=0, Ogre::ColourValue color=Ogre::ColourValue::Red, Ogre::Vector2 defaultPos=Ogre::Vector2::NEGATIVE_UNIT_X, Ogre::Vector2 defaultSize=DEFAULT_LABEL_SIZE, Ogre::GuiMetricsMode defaultMode=Ogre::GMM_RELATIVE) | |
| ~FEMarineButton () | |
| virtual void | handleMouseEvent (const OIS::MouseEvent &args) |
| FEMarineButton (GraphicsInteractionManager *gim, const std::set< OIS::KeyCode > *modifierKeys, const OIS::MouseButtonID oisMouseButtonId, std::string caption="FEButton", Widget *aParent=0, Ogre::ColourValue color=Ogre::ColourValue::Red, Ogre::Vector2 defaultPos=Ogre::Vector2::NEGATIVE_UNIT_X, Ogre::Vector2 defaultSize=DEFAULT_LABEL_SIZE, Ogre::GuiMetricsMode defaultMode=Ogre::GMM_RELATIVE) | |
| ~FEMarineButton () | |
| virtual void | handleMouseEvent (const OIS::MouseEvent &args) |
Definition at line 313 of file widgets.h.
| OgreGFX::FEMarineButton::FEMarineButton | ( | GraphicsInteractionManager * | gim, | |
| const std::set< OIS::KeyCode > * | modifierKeys, | |||
| const OIS::MouseButtonID | oisMouseButtonId, | |||
| std::string | caption = "FEButton", |
|||
| Widget * | aParent = 0, |
|||
| Ogre::ColourValue | color = Ogre::ColourValue::Red, |
|||
| Ogre::Vector2 | defaultPos = Ogre::Vector2::NEGATIVE_UNIT_X, |
|||
| Ogre::Vector2 | defaultSize = DEFAULT_LABEL_SIZE, |
|||
| Ogre::GuiMetricsMode | defaultMode = Ogre::GMM_RELATIVE | |||
| ) |
Constructor for a Marine button, which builds an Marine near the selected structure.
| gim | a pointer to the global Graphics Interaction Manager, to display widget. | |
| modifierKeys | Pointer to a configuration of keyboard keys that must all be pressed for the button handler to be called. | |
| oisMouseButtonId | The ID of the mouse button that must be pressed for the button handler to be called. | |
| caption | The text to display in the panel | |
| aParent | A pointer to the parent node, if any (null if this is a root element, or pointer to another widget if this is a child of that widget). Defaults to NULL. | |
| color | The color of the displayed text. Defaults to red | |
| defaultPos | Upper-right corner position of the widget, in absolute coordinates if this is a parent node, or relative to the parent node if this is a child node. | |
| defaultSize | length and height of the widget. |
Definition at line 387 of file widgets.cpp.
| OgreGFX::FEMarineButton::~FEMarineButton | ( | ) |
Definition at line 399 of file widgets.cpp.
| OgreGFX::FEMarineButton::FEMarineButton | ( | GraphicsInteractionManager * | gim, | |
| const std::set< OIS::KeyCode > * | modifierKeys, | |||
| const OIS::MouseButtonID | oisMouseButtonId, | |||
| std::string | caption = "FEButton", |
|||
| Widget * | aParent = 0, |
|||
| Ogre::ColourValue | color = Ogre::ColourValue::Red, |
|||
| Ogre::Vector2 | defaultPos = Ogre::Vector2::NEGATIVE_UNIT_X, |
|||
| Ogre::Vector2 | defaultSize = DEFAULT_LABEL_SIZE, |
|||
| Ogre::GuiMetricsMode | defaultMode = Ogre::GMM_RELATIVE | |||
| ) |
Constructor for a Marine button, which builds an Marine near the selected structure.
| gim | a pointer to the global Graphics Interaction Manager, to display widget. | |
| modifierKeys | Pointer to a configuration of keyboard keys that must all be pressed for the button handler to be called. | |
| oisMouseButtonId | The ID of the mouse button that must be pressed for the button handler to be called. | |
| caption | The text to display in the panel | |
| aParent | A pointer to the parent node, if any (null if this is a root element, or pointer to another widget if this is a child of that widget). Defaults to NULL. | |
| color | The color of the displayed text. Defaults to red | |
| defaultPos | Upper-right corner position of the widget, in absolute coordinates if this is a parent node, or relative to the parent node if this is a child node. | |
| defaultSize | length and height of the widget. |
| OgreGFX::FEMarineButton::~FEMarineButton | ( | ) |
| OgreGFX::FEMarineButton::FEMarineButton | ( | GraphicsInteractionManager * | gim, | |
| const std::set< OIS::KeyCode > * | modifierKeys, | |||
| const OIS::MouseButtonID | oisMouseButtonId, | |||
| std::string | caption = "FEButton", |
|||
| Widget * | aParent = 0, |
|||
| Ogre::ColourValue | color = Ogre::ColourValue::Red, |
|||
| Ogre::Vector2 | defaultPos = Ogre::Vector2::NEGATIVE_UNIT_X, |
|||
| Ogre::Vector2 | defaultSize = DEFAULT_LABEL_SIZE, |
|||
| Ogre::GuiMetricsMode | defaultMode = Ogre::GMM_RELATIVE | |||
| ) |
Constructor for a Marine button, which builds an Marine near the selected structure.
| gim | a pointer to the global Graphics Interaction Manager, to display widget. | |
| modifierKeys | Pointer to a configuration of keyboard keys that must all be pressed for the button handler to be called. | |
| oisMouseButtonId | The ID of the mouse button that must be pressed for the button handler to be called. | |
| caption | The text to display in the panel | |
| aParent | A pointer to the parent node, if any (null if this is a root element, or pointer to another widget if this is a child of that widget). Defaults to NULL. | |
| color | The color of the displayed text. Defaults to red | |
| defaultPos | Upper-right corner position of the widget, in absolute coordinates if this is a parent node, or relative to the parent node if this is a child node. | |
| defaultSize | length and height of the widget. |
| OgreGFX::FEMarineButton::~FEMarineButton | ( | ) |
| OgreGFX::FEMarineButton::FEMarineButton | ( | GraphicsInteractionManager * | gim, | |
| const std::set< OIS::KeyCode > * | modifierKeys, | |||
| const OIS::MouseButtonID | oisMouseButtonId, | |||
| std::string | caption = "FEButton", |
|||
| Widget * | aParent = 0, |
|||
| Ogre::ColourValue | color = Ogre::ColourValue::Red, |
|||
| Ogre::Vector2 | defaultPos = Ogre::Vector2::NEGATIVE_UNIT_X, |
|||
| Ogre::Vector2 | defaultSize = DEFAULT_LABEL_SIZE, |
|||
| Ogre::GuiMetricsMode | defaultMode = Ogre::GMM_RELATIVE | |||
| ) |
Constructor for a Marine button, which builds an Marine near the selected structure.
| gim | a pointer to the global Graphics Interaction Manager, to display widget. | |
| modifierKeys | Pointer to a configuration of keyboard keys that must all be pressed for the button handler to be called. | |
| oisMouseButtonId | The ID of the mouse button that must be pressed for the button handler to be called. | |
| caption | The text to display in the panel | |
| aParent | A pointer to the parent node, if any (null if this is a root element, or pointer to another widget if this is a child of that widget). Defaults to NULL. | |
| color | The color of the displayed text. Defaults to red | |
| defaultPos | Upper-right corner position of the widget, in absolute coordinates if this is a parent node, or relative to the parent node if this is a child node. | |
| defaultSize | length and height of the widget. |
| OgreGFX::FEMarineButton::~FEMarineButton | ( | ) |
| void OgreGFX::FEMarineButton::handleMouseEvent | ( | const OIS::MouseEvent & | args | ) | [virtual] |
Stores if the button is available to be clicked or not. If false, clicking the button does not result in the associated function being called.
Mouse handler called when a mouse event occurs.
| args | Information about the mouse state (mouse button, cursor position, etc). |
Reimplemented from OgreGFX::FEButton.
Definition at line 404 of file widgets.cpp.
References OgreGFX::Widget::cursonInMe(), DEBUG, FastEcslent::Entity::desiredHeading, FastEcslent::Entity::desiredSpeed, OgreGFX::FEButton::enabled, OgreGFX::GraphicsInteractionManager::engine, FastEcslent::Engine::entityMgr, OgreGFX::Widget::gfx, FastEcslent::Entity::heading, FastEcslent::Entity::init(), OgreGFX::GraphicsInteractionManager::makeNode(), FastEcslent::MARINE, OgreGFX::GraphicsInteractionManager::nGFXNodes, FastEcslent::Entity::pos, FastEcslent::Engine::selectionMgr, and FastEcslent::Entity::yaw.
| virtual void OgreGFX::FEMarineButton::handleMouseEvent | ( | const OIS::MouseEvent & | args | ) | [virtual] |
Stores if the button is available to be clicked or not. If false, clicking the button does not result in the associated function being called.
Mouse handler called when a mouse event occurs.
| args | Information about the mouse state (mouse button, cursor position, etc). |
Reimplemented from OgreGFX::FEButton.
| virtual void OgreGFX::FEMarineButton::handleMouseEvent | ( | const OIS::MouseEvent & | args | ) | [virtual] |
Stores if the button is available to be clicked or not. If false, clicking the button does not result in the associated function being called.
Mouse handler called when a mouse event occurs.
| args | Information about the mouse state (mouse button, cursor position, etc). |
Reimplemented from OgreGFX::FEButton.
| virtual void OgreGFX::FEMarineButton::handleMouseEvent | ( | const OIS::MouseEvent & | args | ) | [virtual] |
Stores if the button is available to be clicked or not. If false, clicking the button does not result in the associated function being called.
Mouse handler called when a mouse event occurs.
| args | Information about the mouse state (mouse button, cursor position, etc). |
Reimplemented from OgreGFX::FEButton.
1.5.4