Inheritance diagram for os::StringView:
Public Member Functions | |
StringView (Rect cFrame, const String &cName, const String &cString, uint32 nAlign=DTF_DEFAULT, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) | |
Create a new StringView. | |
StringView (Rect cFrame, const String &cName, const String &cString, alignment eAlign, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_FULL_UPDATE_ON_RESIZE) | |
Create a new StringView (deprecated). | |
~StringView () | |
void | SetMinPreferredSize (int nWidthChars, int nHeightChars=1) |
void | SetMaxPreferredSize (int nWidthChars, int nHeightChars=1) |
virtual Point | GetPreferredSize (bool bLargest) const |
virtual void | Paint (const Rect &cUpdateRect) |
Called by the system update "damaged" areas of the view. | |
void | SetString (const String &cString) |
const String & | GetString (void) const |
void | SetAlignment (uint32 nAlign) |
uint32 | GetAlignment (void) const |
bool | HasBorder () const |
void | SetRenderBorder (bool bRender) |
virtual void | AttachedToWindow () |
Classes | |
class | Private |
StringView::StringView | ( | Rect | cFrame, | |
const String & | cName, | |||
const String & | cString, | |||
uint32 | nAlign = DTF_DEFAULT , |
|||
uint32 | nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP , |
|||
uint32 | nFlags = WID_WILL_DRAW | WID_FULL_UPDATE_ON_RESIZE | |||
) |
cFrame,cName,nResizeMask,nFlags | See os::View::View( const Rect &cFrame, const String &cTitle, uint32 nResizeMask, uint32 nFlags ) | |
cString | The text to be displayed in the StringView. | |
nAlign | A bitmask of os::drawtext_flags specifying the alignment of the text within the view. |
StringView::StringView | ( | Rect | cFrame, | |
const String & | cName, | |||
const String & | cString, | |||
alignment | eAlign, | |||
uint32 | nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP , |
|||
uint32 | nFlags = WID_WILL_DRAW | WID_FULL_UPDATE_ON_RESIZE | |||
) |
eAlign | A value from os::alignment specifying the alignment. |
StringView::~StringView | ( | ) |
void StringView::SetMinPreferredSize | ( | int | nWidthChars, | |
int | nHeightChars = 1 | |||
) |
void StringView::SetMaxPreferredSize | ( | int | nWidthChars, | |
int | nHeightChars = 1 | |||
) |
void StringView::Paint | ( | const Rect & | cUpdateRect | ) | [virtual] |
cUpdateRect | A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible. |
Reimplemented from os::View.
void StringView::SetString | ( | const String & | cString | ) |
const String & StringView::GetString | ( | void | ) | const |
void StringView::SetAlignment | ( | uint32 | nAlign | ) |
uint32 StringView::GetAlignment | ( | void | ) | const |
bool StringView::HasBorder | ( | ) | const |
void StringView::SetRenderBorder | ( | bool | bRender | ) |
void StringView::AttachedToWindow | ( | ) | [virtual] |
Reimplemented from os::View.