popup_t Struct Reference |
Public Types | |
typedef popup_extended_setter_type | extended_setter_type |
typedef popup_extended_setter_type | extended_setter_type |
typedef std::vector< menu_item_t > | menu_item_set_t |
typedef std::pair< std::string, any_regular_t > | menu_item_t |
typedef any_regular_t | model_type |
typedef any_regular_t | model_type |
typedef popup_setter_type | setter_type |
typedef popup_setter_type | setter_type |
Public Member Functions | |
void | display (const any_regular_t &item) |
void | enable (bool make_enabled) |
void | measure (extents_t &result) |
void | monitor (const setter_type &proc) |
void | monitor_extended (const extended_setter_type &extended_proc) |
void | monitor_extended (const extended_setter_type &proc) |
void | place (const place_data_t &place_data) |
popup_t (const std::string &name, const std::string &alt_text, const std::string &custom_item_name, const menu_item_t *first, const menu_item_t *last, theme_t theme) | |
popup_t (const std::string &name, const std::string &alt_text, const std::string &custom_item_name, const menu_item_t *first, const menu_item_t *last, theme_t theme) | |
void | reset_menu_item_set (const menu_item_t *first, const menu_item_t *last) |
void | reset_menu_item_set (const menu_item_set_t &menu_item_set) |
void | reset_menu_item_set (const menu_item_t *first, const menu_item_t *last) |
void | reset_menu_item_set (const menu_item_set_t &menu_item_set) |
void | select_with_text (const std::string &text) |
void | select_with_text (const std::string &text) |
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) |
View Concept Operations | |
See the View concept and view::hpp for more information. | |
void | display (const any_regular_t &value) |
Controller Concept Operations | |
See the Controller concept and controller::hpp for more information. | |
void | monitor (const setter_type &proc) |
void | enable (bool make_enabled) |
Public Attributes | |
std::string | alt_text_m |
HWND | control_m |
std::string | custom_item_name_m |
bool | custom_m |
extended_setter_type | extended_value_proc_m |
model_type | last_m |
menu_item_set_t | menu_items_m |
label_t | name_m |
long | popup_baseline_m |
long | popup_height_m |
long | static_baseline_m |
long | static_height_m |
theme_t | theme_m |
bool | type_2_debounce_m |
bool | using_label_m |
setter_type | value_proc_m |
Detailed Description
- Model Of:
The semantics of a popup are that of a selector between enumerated values. One would use it when you have a specific set of options from which the user may choose one. At this time the selection of multiple options in the popup at once is not supported.
Definition at line 98 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.
Member Typedef Documentation
Definition at line 105 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 36 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
typedef std::vector<menu_item_t> menu_item_set_t |
Definition at line 32 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
typedef std::pair<std::string, any_regular_t> menu_item_t |
Definition at line 31 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
typedef any_regular_t model_type |
Definition at line 34 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
typedef any_regular_t model_type |
model type for this widget
Definition at line 101 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.
typedef popup_setter_type setter_type |
controller callback proc type for this widget
Definition at line 104 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.
typedef popup_setter_type setter_type |
Definition at line 35 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Constructor & Destructor Documentation
popup_t | ( | const std::string & | name, |
const std::string & | alt_text, | ||
const std::string & | custom_item_name, | ||
const menu_item_t * | first, | ||
const menu_item_t * | last, | ||
theme_t | theme | ||
) |
- Parameters:
-
name Name of the widget alt_text Additional help text for the widget when the user pauses over it custom_item_name Name to be used for when no item in the cell matches a popup item first The first menu item in the list last One-past-the-back of the menu item list theme Theme for the widget
popup_t | ( | const std::string & | name, |
const std::string & | alt_text, | ||
const std::string & | custom_item_name, | ||
const menu_item_t * | first, | ||
const menu_item_t * | last, | ||
theme_t | theme | ||
) |
Member Function Documentation
void display | ( | const any_regular_t & | value ) |
void display | ( | const any_regular_t & | item ) |
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 monitor_extended | ( | const extended_setter_type & | extended_proc ) |
void monitor_extended | ( | const extended_setter_type & | proc ) |
void place | ( | const place_data_t & | place_data ) |
void place | ( | const place_data_t & | place_data ) |
void reset_menu_item_set | ( | const menu_item_t * | first, |
const menu_item_t * | last | ||
) |
void reset_menu_item_set | ( | const menu_item_set_t & | menu_item_set ) |
Definition at line 47 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
void reset_menu_item_set | ( | const menu_item_t * | first, |
const menu_item_t * | last | ||
) |
- Parameters:
-
first The first menu item in the list last One-past-the-back of the menu item list
Resets the popup with a new list of menu items.
void reset_menu_item_set | ( | const menu_item_set_t & | menu_item_set ) |
Resets the popup with a new list of menu items.
Definition at line 138 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.
void select_with_text | ( | const std::string & | text ) |
- Parameters:
-
text the text to match to the popup menu entry
Tries to set the currently selected option in the popup by matching a string
void select_with_text | ( | const std::string & | text ) |
Member Data Documentation
std::string alt_text_m |
Definition at line 72 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
HWND control_m |
Definition at line 69 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
std::string custom_item_name_m |
Definition at line 84 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
bool custom_m |
Definition at line 83 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 79 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 81 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 80 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 71 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
long popup_baseline_m |
Definition at line 75 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
long popup_height_m |
Definition at line 76 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
long static_baseline_m |
Definition at line 73 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
long static_height_m |
Definition at line 74 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 70 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
bool type_2_debounce_m |
Definition at line 82 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
bool using_label_m |
Definition at line 77 of file windows/adobe/future/widgets/headers/platform_popup.hpp.
Definition at line 78 of file windows/adobe/future/widgets/headers/platform_popup.hpp.