26 #ifndef TGUI_MESSAGE_BOX_HPP 27 #define TGUI_MESSAGE_BOX_HPP 30 #include <TGUI/Label.hpp> 31 #include <TGUI/Button.hpp> 32 #include <TGUI/ChildWindow.hpp> 97 bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"MessageBox");
109 void setText(
const sf::String& text);
118 sf::String getText()
const;
130 void setTextFont(
const sf::Font& font);
139 const sf::Font* getTextFont()
const;
148 void setTextColor(
const sf::Color& color);
157 const sf::Color& getTextColor()
const;
168 void setTextSize(
unsigned int size);
177 unsigned int getTextSize()
const;
189 void addButton(
const sf::String& buttonCaption);
197 virtual bool setProperty(std::string property,
const std::string& value);
204 virtual bool getProperty(std::string property, std::string& value)
const;
212 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
227 void ButtonClickedCallbackFunction(
const Callback& callback);
238 ButtonClicked = ChildWindowCallbacksCount * 1,
239 AllMessageBoxCallbacks = ChildWindowCallbacksCount * 2 - 1,
240 MessageBoxCallbacksCount = ChildWindowCallbacksCount * 2
247 std::string m_LoadedConfigFile;
248 std::string m_ButtonConfigFileFilename;
250 std::vector<Button::Ptr> m_Buttons;
254 unsigned int m_TextSize;
262 #endif // TGUI_MESSAGE_BOX_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
MessageBoxCallbacks
Defines specific triggers to MessageBox.
Definition: MessageBox.hpp:236
Movable Panel with title bar.
Definition: ChildWindow.hpp:41
Definition: Callback.hpp:45
Definition: MessageBox.hpp:40