Display number view.
More...
#include <platform_display_number.hpp>
List of all members.
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.
- Model Of:
-
Definition at line 47 of file macintosh/adobe/future/widgets/headers/platform_display_number.hpp.
Member Typedef Documentation
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 91 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 initialize |
( |
HWND |
parent ) |
|
Member Data Documentation