library: libGui #include "TGListBox.h" |
TGTextLBEntry
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void DoRedraw()
public:
TGTextLBEntry(const TGWindow* p = 0, TGString* s = 0, Int_t id = -1, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = kHorizontalFrame, Pixel_t back = GetWhitePixel())
TGTextLBEntry(const TGTextLBEntry&)
virtual ~TGTextLBEntry()
static TClass* Class()
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
static FontStruct_t GetDefaultFontStruct()
static const TGGC& GetDefaultGC()
virtual TGDimension GetDefaultSize() const
FontStruct_t GetFontStruct() const
GContext_t GetNormGC() const
const TGString* GetText() const
virtual const char* GetTitle() const
virtual TClass* IsA() const
virtual void SavePrimitive(ostream& out, Option_t* = "")
void SetText(TGString* new_text)
virtual void SetTitle(const char* text)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual void Update(TGLBEntry* e)
protected:
TGString* fText entry text string
UInt_t fTWidth text width
UInt_t fTHeight text height
Bool_t fTextChanged true if text has been changed
GContext_t fNormGC text drawing graphics context
FontStruct_t fFontStruct font used to draw string
static const TGFont* fgDefaultFont
static TGGC* fgDefaultGC
TGListBox, TGLBContainer, TGLBEntry and TGTextLBEntry
A listbox is a box, possibly with scrollbar, containing entries.
Currently entries are simple text strings (TGTextLBEntry).
A TGListBox looks a lot like a TGCanvas. It has a TGViewPort
containing a TGLBContainer which contains the entries and it also
has a vertical scrollbar which becomes visible if there are more
items than fit in the visible part of the container.
The TGListBox is user callable. The other classes are service
classes of the listbox.
Selecting an item in the listbox will generate the event:
kC_COMMAND, kCM_LISTBOX, listbox id, item id.
void DoRedraw()
Redraw text listbox entry.
const TGGC & GetDefaultGC()
Return default graphics context in use for a text listbox entry.
Author: Fons Rademakers 12/01/98
Last update: root/gui:$Name: $:$Id: TGListBox.cxx,v 1.57 2006/07/03 16:10:45 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.