Pyro higlevel API
|
Public Member Functions | |
TreeViewCheckNode (os::Messenger *target=NULL) | |
virtual | ~TreeViewCheckNode () |
virtual void | Paint (const Rect &cFrame, View *pcView, uint nColumn, bool bSelected, bool bHighlighted, bool bHasFocus) |
virtual bool | HitTest (View *pcView, const Rect &cFrame, int nColumn, Point cPos) |
void | Toggle (os::View *pcView, os::TreeView *pcOwner=NULL) |
void | SetChecked (bool bChecked) |
bool | IsChecked () |
Public Member Functions inherited from os::TreeViewStringNode | |
TreeViewStringNode () | |
virtual | ~TreeViewStringNode () |
void | AttachToView (View *pcView, int nColumn) |
void | SetRect (const Rect &cRect, int nColumn) |
virtual float | GetWidth (View *pcView, int nColumn) |
virtual float | GetHeight (View *pcView) |
virtual bool | IsLessThan (const ListViewRow *pcOther, uint nColumn) const |
void | AppendString (const String &cString) |
void | SetString (int nIndex, const String &cString) |
const String & | GetString (int nIndex) const |
void | SetIcon (Image *pcIcon) |
Image * | GetIcon () const |
uint32 | GetTextFlags () const |
void | SetTextFlags (uint32 nTextFlags) const |
Public Member Functions inherited from os::TreeViewNode | |
TreeViewNode () | |
virtual | ~TreeViewNode () |
void | SetIndent (uint nIndent) |
Set indentation depth. More... | |
uint | GetIndent () const |
Get indentation depth. More... | |
void | SetExpanded (bool bExpanded) |
Set expanded state. More... | |
bool | IsExpanded () const |
Get expanded state. More... | |
TreeView * | GetOwner () const |
Get owner. More... | |
bool | IsLastSibling () const |
Check if node has more siblings. More... | |
Public Member Functions inherited from os::ListViewRow | |
ListViewRow () | |
virtual | ~ListViewRow () |
virtual void | SetCookie (Variant cCookie) |
virtual Variant | GetCookie (void) |
void | SetIsSelectable (bool bSelectable) |
bool | IsSelectable () const |
bool | IsSelected () const |
bool | IsHighlighted () const |
void | SetIsVisible (bool bVisible) |
bool | IsVisible () const |
Additional Inherited Members | |
Protected Member Functions inherited from os::TreeViewNode | |
void | _DrawExpanderCross (View *pcView, const Rect &cRect) |
Draw expander cross. More... | |
Rect | _ExpanderCrossPos (const Rect &cFrame) const |
Get expander position. More... | |
void | _SetOwner (TreeView *pcOwner) |
Set owner. More... | |
void | _SetLinePositions (uint32 nLPos) |
Set line positions. More... | |
uint32 | _GetLinePositions () const |
Get line positions. More... | |
void | _SetLastSibling (bool bIsLast) |
Set LastSibling. More... | |
TreeViewCheckNode::TreeViewCheckNode | ( | os::Messenger * | target = NULL | ) |
|
virtual |
|
virtual |
Reimplemented from os::TreeViewNode.
References os::Rect::bottom, os::Rect::DoIntersect(), os::TreeViewNode::GetOwner(), os::TreeViewNode::HitTest(), Toggle(), and os::Point::y.
bool TreeViewCheckNode::IsChecked | ( | ) |
|
virtual |
Reimplemented from os::TreeViewStringNode.
References os::TreeViewNode::_DrawExpanderCross(), os::TreeViewNode::_ExpanderCrossPos(), os::TreeViewNode::_GetLinePositions(), os::Rect::bottom, DM_BLEND, DM_COPY, os::Image::Draw(), os::View::DrawBitmap(), os::View::DrawLine(), os::View::DrawText(), os::View::FillRect(), os::Bitmap::GetBounds(), os::TreeView::GetDrawTrunk(), os::TreeViewStringNode::GetIcon(), os::TreeViewNode::GetIndent(), os::TreeView::GetIndentWidth(), os::TreeViewNode::GetOwner(), os::Image::GetSize(), os::TreeViewStringNode::GetString(), os::View::GetTextExtent(), os::TreeViewStringNode::GetTextFlags(), os::TreeView::HasChildren(), os::Rect::Height(), os::TreeViewNode::IsExpanded(), os::TreeViewNode::IsLastSibling(), os::Rect::left, os::Rect::Resize(), os::Rect::right, os::View::SetBgColor(), os::View::SetDrawingMode(), os::View::SetFgColor(), os::Rect::top, os::Point::x, and os::Point::y.
void TreeViewCheckNode::SetChecked | ( | bool | bChecked | ) |
Referenced by Toggle().
void TreeViewCheckNode::Toggle | ( | os::View * | pcView, |
os::TreeView * | pcOwner = NULL |
||
) |