TGLVContainer


class description - source file - inheritance tree

class TGLVContainer : public TGContainer


    protected:
virtual void ActivateItem(TGFrameElement* el) public:
TGLVContainer TGLVContainer(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = GetDefaultFrameBackground()) TGLVContainer TGLVContainer(const TGLVContainer&) virtual void ~TGLVContainer() virtual void AddItem(TGLVEntry* item) static TClass* Class() TGListView* GetListView() const virtual TGDimension GetMaxItemSize() const virtual Int_t GetMaxSubnameWidth(Int_t idx) const Int_t GetViewMode() const virtual TClass* IsA() const virtual void RemoveItemWithData(void* userData) virtual void SetColumns(Int_t* cpos, Int_t* jmode) virtual void SetListView(TGListView* lv) virtual void SetViewMode(EListViewMode ViewMode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGLayoutHints* fItemLayout item layout hints EListViewMode fViewMode list view viewing mode Int_t* fCpos position of sub names Int_t* fJmode alignment of sub names TGListView* fListView listview which contains this container TGLVEntry* fLastActive last active item


See also

TGFileContainer, TTVLVContainer

Class Description

                                                                      
 TGListView, TGLVContainer and TGLVEntry                              
                                                                      
 A list view is a widget that can contain a number of items           
 arranged in a grid or list. The items can be represented either      
 by a string or by an icon.                                           
                                                                      
 The TGListView is user callable. The other classes are service       
 classes of the list view.                                            
                                                                      
 A list view can generate the following events:                       
 kC_CONTAINER, kCT_SELCHANGED, total items, selected items.           
 kC_CONTAINER, kCT_ITEMCLICK, which button, location (y<<16|x).       
 kC_CONTAINER, kCT_ITEMDBLCLICK, which button, location (y<<16|x).    
                                                                      


TGLVContainer(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGContainer(p, w, h, options, back)
 Create a list view container. This is the (large) frame that contains
 all the list items. It will be shown through a TGViewPort (which is
 created by the TGCanvas derived TGListView).

~TGLVContainer()
 Delete list view container.

void SetViewMode(EListViewMode viewMode)
 Set list view mode for container.

void SetColumns(Int_t *cpos, Int_t *jmode)
 Set column information for list items.

TGDimension GetMaxItemSize() const
 Get size of largest item in container.

Int_t GetMaxSubnameWidth(Int_t idx) const
 Get width of largest subname in container.

void RemoveItemWithData(void *userData)
 Remove item with fUserData == userData from container.

void ActivateItem(TGFrameElement* el)
 Select/activate item.



Inline Functions


          TGListView* GetListView() const
                 void AddItem(TGLVEntry* item)
                 void SetListView(TGListView* lv)
                Int_t GetViewMode() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGLVContainer TGLVContainer(const TGLVContainer&)


Author: Fons Rademakers 17/01/98
Last update: root/gui:$Name: $:$Id: TGListView.cxx,v 1.11 2002/07/18 10:34:25 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.