25#ifndef TGUI_GLOBAL_HPP
26#define TGUI_GLOBAL_HPP
30#include <TGUI/Config.hpp>
31#include <TGUI/Exception.hpp>
32#include <TGUI/Font.hpp>
76 TGUI_API
const std::shared_ptr<sf::Font>& getInternalGlobalFont();
129 TGUI_API
bool compareFloats(
float x,
float y);
131#ifndef TGUI_REMOVE_DEPRECATED_CODE
136 TGUI_DEPRECATED(
"Use strToInt instead") TGUI_API
int stoi(const std::
string& value);
143 TGUI_DEPRECATED("Use
strToFloat instead") TGUI_API
float stof(const std::
string& value);
150 TGUI_DEPRECATED("This function will be removed") TGUI_API
bool extractBoolFromString(const std::
string& property, const std::
string& value);
158 TGUI_API
bool removeWhitespace(
const std::string& line, std::string::const_iterator& c);
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37
TGUI_API unsigned int getEditCursorBlinkRate()
Returns the blink rate of the cursor in edit fields such as EditBox and TextBox.
TGUI_API void setGlobalFont(const Font &font)
Sets the default font used by widgets.
TGUI_API void setResourcePath(const std::string &path)
Sets a new resource path.
TGUI_API float strToFloat(const std::string &str, float defaultValue=0)
Converts a string to a float.
TGUI_API const std::string & getResourcePath()
Returns the resource path.
TGUI_API void setGlobalTextSize(unsigned int textSize)
Sets the default text size for all widgets created after calling the function.
TGUI_API void setEditCursorBlinkRate(unsigned int blinkRateMilliseconds)
Changes the blink rate of the cursor in edit fields such as EditBox and TextBox.
TGUI_API Font getGlobalFont()
Retrieves the default font used for all new widgets.
TGUI_API void setDoubleClickTime(unsigned int milliseconds)
Sets the double-click time for the mouse.
TGUI_API unsigned int getDoubleClickTime()
Retrieves the double-click time for the mouse.
TGUI_API unsigned int getGlobalTextSize()
Retrieves the default text size used for all new widgets.