class description - source file - inheritance tree

class TGLVContainer : public TGCompositeFrame

TGLVContainer TGLVContainer(const TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kSunkenFrame, ULong_t back = GetDefaultFrameBackground()) TGLVContainer TGLVContainer(TGLVContainer&) virtual void ~TGLVContainer() virtual void AddItem(TGLVEntry* item) virtual void Associate(const TGWindow* w) static TClass* Class() virtual TGDimension GetMaxItemSize() const virtual Int_t GetMaxSubnameWidth(Int_t idx) const virtual const TGLVEntry* GetNextSelected(void** current) const virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleDoubleClick(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual void InvertSelection() virtual TClass* IsA() const virtual Int_t NumItems() const virtual Int_t NumSelected() const virtual void RemoveAll() virtual void RemoveItem(TGLVEntry* item) virtual void RemoveItemWithData(void* userData) virtual void SelectAll() 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) virtual void UnSelectAll()

Data Members

TGLVEntry* fLastActive last active list view item 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 Int_t fXp Int_t fYp previous pointer position Int_t fX0 Int_t fY0 corner of rubber band box Int_t fXf Int_t fYf other corner of rubber band box Int_t fTotal total items Int_t fSelected number of selected items Bool_t fDragging true if in dragging mode TGListView* fListView listview which contains this container const TGWindow* fMsgWindow window handling container messages static TGGC fgLineGC

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) : TGCompositeFrame(p, w, h, options, back)
 Create a list view container. This is the (large) frame that contains
 all the list items. It will be show through a TGViewPort (which is
 created by the TGCanvas derived TGListView).

 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.

Bool_t HandleButton(Event_t *event)
 Handle mouse button event in container.

Bool_t HandleDoubleClick(Event_t *event)
 Handle double click mouse event.

Bool_t HandleMotion(Event_t *event)
 Handle mouse motion events.

void UnSelectAll()
 Unselect all items in the container.

void SelectAll()
 Select all items in the container.

void InvertSelection()
 Incert the selection, all selected items become unselected and
 vice versa.

void RemoveAll()
 Remove all items from the container.

void RemoveItem(TGLVEntry *item)
 Remove item from container.

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

const TGLVEntry* GetNextSelected(void **current)
 Return next selected item.

Inline Functions

                 void AddItem(TGLVEntry* item)
                 void Associate(const TGWindow* w)
                 void SetListView(TGListView* lv)
                Int_t NumItems() const
                Int_t NumSelected() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGLVContainer TGLVContainer(TGLVContainer&)

Author: Fons Rademakers 17/01/98
Last update: root/gui:$Name: $:$Id: TGListView.cxx,v 1.7 2001/11/12 14:17:02 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.