321 virtual void NewEntry(
const char *
s =
"Entry");
364 virtual void Selected(
const char *txt) {
Emit(
"Selected(char*)", txt); }
#define ClassDef(name, id)
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
virtual TList * GetList() const
const TGWindow * fMsgWindow
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void DoRedraw()
Redraw icon & text listbox entry.
virtual void SetPicture(const TGPicture *pic=0)
Change the icon of listbox entry containing icon & text.
virtual ~TGIconLBEntry()
Delete icon & text listbox entry.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
TGIconLBEntry(const TGIconLBEntry &)
const TGPicture * GetPicture() const
virtual void Update(TGLBEntry *e)
Update icon & text listbox entry.
const TGPicture * fPicture
TGIconLBEntry operator=(const TGIconLBEntry &)
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw copy on window/pixmap.
virtual void RemoveAll()
Remove all entries in this container.
virtual Bool_t GetSelection(Int_t id)
Returns kTrue if entry id is selected.
virtual void Layout()
Layout container.
virtual void SetListBox(TGListBox *lb)
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
TGLBContainer(const TGLBContainer &)
virtual Int_t GetSelected() const
Returns id of selected entry.
virtual void ActivateItem(TGFrameElement *el)
Activate item.
TGListBox * GetListBox() const
virtual Bool_t GetMultipleSelections() const
virtual ~TGLBContainer()
Delete the listbox container.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in listbox container.
TGLBContainer operator=(const TGLBContainer &)
virtual TGLBEntry * Select(Int_t id, Bool_t sel)
Select / deselect the entry with the specified id.
virtual UInt_t GetDefaultWidth() const
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove entries from from_ID to to_ID (including).
virtual void Associate(const TGWindow *w)
virtual void AddEntry(TGLBEntry *lbe, TGLayoutHints *lhints)
Add listbox entry with hints to container.
virtual TGVScrollBar * GetVScrollbar() const
Return a pointer to vertical scroll bar.
virtual Int_t GetPos(Int_t id)
Returns the position in the list box of the entry id.
virtual void AddEntrySort(TGLBEntry *lbe, TGLayoutHints *lhints)
Insert listbox entry before the list box entry with a higher id.
virtual void InsertEntry(TGLBEntry *lbe, TGLayoutHints *lhints, Int_t afterID)
Insert listbox entry after specified entry with id afterID.
virtual void SetVsbPosition(Int_t newPos)
Set new vertical scroll bar position.
virtual void RemoveEntry(Int_t id)
Remove the entry with specified id from the listbox container.
virtual void GetSelectedEntries(TList *selected)
Adds all selected entries (TGLBEntry) of the list box into the list selected.
virtual void DoRedraw()
redraw
virtual void SetMultipleSelections(Bool_t multi)
Enables and disables multiple selections of entries.
TGLBEntry * GetSelectedEntry() const
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in the listbox container.
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click mouse event in the listbox container.
virtual void SetBackgroundColor(Pixel_t col)
Set background color (override from TGWindow base class).
virtual void Activate(Bool_t a)
Toggle active state of listbox entry.
virtual void Update(TGLBEntry *)
virtual void Toggle()
Toggle active state of listbox entry.
virtual void DoRedraw()
Redraw the frame.
TGLBEntry(const TGWindow *p=0, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetWhitePixel())
Base class entry constructor.
TGLineLBEntry operator=(const TGLineLBEntry &)
Style_t GetLineStyle() const
virtual void DoRedraw()
Redraw line style listbox entry.
TGLineLBEntry(const TGLineLBEntry &)
virtual Int_t GetLineWidth() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual ~TGLineLBEntry()
Delete line style listbox entry.
virtual void SetLineWidth(Int_t width)
Set or change line witdh in an entry.
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw copy on window/pixmap.
virtual void SetLineStyle(Style_t style)
Set the line style corresponding to the TPad line styles.
virtual void Update(TGLBEntry *e)
Update line style listbox entry.
virtual void IntegralHeight(Bool_t mode)
virtual void InitListBox()
Initiate the internal classes of a list box.
virtual void AddEntrySort(TGString *s, Int_t id)
Add entry with specified string and id to listbox sorted by increasing id.
virtual void DoubleClicked(Int_t id)
virtual ~TGListBox()
Delete a listbox widget.
virtual Bool_t GetSelection(Int_t id)
virtual void SortByName(Bool_t ascend=kTRUE)
Sort entries by name.
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual TGVScrollBar * GetVScrollbar() const
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
virtual Int_t GetNumberOfEntries() const
virtual TGDimension GetDefaultSize() const
Return default size of listbox widget.
virtual void DoubleClicked(const char *txt)
virtual void DrawBorder()
Draw borders of the list box widget.
virtual TGLBEntry * GetSelectedEntry() const
virtual void RemoveEntry(Int_t id=-1)
remove entry with id.
TGListBox(const TGListBox &)
virtual void NewEntry(const char *s="Entry")
method used to add entry via context menu
virtual Int_t GetSelected() const
Return id of selected listbox item.
virtual void SetTopEntry(Int_t id=-1)
Scroll the entry with id to the top of the listbox.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
virtual void DoubleClicked(Int_t widgetId, Int_t id)
Emit DoubleClicked signal with list box id and entry id.
virtual void InsertEntry(TGString *s, Int_t id, Int_t afterID)
Insert entry with specified string and id behind the entry with afterID.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
Move and resize the listbox widget.
virtual void RemoveAll()
Remove all entries.
virtual void SelectionChanged()
virtual Bool_t GetMultipleSelections() const
void SetContainer(TGFrame *f)
virtual TGScrollBar * GetScrollBar() const
TGVScrollBar * fVScrollbar
virtual void ChangeBackground(Pixel_t back)
Change background to all entries.
virtual TGLBEntry * GetEntry(Int_t id) const
Returns list box entry with specified id.
virtual void Selected(Int_t id)
TGListBox operator=(const TGListBox &)
UInt_t GetItemVsize() const
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages generated by the listbox container and forward messages to the listbox message handl...
virtual TGViewPort * GetViewPort() const
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
virtual TGFrame * GetContainer() const
virtual void Resize(TGDimension size)
Resize the frame.
virtual void SetLayoutManager(TGLayoutManager *)
Set the layout manager for the composite frame.
virtual void Selected(const char *txt)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a list box widget as a C++ statement(s) on output stream out.
virtual void Layout()
Layout the listbox components.
virtual void GetSelectedEntries(TList *selected)
Adds all selected entries (TGLBEntry) of the list box into the list selected.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove a range of entries defined by from_ID and to_ID.
virtual TGLBEntry * FindEntry(const char *s) const
Find entry by name.
virtual void Selected(Int_t widgetId, Int_t id)
Emit Selected signal with list box id and entry id.
const TGString * GetText() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
FontStruct_t GetFontStruct() const
static const TGFont * fgDefaultFont
TGTextLBEntry(const TGTextLBEntry &)
TGTextLBEntry & operator=(const TGTextLBEntry &)
virtual void SetTitle(const char *text)
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save a list box entry widget as a C++ statement(s) on output stream out.
GContext_t GetNormGC() const
virtual const char * GetTitle() const
Returns title of object.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use for a text listbox entry.
virtual ~TGTextLBEntry()
Delete text listbox entry.
virtual void Update(TGLBEntry *e)
static const TGGC & GetDefaultGC()
Return default graphics context in use for a text listbox entry.
virtual void DoRedraw()
Redraw text listbox entry.
static TGGC * fgDefaultGC
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw text listbox entry on window/pixmap.
void SetText(TGString *new_text)
Set or change text in text entry.
TGFrame * GetContainer() const
void SetContainer(TGFrame *f)
Add container frame to the viewport.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
const char * Data() const
static constexpr double s