|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <gui.hpp>
Public Member Functions | |
| virtual void | addGlobalKeyListener (KeyListener *keyListener) |
| virtual void | draw () |
| void | enqueueHiddenWidget (Widget *widget) |
| void | enqueueShownWidget (Widget *widget) |
| 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 | |
| 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::set< 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 () |
Protected Attributes | |
| bool | mAltPressed |
| int | mClickCount |
| bool | mControlPressed |
| GuiDeathListener * | mDeathListener |
| FocusHandler * | mFocusHandler |
| std::shared_ptr< Font > | mGlobalFont |
| Graphics * | mGraphics |
| std::queue< 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::queue< Widget * > | mShownWidgets |
| bool | mTabbing |
| Widget * | mTop |
| VisibilityEventHandler * | mVisibilityEventHandler |
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.
NOTE: A complete GUI also must have the ability to load images. Images are loaded with the Image class, so to make Fifechan able to load images an implementation of ImageLoader must be passed to Image.
|
protected |
|
protected |
|
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 260 of file gui.cpp.
References mKeyListeners.
|
protectedvirtual |
Distributes a key event.
| keyEvent | The key event to distribute. |
Definition at line 831 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, 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 880 of file gui.cpp.
References fcn::KeyEvent::getType(), fcn::InputEvent::isConsumed(), and mKeyListeners.
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 432 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 440 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 730 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::isModalMouseInputFocused(), 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.
| void fcn::Gui::enqueueHiddenWidget | ( | Widget * | widget | ) |
Inform gui that a widget was hidden.
| widget | Hidden widget. |
Definition at line 270 of file gui.cpp.
References mHiddenWidgets.
| void fcn::Gui::enqueueShownWidget | ( | Widget * | widget | ) |
Inform gui that a widget was shown.
| widget | Shown widget. |
Definition at line 275 of file gui.cpp.
References mShownWidgets.
|
virtual |
Focuses none of the widgets in the Gui.
Definition at line 245 of file gui.cpp.
References mFocusHandler.
|
virtual |
Returns the focus handler used by this GUI.
Definition at line 184 of file gui.cpp.
References mFocusHandler.
|
virtual |
Gets the graphics object used for drawing.
Definition at line 152 of file gui.cpp.
References mGraphics.
|
virtual |
|
protectedvirtual |
Gets the source of the key event.
Definition at line 718 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 707 of file gui.cpp.
References getWidgetAt(), fcn::Widget::isModalMouseInputFocused(), and mFocusHandler.
Referenced by handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), and handleMouseWheelMovedUp().
|
virtual |
|
inlineprotected |
Gets the widget at a certain position.
Definition at line 489 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 672 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 690 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 1016 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::Widget::getHeight(), getWidgetAt(), fcn::Widget::getWidth(), fcn::Rectangle::isContaining(), fcn::Widget::isEnabled(), mHiddenWidgets, mLastMouseX, mLastMouseY, and fcn::Widget::widgetExists().
Referenced by logic().
|
protectedvirtual |
Handles key input.
Definition at line 344 of file gui.cpp.
References distributeKeyEvent(), distributeKeyEventToGlobalKeyListeners(), fcn::KeyInput::getKey(), getKeyEventSource(), fcn::KeyInput::getType(), fcn::Key::getValue(), 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 916 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 930 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 953 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 902 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 973 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 996 of file gui.cpp.
References distributeMouseEvent(), getWidgetsAt(), mFocusHandler, mLastMousePressButton, mLastMouseX, and mLastMouseY.
Referenced by handleModalMouseInputFocus().
|
protectedvirtual |
Handles all mouse input.
Definition at line 303 of file gui.cpp.
References fcn::MouseInput::getType(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedLeft(), handleMouseWheelMovedRight(), handleMouseWheelMovedUp(), mInput, mLastMouseX, and mLastMouseY.
Referenced by logic().
|
protectedvirtual |
Handles mouse moved input.
| mouseInput | The mouse input to handle. |
Definition at line 413 of file gui.cpp.
References distributeMouseEvent(), fcn::MouseInput::getButton(), getMouseEventSource(), getWidgetsAt(), fcn::MouseInput::getX(), fcn::MouseInput::getY(), fcn::Widget::isModalMouseInputFocused(), 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 509 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 629 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 549 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 609 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 589 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 569 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 1050 of file gui.cpp.
References distributeMouseEvent(), fcn::Widget::getAbsolutePosition(), fcn::Widget::getHeight(), getWidgetAt(), fcn::Widget::getWidth(), fcn::Rectangle::isContaining(), fcn::Widget::isEnabled(), mLastMouseX, mLastMouseY, and mShownWidgets.
Referenced by logic().
|
virtual |
Initializes GUI backends in one call.
| Graphics & Rendering | Owned graphics backend. |
| Input Handling | Owned input backend. |
| width | Unused by the core implementation. |
| height | Unused by the core implementation. |
Definition at line 176 of file gui.cpp.
References setGraphics(), and setInput().
|
virtual |
Checks if tabbing is enabled.
Definition at line 255 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 204 of file gui.cpp.
References handleHiddenWidgets(), handleKeyInput(), handleModalFocus(), handleModalMouseInputFocus(), handleMouseInput(), handleShownWidgets(), mInput, and mTop.
|
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 265 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 189 of file gui.cpp.
References mGlobalFont, mGraphics, and fcn::Widget::setGlobalFont().
|
virtual |
Sets the graphics object to use for drawing.
| Graphics & Rendering | The graphics object to use for drawing. |
Definition at line 138 of file gui.cpp.
References mGraphics, and mOwnedGraphics.
Referenced by initialize(), and setGraphics().
|
virtual |
Sets and owns the graphics object used for drawing.
| Graphics & Rendering | The graphics object. |
Definition at line 146 of file gui.cpp.
References mOwnedGraphics, and setGraphics().
|
virtual |
Sets the input object to use for input handling.
| Input Handling | The input object to use for input handling. |
Definition at line 157 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 Handling | The input object. |
Definition at line 165 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 250 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 101 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 280 of file gui.cpp.
References mHiddenWidgets, and mShownWidgets.
|
protected |
True if alt is pressed, false otherwise.
Definition at line 599 of file gui.hpp.
Referenced by distributeMouseEvent(), and handleKeyInput().
|
protected |
Holds the current click count.
Used to keep track of clicks for a the last pressed button.
Definition at line 625 of file gui.hpp.
Referenced by distributeMouseEvent(), handleMouseMoved(), handleMousePressed(), and handleMouseReleased().
|
protected |
True if control is pressed, false otherwise.
Definition at line 594 of file gui.hpp.
Referenced by distributeMouseEvent(), and handleKeyInput().
|
protected |
|
protected |
Holds the focus handler for the Gui.
Definition at line 554 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(), and setTop().
|
protected |
Shared global font used by widgets when not overridden.
Definition at line 647 of file gui.hpp.
Referenced by setGlobalFont().
|
protected |
Holds the graphics implementation used.
Definition at line 544 of file gui.hpp.
Referenced by draw(), getGraphics(), setGlobalFont(), and setGraphics().
|
protected |
Holds hidden widgets.
Definition at line 534 of file gui.hpp.
Referenced by enqueueHiddenWidget(), handleHiddenWidgets(), and widgetDied().
|
protected |
Holds the input implementation used.
Definition at line 549 of file gui.hpp.
Referenced by getInput(), handleKeyInput(), handleMouseInput(), logic(), and setInput().
|
protected |
Holds the global key listeners of the Gui.
Definition at line 579 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 632 of file gui.hpp.
Referenced by handleMouseMoved(), and handleMousePressed().
|
protected |
Holds the last mouse button pressed.
Definition at line 604 of file gui.hpp.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), handleModalMouseInputFocusGained(), handleModalMouseInputFocusReleased(), handleMousePressed(), and handleMouseReleased().
|
protected |
Holds the last mouse press time stamp.
Definition at line 609 of file gui.hpp.
Referenced by handleMouseMoved(), and handleMousePressed().
|
protected |
Holds the last mouse x coordinate.
Definition at line 614 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 619 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 589 of file gui.hpp.
Referenced by distributeMouseEvent(), and handleKeyInput().
|
protected |
Optional owned graphics backend instance.
Definition at line 641 of file gui.hpp.
Referenced by setGraphics(), and setGraphics().
|
protected |
Optional owned input backend instance.
Definition at line 644 of file gui.hpp.
Referenced by setInput(), and setInput().
|
protected |
|
protected |
True if shift is pressed, false otherwise.
Definition at line 584 of file gui.hpp.
Referenced by distributeMouseEvent(), and handleKeyInput().
|
protected |
Holds shown widgets.
Definition at line 539 of file gui.hpp.
Referenced by enqueueShownWidget(), handleShownWidgets(), and widgetDied().
|
protected |
True if tabbing is enabled, false otherwise.
Definition at line 564 of file gui.hpp.
Referenced by handleKeyInput(), isTabbingEnabled(), and setTabbingEnabled().
|
protected |
Holds the top widget.
Definition at line 529 of file gui.hpp.
Referenced by draw(), getTop(), getWidgetAt(), getWidgetsAt(), handleMouseMoved(), logic(), and setTop().
|
protected |