display_number_t Struct ReferenceDisplay number view.
More...
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef double | model_type |
| typedef double | model_type |
| typedef std::vector< unit_t > | unit_set_t |
| typedef std::vector< unit_t > | unit_set_t |
Public Member Functions | |
| void | display (const model_type &value) |
| template<class ForwardIterator > | |
| display_number_t (const std::string &name, const std::string &alt_text, ForwardIterator first, ForwardIterator last, theme_t theme, int characters) | |
| template<class ForwardIterator > | |
| display_number_t (const std::string &name, const std::string &alt_text, ForwardIterator first, ForwardIterator last, theme_t theme, int characters) | |
| void | initialize (HWND parent) |
| void | measure (extents_t &result) |
| void | measure_vertical (extents_t &calculated_horizontal, const place_data_t &placed_horizontal) |
| void | place (const place_data_t &place_data) |
Public Attributes | |
| std::string | alt_text_m |
| RECT | bounds_m |
| int | characters_m |
| WNDPROC | default_window_proc_m |
| std::wstring::size_type | label_chars_m |
| std::string | name_m |
| theme_t | theme_m |
| unit_set_t | unit_set_m |
| HWND | window_m |
Detailed Description
The semantics of a display number view are similar to that of a traditional label (aka static text). The two exceptions are these: first, the display_number view models a View, so it can be bound to the property model as such. Second, it has the ability to format the value received from the property model before displaing it to the user. This gives the display_number view the ability to conform the value coming from the property model into something the user is more able to understand.The display_number_t view models the two-pass Placeable concept. This means that its height is measured after its width has been derived by the layout engine.
Definition at line 53 of file macintosh/adobe/future/widgets/headers/platform_display_number.hpp.
Member Typedef Documentation
| typedef double model_type |
Definition at line 31 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| typedef double model_type |
The model type for this view
Definition at line 56 of file macintosh/adobe/future/widgets/headers/platform_display_number.hpp.
| typedef std::vector<unit_t> unit_set_t |
Definition at line 33 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| typedef std::vector<unit_t> unit_set_t |
Definition at line 58 of file macintosh/adobe/future/widgets/headers/platform_display_number.hpp.
Constructor & Destructor Documentation
| display_number_t | ( | const std::string & | name, | |
| const std::string & | alt_text, | |||
| ForwardIterator | first, | |||
| ForwardIterator | last, | |||
| theme_t | theme, | |||
| int | characters | |||
| ) |
- Parameters:
-
name is the name of the view. Typically shown as a label alt_text is additional information to be shown to the user when they hover over the view with the mouse. first is the first unit_t decorator for this view last is one-past-the-last unit_t decorator for this view theme details additional visual attributes for the view characters is the minimum width of this placeable view, not including its name.
Definition at line 97 of file macintosh/adobe/future/widgets/headers/platform_display_number.hpp.
| display_number_t | ( | const std::string & | name, | |
| const std::string & | alt_text, | |||
| ForwardIterator | first, | |||
| ForwardIterator | last, | |||
| theme_t | theme, | |||
| int | characters | |||
| ) |
Member Function Documentation
| void display | ( | const model_type & | value | ) |
| void initialize | ( | HWND | parent | ) |
| void measure | ( | extents_t & | result | ) |
| void measure_vertical | ( | extents_t & | calculated_horizontal, | |
| const place_data_t & | placed_horizontal | |||
| ) |
| void place | ( | const place_data_t & | place_data | ) |
Member Data Documentation
| std::string alt_text_m |
Definition at line 47 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| RECT bounds_m |
Definition at line 45 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| int characters_m |
Definition at line 51 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| WNDPROC default_window_proc_m |
Definition at line 44 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| std::wstring::size_type label_chars_m |
Definition at line 50 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| std::string name_m |
Definition at line 46 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
Definition at line 49 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
Definition at line 48 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.
| HWND window_m |
Definition at line 43 of file windows/adobe/future/widgets/headers/platform_display_number.hpp.

