Pyro higlevel API
|
Baseclass for TreeView nodes. More...
Classes | |
class | Private |
Public Member Functions | |
TreeViewNode () | |
virtual | ~TreeViewNode () |
void | AttachToView (View *pcView, int nColumn)=0 |
void | SetRect (const Rect &cRect, int nColumn)=0 |
virtual float | GetWidth (View *pcView, int nColumn)=0 |
virtual float | GetHeight (View *pcView)=0 |
virtual void | Paint (const Rect &cFrame, View *pcView, uint nColumn, bool bSelected, bool bHighlighted, bool bHasFocus)=0 |
virtual bool | IsLessThan (const ListViewRow *pcOther, uint nColumn) const =0 |
virtual bool | HitTest (View *pcView, const Rect &cFrame, int nColumn, Point cPos) |
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 |
Protected Member Functions | |
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... | |
Friends | |
class | TreeView |
TreeViewNode::TreeViewNode | ( | ) |
|
virtual |
References os::Rect::bottom, DM_COPY, DM_INVERT, os::BitmapImage::Draw(), os::View::DrawFrame(), os::View::DrawLine(), os::FRAME_THIN, os::FRAME_TRANSPARENT, os::TreeView::GetCollapsedImage(), os::TreeView::GetDrawExpanderBox(), os::TreeView::GetExpandedImage(), os::BitmapImage::GetSize(), os::Rect::Height(), IsExpanded(), os::Rect::left, os::TreeViewNode::Private::m_pcOwner, os::Rect::right, os::View::SetDrawingMode(), os::View::SetFgColor(), os::Rect::top, os::Rect::Width(), os::Point::x, and os::Point::y.
Referenced by os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
References os::TreeView::GetExpanderImageBounds(), GetIndent(), GetOwner(), os::Rect::Height(), os::TreeViewNode::Private::m_pcOwner, and os::Rect::right.
Referenced by HitTest(), os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
|
protected |
References os::TreeViewNode::Private::m_nLPos.
Referenced by os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
|
protected |
References os::TreeViewNode::Private::m_bLastSibling.
|
protected |
References os::TreeViewNode::Private::m_nLPos.
|
protected |
References os::TreeViewNode::Private::m_pcOwner.
Referenced by os::TreeView::InsertNode().
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode.
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode.
uint TreeViewNode::GetIndent | ( | ) | const |
References os::TreeViewNode::Private::m_nIndent.
Referenced by _ExpanderCrossPos(), os::TreeView::Collapse(), os::TreeView::Expand(), os::TreeView::GetChild(), os::TreeView::GetChildren(), os::TreeView::GetNext(), os::TreeView::GetParent(), os::TreeView::GetPrev(), os::TreeView::HasChildren(), os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
TreeView * TreeViewNode::GetOwner | ( | ) | const |
References os::TreeViewNode::Private::m_pcOwner.
Referenced by _ExpanderCrossPos(), os::TreeViewCheckNode::HitTest(), os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode.
Reimplemented from os::ListViewRow.
Reimplemented in os::TreeViewCheckNode.
References _ExpanderCrossPos(), os::TreeView::Collapse(), os::Rect::DoIntersect(), os::TreeView::Expand(), IsExpanded(), and os::TreeViewNode::Private::m_pcOwner.
Referenced by os::TreeViewCheckNode::HitTest().
bool TreeViewNode::IsExpanded | ( | ) | const |
References os::TreeViewNode::Private::m_bExpanded.
Referenced by _DrawExpanderCross(), HitTest(), os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
bool TreeViewNode::IsLastSibling | ( | ) | const |
References os::TreeViewNode::Private::m_bLastSibling.
Referenced by os::TreeViewCheckNode::Paint(), and os::TreeViewStringNode::Paint().
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode.
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode, and os::TreeViewCheckNode.
void TreeViewNode::SetExpanded | ( | bool | bExpanded | ) |
References os::TreeViewNode::Private::m_bExpanded.
Referenced by os::TreeView::Collapse(), and os::TreeView::Expand().
void TreeViewNode::SetIndent | ( | uint | nIndent | ) |
nIndent | Indentation depth. |
References os::TreeViewNode::Private::m_nIndent.
Referenced by InfoWin::InfoWin(), MountDialogScanner::Run(), and MountDialogScanner::ScanPath().
|
pure virtual |
Implements os::ListViewRow.
Implemented in os::TreeViewStringNode.
|
friend |