stlab.adobe.com Adobe Systems Incorporated

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_tunit_set_t
typedef std::vector< unit_tunit_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

typedef double model_type

The model type for this view

Definition at line 50 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:
nameis the name of the view. Typically shown as a label
alt_textis additional information to be shown to the user when they hover over the view with the mouse.
firstis the first unit_t decorator for this view
lastis one-past-the-last unit_t decorator for this view
themedetails additional visual attributes for the view
charactersis 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 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::wstring::size_type label_chars_m

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google