ManaPlus
|
#include <gui.h>
Static Public Member Functions | |
static void | getAbsolutePosition (Widget *widget, int &x, int &y) |
static uint8_t | getMouseState (int &x, int &y) |
Protected Member Functions | |
void | handleMouseMoved (const MouseInput &mouseInput) |
void | handleMouseReleased (const MouseInput &mouseInput) |
void | handleMousePressed (const MouseInput &mouseInput) |
void | handleMouseInput () |
void | distributeMouseEvent (Widget *const source, const MouseEventTypeT type, const MouseButtonT button, const int x, const int y, const bool force, const bool toSourceOnly) |
void | handleMouseWheelMovedDown (const MouseInput &mouseInput) |
void | handleMouseWheelMovedUp (const MouseInput &mouseInput) |
Widget * | getWidgetAt (const int x, const int y) const |
Widget * | getMouseEventSource (const int x, const int y) const |
Widget * | getKeyEventSource () const |
void | distributeKeyEvent (KeyEvent &event) const |
void | distributeKeyEventToGlobalKeyListeners (KeyEvent &event) |
void | handleModalMouseInputFocus () |
void | handleModalFocus () |
void | handleModalFocusGained () |
void | handleModalFocusReleased () |
Private Types | |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerListIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
Private Attributes | |
Widget * | mTop |
Graphics * | mGraphics |
SDLInput * | mInput |
FocusHandler * | mFocusHandler |
KeyListenerList | mKeyListeners |
MouseButtonT | mLastMousePressButton |
unsigned int | mLastMousePressTimeStamp |
int | mLastMouseX |
int | mLastMouseY |
int | mClickCount |
MouseButtonT | mLastMouseDragButton |
std::deque< Widget * > | mWidgetWithMouseQueue |
GuiConfigListener * | mConfigListener |
Font * | mGuiFont |
Font * | mInfoParticleFont |
Font * | mHelpFont |
Font * | mSecureFont |
Font * | mNpcFont |
ImageSet * | mMouseCursors |
float | mMouseCursorAlpha |
int | mMouseInactivityTimer |
CursorT | mCursorType |
FocusListenerList | mFocusListeners |
Color | mForegroundColor |
Color | mForegroundColor2 |
time_t | mTime |
time_t | mTime10 |
bool | mCustomCursor |
bool | mDoubleClick |
|
private |
|
private |
|
private |
|
private |
Gui::Gui | ( | ) |
Constructor.
Definition at line 114 of file gui.cpp.
Gui::~Gui | ( | ) |
Destructor.
Definition at line 268 of file gui.cpp.
References boldFont, Widget::cleanGlobalFont(), config, Resource::decRef(), delete2, Label::finalCleanup(), Tab::finalCleanup(), guiInput, mConfigListener, mFocusHandler, mGuiFont, mHelpFont, mInfoParticleFont, mMouseCursors, mNpcFont, mSecureFont, mTop, Configuration::removeListeners(), setTop(), Window::setWindowContainer(), WindowContainer::slowLogic(), theme, top, Widget::widgetExists(), and windowContainer.
void Gui::addGlobalFocusListener | ( | FocusListener * | focusListener | ) |
Definition at line 1142 of file gui.cpp.
References mFocusListeners.
Referenced by PopupList::postInit().
void Gui::addGlobalKeyListener | ( | KeyListener *const | keyListener | ) |
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 1210 of file gui.cpp.
References mKeyListeners.
void Gui::clearFonts | ( | ) |
Definition at line 372 of file gui.cpp.
References boldFont, Font::clear(), mGuiFont, mHelpFont, mInfoParticleFont, mNpcFont, and mSecureFont.
MouseEvent * Gui::createMouseEvent | ( | Window *const | widget | ) |
Definition at line 986 of file gui.cpp.
References MouseButton::EMPTY, getAbsolutePosition(), getMouseState(), mClickCount, MouseEventType::MOVED, viewport, x, and y.
Referenced by Window::setVisible().
void Gui::distributeGlobalFocusGainedEvent | ( | const Event & | focusEvent | ) |
Definition at line 1152 of file gui.cpp.
References mFocusListeners.
Referenced by FocusHandler::distributeFocusGainedEvent().
|
protected |
Distributes a key event.
event | The key event to distribute. |
Definition at line 1320 of file gui.cpp.
References FOR_EACH, Widget::getKeyListeners(), FocusHandler::getModalFocused(), FocusHandler::getModalMouseInputFocused(), Widget::getParent(), Widget::isEnabled(), Widget::isModalFocused(), Widget::isModalMouseInputFocused(), mFocusHandler, KeyEventType::PRESSED, KeyEventType::RELEASED, and Widget::widgetExists().
Referenced by handleKeyInput().
|
protected |
Distributes a key event to the global key listeners.
event | The key event to distribute. |
Definition at line 1386 of file gui.cpp.
References BLOCK_END, BLOCK_START, FOR_EACH, InputGuiEvent::isConsumed(), mKeyListeners, KeyEventType::PRESSED, and KeyEventType::RELEASED.
Referenced by handleKeyInput().
|
protected |
Definition at line 854 of file gui.cpp.
References DragDrop::clear(), MouseEventType::CLICKED, dragDrop, MouseEventType::DRAGGED, MouseEventType::ENTERED, MouseEventType::EXITED, FOR_EACH, Widget::getAbsolutePosition(), FocusHandler::getModalFocused(), FocusHandler::getModalMouseInputFocused(), Widget::getMouseListeners(), Widget::getParent(), InputGuiEvent::isConsumed(), Widget::isEnabled(), Widget::isModalFocused(), Widget::isModalMouseInputFocused(), mClickCount, mFocusHandler, MouseEventType::MOVED, MouseEventType::PRESSED, MouseEventType::RELEASED, MouseEventType::RELEASED2, MouseEventType::WHEEL_MOVED_DOWN, MouseEventType::WHEEL_MOVED_UP, Widget::widgetExists(), x, and y.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), and handleMouseWheelMovedUp().
void Gui::draw | ( | ) |
Draws the whole Gui by calling draw functions down in the Gui hierarchy. It also draws the mouse pointer.
Definition at line 470 of file gui.cpp.
References BLOCK_END, BLOCK_START, CAST_SIZE, dragDrop, TouchManager::draw(), Graphics::drawImage(), Font::drawString(), ImageSet::get(), DragDrop::getItemImage(), getMouseState(), DragDrop::getText(), getTop(), Font::getWidth(), isBatchDrawRenders, mCursorType, mCustomCursor, mForegroundColor, mForegroundColor2, mGraphics, mGuiFont, mMouseCursorAlpha, mMouseCursors, Settings::mouseFocused, MouseStateType, openGLMode, Graphics::popClipArea(), Graphics::pushClipArea(), TouchManager::safeDraw(), settings, top, and touchManager.
Referenced by Game::createScreenshot(), Client::gameExec(), and WindowManager::resizeVideo().
|
static |
|
inline |
Definition at line 154 of file gui.h.
References mFocusHandler.
Referenced by InputManager::updateConditionMask().
|
inline |
Return game font.
Definition at line 160 of file gui.h.
References mGuiFont.
Referenced by ProgressBar::draw(), FloorItem::draw(), MapItem::draw(), Being::drawPortalSpriteAt(), SetupItemSlider2::getMaxWidth(), ServerDialog::loadServers(), ProgressBar::safeDraw(), ServersListModel::setVersionString(), Being::updateBadgesPosition(), and Setup_Colors::valueChanged().
Graphics * Gui::getGraphics | ( | ) | const |
Gets the graphics object used for drawing.
Definition at line 1195 of file gui.cpp.
References mGraphics.
|
inline |
Return help font.
Definition at line 166 of file gui.h.
References mHelpFont.
Referenced by DidYouKnowWindow::DidYouKnowWindow(), HelpWindow::HelpWindow(), ServerInfoWindow::ServerInfoWindow(), and Setup_Input::Setup_Input().
|
inline |
Return the Font used for "Info Particles", i.e. ones showing, what you picked up, etc.
Definition at line 185 of file gui.h.
References mInfoParticleFont.
Referenced by LocalPlayer::logic(), and Being::takeDamage().
SDLInput * Gui::getInput | ( | ) | const |
|
protected |
Gets the source of the key event.
Definition at line 1306 of file gui.cpp.
References FocusHandler::getFocused(), Widget::getInternalFocusHandler(), and mFocusHandler.
Referenced by handleKeyInput().
|
inline |
|
inline |
|
protected |
Gets the source of the mouse event.
Definition at line 1290 of file gui.cpp.
References FocusHandler::getModalMouseInputFocused(), getWidgetAt(), Widget::isModalMouseInputFocused(), mFocusHandler, x, and y.
Referenced by handleModalFocusReleased(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), and handleMouseWheelMovedUp().
int Gui::getMousePressLength | ( | ) | const |
Definition at line 1530 of file gui.cpp.
References mLastMousePressTimeStamp.
Referenced by isLongPress().
|
static |
Definition at line 1171 of file gui.cpp.
References Graphics::getScale(), mainGraphics, MouseStateType, x, and y.
Referenced by createMouseEvent(), draw(), Viewport::logic(), CharacterDisplay::mouseMoved(), ToolTipListener::mouseMoved(), PopupMenu::setMousePos(), PopupMenu::setMousePos2(), SDLInput::simulateMouseMove(), and ChatWindow::updateVisibility().
|
inline |
Return npc font.
Definition at line 178 of file gui.h.
References mNpcFont.
Referenced by NpcDialog::createSkinControls(), NpcDialog::NpcDialog(), and QuestsWindow::QuestsWindow().
|
inline |
Return secure font.
Definition at line 172 of file gui.h.
References mSecureFont.
Referenced by ChatWindow::addWhisperTab(), TradeWindow::initTrade(), BeingPopup::show(), and Being::showName().
|
inline |
Gets the top widget. The top widget is the root widget of the GUI.
Definition at line 248 of file gui.h.
References mTop.
Referenced by draw(), Game::Game(), Client::stateGame(), Client::stateGame1(), and videoResized().
|
protected |
Gets the widget at a certain position.
Definition at line 1268 of file gui.cpp.
References Widget::getAbsolutePosition(), Widget::getWidgetAt(), Widget::isSelectable(), mTop, x, and y.
Referenced by getMouseEventSource().
bool Gui::handleInput | ( | ) |
Definition at line 388 of file gui.cpp.
References handleKeyInput(), and mInput.
Referenced by Client::gameExec(), and InputManager::handleEvent().
bool Gui::handleKeyInput | ( | ) |
Definition at line 395 of file gui.cpp.
References BLOCK_END, BLOCK_START, SDLInput::dequeueKeyInput(), distributeKeyEvent(), distributeKeyEventToGlobalKeyListeners(), FocusHandler::focusNone(), KeyInput::getActionId(), FocusHandler::getFocused(), KeyInput::getKey(), getKeyEventSource(), KeyInput::getType(), InputAction::GUI_MOD, InputAction::GUI_TAB, guiInput, inputManager, InputManager::isActionActive(), InputGuiEvent::isConsumed(), Widget::isFocusable(), SDLInput::isKeyQueueEmpty(), mFocusHandler, mInput, KeyEventType::PRESSED, FocusHandler::tabNext(), and FocusHandler::tabPrevious().
Referenced by handleInput().
|
protected |
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 1434 of file gui.cpp.
References BLOCK_END, BLOCK_START, FocusHandler::getLastWidgetWithModalFocus(), FocusHandler::getModalFocused(), handleModalFocusGained(), handleModalFocusReleased(), mFocusHandler, and FocusHandler::setLastWidgetWithModalFocus().
Referenced by logic().
|
protected |
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 1459 of file gui.cpp.
References distributeMouseEvent(), MouseEventType::EXITED, FocusHandler::getModalMouseInputFocused(), mFocusHandler, mLastMousePressButton, mLastMouseX, mLastMouseY, mWidgetWithMouseQueue, FocusHandler::setLastWidgetWithModalMouseInputFocus(), and Widget::widgetExists().
Referenced by handleModalFocus(), and handleModalMouseInputFocus().
|
protected |
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 1484 of file gui.cpp.
References distributeMouseEvent(), MouseEventType::ENTERED, FOR_EACH, getMouseEventSource(), Widget::getParent(), mLastMousePressButton, mLastMouseX, mLastMouseY, mWidgetWithMouseQueue, and Widget::widgetExists().
Referenced by handleModalFocus(), and handleModalMouseInputFocus().
|
protected |
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 1410 of file gui.cpp.
References BLOCK_END, BLOCK_START, FocusHandler::getLastWidgetWithModalMouseInputFocus(), FocusHandler::getModalMouseInputFocused(), handleModalFocusGained(), handleModalFocusReleased(), mFocusHandler, and FocusHandler::setLastWidgetWithModalMouseInputFocus().
Referenced by logic().
|
protected |
Definition at line 1023 of file gui.cpp.
References BLOCK_END, BLOCK_START, MouseEventType::CLICKED, SDLInput::dequeueMouseInput(), MouseEventType::DRAGGED, MouseEventType::ENTERED, MouseEventType::EXITED, MouseInput::getRealX(), MouseInput::getRealY(), MouseInput::getType(), MouseInput::getX(), MouseInput::getY(), guiInput, handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedUp(), SDLInput::isMouseQueueEmpty(), mInput, mLastMouseX, mLastMouseY, mMouseInactivityTimer, MouseEventType::MOVED, MouseEventType::PRESSED, TouchManager::processEvent(), MouseEventType::RELEASED, MouseEventType::RELEASED2, touchManager, MouseEventType::WHEEL_MOVED_DOWN, and MouseEventType::WHEEL_MOVED_UP.
Referenced by logic().
|
protected |
Definition at line 593 of file gui.cpp.
References CAST_SIZE, distributeMouseEvent(), MouseEventType::DRAGGED, MouseEventType::ENTERED, MouseEventType::EXITED, FOR_EACH, Widget::getAbsolutePosition(), MouseInput::getButton(), Widget::getDimension(), FocusHandler::getDraggedWidget(), Widget::getHeight(), FocusHandler::getModalMouseInputFocused(), getMouseEventSource(), Widget::getParent(), Widget::getWidth(), MouseInput::getX(), MouseInput::getY(), Rect::isPointInRect(), Widget::isVisible(), mClickCount, mFocusHandler, mLastMouseDragButton, mLastMousePressTimeStamp, mMouseInactivityTimer, MouseEventType::MOVED, mTop, mWidgetWithMouseQueue, Widget::widgetExists(), x, and y.
Referenced by handleMouseInput().
|
protected |
Definition at line 774 of file gui.cpp.
References distributeMouseEvent(), Widget::getAbsolutePosition(), MouseInput::getButton(), FocusHandler::getDraggedWidget(), FocusHandler::getModalFocused(), getMouseEventSource(), MouseInput::getTimeStamp(), MouseInput::getX(), MouseInput::getY(), Widget::isModalFocused(), mClickCount, mDoubleClick, mFocusHandler, mLastMouseDragButton, mLastMousePressButton, mLastMousePressTimeStamp, MouseEventType::PRESSED, Widget::requestFocus(), FocusHandler::setDraggedWidget(), FocusHandler::setLastWidgetPressed(), x, and y.
Referenced by handleMouseInput().
|
protected |
Definition at line 1081 of file gui.cpp.
References MouseEventType::CLICKED, distributeMouseEvent(), MouseButton::EMPTY, Widget::getAbsolutePosition(), MouseInput::getButton(), FocusHandler::getDraggedWidget(), FocusHandler::getLastWidgetPressed(), getMouseEventSource(), MouseInput::getX(), MouseInput::getY(), mClickCount, mFocusHandler, mLastMousePressButton, MouseEventType::RELEASED, MouseEventType::RELEASED2, FocusHandler::setDraggedWidget(), and FocusHandler::setLastWidgetPressed().
Referenced by handleMouseInput().
|
protected |
Handles mouse wheel moved down input.
mouseInput | The mouse input to handle. |
Definition at line 1220 of file gui.cpp.
References distributeMouseEvent(), Widget::getAbsolutePosition(), MouseInput::getButton(), FocusHandler::getDraggedWidget(), getMouseEventSource(), MouseInput::getX(), MouseInput::getY(), mFocusHandler, and MouseEventType::WHEEL_MOVED_DOWN.
Referenced by handleMouseInput().
|
protected |
Handles mouse wheel moved up input.
mouseInput | The mouse input to handle. |
Definition at line 1244 of file gui.cpp.
References distributeMouseEvent(), Widget::getAbsolutePosition(), MouseInput::getButton(), FocusHandler::getDraggedWidget(), getMouseEventSource(), MouseInput::getX(), MouseInput::getY(), mFocusHandler, and MouseEventType::WHEEL_MOVED_UP.
Referenced by handleMouseInput().
|
inline |
Definition at line 309 of file gui.h.
References getMousePressLength().
Referenced by Viewport::mouseReleased().
void Gui::logic | ( | ) |
Performs logic of the GUI. Overridden to track mouse pointer activity.
Definition at line 302 of file gui.cpp.
References BLOCK_END, BLOCK_START, ResourceManager::clearScheduled(), guiInput, handleModalFocus(), handleModalMouseInputFocus(), handleMouseInput(), Widget::logic(), and mTop.
Referenced by Client::gameExec().
void Gui::postInit | ( | Graphics *const | graphics | ) |
Definition at line 151 of file gui.cpp.
References Configuration::addListener(), boldFont, branding, config, Configuration::getBoolValue(), Configuration::getIntValue(), getLang(), Configuration::getStringValue(), ConfigurationObject::getValue(), guiInput, Logger::log1(), logger, mConfigListener, mFocusHandler, mGuiFont, Graphics::mHeight, mHelpFont, mInfoParticleFont, mNpcFont, mSecureFont, Graphics::mWidth, Opaque_false, setDoubleClick(), Widget::setFocusable(), Widget::setGlobalFont(), setGraphics(), setInput(), BasicContainer2::setOpaque(), Widget::setSize(), setTop(), setUseCustomCursor(), and Window::setWindowContainer().
Referenced by Client::gameInit().
void Gui::removeDragged | ( | const Widget *const | widget | ) |
Definition at line 1162 of file gui.cpp.
References FocusHandler::getDraggedWidget(), mFocusHandler, and FocusHandler::setDraggedWidget().
Referenced by BrowserBox::~BrowserBox(), Button::~Button(), CheckBox::~CheckBox(), Container::~Container(), DropDown::~DropDown(), GuiTable::~GuiTable(), Icon::~Icon(), ItemContainer::~ItemContainer(), Label::~Label(), ListBox::~ListBox(), Pincode::~Pincode(), PlayerBox::~PlayerBox(), ProgressBar::~ProgressBar(), ProgressIndicator::~ProgressIndicator(), RadioButton::~RadioButton(), ScrollArea::~ScrollArea(), ShortcutContainer::~ShortcutContainer(), Slider::~Slider(), StaticBrowserBox::~StaticBrowserBox(), Tab::~Tab(), TabbedArea::~TabbedArea(), TextBox::~TextBox(), TextField::~TextField(), TextPreview::~TextPreview(), and Window::~Window().
void Gui::removeGlobalFocusListener | ( | FocusListener * | focusListener | ) |
Definition at line 1147 of file gui.cpp.
References mFocusListeners.
Referenced by PopupList::~PopupList().
void Gui::removeGlobalKeyListener | ( | KeyListener *const | keyListener | ) |
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 1215 of file gui.cpp.
References mKeyListeners.
void Gui::resetClickCount | ( | ) |
Definition at line 980 of file gui.cpp.
References mClickCount, and mLastMousePressTimeStamp.
Referenced by NpcDialog::action(), InventoryWindow::mouseClicked(), ChatWindow::mousePressed(), ListBox::mouseReleased(), and Viewport::mouseReleased().
|
inline |
Sets which cursor should be used.
Definition at line 196 of file gui.h.
References mCursorType.
Referenced by Window::mouseExited(), Window::mouseReleased(), Window::setModal(), Window::updateResizeHandler(), Window::widgetHidden(), and Window::Window().
|
inline |
Definition at line 199 of file gui.h.
References mDoubleClick.
Referenced by GuiConfigListener::optionChanged(), and postInit().
void Gui::setGraphics | ( | Graphics *const | graphics | ) |
Sets the graphics object to use for drawing.
graphics | The graphics object to use for drawing. |
Definition at line 1190 of file gui.cpp.
References mGraphics.
Referenced by postInit().
void Gui::setInput | ( | SDLInput *const | input | ) |
void Gui::setTop | ( | Widget *const | top | ) |
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 1180 of file gui.cpp.
References mFocusHandler, mTop, Widget::setFocusHandler(), and top.
Referenced by postInit(), and ~Gui().
void Gui::setUseCustomCursor | ( | const bool | customCursor | ) |
Sets whether a custom cursor should be rendered.
Definition at line 554 of file gui.cpp.
References Resource::decRef(), Theme::getImageSetFromTheme(), Options::hideCursor, Logger::log(), logger, mCustomCursor, mMouseCursors, Settings::options, settings, and SDL::showCursor().
Referenced by GuiConfigListener::optionChanged(), and postInit().
void Gui::slowLogic | ( | ) |
Definition at line 323 of file gui.cpp.
References Palette::advanceGradients(), BLOCK_END, BLOCK_START, boldFont, ResourceManager::cleanOrphans(), cur_time, Logger::flush(), IPC::flush(), guiInput, ipc, logger, mGuiFont, mHelpFont, mInfoParticleFont, mMouseCursorAlpha, mMouseInactivityTimer, mNpcFont, mSecureFont, mTime, mTime10, SDLInput::simulateMouseMove(), WindowContainer::slowLogic(), Font::slowLogic(), and windowContainer.
Referenced by Client::gameExec().
void Gui::updateFonts | ( | ) |
Definition at line 824 of file gui.cpp.
References boldFont, branding, config, Configuration::getIntValue(), Configuration::getStringValue(), ConfigurationObject::getValue(), Font::loadFont(), mGuiFont, mInfoParticleFont, and mNpcFont.
Referenced by Setup_Theme::apply().
void Gui::videoResized | ( | ) | const |
Called when the application window has been resized.
Definition at line 536 of file gui.cpp.
References Widget::distributeWindowResizeEvent(), getTop(), mainGraphics, Graphics::mHeight, Graphics::mWidth, top, Viewport::videoResized(), and viewport.
Referenced by WindowManager::resizeVideo().
|
private |
Holds the current click count. Used to keep track of clicks for a the last pressed button.
Definition at line 474 of file gui.h.
Referenced by createMouseEvent(), distributeMouseEvent(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), and resetClickCount().
|
private |
Definition at line 489 of file gui.h.
Referenced by postInit(), and ~Gui().
|
private |
Definition at line 504 of file gui.h.
Referenced by draw(), and setCursorType().
|
private |
Show custom cursor
Definition at line 517 of file gui.h.
Referenced by draw(), and setUseCustomCursor().
|
private |
Definition at line 518 of file gui.h.
Referenced by handleMousePressed(), and setDoubleClick().
|
private |
Holds the focus handler for the Gui.
Definition at line 433 of file gui.h.
Referenced by distributeKeyEvent(), distributeMouseEvent(), getFocusHandler(), getKeyEventSource(), getMouseEventSource(), handleKeyInput(), handleModalFocus(), handleModalFocusGained(), handleModalMouseInputFocus(), handleMouseMoved(), handleMousePressed(), handleMouseReleased(), handleMouseWheelMovedDown(), handleMouseWheelMovedUp(), postInit(), removeDragged(), setTop(), and ~Gui().
|
private |
Definition at line 512 of file gui.h.
Referenced by addGlobalFocusListener(), distributeGlobalFocusGainedEvent(), and removeGlobalFocusListener().
|
private |
Holds the graphics implementation used.
Definition at line 423 of file gui.h.
Referenced by draw(), getGraphics(), and setGraphics().
|
private |
The global GUI font
Definition at line 491 of file gui.h.
Referenced by clearFonts(), draw(), getFont(), postInit(), slowLogic(), updateFonts(), and ~Gui().
|
private |
Definition at line 495 of file gui.h.
Referenced by clearFonts(), getHelpFont(), postInit(), slowLogic(), and ~Gui().
|
private |
Font for Info Particles
Definition at line 493 of file gui.h.
Referenced by clearFonts(), getInfoParticleFont(), postInit(), slowLogic(), updateFonts(), and ~Gui().
|
private |
Holds the input implementation used.
Definition at line 428 of file gui.h.
Referenced by getInput(), handleInput(), handleKeyInput(), handleMouseInput(), and setInput().
|
private |
Holds the global key listeners of the Gui.
Definition at line 448 of file gui.h.
Referenced by addGlobalKeyListener(), distributeKeyEventToGlobalKeyListeners(), and removeGlobalKeyListener().
|
private |
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 481 of file gui.h.
Referenced by handleMouseMoved(), and handleMousePressed().
|
private |
Holds the last mouse button pressed.
Definition at line 453 of file gui.h.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), handleMousePressed(), and handleMouseReleased().
|
private |
Holds the last mouse press time stamp.
Definition at line 458 of file gui.h.
Referenced by getMousePressLength(), handleMouseMoved(), handleMousePressed(), and resetClickCount().
|
private |
Holds the last mouse x coordinate.
Definition at line 463 of file gui.h.
Referenced by getLastMouseX(), handleModalFocusGained(), handleModalFocusReleased(), and handleMouseInput().
|
private |
Holds the last mouse y coordinate.
Definition at line 468 of file gui.h.
Referenced by getLastMouseY(), handleModalFocusGained(), handleModalFocusReleased(), and handleMouseInput().
|
private |
Definition at line 502 of file gui.h.
Referenced by draw(), and slowLogic().
|
private |
Mouse cursor images
Definition at line 501 of file gui.h.
Referenced by draw(), setUseCustomCursor(), and ~Gui().
|
private |
Definition at line 503 of file gui.h.
Referenced by handleMouseInput(), handleMouseMoved(), and slowLogic().
|
private |
Font for npc text
Definition at line 499 of file gui.h.
Referenced by clearFonts(), getNpcFont(), postInit(), slowLogic(), updateFonts(), and ~Gui().
|
private |
Font for secure labels
Definition at line 497 of file gui.h.
Referenced by clearFonts(), getSecureFont(), postInit(), slowLogic(), and ~Gui().
|
private |
Definition at line 515 of file gui.h.
Referenced by slowLogic().
|
private |
Definition at line 516 of file gui.h.
Referenced by slowLogic().
|
private |
Holds the top widget.
Definition at line 418 of file gui.h.
Referenced by getTop(), getWidgetAt(), handleMouseMoved(), logic(), setTop(), and ~Gui().
|
private |
Holds a stack with all the widgets with the mouse. Used to properly distribute mouse events.
Definition at line 487 of file gui.h.
Referenced by handleModalFocusGained(), handleModalFocusReleased(), and handleMouseMoved().