TGLVEntry


class description - source file - inheritance tree

class TGLVEntry : public TGFrame

    private:
protected:
virtual void DoRedraw() public:
TGLVEntry TGLVEntry(const TGWindow* p, const TGPicture* bigpic, const TGPicture* smallpic, TGString* name, TGString** subnames, EListViewMode ViewMode, UInt_t options = kChildFrame, ULong_t back = GetWhitePixel()) TGLVEntry TGLVEntry(TGLVEntry&) virtual void ~TGLVEntry() void Activate(Bool_t a) static TClass* Class() virtual TGDimension GetDefaultSize() const const TGString* GetItemName() const const TGPicture* GetPicture() const virtual Int_t GetSubnameWidth(Int_t idx) const void* GetUserData() const virtual TClass* IsA() const Bool_t IsActive() const void SetColumns(Int_t* cpos, Int_t* jmode) void SetUserData(void* userData) virtual void SetViewMode(EListViewMode ViewMode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
protected:
TGString* fName name of item TGString** fSubnames sub names of item (details) Int_t* fCpos position of sub names Int_t* fJmode alignment for sub names Int_t* fCtw width of sub names UInt_t fTWidth width of name UInt_t fTHeight height of name Bool_t fActive true if item is active EListViewMode fViewMode list view viewing mode const TGPicture* fBigPic big icon const TGPicture* fSmallPic small icon const TGPicture* fCurrent current icon TGSelectedPicture* fSelPic selected icon GContext_t fNormGC drawing graphics context FontStruct_t fFontStruct text font void* fUserData pointer to user data structure static FontStruct_t fgDefaultFontStruct static TGGC fgDefaultGC static ULong_t fgSelPixel public:

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


TGLVEntry(const TGWindow *p, const TGPicture *bigpic, const TGPicture *smallpic, TGString *name, TGString **subnames, EListViewMode viewMode, UInt_t options, ULong_t back) : TGFrame(p, 10, 10, options, back)
 Create a list view item.

~TGLVEntry()
 Delete a list view item.

void Activate(Bool_t a)
 Make list view item active.

void SetViewMode(EListViewMode viewMode)
 Set the view mode for this list item.

void DoRedraw()
 Redraw list view item.

TGDimension GetDefaultSize() const
 Get default size of list item.



Inline Functions


                  Bool_t IsActive() const
         const TGString* GetItemName() const
        const TGPicture* GetPicture() const
                    void SetUserData(void* userData)
                   void* GetUserData() const
                    void SetColumns(Int_t* cpos, Int_t* jmode)
                   Int_t GetSubnameWidth(Int_t idx) const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
               TGLVEntry TGLVEntry(TGLVEntry&)


Author: Fons Rademakers 17/01/98
Last update: root/gui:$Name: $:$Id: TGListView.cxx,v 1.6 2000/10/17 12:34:53 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.