|
| | UIMessageBox () |
| | Default constructor; initialize default element IDs.
|
|
virtual | ~UIMessageBox () |
| | Destructor.
|
|
bool | enabled () const |
|
std::string | title_text () const |
| IntRect | title_bounds () const |
| | Obtain the rectangle bounds of the title string.
|
|
uint32 | title_alignment () const |
|
std::string | message_text () const |
| IntRect | message_bounds () const |
| | Obtain the rectangle bounds of the message string.
|
|
uint32 | message_alignment () const |
|
const std::string & | message_id () const |
|
void | disable () |
|
void | enable () |
| void | set_title (const std::string &text, const std::string &font, uint point_size) |
| | Set the title (caption) text of the message box.
|
|
void | set_title_text (const std::string &text) |
| | Set the title (caption) text of the message box.
|
|
void | set_title_font (const std::string &font) |
| | Set the title (caption) text's font.
|
|
void | set_title_font_size (int point_size) |
| | Set the title (caption) text's font size.
|
| void | set_title_alignment (uint32 align) |
| | Set the title (caption) text's alignment.
|
| void | set_message (const std::string &text, const std::string &font, uint point_size) |
| | Set the message text label.
|
|
void | set_message_text (const std::string &text) |
| | Set the message text label.
|
|
void | set_message_font (const std::string &font) |
| | Set the message text's font.
|
|
void | set_message_font_size (int point_size) |
| | Set the message text's font size.
|
| void | set_message_alignment (uint32 align) |
| | Set the message text's alignment.
|
|
void | set_message_id (const std::string &id) |
| | UIWidget () |
| | Default constructor; initialize default title element ID.
|
|
virtual | ~UIWidget () |
| | Destructor.
|
| virtual Point2i | position () const |
| | Get the position of the widget.
|
| virtual Size2i | size () const |
| | Get the size of the widget.
|
| virtual void | set_position (const Point2i &pos) |
| | Set the position of the widget.
|
| virtual void | set_size (const Size2i &dims) |
| | Set the size of the widget.
|
| UIContext * | context () const |
| rocket::ElementDocument * | document () const |
|
bool | valid () const |
|
bool | valid (rocket::Element *target) const |
|
bool | visible () const |
|
const std::string & | title_id () const |
|
std::string | title () const |
| uint32 | text_alignment (rocket::Element *target) const |
| | Get an element's text alignment.
|
|
bool | set_context (UIContext *ctx) |
|
bool | load_document_file (const std::string &filename) |
|
void | show () |
|
void | hide () |
|
void | close () |
| void | set_focus (uint32 focus=FocusPolicy::FOCUS) |
| | Set the focus policy.
|
|
bool | hit_test (rocket::Element *target, const Point2i &pt) |
| | Perform a bounds coordinates collision test.
|
|
void | set_title (const std::string &text) |
|
void | set_title_id (const std::string &id) |
|
void | set_font (rocket::Element *target, const std::string &font) |
|
void | set_font_size (rocket::Element *target, int point_size) |
|
bool | set_alignment (uint32 alignment) |
| void | set_text_alignment (rocket::Element *element, uint32 alignment) |
| void | register_event_listener (rocket::Element *element, const std::string &ev, UIEventListener *observer, bool interruptible=false) |
| | Register an event listener for an element.
|
Simple message box model.
- Todo
- Check for valid element IDs
Definition at line 45 of file UIMessageBox.hpp.