29#ifndef NOMLIB_GUI_UIMESSAGEBOX_HPP
30#define NOMLIB_GUI_UIMESSAGEBOX_HPP
34#include "nomlib/config.hpp"
35#include "nomlib/gui/UIWidget.hpp"
36#include "nomlib/math/Point2.hpp"
37#include "nomlib/math/Size2.hpp"
38#include "nomlib/math/Rect.hpp"
50 typedef self_type* raw_ptr;
65 std::string title_text()
const;
79 uint32 title_alignment()
const;
81 std::string message_text()
const;
95 uint32 message_alignment()
const;
97 const std::string& message_id()
const;
105 void set_title(
const std::string& text,
const std::string& font, uint point_size );
131 void set_message(
const std::string& text,
const std::string& font, uint point_size );
153 void set_message_id(
const std::string&
id );
156 std::string message_id_;
void set_title(const std::string &text, const std::string &font, uint point_size)
Set the title (caption) text of the message box.
virtual ~UIMessageBox()
Destructor.
UIMessageBox()
Default constructor; initialize default element IDs.
void set_title_alignment(uint32 align)
Set the title (caption) text's alignment.
void set_title_font_size(int point_size)
Set the title (caption) text's font size.
IntRect message_bounds() const
Obtain the rectangle bounds of the message string.
IntRect title_bounds() const
Obtain the rectangle bounds of the title string.
void set_message_alignment(uint32 align)
Set the message text's alignment.
void set_message_text(const std::string &text)
Set the message text label.
void set_message_font_size(int point_size)
Set the message text's font size.
void set_message(const std::string &text, const std::string &font, uint point_size)
Set the message text label.
void set_title_font(const std::string &font)
Set the title (caption) text's font.
void set_title_text(const std::string &text)
Set the title (caption) text of the message box.
void set_message_font(const std::string &font)
Set the message text's font.