toggle_t Struct Reference | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef boost::gil::rgba8_image_t | image_type |
| typedef boost::gil::rgba8_image_t | image_type |
| typedef any_regular_t | model_type |
| typedef any_regular_t | model_type |
| typedef boost::function< void(const model_type &)> | setter_type |
| typedef boost::function< void(const model_type &)> | setter_type |
Public Member Functions | |
| void | display (const any_regular_t &to_value) |
| void | enable (bool make_enabled) |
| void | measure (extents_t &result) |
| void | monitor (const setter_type &proc) |
| void | place (const place_data_t &place_data) |
| toggle_t (const std::string &alt_text, const any_regular_t value_on, const image_type &image_on, const image_type &image_off, const image_type &image_disabled, theme_t theme) | |
| toggle_t (const std::string &alt_text, const any_regular_t value_on, const image_type &image_on, const image_type &image_off, const image_type &image_disabled, theme_t theme) | |
Placeable Concept Operations | |
See the Placeable concept and placeable::hpp for more information. | |
| void | measure (extents_t &result) |
| void | place (const place_data_t &place_data) |
Controller Concept Operations | |
See the Controller concept and controller::hpp for more information. | |
| void | monitor (const setter_type &proc) |
| void | enable (bool make_enabled) |
View Concept Operations | |
See the View concept and view::hpp for more information. | |
| void | display (const any_regular_t &to_value) |
Detailed Description
- Model Of:
Definition at line 67 of file macintosh/adobe/future/widgets/headers/platform_toggle.hpp.
Member Typedef Documentation
| typedef boost::gil::rgba8_image_t image_type |
Image type for this widget
Definition at line 76 of file macintosh/adobe/future/widgets/headers/platform_toggle.hpp.
| typedef boost::gil::rgba8_image_t image_type |
Definition at line 37 of file windows/adobe/future/widgets/headers/platform_toggle.hpp.
| typedef any_regular_t model_type |
Definition at line 33 of file windows/adobe/future/widgets/headers/platform_toggle.hpp.
| typedef any_regular_t model_type |
The model type for this widget
Definition at line 70 of file macintosh/adobe/future/widgets/headers/platform_toggle.hpp.
| typedef boost::function<void (const model_type&)> setter_type |
Setter type for this widget
Definition at line 73 of file macintosh/adobe/future/widgets/headers/platform_toggle.hpp.
| typedef boost::function<void (const model_type&)> setter_type |
Definition at line 35 of file windows/adobe/future/widgets/headers/platform_toggle.hpp.
Constructor & Destructor Documentation
| toggle_t | ( | const std::string & | alt_text, |
| const any_regular_t | value_on, | ||
| const image_type & | image_on, | ||
| const image_type & | image_off, | ||
| const image_type & | image_disabled, | ||
| theme_t | theme | ||
| ) |
Constructor.
| toggle_t | ( | const std::string & | alt_text, |
| const any_regular_t | value_on, | ||
| const image_type & | image_on, | ||
| const image_type & | image_off, | ||
| const image_type & | image_disabled, | ||
| theme_t | theme | ||
| ) |
Member Function Documentation
| void display | ( | const any_regular_t & | to_value ) |
- Note:
- When the new value is set for the widget it will be compared to the show-value specified when the widget was created. If the new value matches the show-value, the widget will be rendered in its 'show' state. Otherwise, the widget will be rendered in its 'hide' state.
| void display | ( | const any_regular_t & | to_value ) |
| void enable | ( | bool | make_enabled ) |
| void enable | ( | bool | make_enabled ) |
| void measure | ( | extents_t & | result ) |
| void measure | ( | extents_t & | result ) |
| void monitor | ( | const setter_type & | proc ) |
| void monitor | ( | const setter_type & | proc ) |
| void place | ( | const place_data_t & | place_data ) |
| void place | ( | const place_data_t & | place_data ) |

