library: libGui
#include "TGListTree.h"

TGListTreeItem


class description - header file - source file - inheritance tree (.pdf)

class TGListTreeItem

Inheritance Chart:
TGListTreeItem

    protected:
TGListTreeItem(const TGListTreeItem&) TGListTreeItem& operator=(const TGListTreeItem&) public:
TGListTreeItem(TGClient* fClient = gClient, const char* name = "0", const TGPicture* opened = 0, const TGPicture* closed = 0, Bool_t checkbox = kFALSE) virtual ~TGListTreeItem() void CheckItem(Bool_t checked = kTRUE) static TClass* Class() void ClearColor() Color_t GetColor() const TGListTreeItem* GetFirstChild() const TGListTreeItem* GetNextSibling() const TGListTreeItem* GetParent() const TGListTreeItem* GetPrevSibling() const const char* GetText() const const char* GetTipText() const void* GetUserData() const Bool_t HasCheckBox() const virtual TClass* IsA() const Bool_t IsActive() const Bool_t IsChecked() const Bool_t IsOpen() const void Rename(const char* new_name) void SavePrimitive(ostream& out, Option_t* option, Int_t n) void SetCheckBox(Bool_t on = kTRUE) void SetCheckBoxPictures(const TGPicture* checked, const TGPicture* unchecked) void SetColor(Color_t color) void SetPictures(const TGPicture* opened, const TGPicture* closed) void SetTipText(const char* tip) void SetUserData(void* userData) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void Toggle()

Data Members

    private:
TGClient* fClient pointer to TGClient TGListTreeItem* fParent pointer to parent TGListTreeItem* fFirstchild pointer to first child item TGListTreeItem* fPrevsibling pointer to previous sibling TGListTreeItem* fNextsibling pointer to next sibling Bool_t fOpen true if item is open Bool_t fActive true if item is active Bool_t fCheckBox true if checkbox is visible Bool_t fChecked true if item is checked TString fText item text TString fTipText tooltip text Int_t fY y position of item Int_t fXtext x position of item text Int_t fYtext y position of item text UInt_t fHeight item height UInt_t fPicWidth width of item icon const TGPicture* fOpenPic icon for open state const TGPicture* fClosedPic icon for closed state const TGPicture* fCheckedPic icon for checked item const TGPicture* fUncheckedPic icon for unchecked item void* fUserData pointer to user data structure Bool_t fHasColor true if item has assigned color Color_t fColor item's color

Class Description

                                                                      
 TGListTree and TGListTreeItem                                        
                                                                      
 A list tree is a widget that can contain a number of items           
 arranged in a tree structure. The items are represented by small     
 folder icons that can be either open or closed.                      
                                                                      
 The TGListTree is user callable. The TGListTreeItem is a service     
 class of the list tree.                                              
                                                                      
 A list tree can generate the following events:                       
 kC_LISTTREE, kCT_ITEMCLICK, which button, location (y<<16|x).        
 kC_LISTTREE, kCT_ITEMDBLCLICK, which button, location (y<<16|x).     
                                                                      

TGListTreeItem(TGClient *client, const char *name, const TGPicture *opened, const TGPicture *closed, Bool_t checkbox)
 Create list tree item.
TGListTreeItem(const TGListTreeItem& lti)
copy constructor
TGListTreeItem& operator=(const TGListTreeItem& lti)
assignment operator
~TGListTreeItem()
 Delete list tree item.
void Rename(const char *new_name)
 Rename a list tree item.
void SetCheckBox(Bool_t on)
 Set a check box on the tree node.
void SetCheckBoxPictures(const TGPicture *checked, const TGPicture *unchecked)
 Change list tree check item icons.
void SetPictures(const TGPicture *opened, const TGPicture *closed)
 Change list tree item icons.
void SavePrimitive(ostream &out, Option_t *option, Int_t n)
 Save a list tree item attributes as a C++ statements on output stream.
Bool_t IsActive()
Bool_t IsOpen()
void SetTipText(const char *tip)
void SetUserData(void *userData)
Bool_t HasCheckBox()
void CheckItem(Bool_t checked = kTRUE)
void Toggle()
Bool_t IsChecked()
Color_t GetColor()
void SetColor(Color_t color)
void ClearColor()

Author: Fons Rademakers 25/02/98
Last update: root/gui:$Name: $:$Id: TGListTree.cxx,v 1.57 2006/07/09 05:27:54 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.