25 #ifndef TGUI_GLOBAL_HPP
26 #define TGUI_GLOBAL_HPP
30 #include <TGUI/Config.hpp>
31 #include <TGUI/Exception.hpp>
32 #include <TGUI/Duration.hpp>
33 #include <TGUI/Font.hpp>
34 #include <TGUI/Filesystem.hpp>
Wrapper for durations.
Definition: Duration.hpp:52
Object to represent paths on a filesystem.
Definition: Filesystem.hpp:56
Wrapper class to store strings.
Definition: String.hpp:74
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
TGUI_API void setDoubleClickTime(Duration duration)
Sets the double-click time for the mouse.
TGUI_API void setGlobalTextSize(unsigned int textSize)
Sets the default text size for all widgets created after calling the function.
TGUI_API void setEditCursorBlinkRate(Duration blinkRate)
Changes the blink rate of the cursor in edit fields such as EditBox and TextArea.
TGUI_API void setResourcePath(const Filesystem::Path &path)
Sets a new resource path.
TGUI_API Duration getDoubleClickTime()
Retrieves the double-click time for the mouse.
TGUI_API Duration getEditCursorBlinkRate()
Returns the blink rate of the cursor in edit fields such as EditBox and TextArea.
std::unique_ptr< std::uint8_t[]> readFileToMemory(const String &filename, std::size_t &fileSize)
Opens a file and reads its contents into memory.
TGUI_API const Filesystem::Path & getResourcePath()
Returns the resource path.
TGUI_API unsigned int getGlobalTextSize()
Retrieves the default text size used for all new widgets.