Otclient  14/8/2020
luafunctions.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
27 #include <framework/core/config.h>
28 #include <framework/otml/otml.h>
30 #include <framework/core/module.h>
31 #include <framework/util/crypt.h>
34 #include <framework/stdext/net.h>
36 
37 #ifdef FW_SOUND
43 #endif
44 
45 #ifdef FW_GRAPHICS
50 #include <framework/ui/ui.h>
51 #include <framework/input/mouse.h>
52 #endif
53 
54 #ifdef FW_NET
55 #include <framework/net/server.h>
56 #include <framework/net/protocol.h>
58 #endif
59 
60 #ifdef FW_SQL
61 #include <framework/sql/mysql.h>
62 #endif
63 
65 {
66  // conversion globals
67  g_lua.bindGlobalFunction("torect", [](const std::string& v) { return stdext::from_string<Rect>(v); });
68  g_lua.bindGlobalFunction("topoint", [](const std::string& v) { return stdext::from_string<Point>(v); });
69  g_lua.bindGlobalFunction("tocolor", [](const std::string& v) { return stdext::from_string<Color>(v); });
70  g_lua.bindGlobalFunction("tosize", [](const std::string& v) { return stdext::from_string<Size>(v); });
71  g_lua.bindGlobalFunction("recttostring", [](const Rect& v) { return stdext::to_string(v); });
72  g_lua.bindGlobalFunction("pointtostring", [](const Point& v) { return stdext::to_string(v); });
73  g_lua.bindGlobalFunction("colortostring", [](const Color& v) { return stdext::to_string(v); });
74  g_lua.bindGlobalFunction("sizetostring", [](const Size& v) { return stdext::to_string(v); });
75  g_lua.bindGlobalFunction("iptostring", [](uint32 v) { return stdext::ip_to_string(v); });
76  g_lua.bindGlobalFunction("stringtoip", [](const std::string& v) { return stdext::string_to_ip(v); });
77  g_lua.bindGlobalFunction("listSubnetAddresses", [](uint32 a, uint8 b) { return stdext::listSubnetAddresses(a, b); });
78  g_lua.bindGlobalFunction("ucwords", [](std::string s) { return stdext::ucwords(s); });
79 
80  // Platform
81  g_lua.registerSingletonClass("g_platform");
82  g_lua.bindSingletonFunction("g_platform", "spawnProcess", &Platform::spawnProcess, &g_platform);
83  g_lua.bindSingletonFunction("g_platform", "getProcessId", &Platform::getProcessId, &g_platform);
84  g_lua.bindSingletonFunction("g_platform", "isProcessRunning", &Platform::isProcessRunning, &g_platform);
85  g_lua.bindSingletonFunction("g_platform", "copyFile", &Platform::copyFile, &g_platform);
86  g_lua.bindSingletonFunction("g_platform", "fileExists", &Platform::fileExists, &g_platform);
87  g_lua.bindSingletonFunction("g_platform", "removeFile", &Platform::removeFile, &g_platform);
88  g_lua.bindSingletonFunction("g_platform", "killProcess", &Platform::killProcess, &g_platform);
89  g_lua.bindSingletonFunction("g_platform", "getTempPath", &Platform::getTempPath, &g_platform);
90  g_lua.bindSingletonFunction("g_platform", "openUrl", &Platform::openUrl, &g_platform);
91  g_lua.bindSingletonFunction("g_platform", "getCPUName", &Platform::getCPUName, &g_platform);
92  g_lua.bindSingletonFunction("g_platform", "getTotalSystemMemory", &Platform::getTotalSystemMemory, &g_platform);
93  g_lua.bindSingletonFunction("g_platform", "getOSName", &Platform::getOSName, &g_platform);
94  g_lua.bindSingletonFunction("g_platform", "getFileModificationTime", &Platform::getFileModificationTime, &g_platform);
95 
96  // Application
98  g_lua.bindSingletonFunction("g_app", "setName", &Application::setName, static_cast<Application*>(&g_app));
99  g_lua.bindSingletonFunction("g_app", "setCompactName", &Application::setCompactName, static_cast<Application*>(&g_app));
100  g_lua.bindSingletonFunction("g_app", "setVersion", &Application::setVersion, static_cast<Application*>(&g_app));
101  g_lua.bindSingletonFunction("g_app", "isRunning", &Application::isRunning, static_cast<Application*>(&g_app));
102  g_lua.bindSingletonFunction("g_app", "isStopping", &Application::isStopping, static_cast<Application*>(&g_app));
103  g_lua.bindSingletonFunction("g_app", "getName", &Application::getName, static_cast<Application*>(&g_app));
104  g_lua.bindSingletonFunction("g_app", "getCompactName", &Application::getCompactName, static_cast<Application*>(&g_app));
105  g_lua.bindSingletonFunction("g_app", "getVersion", &Application::getVersion, static_cast<Application*>(&g_app));
106  g_lua.bindSingletonFunction("g_app", "getBuildCompiler", &Application::getBuildCompiler, static_cast<Application*>(&g_app));
107  g_lua.bindSingletonFunction("g_app", "getBuildDate", &Application::getBuildDate, static_cast<Application*>(&g_app));
108  g_lua.bindSingletonFunction("g_app", "getBuildRevision", &Application::getBuildRevision, static_cast<Application*>(&g_app));
109  g_lua.bindSingletonFunction("g_app", "getBuildCommit", &Application::getBuildCommit, static_cast<Application*>(&g_app));
110  g_lua.bindSingletonFunction("g_app", "getBuildType", &Application::getBuildType, static_cast<Application*>(&g_app));
111  g_lua.bindSingletonFunction("g_app", "getBuildArch", &Application::getBuildArch, static_cast<Application*>(&g_app));
112  g_lua.bindSingletonFunction("g_app", "getOs", &Application::getOs, static_cast<Application*>(&g_app));
113  g_lua.bindSingletonFunction("g_app", "getStartupOptions", &Application::getStartupOptions, static_cast<Application*>(&g_app));
114  g_lua.bindSingletonFunction("g_app", "exit", &Application::exit, static_cast<Application*>(&g_app));
115 
116  // Crypt
117  g_lua.registerSingletonClass("g_crypt");
118  g_lua.bindSingletonFunction("g_crypt", "genUUID", &Crypt::genUUID, &g_crypt);
119  g_lua.bindSingletonFunction("g_crypt", "setMachineUUID", &Crypt::setMachineUUID, &g_crypt);
120  g_lua.bindSingletonFunction("g_crypt", "getMachineUUID", &Crypt::getMachineUUID, &g_crypt);
121  g_lua.bindSingletonFunction("g_crypt", "encrypt", &Crypt::encrypt, &g_crypt);
122  g_lua.bindSingletonFunction("g_crypt", "decrypt", &Crypt::decrypt, &g_crypt);
123  g_lua.bindSingletonFunction("g_crypt", "rsaSetPublicKey", &Crypt::rsaSetPublicKey, &g_crypt);
124  g_lua.bindSingletonFunction("g_crypt", "rsaSetPrivateKey", &Crypt::rsaSetPrivateKey, &g_crypt);
125  g_lua.bindSingletonFunction("g_crypt", "rsaGetSize", &Crypt::rsaGetSize, &g_crypt);
126 
127  // Clock
128  g_lua.registerSingletonClass("g_clock");
129  g_lua.bindSingletonFunction("g_clock", "micros", &Clock::micros, &g_clock);
130  g_lua.bindSingletonFunction("g_clock", "millis", &Clock::millis, &g_clock);
131  g_lua.bindSingletonFunction("g_clock", "seconds", &Clock::seconds, &g_clock);
132 
133  // ConfigManager
134  g_lua.registerSingletonClass("g_configs");
135  g_lua.bindSingletonFunction("g_configs", "getSettings", &ConfigManager::getSettings, &g_configs);
137  g_lua.bindSingletonFunction("g_configs", "loadSettings", &ConfigManager::loadSettings, &g_configs);
138  g_lua.bindSingletonFunction("g_configs", "load", &ConfigManager::load, &g_configs);
139  g_lua.bindSingletonFunction("g_configs", "unload", &ConfigManager::unload, &g_configs);
140  g_lua.bindSingletonFunction("g_configs", "create", &ConfigManager::create, &g_configs);
141 
142  // Logger
143  g_lua.registerSingletonClass("g_logger");
144  g_lua.bindSingletonFunction("g_logger", "log", &Logger::log, &g_logger);
145  g_lua.bindSingletonFunction("g_logger", "fireOldMessages", &Logger::fireOldMessages, &g_logger);
146  g_lua.bindSingletonFunction("g_logger", "setLogFile", &Logger::setLogFile, &g_logger);
147  g_lua.bindSingletonFunction("g_logger", "setOnLog", &Logger::setOnLog, &g_logger);
148  g_lua.bindSingletonFunction("g_logger", "debug", &Logger::debug, &g_logger);
149  g_lua.bindSingletonFunction("g_logger", "info", &Logger::info, &g_logger);
150  g_lua.bindSingletonFunction("g_logger", "warning", &Logger::warning, &g_logger);
151  g_lua.bindSingletonFunction("g_logger", "error", &Logger::error, &g_logger);
152  g_lua.bindSingletonFunction("g_logger", "fatal", &Logger::fatal, &g_logger);
153 
154  // ModuleManager
155  g_lua.registerSingletonClass("g_modules");
156  g_lua.bindSingletonFunction("g_modules", "discoverModules", &ModuleManager::discoverModules, &g_modules);
157  g_lua.bindSingletonFunction("g_modules", "autoLoadModules", &ModuleManager::autoLoadModules, &g_modules);
158  g_lua.bindSingletonFunction("g_modules", "discoverModule", &ModuleManager::discoverModule, &g_modules);
159  g_lua.bindSingletonFunction("g_modules", "ensureModuleLoaded", &ModuleManager::ensureModuleLoaded, &g_modules);
160  g_lua.bindSingletonFunction("g_modules", "unloadModules", &ModuleManager::unloadModules, &g_modules);
161  g_lua.bindSingletonFunction("g_modules", "reloadModules", &ModuleManager::reloadModules, &g_modules);
162  g_lua.bindSingletonFunction("g_modules", "getModule", &ModuleManager::getModule, &g_modules);
163  g_lua.bindSingletonFunction("g_modules", "getModules", &ModuleManager::getModules, &g_modules);
164 
165  // EventDispatcher
166  g_lua.registerSingletonClass("g_dispatcher");
167  g_lua.bindSingletonFunction("g_dispatcher", "addEvent", &EventDispatcher::addEvent, &g_dispatcher);
168  g_lua.bindSingletonFunction("g_dispatcher", "scheduleEvent", &EventDispatcher::scheduleEvent, &g_dispatcher);
169  g_lua.bindSingletonFunction("g_dispatcher", "cycleEvent", &EventDispatcher::cycleEvent, &g_dispatcher);
170 
171  // ResourceManager
172  g_lua.registerSingletonClass("g_resources");
173  g_lua.bindSingletonFunction("g_resources", "addSearchPath", &ResourceManager::addSearchPath, &g_resources);
174  g_lua.bindSingletonFunction("g_resources", "setupUserWriteDir", &ResourceManager::setupUserWriteDir, &g_resources);
175  g_lua.bindSingletonFunction("g_resources", "setWriteDir", &ResourceManager::setWriteDir, &g_resources);
176  g_lua.bindSingletonFunction("g_resources", "searchAndAddPackages", &ResourceManager::searchAndAddPackages, &g_resources);
177  g_lua.bindSingletonFunction("g_resources", "removeSearchPath", &ResourceManager::removeSearchPath, &g_resources);
178  g_lua.bindSingletonFunction("g_resources", "fileExists", &ResourceManager::fileExists, &g_resources);
179  g_lua.bindSingletonFunction("g_resources", "directoryExists", &ResourceManager::directoryExists, &g_resources);
180  g_lua.bindSingletonFunction("g_resources", "getRealDir", &ResourceManager::getRealDir, &g_resources);
181  g_lua.bindSingletonFunction("g_resources", "getWorkDir", &ResourceManager::getWorkDir, &g_resources);
182  g_lua.bindSingletonFunction("g_resources", "getUserDir", &ResourceManager::getUserDir, &g_resources);
183  g_lua.bindSingletonFunction("g_resources", "getWriteDir", &ResourceManager::getWriteDir, &g_resources);
184  g_lua.bindSingletonFunction("g_resources", "getSearchPaths", &ResourceManager::getSearchPaths, &g_resources);
185  g_lua.bindSingletonFunction("g_resources", "getRealPath", &ResourceManager::getRealPath, &g_resources);
186  g_lua.bindSingletonFunction("g_resources", "listDirectoryFiles", &ResourceManager::listDirectoryFiles, &g_resources);
187  g_lua.bindSingletonFunction("g_resources", "getDirectoryFiles", &ResourceManager::getDirectoryFiles, &g_resources);
188  g_lua.bindSingletonFunction("g_resources", "readFileContents", &ResourceManager::readFileContents, &g_resources);
189  g_lua.bindSingletonFunction("g_resources", "writeFileContents", &ResourceManager::writeFileContents, &g_resources);
190  g_lua.bindSingletonFunction("g_resources", "guessFilePath", &ResourceManager::guessFilePath, &g_resources);
191  g_lua.bindSingletonFunction("g_resources", "isFileType", &ResourceManager::isFileType, &g_resources);
192  g_lua.bindSingletonFunction("g_resources", "getFileTime", &ResourceManager::getFileTime, &g_resources);
193  g_lua.bindSingletonFunction("g_resources", "makeDir", &ResourceManager::makeDir, &g_resources);
194  g_lua.bindSingletonFunction("g_resources", "deleteFile", &ResourceManager::deleteFile, &g_resources);
195  g_lua.bindSingletonFunction("g_resources", "resolvePath", &ResourceManager::resolvePath, &g_resources);
196 
197  // Config
210 
211  // Module
229 
230  // Event
236 
237  // ScheduledEvent
245 
246 #ifdef FW_GRAPHICS
247  // GraphicalApplication
248  g_lua.bindSingletonFunction("g_app", "setForegroundPaneMaxFps", &GraphicalApplication::setForegroundPaneMaxFps, &g_app);
249  g_lua.bindSingletonFunction("g_app", "setBackgroundPaneMaxFps", &GraphicalApplication::setBackgroundPaneMaxFps, &g_app);
253  g_lua.bindSingletonFunction("g_app", "getForegroundPaneMaxFps", &GraphicalApplication::getForegroundPaneMaxFps, &g_app);
254  g_lua.bindSingletonFunction("g_app", "getBackgroundPaneMaxFps", &GraphicalApplication::getBackgroundPaneMaxFps, &g_app);
255 
256  // PlatformWindow
257  g_lua.registerSingletonClass("g_window");
263  g_lua.bindSingletonFunction("g_window", "maximize", &PlatformWindow::maximize, &g_window);
264  g_lua.bindSingletonFunction("g_window", "restoreMouseCursor", &PlatformWindow::restoreMouseCursor, &g_window);
265  g_lua.bindSingletonFunction("g_window", "showMouse", &PlatformWindow::showMouse, &g_window);
266  g_lua.bindSingletonFunction("g_window", "hideMouse", &PlatformWindow::hideMouse, &g_window);
267  g_lua.bindSingletonFunction("g_window", "setTitle", &PlatformWindow::setTitle, &g_window);
268  g_lua.bindSingletonFunction("g_window", "setMouseCursor", &PlatformWindow::setMouseCursor, &g_window);
269  g_lua.bindSingletonFunction("g_window", "setMinimumSize", &PlatformWindow::setMinimumSize, &g_window);
270  g_lua.bindSingletonFunction("g_window", "setFullscreen", &PlatformWindow::setFullscreen, &g_window);
271  g_lua.bindSingletonFunction("g_window", "setVerticalSync", &PlatformWindow::setVerticalSync, &g_window);
272  g_lua.bindSingletonFunction("g_window", "setIcon", &PlatformWindow::setIcon, &g_window);
273  g_lua.bindSingletonFunction("g_window", "setClipboardText", &PlatformWindow::setClipboardText, &g_window);
274  g_lua.bindSingletonFunction("g_window", "getDisplaySize", &PlatformWindow::getDisplaySize, &g_window);
275  g_lua.bindSingletonFunction("g_window", "getClipboardText", &PlatformWindow::getClipboardText, &g_window);
276  g_lua.bindSingletonFunction("g_window", "getPlatformType", &PlatformWindow::getPlatformType, &g_window);
277  g_lua.bindSingletonFunction("g_window", "getDisplayWidth", &PlatformWindow::getDisplayWidth, &g_window);
278  g_lua.bindSingletonFunction("g_window", "getDisplayHeight", &PlatformWindow::getDisplayHeight, &g_window);
279  g_lua.bindSingletonFunction("g_window", "getUnmaximizedSize", &PlatformWindow::getUnmaximizedSize, &g_window);
280  g_lua.bindSingletonFunction("g_window", "getSize", &PlatformWindow::getSize, &g_window);
281  g_lua.bindSingletonFunction("g_window", "getWidth", &PlatformWindow::getWidth, &g_window);
282  g_lua.bindSingletonFunction("g_window", "getHeight", &PlatformWindow::getHeight, &g_window);
283  g_lua.bindSingletonFunction("g_window", "getUnmaximizedPos", &PlatformWindow::getUnmaximizedPos, &g_window);
284  g_lua.bindSingletonFunction("g_window", "getPosition", &PlatformWindow::getPosition, &g_window);
287  g_lua.bindSingletonFunction("g_window", "getMousePosition", &PlatformWindow::getMousePosition, &g_window);
288  g_lua.bindSingletonFunction("g_window", "getKeyboardModifiers", &PlatformWindow::getKeyboardModifiers, &g_window);
289  g_lua.bindSingletonFunction("g_window", "isKeyPressed", &PlatformWindow::isKeyPressed, &g_window);
290  g_lua.bindSingletonFunction("g_window", "isMouseButtonPressed", &PlatformWindow::isMouseButtonPressed, &g_window);
291  g_lua.bindSingletonFunction("g_window", "isVisible", &PlatformWindow::isVisible, &g_window);
292  g_lua.bindSingletonFunction("g_window", "isFullscreen", &PlatformWindow::isFullscreen, &g_window);
293  g_lua.bindSingletonFunction("g_window", "isMaximized", &PlatformWindow::isMaximized, &g_window);
294  g_lua.bindSingletonFunction("g_window", "hasFocus", &PlatformWindow::hasFocus, &g_window);
295 
296  // Input
297  g_lua.registerSingletonClass("g_mouse");
298  g_lua.bindSingletonFunction("g_mouse", "loadCursors", &Mouse::loadCursors, &g_mouse);
299  g_lua.bindSingletonFunction("g_mouse", "addCursor", &Mouse::addCursor, &g_mouse);
300  g_lua.bindSingletonFunction("g_mouse", "pushCursor", &Mouse::pushCursor, &g_mouse);
301  g_lua.bindSingletonFunction("g_mouse", "popCursor", &Mouse::popCursor, &g_mouse);
302  g_lua.bindSingletonFunction("g_mouse", "isCursorChanged", &Mouse::isCursorChanged, &g_mouse);
303  g_lua.bindSingletonFunction("g_mouse", "isPressed", &Mouse::isPressed, &g_mouse);
304 
305  // Graphics
306  g_lua.registerSingletonClass("g_graphics");
307  g_lua.bindSingletonFunction("g_graphics", "isPainterEngineAvailable", &Graphics::isPainterEngineAvailable, &g_graphics);
308  g_lua.bindSingletonFunction("g_graphics", "selectPainterEngine", &Graphics::selectPainterEngine, &g_graphics);
309  g_lua.bindSingletonFunction("g_graphics", "canCacheBackbuffer", &Graphics::canCacheBackbuffer, &g_graphics);
310  g_lua.bindSingletonFunction("g_graphics", "canUseShaders", &Graphics::canUseShaders, &g_graphics);
311  g_lua.bindSingletonFunction("g_graphics", "shouldUseShaders", &Graphics::shouldUseShaders, &g_graphics);
312  g_lua.bindSingletonFunction("g_graphics", "setShouldUseShaders", &Graphics::setShouldUseShaders, &g_graphics);
313  g_lua.bindSingletonFunction("g_graphics", "getPainterEngine", &Graphics::getPainterEngine, &g_graphics);
314  g_lua.bindSingletonFunction("g_graphics", "getViewportSize", &Graphics::getViewportSize, &g_graphics);
315  g_lua.bindSingletonFunction("g_graphics", "getVendor", &Graphics::getVendor, &g_graphics);
316  g_lua.bindSingletonFunction("g_graphics", "getRenderer", &Graphics::getRenderer, &g_graphics);
317  g_lua.bindSingletonFunction("g_graphics", "getVersion", &Graphics::getVersion, &g_graphics);
318 
319  // Textures
320  g_lua.registerSingletonClass("g_textures");
321  g_lua.bindSingletonFunction("g_textures", "preload", &TextureManager::preload, &g_textures);
322  g_lua.bindSingletonFunction("g_textures", "clearCache", &TextureManager::clearCache, &g_textures);
323  g_lua.bindSingletonFunction("g_textures", "liveReload", &TextureManager::liveReload, &g_textures);
324 
325  // UI
327  g_lua.bindSingletonFunction("g_ui", "clearStyles", &UIManager::clearStyles, &g_ui);
328  g_lua.bindSingletonFunction("g_ui", "importStyle", &UIManager::importStyle, &g_ui);
329  g_lua.bindSingletonFunction("g_ui", "getStyle", &UIManager::getStyle, &g_ui);
330  g_lua.bindSingletonFunction("g_ui", "getStyleClass", &UIManager::getStyleClass, &g_ui);
331  g_lua.bindSingletonFunction("g_ui", "loadUI", &UIManager::loadUI, &g_ui);
332  g_lua.bindSingletonFunction("g_ui", "displayUI", &UIManager::displayUI, &g_ui);
333  g_lua.bindSingletonFunction("g_ui", "createWidget", &UIManager::createWidget, &g_ui);
334  g_lua.bindSingletonFunction("g_ui", "createWidgetFromOTML", &UIManager::createWidgetFromOTML, &g_ui);
335  g_lua.bindSingletonFunction("g_ui", "getRootWidget", &UIManager::getRootWidget, &g_ui);
336  g_lua.bindSingletonFunction("g_ui", "getDraggingWidget", &UIManager::getDraggingWidget, &g_ui);
337  g_lua.bindSingletonFunction("g_ui", "getPressedWidget", &UIManager::getPressedWidget, &g_ui);
338  g_lua.bindSingletonFunction("g_ui", "setDebugBoxesDrawing", &UIManager::setDebugBoxesDrawing, &g_ui);
339  g_lua.bindSingletonFunction("g_ui", "isDrawingDebugBoxes", &UIManager::isDrawingDebugBoxes, &g_ui);
340  g_lua.bindSingletonFunction("g_ui", "isMouseGrabbed", &UIManager::isMouseGrabbed, &g_ui);
341  g_lua.bindSingletonFunction("g_ui", "isKeyboardGrabbed", &UIManager::isKeyboardGrabbed, &g_ui);
342 
343  // FontManager
344  g_lua.registerSingletonClass("g_fonts");
345  g_lua.bindSingletonFunction("g_fonts", "clearFonts", &FontManager::clearFonts, &g_fonts);
346  g_lua.bindSingletonFunction("g_fonts", "importFont", &FontManager::importFont, &g_fonts);
347  g_lua.bindSingletonFunction("g_fonts", "fontExists", &FontManager::fontExists, &g_fonts);
348  g_lua.bindSingletonFunction("g_fonts", "setDefaultFont", &FontManager::setDefaultFont, &g_fonts);
349 
350  // ParticleManager
351  g_lua.registerSingletonClass("g_particles");
352  g_lua.bindSingletonFunction("g_particles", "importParticle", &ParticleManager::importParticle, &g_particles);
353  g_lua.bindSingletonFunction("g_particles", "getEffectsTypes", &ParticleManager::getEffectsTypes, &g_particles);
354 
355  // UIWidget
357  g_lua.bindClassStaticFunction<UIWidget>("create", []{ return UIWidgetPtr(new UIWidget); });
627 
628  // UILayout
646 
647  // UIBoxLayout
651 
652  // UIVerticalLayout
654  g_lua.bindClassStaticFunction<UIVerticalLayout>("create", [](UIWidgetPtr parent){ return UIVerticalLayoutPtr(new UIVerticalLayout(parent)); } );
657 
658  // UIHorizontalLayout
662 
663  // UIGridLayout
665  g_lua.bindClassStaticFunction<UIGridLayout>("create", [](UIWidgetPtr parent){ return UIGridLayoutPtr(new UIGridLayout(parent)); });
678 
679  // UIAnchorLayout
681  g_lua.bindClassStaticFunction<UIAnchorLayout>("create", [](UIWidgetPtr parent){ return UIAnchorLayoutPtr(new UIAnchorLayout(parent)); } );
685 
686  // UITextEdit
688  g_lua.bindClassStaticFunction<UITextEdit>("create", []{ return UITextEditPtr(new UITextEdit); } );
735 
739 
740  // ParticleEffect
745 
746  // UIParticles
748  g_lua.bindClassStaticFunction<UIParticles>("create", []{ return UIParticlesPtr(new UIParticles); } );
750 #endif
751 
752 #ifdef FW_NET
753  // Server
759 
760  // Connection
763 
764  // Protocol
766  g_lua.bindClassStaticFunction<Protocol>("create", []{ return ProtocolPtr(new Protocol); });
780 
781  // ProtocolHttp
788 
789  // InputMessage
809 
810  // OutputMessage
827 #endif
828 
829 #ifdef FW_SOUND
830  // SoundManager
831  g_lua.registerSingletonClass("g_sounds");
832  g_lua.bindSingletonFunction("g_sounds", "preload", &SoundManager::preload, &g_sounds);
833  g_lua.bindSingletonFunction("g_sounds", "play", &SoundManager::play, &g_sounds);
834  g_lua.bindSingletonFunction("g_sounds", "getChannel", &SoundManager::getChannel, &g_sounds);
835  g_lua.bindSingletonFunction("g_sounds", "stopAll", &SoundManager::stopAll, &g_sounds);
836  g_lua.bindSingletonFunction("g_sounds", "enableAudio", &SoundManager::enableAudio, &g_sounds);
837  g_lua.bindSingletonFunction("g_sounds", "disableAudio", &SoundManager::disableAudio, &g_sounds);
838  g_lua.bindSingletonFunction("g_sounds", "setAudioEnabled", &SoundManager::setAudioEnabled, &g_sounds);
839  g_lua.bindSingletonFunction("g_sounds", "isAudioEnabled", &SoundManager::isAudioEnabled, &g_sounds);
840 
844 
856 #endif
857 
858 #ifdef FW_SQL
859  // Database
867  //g_lua.bindClassMemberFunction<Database>("escapeBlob", &Database::escapeBlob); // need to write a cast for this type to work (if needed)
868 
869  // DBQuery
870  /* (not sure if this class will work as a luafunction)
871  g_lua.registerClass<DBQuery>();
872  g_lua.bindClassStaticFunction<DBQuery>("create", []{ return DBQuery(); });
873  g_lua.bindClassMemberFunction<DBQuery>("append", &DBQuery::append);
874  g_lua.bindClassMemberFunction<DBQuery>("set", &DBQuery::set);
875  */
876 
877  // DBResult
882  //g_lua.bindClassMemberFunction<DBResult>("getDataStream", &DBResult::getDataStream); // need to write a cast for this type to work (if needed)
886 
887  // MySQL
896 
897  // MySQLResult
902  //g_lua.bindClassMemberFunction<MySQLResult>("getDataStream", &MySQLResult::getDataStream); // need to write a cast for this type to work (if needed)
906 #endif
907 }
UITextEdit::setCursorPos
void setCursorPos(int pos)
Definition: uitextedit.cpp:338
stdext::ip_to_string
std::string ip_to_string(uint32 ip)
Definition: net.cpp:30
ParticleEffectType::getDescription
std::string getDescription()
Definition: particleeffect.h:39
SoundChannel::play
SoundSourcePtr play(const std::string &filename, float fadetime=0, float gain=1.0f)
Definition: soundchannel.cpp:27
UIWidget::unlock
void unlock()
Definition: uiwidget.cpp:654
InputMessage::setBuffer
void setBuffer(const std::string &buffer)
Definition: inputmessage.cpp:38
UIWidget::setImageOffset
void setImageOffset(const Point &pos)
Definition: uiwidget.h:430
ResourceManager::isFileType
bool isFileType(const std::string &filename, const std::string &type)
Definition: resourcemanager.cpp:359
UITextEdit::getDisplayedText
std::string getDisplayedText()
Definition: uitextedit.cpp:565
ui.h
Mouse::popCursor
void popCursor(const std::string &name)
Definition: mouse.cpp:76
MySQLResult::getDataString
virtual std::string getDataString(const std::string &s)
Definition: mysql.cpp:218
OutputMessage::getMessageSize
uint16 getMessageSize()
Definition: outputmessage.h:56
UIWidget::setTextVerticalAutoResize
void setTextVerticalAutoResize(bool textAutoResize)
Definition: uiwidget.h:501
Protocol::disconnect
void disconnect()
Definition: protocol.cpp:50
UIWidget::getPaddingRect
Rect getPaddingRect()
Definition: uiwidget.cpp:1054
ResourceManager::listDirectoryFiles
std::list< std::string > listDirectoryFiles(const std::string &directoryPath="")
Definition: resourcemanager.cpp:268
SoundChannel::enable
void enable()
Definition: soundchannel.h:37
Graphics::selectPainterEngine
bool selectPainterEngine(PainterEngine painterEngine)
Definition: graphics.cpp:185
UIWidget::getOpacity
float getOpacity()
Definition: uiwidget.h:394
UIWidget::setPadding
void setPadding(int padding)
Definition: uiwidget.h:342
UIWidget::setImageOffsetY
void setImageOffsetY(int y)
Definition: uiwidget.h:429
UIWidget::isFixedSize
bool isFixedSize()
Definition: uiwidget.h:245
UIWidget::setIconOffset
void setIconOffset(const Point &pos)
Definition: uiwidget.h:318
FontManager::fontExists
bool fontExists(const std::string &fontName)
Definition: fontmanager.cpp:81
ScheduledEvent::ticks
int ticks()
Definition: scheduledevent.h:37
UIWidget::containsPaddingPoint
bool containsPaddingPoint(const Point &point)
Definition: uiwidget.h:251
UIWidget::getImageHeight
int getImageHeight()
Definition: uiwidget.h:451
UIWidget::isActive
bool isActive()
Definition: uiwidget.h:225
Platform::getCPUName
std::string getCPUName()
Definition: unixplatform.cpp:127
UILayout
Definition: uilayout.h:31
UITextEdit::isSelectable
bool isSelectable()
Definition: uitextedit.h:90
ParticleEffectTypePtr
stdext::shared_object_ptr< ParticleEffectType > ParticleEffectTypePtr
Definition: declarations.h:63
UIGridLayout::getCellSpacing
int getCellSpacing()
Definition: uigridlayout.h:49
UIWidget::breakAnchors
void breakAnchors()
Definition: uiwidget.cpp:611
InputMessage::skipBytes
void skipBytes(uint16 bytes)
Definition: inputmessage.h:43
UIWidget::disable
void disable()
Definition: uiwidget.h:222
eventdispatcher.h
UIWidget::getIconSize
Size getIconSize()
Definition: uiwidget.h:374
UIWidget::setPaddingTop
void setPaddingTop(int padding)
Definition: uiwidget.h:345
UIWidget::setImageRepeated
void setImageRepeated(bool repeated)
Definition: uiwidget.h:437
UIWidget::setAutoFocusPolicy
void setAutoFocusPolicy(Fw::AutoFocusPolicy policy)
Definition: uiwidget.cpp:1009
UIWidget::getBackgroundRect
Rect getBackgroundRect()
Definition: uiwidget.h:367
graphics.h
Mouse::pushCursor
bool pushCursor(const std::string &name)
Definition: mouse.cpp:64
UIWidget
Definition: uiwidget.h:47
ScheduledEvent::remainingTicks
int remainingTicks()
Definition: scheduledevent.h:38
Crypt::rsaSetPrivateKey
void rsaSetPrivateKey(const std::string &p, const std::string &q, const std::string &d)
Definition: crypt.cpp:262
PlatformWindow::restoreMouseCursor
virtual void restoreMouseCursor()=0
ResourceManager::removeSearchPath
bool removeSearchPath(const std::string &path)
Definition: resourcemanager.cpp:134
UIWidget::fill
void fill(const std::string &hookedWidgetId)
Definition: uiwidget.cpp:597
UITextEdit::getSelection
std::string getSelection()
Definition: uitextedit.cpp:579
UIWidget::getImageTextureWidth
int getImageTextureWidth()
Definition: uiwidget.h:462
Database::getLastInsertedRowID
virtual uint64 getLastInsertedRowID()
Definition: database.h:107
UIWidget::isPressed
bool isPressed()
Definition: uiwidget.h:230
UIWidget::getImageTextureHeight
int getImageTextureHeight()
Definition: uiwidget.h:463
Event::isExecuted
bool isExecuted()
Definition: event.h:39
Graphics::getPainterEngine
PainterEngine getPainterEngine()
Definition: graphics.h:51
UIWidget::setY
void setY(int y)
Definition: uiwidget.h:300
Color
Definition: color.h:32
FontManager::clearFonts
void clearFonts()
Definition: fontmanager.cpp:42
UIWidget::setBackgroundRect
void setBackgroundRect(const Rect &rect)
Definition: uiwidget.h:313
SoundManager::stopAll
void stopAll()
Definition: soundmanager.cpp:208
PlatformWindow::getPosition
Point getPosition()
Definition: platformwindow.h:80
SoundManager::isAudioEnabled
bool isAudioEnabled()
Definition: soundmanager.h:42
UIWidget::getIconWidth
int getIconWidth()
Definition: uiwidget.h:372
SoundManager::preload
void preload(std::string filename)
Definition: soundmanager.cpp:149
UITextEdit::setValidCharacters
void setValidCharacters(const std::string validCharacters)
Definition: uitextedit.h:45
DatabaseMySQL::executeQuery
virtual bool executeQuery(const std::string &query)
Definition: mysql.cpp:131
Application::getBuildRevision
std::string getBuildRevision()
Definition: application.h:58
UITextEdit::isMultiline
bool isMultiline()
Definition: uitextedit.h:88
UIWidget::setImageClip
void setImageClip(const Rect &clipRect)
Definition: uiwidget.h:427
LuaInterface::bindClassStaticFunction
void bindClassStaticFunction(const std::string &functionName, const F &function)
Definition: luainterface.h:376
UIManager::getStyle
OTMLNodePtr getStyle(const std::string &styleName)
Definition: uimanager.cpp:377
UIWidget::isEnabled
bool isEnabled()
Definition: uiwidget.h:226
SoundSource
Definition: soundsource.h:30
ProtocolHttp::connect
void connect(const std::string &host, uint16 port)
Definition: protocolhttp.cpp:39
UIWidget::focusChild
void focusChild(const UIWidgetPtr &child, Fw::FocusReason reason)
Definition: uiwidget.cpp:253
UIWidget::getChildCount
int getChildCount()
Definition: uiwidget.h:262
UIWidget::isChecked
bool isChecked()
Definition: uiwidget.h:235
Module::unload
void unload()
Definition: module.cpp:113
ResourceManager::getRealPath
std::string getRealPath(const std::string &path)
Definition: resourcemanager.cpp:337
PlatformWindow::getUnmaximizedPos
Point getUnmaximizedPos()
Definition: platformwindow.h:79
Platform::removeFile
bool removeFile(std::string file)
Definition: unixplatform.cpp:105
UIWidget::getLayout
UILayoutPtr getLayout()
Definition: uiwidget.h:260
SoundChannel::getId
int getId()
Definition: soundchannel.h:46
UIParticlesPtr
stdext::shared_object_ptr< UIParticles > UIParticlesPtr
Definition: declarations.h:42
PlatformWindow::setFullscreen
virtual void setFullscreen(bool fullscreen)=0
PlatformWindow::setClipboardText
virtual void setClipboardText(const std::string &text)=0
DatabaseMySQL::commit
virtual bool commit()
Definition: mysql.cpp:110
UILayout::updateLater
void updateLater()
Definition: uilayout.cpp:58
Application::getBuildCompiler
std::string getBuildCompiler()
Definition: application.h:56
UIWidget::setFocusable
void setFocusable(bool focusable)
Definition: uiwidget.cpp:972
ResourceManager::getRealDir
std::string getRealDir(const std::string &path)
Definition: resourcemanager.cpp:328
UIGridLayout::getCellSize
Size getCellSize()
Definition: uigridlayout.h:48
platformwindow.h
UIWidget::resizeToText
void resizeToText()
Definition: uiwidget.h:492
UITextEdit::wrapText
void wrapText()
Definition: uitextedit.cpp:498
UIParticles
Definition: uiparticles.h:29
PlatformWindow::setVerticalSync
virtual void setVerticalSync(bool enable)=0
otml.h
ModuleManager::getModule
ModulePtr getModule(const std::string &moduleName)
Definition: modulemanager.cpp:125
UIBoxLayout::setSpacing
void setSpacing(int spacing)
Definition: uiboxlayout.h:38
TRect< int >
UIWidget::getBackgroundOffset
Point getBackgroundOffset()
Definition: uiwidget.h:363
Application::getCompactName
const std::string & getCompactName()
Definition: application.h:52
Module::getDescription
std::string getDescription()
Definition: module.h:50
InputMessage::getU16
uint16 getU16()
Definition: inputmessage.cpp:56
configmanager.h
UILayout::isUpdating
bool isUpdating()
Definition: uilayout.h:49
UIWidget::isChildLocked
bool isChildLocked(const UIWidgetPtr &child)
Definition: uiwidget.cpp:1029
UILayout::removeWidget
virtual void removeWidget(const UIWidgetPtr &)
Definition: uilayout.h:41
Application::isStopping
bool isStopping()
Definition: application.h:49
SoundChannel::enqueue
void enqueue(const std::string &filename, float fadetime=0, float gain=1.0f)
Definition: soundchannel.cpp:53
UIWidget::setImageColor
void setImageColor(const Color &color)
Definition: uiwidget.h:435
DatabaseMySQL::storeQuery
virtual DBResultPtr storeQuery(const std::string &query)
Definition: mysql.cpp:148
combinedsoundsource.h
UIWidget::setStyle
void setStyle(const std::string &styleName)
Definition: uiwidget.cpp:906
Graphics::getViewportSize
const Size & getViewportSize()
Definition: graphics.h:56
Platform::getTempPath
std::string getTempPath()
Definition: unixplatform.cpp:78
UITextEdit::setShiftNavigation
void setShiftNavigation(bool enable)
Definition: uitextedit.h:46
Server::isOpen
bool isOpen()
Definition: server.h:34
Server
Definition: server.h:29
UIWidget::getImageOffsetY
int getImageOffsetY()
Definition: uiwidget.h:448
ParticleEffectType
Definition: particleeffect.h:31
UIVerticalLayout::isAlignBottom
bool isAlignBottom()
Definition: uiverticallayout.h:37
UIGridLayout::setCellSize
void setCellSize(const Size &size)
Definition: uigridlayout.h:38
Config::save
bool save()
Definition: config.cpp:63
stdext::ucwords
void ucwords(std::string &str)
Definition: string.cpp:245
Module::load
bool load()
Definition: module.cpp:36
g_dispatcher
EventDispatcher g_dispatcher
Definition: eventdispatcher.cpp:28
g_crypt
Crypt g_crypt
Definition: crypt.cpp:44
Config::setList
void setList(const std::string &key, const std::vector< std::string > &list)
Definition: config.cpp:86
UIWidget::centerIn
void centerIn(const std::string &hookedWidgetId)
Definition: uiwidget.cpp:585
UIWidget::getMarginBottom
int getMarginBottom()
Definition: uiwidget.h:388
DatabaseMySQL
Definition: mysql.h:36
UITextEdit::selectAll
void selectAll()
Definition: uitextedit.h:67
UIWidget::ungrabKeyboard
void ungrabKeyboard()
Definition: uiwidget.cpp:729
PlatformWindow::getSize
Size getSize()
Definition: platformwindow.h:75
uint32
uint32_t uint32
Definition: types.h:35
UIGridLayout::setCellHeight
void setCellHeight(int height)
Definition: uigridlayout.h:40
UITextEdit::setTextHidden
void setTextHidden(bool hidden)
Definition: uitextedit.cpp:370
UIWidget::setIconRect
void setIconRect(const Rect &rect)
Definition: uiwidget.h:322
UIWidget::hide
void hide()
Definition: uiwidget.h:220
UILayout::isUIVerticalLayout
virtual bool isUIVerticalLayout()
Definition: uilayout.h:54
PlatformWindow::getWidth
int getWidth()
Definition: platformwindow.h:77
UILayout::enableUpdates
void enableUpdates()
Definition: uilayout.h:43
ProtocolPtr
stdext::shared_object_ptr< Protocol > ProtocolPtr
Definition: declarations.h:42
UIWidget::setImageRect
void setImageRect(const Rect &rect)
Definition: uiwidget.h:434
PainterShaderProgram::addMultiTexture
void addMultiTexture(const std::string &file)
Definition: paintershaderprogram.cpp:151
UIWidget::isImageSmooth
bool isImageSmooth()
Definition: uiwidget.h:456
UIWidget::setTextAlign
void setTextAlign(Fw::AlignmentFlag align)
Definition: uiwidget.h:496
stdext::string_to_ip
uint32 string_to_ip(const std::string &string)
Definition: net.cpp:37
PlatformWindow::getPlatformType
virtual std::string getPlatformType()=0
Platform::getOSName
std::string getOSName()
Definition: unixplatform.cpp:159
ResourceManager::directoryExists
bool directoryExists(const std::string &directoryName)
Definition: resourcemanager.cpp:163
UITextEdit::getTextVirtualSize
Size getTextVirtualSize()
Definition: uitextedit.h:76
mysql.h
Graphics::isPainterEngineAvailable
bool isPainterEngineAvailable(PainterEngine painterEngine)
Definition: graphics.cpp:166
UIWidget::setMarginRight
void setMarginRight(int margin)
Definition: uiwidget.h:339
ModuleManager::getModules
std::deque< ModulePtr > getModules()
Definition: modulemanager.h:42
g_fonts
FontManager g_fonts
Definition: fontmanager.cpp:29
UIWidget::recursiveGetChildByPos
UIWidgetPtr recursiveGetChildByPos(const Point &childPos, bool wantsPhantom)
Definition: uiwidget.cpp:1173
UIWidget::containsMarginPoint
bool containsMarginPoint(const Point &point)
Definition: uiwidget.h:250
DatabaseMySQL::rollback
virtual bool rollback()
Definition: mysql.cpp:100
UIWidget::getMarginRight
int getMarginRight()
Definition: uiwidget.h:387
UIWidget::getImageClip
Rect getImageClip()
Definition: uiwidget.h:446
OutputMessage::setBuffer
void setBuffer(const std::string &buffer)
Definition: outputmessage.cpp:38
FontManager::importFont
bool importFont(std::string file)
Definition: fontmanager.cpp:48
MySQLResult
Definition: mysql.h:65
UIWidget::getId
std::string getId()
Definition: uiwidget.h:254
UIHorizontalLayout::setAlignRight
void setAlignRight(bool aliginRight)
Definition: uihorizontallayout.h:35
Graphics::setShouldUseShaders
void setShouldUseShaders(bool enable)
Definition: graphics.h:63
Crypt::rsaGetSize
int rsaGetSize()
Definition: crypt.cpp:350
UILayout::isUIAnchorLayout
virtual bool isUIAnchorLayout()
Definition: uilayout.h:51
Platform::openUrl
void openUrl(std::string url)
Definition: unixplatform.cpp:120
UIWidget::setRotation
void setRotation(float degrees)
Definition: uiwidget.h:350
MySQLResult::free
virtual void free()
Definition: mysql.cpp:244
module.h
InputMessage
Definition: inputmessage.h:30
Connection::getIp
int getIp()
Definition: connection.cpp:309
resourcemanager.h
ResourceManager::resolvePath
std::string resolvePath(const std::string &path)
Definition: resourcemanager.cpp:311
InputMessage::peekU8
uint8 peekU8()
Definition: inputmessage.h:52
UITextEdit::copy
std::string copy()
Definition: uitextedit.cpp:481
UIWidgetPtr
stdext::shared_object_ptr< UIWidget > UIWidgetPtr
Definition: declarations.h:39
OutputMessage::getBuffer
std::string getBuffer()
Definition: outputmessage.h:44
UITextEdit::getSelectionColor
Color getSelectionColor()
Definition: uitextedit.h:81
SoundManager::getChannel
SoundChannelPtr getChannel(int channel)
Definition: soundmanager.cpp:200
luainterface.h
UILayout::isUIBoxLayout
virtual bool isUIBoxLayout()
Definition: uilayout.h:52
InputMessage::getU8
uint8 getU8()
Definition: inputmessage.cpp:48
Protocol::connect
void connect(const std::string &host, uint16 port)
Definition: protocol.cpp:43
UIAnchorLayout
Definition: uianchorlayout.h:62
Logger::error
void error(const std::string &what)
Definition: logger.h:54
UIWidget::getAnchoredLayout
UIAnchorLayoutPtr getAnchoredLayout()
Definition: uiwidget.cpp:1093
UIWidget::destroy
void destroy()
Definition: uiwidget.cpp:774
UIWidget::isMiddle
bool isMiddle()
Definition: uiwidget.h:232
ModuleManager::reloadModules
void reloadModules()
Definition: modulemanager.cpp:106
UIWidget::setImageWidth
void setImageWidth(int width)
Definition: uiwidget.h:431
UIWidget::unlockChild
void unlockChild(const UIWidgetPtr &child)
Definition: uiwidget.cpp:470
UIManager::getPressedWidget
UIWidgetPtr getPressedWidget()
Definition: uimanager.h:66
UITextEdit::getTextPos
int getTextPos(Point pos)
Definition: uitextedit.cpp:526
texturemanager.h
UIWidget::getBackgroundOffsetY
int getBackgroundOffsetY()
Definition: uiwidget.h:362
UIWidget::getHeight
int getHeight()
Definition: uiwidget.h:356
UIWidget::isImageAutoResize
bool isImageAutoResize()
Definition: uiwidget.h:457
UIWidget::getPaddingLeft
int getPaddingLeft()
Definition: uiwidget.h:393
ResourceManager::getDirectoryFiles
std::vector< std::string > getDirectoryFiles(const std::string &path, bool filenameOnly, bool recursive)
Definition: resourcemanager.cpp:280
UIWidget::raise
void raise()
Definition: uiwidget.cpp:697
Config::setNode
void setNode(const std::string &key, const OTMLNodePtr &node)
Definition: config.cpp:131
UITextEdit::paste
void paste(const std::string &text)
Definition: uitextedit.cpp:474
UIWidget::addChild
void addChild(const UIWidgetPtr &child)
Definition: uiwidget.cpp:138
UIAnchorLayout::removeAnchors
void removeAnchors(const UIWidgetPtr &anchoredWidget)
Definition: uianchorlayout.cpp:127
DatabaseMySQLPtr
stdext::shared_object_ptr< DatabaseMySQL > DatabaseMySQLPtr
Definition: declarations.h:36
UIWidget::isPhantom
bool isPhantom()
Definition: uiwidget.h:243
UIWidget::setImageHeight
void setImageHeight(int height)
Definition: uiwidget.h:432
UIWidget::setIconColor
void setIconColor(const Color &color)
Definition: uiwidget.h:315
g_configs
ConfigManager g_configs
Definition: configmanager.cpp:25
LuaInterface::registerSingletonClass
void registerSingletonClass(const std::string &className)
Definition: luainterface.cpp:79
UIWidget::recursiveGetChildrenByMarginPos
UIWidgetList recursiveGetChildrenByMarginPos(const Point &childPos)
Definition: uiwidget.cpp:1221
UIWidget::containsPoint
bool containsPoint(const Point &point)
Definition: uiwidget.h:252
UITextEdit::appendText
void appendText(std::string text)
Definition: uitextedit.cpp:382
UIWidget::mergeStyle
void mergeStyle(const OTMLNodePtr &styleNode)
Definition: uiwidget.cpp:515
UIManager::getStyleClass
std::string getStyleClass(const std::string &styleName)
Definition: uimanager.cpp:394
OutputMessage::reset
void reset()
Definition: outputmessage.cpp:31
UIWidget::getBorderRightWidth
int getBorderRightWidth()
Definition: uiwidget.h:383
UIWidget::resize
void resize(int width, int height)
Definition: uiwidget.h:217
Platform::killProcess
bool killProcess(const std::string &name)
Definition: unixplatform.cpp:73
Module::getWebsite
std::string getWebsite()
Definition: module.h:53
UITextEdit
Definition: uitextedit.h:29
Crypt::rsaSetPublicKey
void rsaSetPublicKey(const std::string &n, const std::string &e)
Definition: crypt.cpp:239
OutputMessage::setWritePos
void setWritePos(uint16 writePos)
Definition: outputmessage.h:58
UIWidget::getImageBorderLeft
int getImageBorderLeft()
Definition: uiwidget.h:461
UIGridLayout::setFlow
void setFlow(bool enable)
Definition: uigridlayout.h:46
UIWidget::getBorderLeftWidth
int getBorderLeftWidth()
Definition: uiwidget.h:385
UIWidget::setPosition
void setPosition(const Point &pos)
Definition: uiwidget.h:304
PlatformWindow::setTitle
virtual void setTitle(const std::string &title)=0
particlemanager.h
UIWidget::setImageAutoResize
void setImageAutoResize(bool autoResize)
Definition: uiwidget.h:439
PlatformWindow::getClipboardText
virtual std::string getClipboardText()=0
UIWidget::addAnchor
void addAnchor(Fw::AnchorEdge anchoredEdge, const std::string &hookedWidgetId, Fw::AnchorEdge hookedEdge)
Definition: uiwidget.cpp:569
PlatformWindow::hasFocus
bool hasFocus()
Definition: platformwindow.h:91
UIWidget::getRotation
float getRotation()
Definition: uiwidget.h:395
GraphicalApplication::getBackgroundPaneMaxFps
int getBackgroundPaneMaxFps()
Definition: graphicalapplication.h:54
Logger::setOnLog
void setOnLog(const OnLogCallback &onLog)
Definition: logger.h:59
UIWidget::getLastChild
UIWidgetPtr getLastChild()
Definition: uiwidget.h:259
Database::escapeString
virtual std::string escapeString(const std::string &)
Definition: database.h:89
InputMessage::eof
bool eof()
Definition: inputmessage.h:64
UIWidget::getIconOffset
Point getIconOffset()
Definition: uiwidget.h:371
ScheduledEvent::maxCycles
int maxCycles()
Definition: scheduledevent.h:41
UIWidget::setIcon
void setIcon(const std::string &iconFile)
Definition: uiwidgetbasestyle.cpp:402
UIWidget::setBackgroundOffsetX
void setBackgroundOffsetX(int x)
Definition: uiwidget.h:307
UIWidget::bindRectToParent
void bindRectToParent()
Definition: uiwidget.cpp:735
InputMessage::getUnreadSize
int getUnreadSize()
Definition: inputmessage.h:61
UIGridLayout::isUIGridLayout
virtual bool isUIGridLayout()
Definition: uigridlayout.h:53
Graphics::canCacheBackbuffer
bool canCacheBackbuffer()
Definition: graphics.cpp:401
Server::close
void close()
Definition: server.cpp:45
PlatformWindow::isFullscreen
bool isFullscreen()
Definition: platformwindow.h:90
Crypt::getMachineUUID
std::string getMachineUUID()
Definition: crypt.cpp:189
OutputMessage::addPaddingBytes
void addPaddingBytes(int bytes, uint8 byte=0)
Definition: outputmessage.cpp:92
SoundManager::disableAudio
void disableAudio()
Definition: soundmanager.h:44
UIWidget::setPaddingHorizontal
void setPaddingHorizontal(int padding)
Definition: uiwidget.h:343
UIWidget::focus
void focus()
Definition: uiwidget.cpp:663
UILayout::isUIGridLayout
virtual bool isUIGridLayout()
Definition: uilayout.h:55
UIWidget::setTextHorizontalAutoResize
void setTextHorizontalAutoResize(bool textAutoResize)
Definition: uiwidget.h:500
UIWidget::setBorderWidthRight
void setBorderWidthRight(int width)
Definition: uiwidget.h:327
UIWidget::setBackgroundOffsetY
void setBackgroundOffsetY(int y)
Definition: uiwidget.h:308
UIWidget::getX
int getX()
Definition: uiwidget.h:352
UILayout::setParent
void setParent(UIWidgetPtr parentWidget)
Definition: uilayout.h:45
protocolhttp.h
UIWidget::setColor
void setColor(const Color &color)
Definition: uiwidget.h:305
ResourceManager::setupUserWriteDir
bool setupUserWriteDir(const std::string &appWriteDirName)
Definition: resourcemanager.cpp:70
PlatformWindow::show
virtual void show()=0
UIWidget::getTextAlign
Fw::AlignmentFlag getTextAlign()
Definition: uiwidget.h:507
ScheduledEvent::cyclesExecuted
int cyclesExecuted()
Definition: scheduledevent.h:40
Application::getBuildArch
std::string getBuildArch()
Definition: application.h:61
UIWidget::getChildByIndex
UIWidgetPtr getChildByIndex(int index)
Definition: uiwidget.cpp:1152
Application::setVersion
void setVersion(const std::string &version)
Definition: application.h:46
Mouse::addCursor
void addCursor(const std::string &name, const std::string &file, const Point &hotSpot)
Definition: mouse.cpp:55
UIWidget::setBackgroundColor
void setBackgroundColor(const Color &color)
Definition: uiwidget.h:306
Config
Definition: config.h:32
PlatformWindow::maximize
virtual void maximize()=0
crypt.h
Module::canUnload
bool canUnload()
Definition: module.h:41
Config::getList
std::vector< std::string > getList(const std::string &key)
Definition: config.cpp:113
UIWidget::getRootParent
UIWidgetPtr getRootParent()
Definition: uiwidget.cpp:1105
Protocol
Definition: protocol.h:34
UIVerticalLayoutPtr
stdext::shared_object_ptr< UIVerticalLayout > UIVerticalLayoutPtr
Definition: declarations.h:47
UIWidget::show
void show()
Definition: uiwidget.h:221
g_sounds
SoundManager g_sounds
Definition: soundmanager.cpp:36
protocol.h
UIWidget::setIconHeight
void setIconHeight(int height)
Definition: uiwidget.h:320
UITextEdit::cut
std::string cut()
Definition: uitextedit.cpp:491
UITextEdit::setSelectable
void setSelectable(bool selectable)
Definition: uitextedit.h:51
PlatformWindow::resize
virtual void resize(const Size &size)=0
PlatformWindow::getHeight
int getHeight()
Definition: platformwindow.h:78
Event
Definition: event.h:29
ParticleManager::importParticle
bool importParticle(std::string file)
Definition: particlemanager.cpp:29
UIAnchorLayout::centerIn
void centerIn(const UIWidgetPtr &anchoredWidget, const std::string &hookedWidgetId)
Definition: uianchorlayout.cpp:138
UIWidget::setIconAlign
void setIconAlign(Fw::AlignmentFlag align)
Definition: uiwidget.h:324
UITextEdit::getTextTotalSize
Size getTextTotalSize()
Definition: uitextedit.h:77
UIWidget::getImageRect
Rect getImageRect()
Definition: uiwidget.h:453
UIWidget::setIconOffsetX
void setIconOffsetX(int x)
Definition: uiwidget.h:316
UIWidget::getLastFocusReason
Fw::FocusReason getLastFocusReason()
Definition: uiwidget.h:263
UIWidget::getMarginRect
Rect getMarginRect()
Definition: uiwidget.cpp:1061
ResourceManager::getFileTime
ticks_t getFileTime(const std::string &filename)
Definition: resourcemanager.cpp:366
UIWidget::getImageColor
Color getImageColor()
Definition: uiwidget.h:454
UIWidget::getChildBefore
UIWidgetPtr getChildBefore(const UIWidgetPtr &relativeChild)
Definition: uiwidget.cpp:1121
Platform::copyFile
bool copyFile(std::string from, std::string to)
Definition: unixplatform.cpp:94
UIWidget::focusPreviousChild
void focusPreviousChild(Fw::FocusReason reason, bool rotate=false)
Definition: uiwidget.cpp:331
InputMessage::decryptRsa
bool decryptRsa(int size)
Definition: inputmessage.cpp:96
UIWidget::getAutoFocusPolicy
Fw::AutoFocusPolicy getAutoFocusPolicy()
Definition: uiwidget.h:264
Application::getStartupOptions
std::string getStartupOptions()
Definition: application.h:63
UIWidget::setPaddingBottom
void setPaddingBottom(int padding)
Definition: uiwidget.h:347
UIWidget::ungrabMouse
void ungrabMouse()
Definition: uiwidget.cpp:715
UIWidget::getMarginLeft
int getMarginLeft()
Definition: uiwidget.h:389
UIWidget::getBorderBottomColor
Color getBorderBottomColor()
Definition: uiwidget.h:380
UIWidget::getPosition
Point getPosition()
Definition: uiwidget.h:354
Logger::fatal
void fatal(const std::string &what)
Definition: logger.h:55
PlatformWindow::getY
int getY()
Definition: platformwindow.h:82
g_resources
ResourceManager g_resources
Definition: resourcemanager.cpp:32
UIWidget::isFirst
bool isFirst()
Definition: uiwidget.h:231
UIWidget::setBorderWidth
void setBorderWidth(int width)
Definition: uiwidget.h:325
UITextEdit::setCursorVisible
void setCursorVisible(bool enable)
Definition: uitextedit.h:42
UIWidget::setPaddingVertical
void setPaddingVertical(int padding)
Definition: uiwidget.h:344
UIGridLayout::setCellSpacing
void setCellSpacing(int spacing)
Definition: uigridlayout.h:41
UIWidget::getPaddingBottom
int getPaddingBottom()
Definition: uiwidget.h:392
UIManager::clearStyles
void clearStyles()
Definition: uimanager.cpp:312
UIManager::getDraggingWidget
UIWidgetPtr getDraggingWidget()
Definition: uimanager.h:64
soundchannel.h
UIHorizontalLayout
Definition: uihorizontallayout.h:28
ConfigManager::getSettings
ConfigPtr getSettings()
Definition: configmanager.cpp:50
ResourceManager::fileExists
bool fileExists(const std::string &fileName)
Definition: resourcemanager.cpp:157
UITextEdit::setSelection
void setSelection(int start, int end)
Definition: uitextedit.cpp:354
UIWidget::setImageSmooth
void setImageSmooth(bool smooth)
Definition: uiwidget.h:438
PlatformWindow::isKeyPressed
bool isKeyPressed(Fw::Key keyCode)
Definition: platformwindow.h:86
Protocol::enableXteaEncryption
void enableXteaEncryption()
Definition: protocol.h:53
Platform::getFileModificationTime
ticks_t getFileModificationTime(std::string file)
Definition: unixplatform.cpp:112
UIWidget::isHidden
bool isHidden()
Definition: uiwidget.h:239
UITextEdit::clearSelection
void clearSelection()
Definition: uitextedit.h:68
UIWidget::isImageFixedRatio
bool isImageFixedRatio()
Definition: uiwidget.h:455
LuaInterface::bindClassMemberFunction
void bindClassMemberFunction(const std::string &functionName, F FC::*function)
Definition: luainterface.h:385
SoundChannel::setGain
void setGain(float gain)
Definition: soundchannel.cpp:92
ModuleManager::unloadModules
void unloadModules()
Definition: modulemanager.cpp:99
g_window
PlatformWindow & g_window
Definition: platformwindow.cpp:37
UIManager::setDebugBoxesDrawing
void setDebugBoxesDrawing(bool enabled)
Definition: uimanager.h:59
UITextEdit::setMultiline
void setMultiline(bool enable)
Definition: uitextedit.h:47
UIWidget::getChildByPos
UIWidgetPtr getChildByPos(const Point &childPos)
Definition: uiwidget.cpp:1138
UIParticles::addEffect
void addEffect(const std::string &name)
Definition: uiparticles.cpp:71
UIWidget::updateParentLayout
void updateParentLayout()
Definition: uiwidget.cpp:620
UILayout::addWidget
virtual void addWidget(const UIWidgetPtr &)
Definition: uilayout.h:40
Logger::log
void log(Fw::LogLevel level, const std::string &message)
Definition: logger.cpp:37
UIWidget::clearText
void clearText()
Definition: uiwidget.h:493
g_mouse
Mouse g_mouse
Definition: mouse.cpp:28
Application::getName
const std::string & getName()
Definition: application.h:51
UITextEdit::getTextVirtualOffset
Point getTextVirtualOffset()
Definition: uitextedit.h:75
EventDispatcher::cycleEvent
ScheduledEventPtr cycleEvent(const std::function< void()> &callback, int delay)
Definition: eventdispatcher.cpp:93
Application::getBuildDate
std::string getBuildDate()
Definition: application.h:57
GraphicalApplication::setBackgroundPaneMaxFps
void setBackgroundPaneMaxFps(int maxFps)
Definition: graphicalapplication.h:49
OutputMessage::getWritePos
uint16 getWritePos()
Definition: outputmessage.h:55
UIWidget::getBackgroundHeight
int getBackgroundHeight()
Definition: uiwidget.h:365
Module::isLoaded
bool isLoaded()
Definition: module.h:43
Application::setCompactName
void setCompactName(const std::string &compactName)
Definition: application.h:45
Crypt::decrypt
std::string decrypt(const std::string &encrypted_string)
Definition: crypt.h:46
UIWidget::isOn
bool isOn()
Definition: uiwidget.h:236
UIWidget::setImageOffsetX
void setImageOffsetX(int x)
Definition: uiwidget.h:428
InputMessage::peekU64
uint64 peekU64()
Definition: inputmessage.h:55
ResourceManager::searchAndAddPackages
void searchAndAddPackages(const std::string &packagesDir, const std::string &packageExt)
Definition: resourcemanager.cpp:144
Connection
Definition: connection.h:31
UIWidget::getIconAlign
Fw::AlignmentFlag getIconAlign()
Definition: uiwidget.h:377
PlatformWindow::hideMouse
virtual void hideMouse()=0
UIWidget::getBackgroundSize
Size getBackgroundSize()
Definition: uiwidget.h:366
UIWidget::getBackgroundOffsetX
int getBackgroundOffsetX()
Definition: uiwidget.h:361
UIGridLayout::getNumLines
int getNumLines()
Definition: uigridlayout.h:51
UITextEdit::isChangingCursorImage
bool isChangingCursorImage()
Definition: uitextedit.h:85
UIWidget::getFirstChild
UIWidgetPtr getFirstChild()
Definition: uiwidget.h:258
UIWidget::setImageBorder
void setImageBorder(int border)
Definition: uiwidget.h:444
UITextEdit::isShiftNavigation
bool isShiftNavigation()
Definition: uitextedit.h:87
UIWidget::getMarginTop
int getMarginTop()
Definition: uiwidget.h:386
UIVerticalLayout::setAlignBottom
void setAlignBottom(bool aliginBottom)
Definition: uiverticallayout.h:36
g_logger
Logger g_logger
Definition: logger.cpp:35
UIWidget::setIconClip
void setIconClip(const Rect &rect)
Definition: uiwidget.h:323
Server::acceptNext
void acceptNext()
Definition: server.cpp:52
UITextEdit::moveCursorVertically
void moveCursorVertically(bool up)
Definition: uitextedit.cpp:521
g_lua
LuaInterface g_lua
Definition: luainterface.cpp:31
Protocol::setConnection
void setConnection(const ConnectionPtr &connection)
Definition: protocol.h:48
UIWidget::getIconRect
Rect getIconRect()
Definition: uiwidget.h:375
UIBoxLayout::setFitChildren
void setFitChildren(bool fitParent)
Definition: uiboxlayout.h:39
UIGridLayout
Definition: uigridlayout.h:29
UITextEdit::hasSelection
bool hasSelection()
Definition: uitextedit.h:83
UIWidget::setBorderColor
void setBorderColor(const Color &color)
Definition: uiwidget.h:330
UIWidget::getLastClickPosition
Point getLastClickPosition()
Definition: uiwidget.h:268
UITextEdit::setSelectionColor
void setSelectionColor(const Color &color)
Definition: uitextedit.h:52
PlatformWindow::isVisible
bool isVisible()
Definition: platformwindow.h:88
UITextEdit::getSelectionEnd
int getSelectionEnd()
Definition: uitextedit.h:80
UIVerticalLayout
Definition: uiverticallayout.h:29
UIWidget::getChildrenRect
Rect getChildrenRect()
Definition: uiwidget.cpp:1068
GraphicalApplication::setForegroundPaneMaxFps
void setForegroundPaneMaxFps(int maxFps)
Definition: graphicalapplication.h:48
mouse.h
UIWidget::lockChild
void lockChild(const UIWidgetPtr &child)
Definition: uiwidget.cpp:438
Module::getAuthor
std::string getAuthor()
Definition: module.h:52
UIWidget::setTextAutoResize
void setTextAutoResize(bool textAutoResize)
Definition: uiwidget.h:499
Protocol::enableChecksum
void enableChecksum()
Definition: protocol.h:55
UIWidget::setChecked
void setChecked(bool checked)
Definition: uiwidget.cpp:966
MySQLResult::next
virtual bool next()
Definition: mysql.cpp:255
ScheduledEvent::nextCycle
bool nextCycle()
Definition: scheduledevent.cpp:47
UIWidget::getChildById
UIWidgetPtr getChildById(const std::string &childId)
Definition: uiwidget.cpp:1129
UIWidget::focusNextChild
void focusNextChild(Fw::FocusReason reason, bool rotate=false)
Definition: uiwidget.cpp:288
ParticleEffectType::getName
std::string getName()
Definition: particleeffect.h:38
UIWidget::getTextOffset
Point getTextOffset()
Definition: uiwidget.h:508
PlatformWindow::setMinimumSize
virtual void setMinimumSize(const Size &minimumSize)=0
TextureManager::clearCache
void clearCache()
Definition: texturemanager.cpp:64
UIWidget::setOn
void setOn(bool on)
Definition: uiwidget.cpp:961
UIWidget::setDraggable
void setDraggable(bool draggable)
Definition: uiwidget.cpp:993
UIWidget::isFocusable
bool isFocusable()
Definition: uiwidget.h:242
Module::getSandbox
int getSandbox(LuaInterface *lua)
Definition: module.cpp:183
g_particles
ParticleManager g_particles
Definition: particlemanager.cpp:27
UITextEditPtr
stdext::shared_object_ptr< UITextEdit > UITextEditPtr
Definition: declarations.h:43
UIBoxLayout
Definition: uiboxlayout.h:29
UIWidget::setBackgroundOffset
void setBackgroundOffset(const Point &pos)
Definition: uiwidget.h:309
TextureManager::preload
void preload(const std::string &fileName)
Definition: texturemanager.h:39
Graphics::canUseShaders
bool canUseShaders()
Definition: graphics.cpp:279
ModuleManager::autoLoadModules
void autoLoadModules(int maxPriority)
Definition: modulemanager.cpp:55
Application::getBuildType
std::string getBuildType()
Definition: application.h:60
Crypt::setMachineUUID
bool setMachineUUID(std::string uuidstr)
Definition: crypt.cpp:178
UIManager::isMouseGrabbed
bool isMouseGrabbed()
Definition: uimanager.h:68
stdext::listSubnetAddresses
std::vector< uint32 > listSubnetAddresses(uint32 address, uint8 mask)
Definition: net.cpp:43
UIWidget::recursiveGetChildren
UIWidgetList recursiveGetChildren()
Definition: uiwidget.cpp:1191
OutputMessage::addString
void addString(const std::string &buffer)
Definition: outputmessage.cpp:80
InputMessage::getString
std::string getString()
Definition: inputmessage.cpp:80
DBResult::getRowCount
virtual int getRowCount()
Definition: database.h:195
ModuleManager::discoverModule
ModulePtr discoverModule(const std::string &moduleFile)
Definition: modulemanager.cpp:66
EventDispatcher::addEvent
EventPtr addEvent(const std::function< void()> &callback, bool pushFront=false)
Definition: eventdispatcher.cpp:104
UIWidget::setBorderWidthTop
void setBorderWidthTop(int width)
Definition: uiwidget.h:326
DatabaseMySQL::beginTransaction
virtual bool beginTransaction()
Definition: mysql.cpp:95
UIManager::createWidgetFromOTML
UIWidgetPtr createWidgetFromOTML(const OTMLNodePtr &widgetNode, const UIWidgetPtr &parent)
Definition: uimanager.cpp:440
UIWidget::setMarginVertical
void setMarginVertical(int margin)
Definition: uiwidget.h:337
Config::mergeNode
void mergeNode(const std::string &key, const OTMLNodePtr &node)
Definition: config.cpp:137
UIWidget::backwardsGetWidgetById
UIWidgetPtr backwardsGetWidgetById(const std::string &id)
Definition: uiwidget.cpp:1239
UIWidget::getVirtualOffset
Point getVirtualOffset()
Definition: uiwidget.h:266
UIWidget::getImageBorderTop
int getImageBorderTop()
Definition: uiwidget.h:458
StreamSoundSource
Definition: streamsoundsource.h:28
UIWidget::setText
void setText(std::string text, bool dontFireLuaCall=false)
Definition: uiwidgettext.cpp:117
FontManager::setDefaultFont
void setDefaultFont(const std::string &fontName)
Definition: fontmanager.h:43
UIWidget::getImageWidth
int getImageWidth()
Definition: uiwidget.h:450
Application::isRunning
bool isRunning()
Definition: application.h:48
UIWidget::setHeight
void setHeight(int height)
Definition: uiwidget.h:302
ConfigManager::get
ConfigPtr get(const std::string &file)
Definition: configmanager.cpp:55
UIWidget::getBorderRightColor
Color getBorderRightColor()
Definition: uiwidget.h:379
OutputMessage::addU64
void addU64(uint64 value)
Definition: outputmessage.cpp:72
UIWidget::setTextWrap
void setTextWrap(bool textWrap)
Definition: uiwidget.h:498
PlatformWindow::isMaximized
bool isMaximized()
Definition: platformwindow.h:89
UIAnchorLayout::fill
void fill(const UIWidgetPtr &anchoredWidget, const std::string &hookedWidgetId)
Definition: uianchorlayout.cpp:144
SoundManager::play
SoundSourcePtr play(std::string filename, float fadetime=0, float gain=0)
Definition: soundmanager.cpp:169
UITextEdit::getSelectionStart
int getSelectionStart()
Definition: uitextedit.h:79
UIWidget::getParent
UIWidgetPtr getParent()
Definition: uiwidget.h:255
Protocol::getXteaKey
std::vector< uint32 > getXteaKey()
Definition: protocol.cpp:163
UIWidget::getPaddingRight
int getPaddingRight()
Definition: uiwidget.h:391
ResourceManager::makeDir
bool makeDir(const std::string directory)
Definition: resourcemanager.cpp:263
UITextEdit::removeCharacter
void removeCharacter(bool right)
Definition: uitextedit.cpp:439
InputMessage::getU64
uint64 getU64()
Definition: inputmessage.cpp:72
LuaInterface::registerClass
void registerClass(const std::string &className, const std::string &baseClass="LuaObject")
Definition: luainterface.cpp:87
Mouse::isCursorChanged
bool isCursorChanged()
Definition: mouse.cpp:102
UIWidget::setBorderColorRight
void setBorderColorRight(const Color &color)
Definition: uiwidget.h:332
InputMessage::getU32
uint32 getU32()
Definition: inputmessage.cpp:64
g_graphics
Graphics g_graphics
Definition: graphics.cpp:44
UIWidget::getColor
Color getColor()
Definition: uiwidget.h:359
SoundChannel::setEnabled
void setEnabled(bool enable)
Definition: soundchannel.cpp:75
DBResult::getDataInt
virtual int32 getDataInt(const std::string &)
Definition: database.h:163
Protocol::recv
virtual void recv()
Definition: protocol.cpp:93
MySQLResult::getDataLong
virtual int64 getDataLong(const std::string &s)
Definition: mysql.cpp:208
PlatformWindow::setIcon
virtual void setIcon(const std::string &iconFile)=0
Graphics::getVersion
std::string getVersion()
Definition: graphics.h:60
Protocol::isConnected
bool isConnected()
Definition: protocol.cpp:58
UIWidget::moveChildToIndex
void moveChildToIndex(const UIWidgetPtr &child, int index)
Definition: uiwidget.cpp:413
GraphicalApplication::isOnInputEvent
bool isOnInputEvent()
Definition: graphicalapplication.h:56
UIWidget::setParent
void setParent(const UIWidgetPtr &parent)
Definition: uiwidget.cpp:817
OutputMessagePtr
stdext::shared_object_ptr< OutputMessage > OutputMessagePtr
Definition: declarations.h:40
soundmanager.h
UILayout::update
void update()
Definition: uilayout.cpp:28
Platform::fileExists
bool fileExists(std::string file)
Definition: unixplatform.cpp:99
Protocol::send
virtual void send(const OutputMessagePtr &outputMessage)
Definition: protocol.cpp:72
UIWidget::getFont
std::string getFont()
Definition: uiwidget.h:510
OutputMessage::setMessageSize
void setMessageSize(uint16 messageSize)
Definition: outputmessage.h:59
PlatformWindow::setMouseCursor
virtual void setMouseCursor(int cursorId)=0
UIWidget::getIconOffsetX
int getIconOffsetX()
Definition: uiwidget.h:369
InputMessagePtr
stdext::shared_object_ptr< InputMessage > InputMessagePtr
Definition: declarations.h:37
PainterShaderProgram
Definition: paintershaderprogram.h:30
ParticleManager::getEffectsTypes
const std::map< std::string, ParticleEffectTypePtr > & getEffectsTypes()
Definition: particlemanager.h:43
UIWidget::setBorderWidthBottom
void setBorderWidthBottom(int width)
Definition: uiwidget.h:328
UILayout::getParentWidget
UIWidgetPtr getParentWidget()
Definition: uilayout.h:46
Config::getNode
OTMLNodePtr getNode(const std::string &key)
Definition: config.cpp:145
UIWidget::lowerChild
void lowerChild(UIWidgetPtr child)
Definition: uiwidget.cpp:374
platform.h
PlatformWindow::getDisplayHeight
int getDisplayHeight()
Definition: platformwindow.h:72
Config::getFileName
std::string getFileName()
Definition: config.cpp:155
UIWidget::updateLayout
void updateLayout()
Definition: uiwidget.cpp:631
DatabaseMySQL::connect
virtual void connect(const std::string &host, const std::string &user, const std::string &pass, const std::string &db, uint16 port, const std::string &unix_socket="")
Definition: mysql.cpp:46
LuaInterface::bindGlobalFunction
void bindGlobalFunction(const std::string &functionName, const F &function)
Definition: luainterface.h:421
UIWidget::setImageBorderBottom
void setImageBorderBottom(int border)
Definition: uiwidget.h:442
UIWidget::setClipping
void setClipping(bool clipping)
Definition: uiwidget.h:131
InputMessage::peekU32
uint32 peekU32()
Definition: inputmessage.h:54
UIWidget::getWidth
int getWidth()
Definition: uiwidget.h:355
PlatformWindow::hide
virtual void hide()=0
UIWidget::setPhantom
void setPhantom(bool phantom)
Definition: uiwidget.cpp:988
g_app
ConsoleApplication g_app
Definition: consoleapplication.cpp:32
UIWidget::isDraggable
bool isDraggable()
Definition: uiwidget.h:244
UILayout::isUpdateDisabled
bool isUpdateDisabled()
Definition: uilayout.h:48
ResourceManager::getWorkDir
std::string getWorkDir()
Definition: resourcemanager.h:76
Event::isCanceled
bool isCanceled()
Definition: event.h:38
UIWidget::getSize
Size getSize()
Definition: uiwidget.h:357
PlatformWindow::getKeyboardModifiers
int getKeyboardModifiers()
Definition: platformwindow.h:84
UIWidget::setWidth
void setWidth(int width)
Definition: uiwidget.h:301
UIWidget::getDrawText
std::string getDrawText()
Definition: uiwidget.h:506
DBResult::getDataString
virtual std::string getDataString(const std::string &)
Definition: database.h:175
UIWidget::setBorderColorBottom
void setBorderColorBottom(const Color &color)
Definition: uiwidget.h:333
OutputMessage::addU8
void addU8(uint8 value)
Definition: outputmessage.cpp:48
UIWidget::isDisabled
bool isDisabled()
Definition: uiwidget.h:227
UIWidget::getFocusedChild
UIWidgetPtr getFocusedChild()
Definition: uiwidget.h:256
PlatformWindow::getUnmaximizedSize
Size getUnmaximizedSize()
Definition: platformwindow.h:74
SoundChannel::stop
void stop(float fadetime=0)
Definition: soundchannel.cpp:39
UIWidget::isExplicitlyEnabled
bool isExplicitlyEnabled()
Definition: uiwidget.h:240
UIManager::loadUI
UIWidgetPtr loadUI(std::string file, const UIWidgetPtr &parent)
Definition: uimanager.cpp:402
ResourceManager::readFileContents
std::string readFileContents(const std::string &fileName)
Definition: resourcemanager.cpp:185
UIWidget::getIconClip
Rect getIconClip()
Definition: uiwidget.h:376
Graphics::shouldUseShaders
bool shouldUseShaders()
Definition: graphics.h:78
ConfigManager::create
ConfigPtr create(const std::string &file)
Definition: configmanager.cpp:78
stdext::to_string
std::string to_string(const T &t)
Definition: string.h:35
ModuleManager::discoverModules
void discoverModules()
Definition: modulemanager.cpp:37
InputMessage::peekU16
uint16 peekU16()
Definition: inputmessage.h:53
UIWidget::getChildren
UIWidgetList getChildren()
Definition: uiwidget.h:257
UIWidget::setIconWidth
void setIconWidth(int width)
Definition: uiwidget.h:319
UIWidget::setMarginTop
void setMarginTop(int margin)
Definition: uiwidget.h:338
ProtocolHttpPtr
stdext::shared_object_ptr< ProtocolHttp > ProtocolHttpPtr
Definition: declarations.h:43
ResourceManager::addSearchPath
bool addSearchPath(const std::string &path, bool pushFront=false)
Definition: resourcemanager.cpp:108
UIWidget::setStyleFromNode
void setStyleFromNode(const OTMLNodePtr &styleNode)
Definition: uiwidget.cpp:919
UILayout::disableUpdates
void disableUpdates()
Definition: uilayout.h:42
UIWidget::setIconOffsetY
void setIconOffsetY(int y)
Definition: uiwidget.h:317
Clock::micros
ticks_t micros()
Definition: clock.h:36
GraphicalApplication::getForegroundPaneMaxFps
int getForegroundPaneMaxFps()
Definition: graphicalapplication.h:53
Application
Definition: application.h:30
fontmanager.h
UITextEdit::setMaxLength
void setMaxLength(uint maxLength)
Definition: uitextedit.h:48
ConfigManager::load
ConfigPtr load(const std::string &file)
Definition: configmanager.cpp:92
InputMessage::getBuffer
std::string getBuffer()
Definition: inputmessage.h:41
UIWidget::setImageFixedRatio
void setImageFixedRatio(bool fixedRatio)
Definition: uiwidget.h:436
UIWidget::destroyChildren
void destroyChildren()
Definition: uiwidget.cpp:789
UIWidget::setImageSize
void setImageSize(const Size &size)
Definition: uiwidget.h:433
Event::execute
virtual void execute()
Definition: event.cpp:38
UITextEdit::setTextVirtualOffset
void setTextVirtualOffset(const Point &offset)
Definition: uitextedit.cpp:376
ResourceManager::deleteFile
bool deleteFile(const std::string &fileName)
Definition: resourcemanager.cpp:258
UIWidget::setX
void setX(int x)
Definition: uiwidget.h:299
UIWidget::move
void move(int x, int y)
Definition: uiwidget.h:218
UIWidget::grabKeyboard
void grabKeyboard()
Definition: uiwidget.cpp:721
g_ui
UIManager g_ui
Definition: uimanager.cpp:33
Protocol::generateXteaKey
void generateXteaKey()
Definition: protocol.cpp:145
UIWidget::getBorderTopWidth
int getBorderTopWidth()
Definition: uiwidget.h:382
Application::getOs
std::string getOs()
Definition: application.cpp:172
UIWidget::hasChildren
bool hasChildren()
Definition: uiwidget.h:249
ResourceManager::getSearchPaths
std::deque< std::string > getSearchPaths()
Definition: resourcemanager.h:77
OutputMessage::addU32
void addU32(uint32 value)
Definition: outputmessage.cpp:64
Logger::debug
void debug(const std::string &what)
Definition: logger.h:51
UIWidget::isHovered
bool isHovered()
Definition: uiwidget.h:229
Config::exists
bool exists(const std::string &key)
Definition: config.cpp:99
UIWidget::setOpacity
void setOpacity(float opacity)
Definition: uiwidget.h:349
Module
Definition: module.h:32
UIWidget::setAutoRepeatDelay
void setAutoRepeatDelay(int delay)
Definition: uiwidget.h:134
UIManager::displayUI
UIWidgetPtr displayUI(const std::string &file)
Definition: uimanager.h:53
UIWidget::setBorderWidthLeft
void setBorderWidthLeft(int width)
Definition: uiwidget.h:329
UIWidget::isDragging
bool isDragging()
Definition: uiwidget.h:237
Platform::isProcessRunning
bool isProcessRunning(const std::string &name)
Definition: unixplatform.cpp:68
UIWidget::lower
void lower()
Definition: uiwidget.cpp:687
UIGridLayout::setNumColumns
void setNumColumns(int columns)
Definition: uigridlayout.h:42
UIWidget::setBackgroundWidth
void setBackgroundWidth(int width)
Definition: uiwidget.h:310
Graphics::getRenderer
std::string getRenderer()
Definition: graphics.h:59
ScheduledEvent::delay
int delay()
Definition: scheduledevent.h:39
Module::isSandboxed
bool isSandboxed()
Definition: module.h:46
ProtocolHttp
Definition: protocolhttp.h:32
Graphics::getVendor
std::string getVendor()
Definition: graphics.h:58
SoundChannel::disable
void disable()
Definition: soundchannel.h:38
DBResult::next
virtual bool next()
Definition: database.h:190
Database
Definition: database.h:31
PlatformWindow::getX
int getX()
Definition: platformwindow.h:81
UITextEdit::setEditable
void setEditable(bool editable)
Definition: uitextedit.h:50
SoundManager::enableAudio
void enableAudio()
Definition: soundmanager.h:43
stdext::shared_object_ptr< UIWidget >
UITextEdit::isTextHidden
bool isTextHidden()
Definition: uitextedit.h:86
UIWidget::setFixedSize
void setFixedSize(bool fixed)
Definition: uiwidget.cpp:998
UIGridLayout::setNumLines
void setNumLines(int lines)
Definition: uigridlayout.h:43
UITextEdit::setChangeCursorImage
void setChangeCursorImage(bool enable)
Definition: uitextedit.h:43
UITextEdit::getSelectionBackgroundColor
Color getSelectionBackgroundColor()
Definition: uitextedit.h:82
ResourceManager::getWriteDir
std::string getWriteDir()
Definition: resourcemanager.h:75
UIWidget::removeAnchor
void removeAnchor(Fw::AnchorEdge anchoredEdge)
Definition: uiwidget.cpp:580
UIWidget::getIconHeight
int getIconHeight()
Definition: uiwidget.h:373
UIWidget::setLayout
void setLayout(const UILayoutPtr &layout)
Definition: uiwidget.cpp:843
UIWidget::isExplicitlyVisible
bool isExplicitlyVisible()
Definition: uiwidget.h:241
Database::getDatabaseEngine
virtual Fw::DatabaseEngine getDatabaseEngine()
Definition: database.h:122
SoundChannel::isEnabled
bool isEnabled()
Definition: soundchannel.h:44
Protocol::isConnecting
bool isConnecting()
Definition: protocol.cpp:65
UIWidget::setMarginLeft
void setMarginLeft(int margin)
Definition: uiwidget.h:341
Mouse::isPressed
bool isPressed(Fw::MouseButton mouseButton)
Definition: mouse.cpp:107
streamsoundsource.h
UIWidget::getBorderLeftColor
Color getBorderLeftColor()
Definition: uiwidget.h:381
UITextEdit::del
void del(bool right=false)
Definition: uitextedit.cpp:461
UIWidget::setLastFocusReason
void setLastFocusReason(Fw::FocusReason reason)
Definition: uiwidget.cpp:1004
UIWidget::removeChild
void removeChild(UIWidgetPtr child)
Definition: uiwidget.cpp:217
UIWidget::setEnabled
void setEnabled(bool enabled)
Definition: uiwidget.cpp:926
Application::getBuildCommit
std::string getBuildCommit()
Definition: application.h:59
MySQLResult::getRowCount
virtual int getRowCount()
Definition: mysql.h:81
modulemanager.h
UIWidget::setVisible
void setVisible(bool visible)
Definition: uiwidget.cpp:936
UIGridLayout::getNumColumns
int getNumColumns()
Definition: uigridlayout.h:50
UIWidget::setSize
void setSize(const Size &size)
Definition: uiwidget.h:303
SoundChannel::getGain
float getGain()
Definition: soundchannel.h:41
PlatformWindow::getMousePosition
Point getMousePosition()
Definition: platformwindow.h:83
Application::exit
virtual void exit()
Definition: application.cpp:160
UIWidget::getImageBorderRight
int getImageBorderRight()
Definition: uiwidget.h:459
UIWidget::isAlternate
bool isAlternate()
Definition: uiwidget.h:234
UIWidget::getImageBorderBottom
int getImageBorderBottom()
Definition: uiwidget.h:460
PlatformWindow::getDisplaySize
virtual Size getDisplaySize()=0
UIGridLayoutPtr
stdext::shared_object_ptr< UIGridLayout > UIGridLayoutPtr
Definition: declarations.h:48
DBResult::getDataLong
virtual int64 getDataLong(const std::string &)
Definition: database.h:169
UITextEdit::setSelectionBackgroundColor
void setSelectionBackgroundColor(const Color &color)
Definition: uitextedit.h:53
UIWidget::setImageSource
void setImageSource(const std::string &source)
Definition: uiwidgetimage.cpp:178
soundsource.h
ScheduledEvent
Definition: scheduledevent.h:30
config.h
UILayout::isUIHorizontalLayout
virtual bool isUIHorizontalLayout()
Definition: uilayout.h:53
UIWidget::setPaddingRight
void setPaddingRight(int padding)
Definition: uiwidget.h:346
DBResult::free
virtual void free()
Definition: database.h:185
PlatformWindow::showMouse
virtual void showMouse()=0
UITextEdit::moveCursorHorizontally
void moveCursorHorizontally(bool right)
Definition: uitextedit.cpp:503
Clock::millis
ticks_t millis()
Definition: clock.h:37
UIWidget::setVirtualOffset
void setVirtualOffset(const Point &offset)
Definition: uiwidget.cpp:1014
TextureManager::liveReload
void liveReload()
Definition: texturemanager.cpp:70
UIWidget::getChildAfter
UIWidgetPtr getChildAfter(const UIWidgetPtr &relativeChild)
Definition: uiwidget.cpp:1113
UIWidget::setPaddingLeft
void setPaddingLeft(int padding)
Definition: uiwidget.h:348
UIWidget::isDestroyed
bool isDestroyed()
Definition: uiwidget.h:247
Protocol::setXteaKey
void setXteaKey(uint32 a, uint32 b, uint32 c, uint32 d)
Definition: protocol.cpp:155
UIWidget::getIconOffsetY
int getIconOffsetY()
Definition: uiwidget.h:370
UIWidget::getStyle
OTMLNodePtr getStyle()
Definition: uiwidget.h:261
OutputMessage::encryptRsa
void encryptRsa()
Definition: outputmessage.cpp:102
Config::setValue
void setValue(const std::string &key, const std::string &value)
Definition: config.cpp:75
UIWidget::enable
void enable()
Definition: uiwidget.h:223
UIWidget::recursiveGetChildrenByPos
UIWidgetList recursiveGetChildrenByPos(const Point &childPos)
Definition: uiwidget.cpp:1203
UIWidget::getBackgroundColor
Color getBackgroundColor()
Definition: uiwidget.h:360
UIAnchorLayoutPtr
stdext::shared_object_ptr< UIAnchorLayout > UIAnchorLayoutPtr
Definition: declarations.h:51
Database::getUpdateLimiter
virtual std::string getUpdateLimiter()
Definition: database.h:115
GraphicalApplication::getBackgroundPaneFps
int getBackgroundPaneFps()
Definition: graphicalapplication.h:52
OutputMessage::addU16
void addU16(uint16 value)
Definition: outputmessage.cpp:56
PlatformWindow::poll
virtual void poll()=0
g_textures
TextureManager g_textures
Definition: texturemanager.cpp:33
Module::getAutoLoadPriority
int getAutoLoadPriority()
Definition: module.h:56
Config::remove
void remove(const std::string &key)
Definition: config.cpp:124
InputMessage::getReadSize
int getReadSize()
Definition: inputmessage.h:59
UIWidget::applyStyle
void applyStyle(const OTMLNodePtr &styleNode)
Definition: uiwidget.cpp:526
MySQLResult::getDataInt
virtual int32 getDataInt(const std::string &s)
Definition: mysql.cpp:198
UIWidget::getAutoRepeatDelay
int getAutoRepeatDelay()
Definition: uiwidget.h:265
Logger::fireOldMessages
void fireOldMessages()
Definition: logger.cpp:120
UIWidget::getImageOffsetX
int getImageOffsetX()
Definition: uiwidget.h:447
Module::getName
std::string getName()
Definition: module.h:51
Database::getStringComparer
virtual std::string getStringComparer()
Definition: database.h:114
ModuleManager::ensureModuleLoaded
void ensureModuleLoaded(const std::string &moduleName)
Definition: modulemanager.cpp:92
UIWidget::setMarginHorizontal
void setMarginHorizontal(int margin)
Definition: uiwidget.h:336
UIWidget::getImageSize
Size getImageSize()
Definition: uiwidget.h:452
Config::getValue
std::string getValue(const std::string &key)
Definition: config.cpp:104
UIManager::isDrawingDebugBoxes
bool isDrawingDebugBoxes()
Definition: uimanager.h:71
UIWidget::getRect
Rect getRect()
Definition: uiwidget.h:358
LuaInterface::bindSingletonFunction
void bindSingletonFunction(const std::string &functionName, F C::*function, C *instance)
Definition: luainterface.h:366
UIWidget::getY
int getY()
Definition: uiwidget.h:353
Module::canReload
bool canReload()
Definition: module.h:42
UIWidget::setImageBorderLeft
void setImageBorderLeft(int border)
Definition: uiwidget.h:443
UIWidget::getTextSize
Size getTextSize()
Definition: uiwidget.h:511
UIWidget::getBackgroundWidth
int getBackgroundWidth()
Definition: uiwidget.h:364
TPoint< int >
UIManager::isKeyboardGrabbed
bool isKeyboardGrabbed()
Definition: uimanager.h:69
UIManager::importStyle
bool importStyle(std::string file)
Definition: uimanager.cpp:317
ResourceManager::writeFileContents
bool writeFileContents(const std::string &fileName, const std::string &data)
Definition: resourcemanager.cpp:227
Module::isAutoLoad
bool isAutoLoad()
Definition: module.h:55
Platform::getTotalSystemMemory
double getTotalSystemMemory()
Definition: unixplatform.cpp:143
Protocol::getConnection
ConnectionPtr getConnection()
Definition: protocol.h:47
UIHorizontalLayoutPtr
stdext::shared_object_ptr< UIHorizontalLayout > UIHorizontalLayoutPtr
Definition: declarations.h:46
Crypt::encrypt
std::string encrypt(const std::string &decrypted_string)
Definition: crypt.h:45
UIWidget::isClipping
bool isClipping()
Definition: uiwidget.h:246
ResourceManager::setWriteDir
bool setWriteDir(const std::string &writeDir, bool create=false)
Definition: resourcemanager.cpp:90
UIWidget::setFont
void setFont(const std::string &fontName)
Definition: uiwidgettext.cpp:136
server.h
net.h
UIWidget::setBackgroundHeight
void setBackgroundHeight(int height)
Definition: uiwidget.h:311
UITextEdit::isEditable
bool isEditable()
Definition: uitextedit.h:89
EventDispatcher::scheduleEvent
ScheduledEventPtr scheduleEvent(const std::function< void()> &callback, int delay)
Definition: eventdispatcher.cpp:82
UIWidget::getText
std::string getText()
Definition: uiwidget.h:505
UIWidget::raiseChild
void raiseChild(UIWidgetPtr child)
Definition: uiwidget.cpp:394
ConfigManager::loadSettings
ConfigPtr loadSettings(const std::string file)
Definition: configmanager.cpp:65
UIWidget::setId
void setId(const std::string &id)
Definition: uiwidget.cpp:809
SoundManager::setAudioEnabled
void setAudioEnabled(bool enable)
Definition: soundmanager.cpp:135
UIWidget::insertChild
void insertChild(int index, const UIWidgetPtr &child)
Definition: uiwidget.cpp:179
Event::cancel
void cancel()
Definition: event.cpp:49
GraphicalApplication::getForegroundPaneFps
int getForegroundPaneFps()
Definition: graphicalapplication.h:51
UILayout::applyStyle
virtual void applyStyle(const OTMLNodePtr &)
Definition: uilayout.h:39
UIWidget::lock
void lock()
Definition: uiwidget.cpp:645
UIWidget::setImageBorderTop
void setImageBorderTop(int border)
Definition: uiwidget.h:440
CombinedSoundSource
Definition: combinedsoundsource.h:28
Crypt::genUUID
std::string genUUID()
Definition: crypt.cpp:171
UIWidget::getPaddingTop
int getPaddingTop()
Definition: uiwidget.h:390
Mouse::loadCursors
void loadCursors(std::string filename)
Definition: mouse.cpp:39
ProtocolHttp::disconnect
void disconnect()
Definition: protocolhttp.cpp:46
Application::setName
void setName(const std::string &name)
Definition: application.h:44
Logger::setLogFile
void setLogFile(const std::string &file)
Definition: logger.cpp:132
UIWidget::isFocused
bool isFocused()
Definition: uiwidget.h:228
OutputMessage
Definition: outputmessage.h:30
UIWidget::rotate
void rotate(float degrees)
Definition: uiwidget.h:219
TSize< int >
UIGridLayout::setCellWidth
void setCellWidth(int width)
Definition: uigridlayout.h:39
g_clock
Clock g_clock
Definition: clock.cpp:25
UIWidget::getImageOffset
Point getImageOffset()
Definition: uiwidget.h:449
UIWidget::grabMouse
void grabMouse()
Definition: uiwidget.cpp:707
PlatformWindow::isMouseButtonPressed
bool isMouseButtonPressed(Fw::MouseButton mouseButton)
Definition: platformwindow.h:87
UIWidget::setMargin
void setMargin(int margin)
Definition: uiwidget.h:335
UIWidget::recursiveGetChildById
UIWidgetPtr recursiveGetChildById(const std::string &id)
Definition: uiwidget.cpp:1160
ShaderProgram
Definition: shaderprogram.h:30
UITextEdit::getCursorPos
int getCursorPos()
Definition: uitextedit.h:74
Application::registerLuaFunctions
void registerLuaFunctions()
Definition: luafunctions.cpp:64
UIWidget::getBorderTopColor
Color getBorderTopColor()
Definition: uiwidget.h:378
Platform::spawnProcess
bool spawnProcess(std::string process, const std::vector< std::string > &args)
Definition: unixplatform.cpp:39
UIManager::createWidget
UIWidgetPtr createWidget(const std::string &styleName, const UIWidgetPtr &parent)
Definition: uimanager.cpp:429
Database::isConnected
bool isConnected()
Definition: database.h:131
UIWidget::getChildIndex
int getChildIndex(const UIWidgetPtr &child)
Definition: uiwidget.cpp:1043
UIWidget::setTextOffset
void setTextOffset(const Point &offset)
Definition: uiwidget.h:497
ProtocolHttp::send
void send(const std::string &message)
Definition: protocolhttp.cpp:54
PlatformWindow::move
virtual void move(const Point &pos)=0
UIWidget::setMarginBottom
void setMarginBottom(int margin)
Definition: uiwidget.h:340
Module::isReloadable
bool isReloadable()
Definition: module.h:44
UIWidget::setBackgroundSize
void setBackgroundSize(const Size &size)
Definition: uiwidget.h:312
UIWidget::isLast
bool isLast()
Definition: uiwidget.h:233
UITextEdit::getMaxLength
uint getMaxLength()
Definition: uitextedit.h:78
Module::getVersion
std::string getVersion()
Definition: module.h:54
uint8
uint8_t uint8
Definition: types.h:37
UIWidget::setRect
bool setRect(const Rect &rect)
Definition: uiwidget.cpp:870
InputMessage::getMessageSize
uint16 getMessageSize()
Definition: inputmessage.h:62
UIWidget::setBorderColorTop
void setBorderColorTop(const Color &color)
Definition: uiwidget.h:331
UIWidget::setBorderColorLeft
void setBorderColorLeft(const Color &color)
Definition: uiwidget.h:334
ConfigManager::unload
bool unload(const std::string &file)
Definition: configmanager.cpp:115
UIWidget::setImageBorderRight
void setImageBorderRight(int border)
Definition: uiwidget.h:441
UIWidget::setIconSize
void setIconSize(const Size &size)
Definition: uiwidget.h:321
UIWidget::getBorderBottomWidth
int getBorderBottomWidth()
Definition: uiwidget.h:384
Platform::getProcessId
int getProcessId()
Definition: unixplatform.cpp:63
ProtocolHttp::recv
void recv()
Definition: protocolhttp.cpp:60
Logger::info
void info(const std::string &what)
Definition: logger.h:52
g_modules
ModuleManager g_modules
Definition: modulemanager.cpp:29
UITextEdit::blinkCursor
void blinkCursor()
Definition: uitextedit.cpp:455
UIWidget::getIconColor
Color getIconColor()
Definition: uiwidget.h:368
UIWidget::hasChild
bool hasChild(const UIWidgetPtr &child)
Definition: uiwidget.cpp:1035
UITextEdit::isCursorVisible
bool isCursorVisible()
Definition: uitextedit.h:84
Clock::seconds
float seconds()
Definition: clock.h:38
PlatformWindow::getDisplayWidth
int getDisplayWidth()
Definition: platformwindow.h:71
ResourceManager::guessFilePath
std::string guessFilePath(const std::string &filename, const std::string &type)
Definition: resourcemanager.cpp:352
ResourceManager::getUserDir
std::string getUserDir()
Definition: resourcemanager.cpp:347
application.h
Module::reload
bool reload()
Definition: module.cpp:152
Logger::warning
void warning(const std::string &what)
Definition: logger.h:53
Server::create
static ServerPtr create(int port)
Definition: server.cpp:33
Application::getVersion
const std::string & getVersion()
Definition: application.h:53
UIWidget::isVisible
bool isVisible()
Definition: uiwidget.h:238
UIManager::getRootWidget
UIWidgetPtr getRootWidget()
Definition: uimanager.h:67
g_platform
Platform g_platform
Definition: platform.cpp:25
UIWidget::getStyleName
std::string getStyleName()
Definition: uiwidget.h:267
SoundChannel
Definition: soundchannel.h:29
DBResult
Definition: database.h:153
UIWidget::getTextWrap
bool getTextWrap()
Definition: uiwidget.h:509