|
FifeGUI 0.3.0
A C++ GUI library designed for games.
|
#include <gui.hpp>
Public Member Functions | |
| virtual void | addGlobalKeyListener (KeyListener *keyListener) |
| void | addHiddenWidget (Widget *widget) |
| void | addShownWidget (Widget *widget) |
| virtual void | draw () |
| virtual void | focusNone () |
| virtual FocusHandler * | getFocusHandler () const |
| virtual Graphics * | getGraphics () const |
| virtual Input * | getInput () const |
| virtual Widget * | getTop () const |
| Gui (Gui &&)=delete | |
| Gui (Gui const &)=delete | |
| virtual void | initialize (std::unique_ptr< Graphics > graphics, std::unique_ptr< Input > input, int width, int height) |
| virtual bool | isTabbingEnabled () |
| virtual void | logic () |
| Gui & | operator= (Gui &&)=delete |
| Gui & | operator= (Gui const &)=delete |
| virtual void | removeGlobalKeyListener (KeyListener *keyListener) |
| virtual void | setGlobalFont (std::string const &filename, int size) |
| virtual void | setGraphics (Graphics *graphics) |
| virtual void | setGraphics (std::unique_ptr< Graphics > graphics) |
| virtual void | setInput (Input *input) |
| virtual void | setInput (std::unique_ptr< Input > input) |
| virtual void | setRoot (std::unique_ptr< Widget > top) |
| virtual void | setRoot (Widget *top) |
| virtual void | setTabbingEnabled (bool tabbing) |
| virtual void | setTop (std::unique_ptr< Widget > top) |
| virtual void | setTop (Widget *top) |
| void | widgetDied (Widget const *widget) |
Protected Types | |
| using | KeyListenerList = std::list<KeyListener*> |
| using | KeyListenerListIterator = KeyListenerList::iterator |
Protected Member Functions | |
| void | captureMouse (Widget *widget) |
| virtual void | distributeKeyEvent (KeyEvent &keyEvent) |
| virtual void | distributeKeyEventToGlobalKeyListeners (KeyEvent &keyEvent) |
| void | distributeMouseEvent (Widget *source, MouseEvent::Type type, MouseEvent::Button button, int x, int y) |
| void | distributeMouseEvent (Widget *source, MouseEvent::Type type, MouseEvent::Button button, int x, int y, bool force) |
| virtual void | distributeMouseEvent (Widget *source, MouseEvent::Type type, MouseEvent::Button button, int x, int y, bool force, bool toSourceOnly) |
| virtual Widget * | getKeyEventSource () |
| virtual Widget * | getMouseEventSource (int x, int y) |
| Widget * | getWidgetAt (int x, int y) |
| virtual Widget * | getWidgetAt (int x, int y, Widget *exclude) |
| virtual std::vector< Widget * > | getWidgetsAt (int x, int y) |
| virtual void | handleHiddenWidgets () |
| virtual void | handleKeyInput () |
| virtual void | handleModalFocus () |
| virtual void | handleModalFocusGained () |
| virtual void | handleModalFocusReleased () |
| virtual void | handleModalMouseInputFocus () |
| virtual void | handleModalMouseInputFocusGained () |
| virtual void | handleModalMouseInputFocusReleased () |
| virtual void | handleMouseInput () |
| virtual void | handleMouseMoved (MouseInput const &mouseInput) |
| virtual void | handleMousePressed (MouseInput const &mouseInput) |
| virtual void | handleMouseReleased (MouseInput const &mouseInput) |
| virtual void | handleMouseWheelMovedDown (MouseInput const &mouseInput) |
| virtual void | handleMouseWheelMovedLeft (MouseInput const &mouseInput) |
| virtual void | handleMouseWheelMovedRight (MouseInput const &mouseInput) |
| virtual void | handleMouseWheelMovedUp (MouseInput const &mouseInput) |
| virtual void | handleShownWidgets () |
| virtual void | handleTextInput () |
| void | releaseMouse (Widget *widget) |
Protected Attributes | |
| bool | mAltPressed |
| int | mClickCount |
| bool | mControlPressed |
| GuiDeathListener * | mDeathListener |
| FocusHandler * | mFocusHandler |
| std::shared_ptr< Font > | mGlobalFont |
| Graphics * | mGraphics |
| std::vector< Widget * > | mHiddenWidgets |
| Input * | mInput |
| KeyListenerList | mKeyListeners |
| int | mLastMouseDragButton |
| unsigned int | mLastMousePressButton |
| int | mLastMousePressTimeStamp |
| int | mLastMouseX |
| int | mLastMouseY |
| bool | mMetaPressed |
| std::unique_ptr< Graphics > | mOwnedGraphics |
| std::unique_ptr< Input > | mOwnedInput |
| std::unique_ptr< Widget > | mOwnedTop |
| bool | mShiftPressed |
| std::vector< Widget * > | mShownWidgets |
| bool | mTabbing |
| Widget * | mTop |
| VisibilityEventHandler * | mVisibilityEventHandler |
Friends | |
| class | DragHandler |
The central GUI manager.
Integrates backend implementations and manages the root widget tree.
GUI is the core class of FifeGUI to which implementations of backends are passed, to make FifeGUI work with a specific library, and to where the top widget (root widget of GUI) is added. If you want to be able to have more then one widget in your GUI, the top widget should be a container.
A Gui object cannot work properly without passing backend implementations to it. A Gui object must have an implementation of a Graphics and an implementation of Input.
|
protected |
List of KeyListener.
|
protected |
Iterator for KeyListenerList.
|
virtual |
Adds a global key listener to the GUI.
A global key listener will receive all key events generated from the GUI and global key listeners will receive the events before key listeners of widgets.
| keyListener | The key listener to add. |
Definition at line 283 of file gui.cpp.
References mKeyListeners.
| void fcn::Gui::addHiddenWidget | ( | Widget * | widget | ) |
Inform gui that a widget was hidden.
| widget | Hidden widget. |
Definition at line 293 of file gui.cpp.
References mHiddenWidgets.
| void fcn::Gui::addShownWidget | ( | Widget * | widget | ) |
Inform gui that a widget was shown.
| widget | Shown widget. |
Definition at line 298 of file gui.cpp.
References mShownWidgets.
|
protected |
Explicitly captures mouse input to a widget.
When a widget has explicit capture, all mouse events are routed to that widget regardless of cursor position.
| widget | The widget to capture mouse to, or nullptr to release. |
Definition at line 780 of file gui.cpp.
References fcn::Widget::captureMouse().
|
protectedvirtual |
Distributes a key event.
| keyEvent | The key event to distribute. |
Definition at line 944 of file gui.cpp.
References fcn::Widget::_getKeyListeners(), fcn::Widget::getParent(), fcn::Event::getSource(), fcn::KeyEvent::getType(), fcn::Widget::isEnabled(), fcn::Widget::isModalFocused(), fcn::InputEvent::mDistributor, mFocusHandler, fcn::throwException(), and fcn::Widget::widgetExists().
Referenced by handleKeyInput().
|
protectedvirtual |
Distributes a key event to the global key listeners.
| keyEvent | The key event to distribute. |
Definition at line 995 of file gui.cpp.
References fcn::KeyEvent::getType(), fcn::InputEvent::isConsumed(), mKeyListeners, and fcn::throwException().
Referenced by handleKeyInput().
|
inlineprotected |
Convenience overload: distribute a mouse event forwarding to the full overload with force and toSourceOnly set to false.
Definition at line 449 of file gui.hpp.
References distributeMouseEvent().
Referenced by distributeMouseEvent(), distributeMouseEvent(), handleHiddenWidgets(), handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), handleMouseWheelMovedUp(), and handleShownWidgets().
|
inlineprotected |
Convenience overload: forward and allow specifying force while toSourceOnly remains false.
Definition at line 457 of file gui.hpp.
References distributeMouseEvent().
|
protectedvirtual |
Distributes a mouse event to the GUI handling code.
| source | The source widget of the event. |
| type | The type of the event to distribute. |
| button | The button of the event (if any) to distribute. |
| x | The x coordinate of the event. |
| y | The y coordinate of the event. |
| force | If true, distributes the event even if the receiving widget is not enabled, not visible, or another widget has modal focus. |
| toSourceOnly | If true, only the source widget receives the event, otherwise parent listeners may also receive it. |
Definition at line 840 of file gui.cpp.
References fcn::Widget::_getMouseListeners(), fcn::Widget::getAbsolutePosition(), fcn::Widget::getParent(), fcn::MouseEvent::getType(), fcn::Widget::isEnabled(), fcn::Widget::isModalFocused(), fcn::Widget::isUnderMouseModal(), mAltPressed, mClickCount, mControlPressed, fcn::InputEvent::mDistributor, mFocusHandler, mMetaPressed, mShiftPressed, fcn::MouseEvent::mX, fcn::MouseEvent::mY, and fcn::Widget::widgetExists().
|
virtual |
Draws the GUI.
By calling this function all draw functions down in the GUI hierarchy will be called. When draw is called the used Graphics object will be initialised and drawing of the top widget will commence.
Definition at line 246 of file gui.cpp.
References mGraphics, mTop, and fcn::throwException().
|
virtual |
Focuses none of the widgets in the GUI.
Definition at line 268 of file gui.cpp.
References mFocusHandler.
|
virtual |
Returns the focus handler used by this GUI.
Definition at line 201 of file gui.cpp.
References mFocusHandler.
|
virtual |
Gets the graphics object used for drawing.
Definition at line 167 of file gui.cpp.
References mGraphics.
|
virtual |
|
protectedvirtual |
Gets the source of the key event.
Definition at line 828 of file gui.cpp.
References fcn::Widget::_getInternalFocusHandler(), fcn::FocusHandler::getFocused(), and mFocusHandler.
Referenced by handleKeyInput().
|
protectedvirtual |
Gets the source of the mouse event.
Definition at line 798 of file gui.cpp.
References getWidgetAt(), and mFocusHandler.
Referenced by handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), and handleMouseWheelMovedUp().
|
virtual |
|
inlineprotected |
Gets the widget at a certain position.
Definition at line 506 of file gui.hpp.
References getWidgetAt().
Referenced by getMouseEventSource(), getWidgetAt(), handleHiddenWidgets(), and handleShownWidgets().
Gets the widget at a certain position, optionally excluding one widget.
| x | The x coordinate. |
| y | The y coordinate. |
| exclude | Widget to ignore when searching (may be nullptr). |
Definition at line 700 of file gui.cpp.
References fcn::Widget::getAbsolutePosition(), fcn::Widget::getWidgetAt(), and mTop.
|
protectedvirtual |
Gets all widgets a certain coordinate in the GUI.
| x | The x coordinate. |
| y | The y coordinate. |
Definition at line 720 of file gui.cpp.
References fcn::Widget::getAbsolutePosition(), fcn::Widget::getWidgetAt(), and mTop.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), and handleMouseMoved().
|
protectedvirtual |
Handles hidden widgets.
Definition at line 1127 of file gui.cpp.
References distributeMouseEvent(), getWidgetAt(), fcn::Rectangle::isContaining(), mHiddenWidgets, mLastMouseX, mLastMouseY, and fcn::Widget::widgetExists().
Referenced by logic().
|
protectedvirtual |
Handles key input.
Definition at line 374 of file gui.cpp.
References distributeKeyEvent(), distributeKeyEventToGlobalKeyListeners(), fcn::KeyInput::getKey(), getKeyEventSource(), fcn::KeyInput::getType(), fcn::KeyInput::isAltPressed(), fcn::InputEvent::isConsumed(), fcn::KeyInput::isControlPressed(), fcn::KeyInput::isMetaPressed(), fcn::KeyInput::isNumericPad(), fcn::KeyInput::isShiftPressed(), mAltPressed, mControlPressed, mFocusHandler, mInput, mMetaPressed, mShiftPressed, and mTabbing.
Referenced by logic().
|
protectedvirtual |
Handles modal focus.
Modal focus needs to be checked at each logic iteration as it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1031 of file gui.cpp.
References handleModalFocusGained(), handleModalFocusReleased(), and mFocusHandler.
Referenced by logic().
|
protectedvirtual |
Handles modal focus gained.
If modal focus has been gained it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1045 of file gui.cpp.
References distributeMouseEvent(), getWidgetsAt(), mFocusHandler, mLastMousePressButton, mLastMouseX, and mLastMouseY.
Referenced by handleModalFocus().
|
protectedvirtual |
Handles modal focus released.
If modal focus has been released it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1067 of file gui.cpp.
References distributeMouseEvent(), getWidgetsAt(), mFocusHandler, mLastMousePressButton, mLastMouseX, and mLastMouseY.
Referenced by handleModalFocus().
|
protectedvirtual |
Handles modal mouse input focus.
Modal mouse input focus needs to be checked at each logic iteration as it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1017 of file gui.cpp.
References handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), and mFocusHandler.
Referenced by logic().
|
protectedvirtual |
Handles modal mouse input focus gained.
If modal focus has been gained it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1086 of file gui.cpp.
References distributeMouseEvent(), getWidgetsAt(), mFocusHandler, mLastMousePressButton, mLastMouseX, and mLastMouseY.
Referenced by handleModalMouseInputFocus().
|
protectedvirtual |
Handles modal mouse input focus released.
If modal focus has been released it might be necessary to distribute mouse entered or mouse exited events.
Definition at line 1108 of file gui.cpp.
References distributeMouseEvent(), getWidgetsAt(), mFocusHandler, mLastMousePressButton, mLastMouseX, and mLastMouseY.
Referenced by handleModalMouseInputFocus().
|
protectedvirtual |
Handles all mouse input.
Definition at line 309 of file gui.cpp.
References fcn::MouseInput::getType(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), handleMouseWheelMovedUp(), mInput, mLastMouseX, mLastMouseY, and fcn::throwException().
Referenced by logic().
|
protectedvirtual |
Handles mouse moved input.
| mouseInput | The mouse input to handle. |
Definition at line 443 of file gui.cpp.
References distributeMouseEvent(), fcn::MouseInput::getButton(), getMouseEventSource(), getWidgetsAt(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), mClickCount, mFocusHandler, mLastMouseDragButton, mLastMousePressTimeStamp, mLastMouseX, mLastMouseY, and mTop.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse pressed input.
| mouseInput | The mouse input to handle. |
Definition at line 538 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getTimeStamp(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), fcn::Widget::isModalFocused(), mClickCount, mFocusHandler, mLastMouseDragButton, mLastMousePressButton, mLastMousePressTimeStamp, and fcn::Widget::requestFocus().
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse released input.
| mouseInput | The mouse input to handle. |
Definition at line 657 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), mClickCount, mFocusHandler, and mLastMousePressButton.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse wheel moved down input.
| mouseInput | The mouse input to handle. |
Definition at line 577 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), and mFocusHandler.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse wheel moved left input.
| mouseInput | The mouse input to handle. |
Definition at line 637 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), and mFocusHandler.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse wheel moved right input.
| mouseInput | The mouse input to handle. |
Definition at line 617 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), and mFocusHandler.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles mouse wheel moved up input.
| mouseInput | The mouse input to handle. |
Definition at line 597 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::MouseInput::getButton(), getMouseEventSource(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), and mFocusHandler.
Referenced by handleMouseInput().
|
protectedvirtual |
Handles shown widgets.
Definition at line 1159 of file gui.cpp.
References distributeMouseEvent(), getWidgetAt(), fcn::Rectangle::isContaining(), mLastMouseX, mLastMouseY, and mShownWidgets.
Referenced by logic().
|
protectedvirtual |
Handles text input from the backend.
Definition at line 350 of file gui.cpp.
References fcn::TextInputEvent::Input, fcn::Widget::isEnabled(), mAltPressed, mControlPressed, mFocusHandler, mInput, mMetaPressed, mShiftPressed, and fcn::Widget::textInput().
Referenced by logic().
|
virtual |
Initializes GUI backends in one call.
| graphics | Owned graphics backend. |
| input | Owned input backend. |
| width | Unused by the core implementation. |
| height | Unused by the core implementation. |
Definition at line 193 of file gui.cpp.
References setGraphics(), and setInput().
|
virtual |
Checks if tabbing is enabled.
Definition at line 278 of file gui.cpp.
References mTabbing.
|
virtual |
Performs logic of the GUI.
By calling this function all logic functions down in the GUI heirarchy will be called. When logic is called for Gui, user input will be handled.
Definition at line 221 of file gui.cpp.
References handleHiddenWidgets(), handleKeyInput(), handleModalFocus(), handleModalMouseInputFocus(), handleMouseInput(), handleShownWidgets(), handleTextInput(), mInput, mTop, and fcn::throwException().
|
protected |
Releases explicit mouse capture from a widget.
| widget | The widget to release capture from. |
Definition at line 787 of file gui.cpp.
References fcn::Widget::releaseMouse().
|
virtual |
Removes global key listener from the GUI.
| keyListener | The key listener to remove. |
| Exception | if the key listener hasn't been added. |
Definition at line 288 of file gui.cpp.
References mKeyListeners.
|
virtual |
Loads a font using the active graphics backend and sets it as global widget font.
| filename | Path to font file. |
| size | Font size. |
Definition at line 206 of file gui.cpp.
References mGlobalFont, mGraphics, fcn::Widget::setGlobalFont(), and fcn::throwException().
|
virtual |
Sets the graphics object to use for drawing.
| graphics | The graphics object to use for drawing. |
Definition at line 151 of file gui.cpp.
References mGraphics, and mOwnedGraphics.
Referenced by initialize(), and setGraphics().
|
virtual |
Sets and owns the graphics object used for drawing.
| graphics | The graphics object. |
Definition at line 161 of file gui.cpp.
References mOwnedGraphics, and setGraphics().
|
virtual |
Sets the input object to use for input handling.
| input | The input object to use for input handling. |
Definition at line 172 of file gui.cpp.
References mInput, and mOwnedInput.
Referenced by initialize(), and setInput().
|
virtual |
Sets and owns the input object used for input handling.
| input | The input object. |
Definition at line 182 of file gui.cpp.
References mOwnedInput, and setInput().
|
virtual |
|
virtual |
|
virtual |
Sets tabbing enabled, or not.
Tabbing is the usage of changing focus by utilizing the tab key.
| tabbing | True if tabbing should be enabled, false otherwise. |
Definition at line 273 of file gui.cpp.
References mTabbing.
|
virtual |
|
virtual |
Sets the top widget.
The top widget is the root widget of the GUI. If you want a GUI to be able to contain more than one widget the top widget should be a container.
| top | The top widget. |
Definition at line 112 of file gui.cpp.
References fcn::Widget::_setFocusHandler(), mFocusHandler, mOwnedTop, and mTop.
| void fcn::Gui::widgetDied | ( | Widget const * | widget | ) |
Inform gui that a widget was deleted.
| widget | Deleted widget. |
Definition at line 303 of file gui.cpp.
References mHiddenWidgets, and mShownWidgets.
|
protected |
True if alt is pressed, false otherwise.
Definition at line 629 of file gui.hpp.
Referenced by distributeMouseEvent(), handleKeyInput(), and handleTextInput().
|
protected |
Holds the current click count.
Used to keep track of clicks for a the last pressed button.
Definition at line 655 of file gui.hpp.
Referenced by distributeMouseEvent(), handleMouseMoved(), handleMousePressed(), and handleMouseReleased().
|
protected |
True if control is pressed, false otherwise.
Definition at line 624 of file gui.hpp.
Referenced by distributeMouseEvent(), handleKeyInput(), and handleTextInput().
|
protected |
|
protected |
Holds the focus handler for the GUI.
Definition at line 588 of file gui.hpp.
Referenced by distributeKeyEvent(), distributeMouseEvent(), focusNone(), getFocusHandler(), getKeyEventSource(), getMouseEventSource(), handleKeyInput(), handleModalFocus(), handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocus(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), handleMouseWheelMovedUp(), handleTextInput(), and setTop().
|
protected |
Shared global font used by widgets when not overridden.
Definition at line 677 of file gui.hpp.
Referenced by setGlobalFont().
|
protected |
Holds the graphics implementation used.
Definition at line 578 of file gui.hpp.
Referenced by draw(), getGraphics(), setGlobalFont(), and setGraphics().
|
protected |
Holds hidden widgets.
Definition at line 568 of file gui.hpp.
Referenced by addHiddenWidget(), handleHiddenWidgets(), and widgetDied().
|
protected |
Holds the input implementation used.
Definition at line 583 of file gui.hpp.
Referenced by getInput(), handleKeyInput(), handleMouseInput(), handleTextInput(), logic(), and setInput().
|
protected |
Holds the global key listeners of the GUI.
Definition at line 609 of file gui.hpp.
Referenced by addGlobalKeyListener(), distributeKeyEventToGlobalKeyListeners(), and removeGlobalKeyListener().
|
protected |
Holds the last button used when a drag of a widget was initiated.
Used to be able to release a drag when the same button is released.
Definition at line 662 of file gui.hpp.
Referenced by handleMouseMoved(), and handleMousePressed().
|
protected |
Holds the last mouse button pressed.
Definition at line 634 of file gui.hpp.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMousePressed(), and handleMouseReleased().
|
protected |
Holds the last mouse press time stamp.
Definition at line 639 of file gui.hpp.
Referenced by handleMouseMoved(), and handleMousePressed().
|
protected |
Holds the last mouse x coordinate.
Definition at line 644 of file gui.hpp.
Referenced by handleHiddenWidgets(), handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMouseInput(), handleMouseMoved(), and handleShownWidgets().
|
protected |
Holds the last mouse y coordinate.
Definition at line 649 of file gui.hpp.
Referenced by handleHiddenWidgets(), handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMouseInput(), handleMouseMoved(), and handleShownWidgets().
|
protected |
True if meta is pressed, false otherwise.
Definition at line 619 of file gui.hpp.
Referenced by distributeMouseEvent(), handleKeyInput(), and handleTextInput().
|
protected |
Optional owned graphics backend instance.
Definition at line 671 of file gui.hpp.
Referenced by setGraphics(), and setGraphics().
|
protected |
Optional owned input backend instance.
Definition at line 674 of file gui.hpp.
Referenced by setInput(), and setInput().
|
protected |
|
protected |
True if shift is pressed, false otherwise.
Definition at line 614 of file gui.hpp.
Referenced by distributeMouseEvent(), handleKeyInput(), and handleTextInput().
|
protected |
Holds shown widgets.
Definition at line 573 of file gui.hpp.
Referenced by addShownWidget(), handleShownWidgets(), and widgetDied().
|
protected |
True if tabbing is enabled, false otherwise.
Definition at line 598 of file gui.hpp.
Referenced by handleKeyInput(), isTabbingEnabled(), and setTabbingEnabled().
|
protected |
Holds the top widget.
Definition at line 563 of file gui.hpp.
Referenced by draw(), getTop(), getWidgetAt(), getWidgetsAt(), handleMouseMoved(), logic(), and setTop().
|
protected |