library: libGui
#include "TGListBox.h"

TGLineLBEntry


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

class TGLineLBEntry : public TGTextLBEntry

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGLBEntry
<-
TGTextLBEntry
<-
TGLineLBEntry

    protected:
virtual void DoRedraw() public:
TGLineLBEntry(const TGWindow* p = 0, Int_t id = -1, const char* str = "0", UInt_t w = 0, Style_t s = 0, UInt_t options = kHorizontalFrame, Pixel_t back = GetWhitePixel()) TGLineLBEntry(const TGLineLBEntry&) virtual ~TGLineLBEntry() static TClass* Class() virtual void DrawCopy(Handle_t id, Int_t x, Int_t y) virtual TGDimension GetDefaultSize() const TGGC* GetLineGC() const Style_t GetLineStyle() const virtual Int_t GetLineWidth() const virtual TClass* IsA() const virtual void SetLineStyle(Style_t style) virtual void SetLineWidth(Int_t width) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void Update(TGLBEntry* e)

Data Members


    protected:
UInt_t fLineWidth line width Style_t fLineStyle line style UInt_t fLineLength line lenght TGGC* fLineGC line graphics context

Class Description

                                                                      
 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.                        
                                                                      


TGLineLBEntry(const TGWindow *p, Int_t id, const char *str, UInt_t w, Style_t style, UInt_t options, ULong_t back) : TGTextLBEntry(p, new TGString(str), id, GetDefaultGC()(), GetDefaultFontStruct(), options, back)
 Create the line style listbox entry

~TGLineLBEntry()
 Delete line style listbox entry.

void Update(TGLBEntry *e)
 Update line style listbox entry.

void SetLineStyle(Style_t linestyle)
 The linstyle corresponds to TPad line style

void SetLineWidth(Int_t width)
 Set or change line witdh in an entry.

void DrawCopy(Handle_t id, Int_t x, Int_t y)
 draw copy on window/pixmap

void DoRedraw()
 Redraw line style listbox entry.



Inline Functions


          TGDimension GetDefaultSize() const
                Int_t GetLineWidth() const
              Style_t GetLineStyle() const
                TGGC* GetLineGC() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
        TGLineLBEntry TGLineLBEntry(const TGLineLBEntry&)


Author: Fons Rademakers 12/01/98
Last update: root/gui:$Name: $:$Id: TGListBox.cxx,v 1.46 2005/08/23 17:00:41 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.