library: libGui #include "TGListTree.h"

# TGListTreeItem

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

## class TGListTreeItem

| Inheritance Chart:
`TGListTreeItem` |

        public:

                          TGListTreeItem(TGClient* fClient = gClient, const char* name = "0", const TGPicture* opened = 0, const TGPicture* closed = 0)
                          TGListTreeItem(const TGListTreeItem&)
                  virtual ~TGListTreeItem()
           static TClass* Class()
          TGListTreeItem* GetFirstChild() const
          TGListTreeItem* GetNextSibling() const
          TGListTreeItem* GetParent() const
          TGListTreeItem* GetPrevSibling() const
              const char* GetText() const
              const char* GetTipText() const
                    void* GetUserData() const
          virtual TClass* IsA() const
                   Bool_t IsActive() const
                   Bool_t IsOpen() const
                     void Rename(const char* new_name)
                     void SetPictures(const TGPicture* opened, const TGPicture* closed)
                     void SetUserData(void* userData)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### 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
                   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
                     void* fUserData     pointer to user data structure

## 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)

     Create list tree item.

~TGListTreeItem()

     Delete list tree item.

void Rename(const char *new_name)

     Rename a list tree item.

void SetPictures(const TGPicture *opened, const TGPicture *closed)

     Change list tree item icons.

### Inline Functions

            TGListTreeItem* GetParent() const
            TGListTreeItem* GetFirstChild() const
            TGListTreeItem* GetPrevSibling() const
            TGListTreeItem* GetNextSibling() const
                     Bool_t IsActive() const
                     Bool_t IsOpen() const
                const char* GetText() const
                const char* GetTipText() const
                       void SetUserData(void* userData)
                      void* GetUserData() const
                    TClass* Class()
                    TClass* IsA() const
                       void ShowMembers(TMemberInspector& insp, char* parent)
                       void Streamer(TBuffer& b)
                       void StreamerNVirtual(TBuffer& b)
             TGListTreeItem TGListTreeItem(const TGListTreeItem&)

Author: Fons Rademakers 25/02/98
Last update: root/gui:$Name: $:$Id: TGListTree.cxx,v 1.38 2005/06/27 15:11:53 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *