![]() |
nomlib
|
Simple question dialog model. More...
#include <UIQuestionDialogBox.hpp>
Public Types | |
| typedef UIQuestionDialogBox | self_type |
| typedef self_type * | raw_ptr |
| Public Types inherited from nom::UIWidget | |
| enum | FocusPolicy { NONE = rocket::ElementDocument::FocusFlags::NONE , FOCUS = rocket::ElementDocument::FocusFlags::FOCUS , MODAL = rocket::ElementDocument::FocusFlags::MODAL } |
| typedef UIWidget | self_type |
| typedef self_type * | raw_ptr |
Public Member Functions | |
| UIQuestionDialogBox () | |
| Default constructor; initialize default element IDs. | |
| virtual | ~UIQuestionDialogBox () |
| Destructor. | |
| const std::string & | response_id () const |
| The ID selector used to search for the number of children; the response elements to index, i.e.: form tag ID. | |
| const std::string & | element_type () const |
| The element tag to use for indexing as a possible response choice (i.e.: button). | |
| nom::size_type | num_responses () const |
| int | selection () const |
| Obtain the current selection index (position) of the responses. | |
| std::vector< std::string > | responses () const |
| Get the response element IDs. | |
| std::string | response (int pos) const |
| void | set_response_id (const std::string &id) |
| void | set_element_type (const std::string &type) |
| void | set_selection (int pos) |
| Set the current selection index (position). | |
| Public Member Functions inherited from nom::UIWidget | |
| 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. | |
Private Attributes | |
| std::string | response_id_ |
| std::string | element_type_ |
| int | selection_ |
| Selected item, identified by its index (position). | |
Simple question dialog model.
[DESCRIPTION STUB]
Usage example:
Definition at line 46 of file UIQuestionDialogBox.hpp.
| typedef self_type* nom::UIQuestionDialogBox::raw_ptr |
Definition at line 50 of file UIQuestionDialogBox.hpp.
| typedef UIQuestionDialogBox nom::UIQuestionDialogBox::self_type |
Definition at line 49 of file UIQuestionDialogBox.hpp.
| nom::UIQuestionDialogBox::UIQuestionDialogBox | ( | ) |
Default constructor; initialize default element IDs.
| int nom::UIQuestionDialogBox::selection | ( | ) | const |
Obtain the current selection index (position) of the responses.
|
private |
Definition at line 89 of file UIQuestionDialogBox.hpp.
|
private |
Definition at line 88 of file UIQuestionDialogBox.hpp.
|
private |
Selected item, identified by its index (position).
Definition at line 92 of file UIQuestionDialogBox.hpp.