In file atreevw.h:

class ATreeView : protected BListView

a tree view class

Inheritance:

ATreeView


public members:

classARootItem : public ATreeItem
a root item class
ARootItem ()
virtual BBitmap const* GetDefaultIcon () const

implementation details
virtual bool Notify (ATreeItem::eNotify msg, ATreeItem & item,long index)
virtual BWindow* Window () const
ATreeView (BRect frame, char const* name, ulong resizingMode = B_FOLLOW_LEFT|B_FOLLOW_TOP, ulong flags = B_WILL_DRAW|B_NAVIGABLE|B_FRAME_EVENTS)
constructor, for description see BListView
virtual ~ATreeView ()
ARootItem & Root ()
returns a reference to the very root item
bool Lock ()
locks the (attached to) window
void Unlock ()
unlocks the (attached to) window

protected members:

virtual void DrawItem (BRect updateRect,long index)
for description see BListView
virtual void MouseDown (BPoint point)
as in BListView, right click brings up a popup menu
virtual void KeyDown (ulong aChar)
+, -

implementation details
void NotifyAddItem ( ATreeItem & item,long& atIndex)
void NotifyRemoveItem (long atIndex)
void NotifyRefresh (long atIndex)

Documentation

ATreeView is a class derived from BListView. It contains one instance of the ARootItem (see treeRoot), which is the very root of a tree to be displayed. The treeRoot itself is not visible. Every its child item is a visible root of a subtree. This way the view can contain several visible trees, while maintaining only one.

this class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling