![]() |
ManaPlus
|
Functions | |
| void | init () |
| bool | getIsMinimized () |
| void | setIsMinimized (const bool n) |
| void | newChatMessage () |
| bool | isKeyboardVisible () |
| void | setFramerate (const unsigned int fpsLimit) |
| int | getFramerate () |
| void | applyGrabMode () |
| void | applyGamma () |
| void | applyVSync () |
| void | applyKeyRepeat () |
| void | doResizeVideo (const int actualWidth, const int actualHeight, const bool always) |
| void | resizeVideo (int actualWidth, int actualHeight, const bool always) |
| bool | setFullScreen (const bool fs) |
| void | applyScale () |
| void | updateScreenKeyboard (const int height) |
| void | reloadWallpaper () |
| void | createWindows () |
| void | deleteWindows () |
| void | initTitle () |
| void | setIcon () |
| void | deleteIcon () |
| void | updateTitle () |
| void | createValidateWindows () |
| void | deleteValidateWindows () |
| void WindowManager::applyGamma | ( | ) |
Definition at line 354 of file windowmanager.cpp.
References config, Configuration::getBoolValue(), Configuration::getFloatValue(), Graphics::getWindow(), mainGraphics, and SDL::setGamma().
Referenced by Client::initGraphics(), and Client::optionChanged().
| void WindowManager::applyGrabMode | ( | ) |
Definition at line 348 of file windowmanager.cpp.
References config, Configuration::getBoolValue(), Graphics::getWindow(), SDL::grabInput(), and mainGraphics.
Referenced by Setup_Visual::apply(), and Client::initGraphics().
| void WindowManager::applyKeyRepeat | ( | ) |
Definition at line 370 of file windowmanager.cpp.
References config, and Configuration::getIntValue().
Referenced by Client::gameInit(), and Client::optionChanged().
| void WindowManager::applyScale | ( | ) |
Definition at line 378 of file windowmanager.cpp.
References config, doResizeVideo(), Configuration::getIntValue(), Graphics::getScale(), Graphics::mActualHeight, Graphics::mActualWidth, mainGraphics, and Graphics::setScale().
Referenced by Setup_Visual::apply().
| void WindowManager::applyVSync | ( | ) |
Definition at line 363 of file windowmanager.cpp.
References config, Configuration::getIntValue(), and SDL::setVsync().
Referenced by Client::initGraphics(), and Client::optionChanged().
| void WindowManager::createValidateWindows | ( | ) |
Definition at line 161 of file windowmanager.cpp.
References beingEquipmentWindow, CREATEWIDGETV, CREATEWIDGETV0, SkillDialog::loadSkills(), questsWindow, and skillDialog.
Referenced by Client::runValidate().
| void WindowManager::createWindows | ( | ) |
Definition at line 123 of file windowmanager.cpp.
References _, beingPopup, chatWindow, CREATEWIDGETV, CREATEWIDGETV0, ChatTabType::DEBUG, debugChatTab, debugWindow, delete2, didYouKnowWindow, helpWindow, itemPopup, popupMenu, Window::scheduleDelete(), ChatWindow::scheduleDelete(), ChatTab::setAllowHighlight(), setupWindow, ChatWindow::setVisible(), skillPopup, spellPopup, textBoxPopup, textPopup, userPalette, and Visible_false.
Referenced by Client::gameInit().
| void WindowManager::deleteIcon | ( | ) |
Definition at line 495 of file windowmanager.cpp.
References anonymous_namespace{windowmanager.cpp}::mIcon(), and MSDL_FreeSurface.
Referenced by Client::gameClear().
| void WindowManager::deleteValidateWindows | ( | ) |
Definition at line 172 of file windowmanager.cpp.
References beingEquipmentWindow, delete2, questsWindow, and skillDialog.
Referenced by Client::runValidate().
| void WindowManager::deleteWindows | ( | ) |
Definition at line 181 of file windowmanager.cpp.
References beingPopup, chatWindow, debugChatTab, debugWindow, delete2, didYouKnowWindow, helpWindow, itemPopup, popupMenu, setupWindow, skillPopup, spellManager, spellPopup, spellShortcut, textBoxPopup, textPopup, and userPalette.
Referenced by Client::gameClear().
| void WindowManager::doResizeVideo | ( | const int | actualWidth, |
| const int | actualHeight, | ||
| const bool | always | ||
| ) |
Definition at line 268 of file windowmanager.cpp.
References Graphics::mActualHeight, Graphics::mActualWidth, mainGraphics, resizeVideo(), and strprintf().
Referenced by Setup_Video::action(), and applyScale().
| int WindowManager::getFramerate | ( | ) |
Definition at line 260 of file windowmanager.cpp.
References fpsManager, Settings::limitFps, SDL_getFramerate(), and settings.
Referenced by Game::adjustPerfomance().
| bool WindowManager::getIsMinimized | ( | ) |
Definition at line 483 of file windowmanager.cpp.
References anonymous_namespace{windowmanager.cpp}::mIsMinimized().
Referenced by ChatTab::chatLog(), and Client::gameExec().
| void WindowManager::init | ( | ) |
Definition at line 114 of file windowmanager.cpp.
References fpsManager, FPSmanager::framecount, FPSmanager::lastticks, FPSmanager::rate, and FPSmanager::rateticks.
Referenced by Client::Client().
| void WindowManager::initTitle | ( | ) |
Definition at line 205 of file windowmanager.cpp.
References branding, Configuration::getStringValue(), Graphics::getWindow(), mainGraphics, Settings::options, settings, SDL::SetWindowTitle(), SMALL_VERSION, strprintf(), Options::test, and Settings::windowCaption.
Referenced by Client::gameInit().
| bool WindowManager::isKeyboardVisible | ( | ) |
Definition at line 473 of file windowmanager.cpp.
References anonymous_namespace{windowmanager.cpp}::mKeyboardHeight().
Referenced by TextField::focusGained(), and TextField::mousePressed().
| void WindowManager::newChatMessage | ( | ) |
Definition at line 400 of file windowmanager.cpp.
References Graphics::getWindow(), mainGraphics, anonymous_namespace{windowmanager.cpp}::mIsMinimized(), anonymous_namespace{windowmanager.cpp}::mNewMessageFlag(), settings, SDL::SetWindowTitle(), and Settings::windowCaption.
Referenced by ChatTab::chatLog().
| void WindowManager::reloadWallpaper | ( | ) |
| void WindowManager::resizeVideo | ( | int | actualWidth, |
| int | actualHeight, | ||
| const bool | always | ||
| ) |
Definition at line 288 of file windowmanager.cpp.
References client, config, desktop, Gui::draw(), gui, Game::instance(), Graphics::mActualHeight, Graphics::mActualWidth, mainGraphics, Graphics::mHeight, Client::moveButtons(), Graphics::mWidth, TouchManager::resize(), Graphics::resizeScreen(), Widget::setSize(), Configuration::setValue(), touchManager, Gui::videoResized(), and Game::videoResized().
Referenced by doResizeVideo(), and EventsManager::handleCommonEvents().
| void WindowManager::setFramerate | ( | const unsigned int | fpsLimit | ) |
Definition at line 249 of file windowmanager.cpp.
References fpsManager, Settings::limitFps, SDL_setFramerate(), and settings.
Referenced by Client::gameInit(), Client::optionChanged(), Game::slowLogic(), and Game::updateFrameRate().
| bool WindowManager::setFullScreen | ( | const bool | fs | ) |
Definition at line 334 of file windowmanager.cpp.
References mainGraphics, and Graphics::setFullscreen().
Referenced by Setup_Video::apply().
| void WindowManager::setIcon | ( | ) |
< Blit uses source alpha blending
Definition at line 411 of file windowmanager.cpp.
References branding, VirtFs::getPath(), ConfigurationObject::getValue(), Graphics::getWindow(), SDL::getWindowWMInfo(), Logger::log(), logger, mainGraphics, anonymous_namespace{windowmanager.cpp}::mIcon(), MIMG_Load, and SDL::SetWindowIcon().
Referenced by Client::gameInit().
| void WindowManager::setIsMinimized | ( | const bool | n | ) |
Definition at line 389 of file windowmanager.cpp.
References Graphics::getWindow(), mainGraphics, anonymous_namespace{windowmanager.cpp}::mIsMinimized(), anonymous_namespace{windowmanager.cpp}::mNewMessageFlag(), settings, SDL::SetWindowTitle(), and Settings::windowCaption.
Referenced by EventsManager::handleActive().
| void WindowManager::updateScreenKeyboard | ( | const int | height | ) |
Definition at line 489 of file windowmanager.cpp.
References anonymous_namespace{windowmanager.cpp}::mKeyboardHeight().
Referenced by Client::gameInit(), and EventsManager::handleCommonEvents().
| void WindowManager::updateTitle | ( | ) |
Definition at line 225 of file windowmanager.cpp.
References branding, Configuration::getStringValue(), Graphics::getWindow(), Settings::login, mainGraphics, Settings::serverName, settings, SDL::SetWindowTitle(), SMALL_VERSION, strprintf(), and Settings::windowCaption.
Referenced by Client::stateConnectServer1().