253   virtual void NewEntry(
const char *s = 
"Entry");             
 
  296   virtual void Selected(
const char *txt) { 
Emit(
"Selected(char*)", txt); } 
 
Handle_t GContext_t
Graphics context handle.
 
ULong_t Pixel_t
Pixel value.
 
ULongptr_t Handle_t
Generic resource handle.
 
Handle_t FontStruct_t
Pointer to font structure.
 
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
 
#define ClassDefOverride(name, id)
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t SetLineWidth
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
 
Option_t Option_t TPoint TPoint const char mode
 
Option_t Option_t TPoint TPoint const char text
 
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
 
The base class for composite widgets (menu bars, list boxes, etc.).
 
virtual TList * GetList() const
 
const TGWindow * fMsgWindow
window handling container messages
 
Encapsulate fonts used in the GUI system.
 
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
 
static Pixel_t GetWhitePixel()
Get white pixel value.
 
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
Encapsulate a graphics context used in the low level graphics.
 
Icon + text listbox entry.
 
void DoRedraw() override
Redraw icon & text listbox entry.
 
virtual void SetPicture(const TGPicture *pic=nullptr)
Change the icon of listbox entry containing icon & text.
 
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
 
virtual ~TGIconLBEntry()
Delete icon & text listbox entry.
 
void DrawCopy(Handle_t id, Int_t x, Int_t y) override
Draw copy on window/pixmap.
 
const TGPicture * GetPicture() const
 
TGIconLBEntry(const TGIconLBEntry &)=delete
 
TGIconLBEntry operator=(const TGIconLBEntry &)=delete
 
const TGPicture * fPicture
 
void Update(TGLBEntry *e) override
Update icon & text listbox entry.
 
A Composite frame that contains a list of TGLBEnties.
 
TGLBContainer(const TGLBContainer &)=delete
 
Bool_t fMultiSelect
true if multi selection is switched on
 
virtual Bool_t GetSelection(Int_t id)
Returns kTrue if entry id is selected.
 
void OnAutoScroll() override
Autoscroll while close to & beyond The Wall.
 
virtual void SetListBox(TGListBox *lb)
 
void RemoveAll() override
Remove all entries in this container.
 
void SetVsbPosition(Int_t newPos) override
Set new vertical scroll bar position.
 
TGVScrollBar * GetVScrollbar() const override
Return a pointer to vertical scroll bar.
 
Int_t fChangeStatus
defines the changes (select or unselect) while the mouse moves over a multi selectable list box
 
virtual Int_t GetSelected() const
Returns id of selected entry.
 
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in the listbox container.
 
TGListBox * GetListBox() const
 
virtual Bool_t GetMultipleSelections() const
 
void Layout() override
Layout container.
 
virtual ~TGLBContainer()
Delete the listbox container.
 
void ActivateItem(TGFrameElement *el) override
Activate item.
 
virtual TGLBEntry * Select(Int_t id, Bool_t sel)
Select / deselect the entry with the specified id.
 
TGLBEntry * fLastActive
last active listbox entry in single selection listbox
 
Bool_t HandleDoubleClick(Event_t *event) override
Handle double click mouse event in the listbox container.
 
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove entries from from_ID to to_ID (including).
 
TGListBox * fListBox
list box which contains this container
 
virtual void AddEntry(TGLBEntry *lbe, TGLayoutHints *lhints)
Add listbox entry with hints to container.
 
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.
 
UInt_t GetDefaultWidth() const override
 
virtual void InsertEntry(TGLBEntry *lbe, TGLayoutHints *lhints, Int_t afterID)
Insert listbox entry after specified entry with id afterID.
 
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.
 
void DoRedraw() override
redraw
 
void Associate(const TGWindow *w) override
 
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in listbox container.
 
virtual void SetMultipleSelections(Bool_t multi)
Enables and disables multiple selections of entries.
 
TGLBContainer operator=(const TGLBContainer &)=delete
 
TGLBEntry * GetSelectedEntry() const
 
Pixel_t fBkcolor
entry background color
 
Int_t fEntryId
message id of listbox entry
 
void DoRedraw() override
Redraw the frame.
 
virtual void Update(TGLBEntry *)
 
virtual void Toggle()
Toggle active state of listbox entry.
 
Bool_t IsActive() const override
 
Bool_t fActive
true if entry is active
 
void SetBackgroundColor(Pixel_t col) override
Set background color (override from TGWindow base class).
 
void Activate(Bool_t a) override
Toggle active state of listbox entry.
 
This class describes layout hints used by the layout classes.
 
Line style and width listbox entries.
 
Style_t GetLineStyle() const
 
Style_t fLineStyle
line style
 
TGGC * fLineGC
line graphics context
 
UInt_t fLineLength
line length
 
UInt_t fLineWidth
line width
 
virtual Int_t GetLineWidth() const
 
void DrawCopy(Handle_t id, Int_t x, Int_t y) override
Draw copy on window/pixmap.
 
void DoRedraw() override
Redraw line style listbox entry.
 
TGLineLBEntry operator=(const TGLineLBEntry &)=delete
 
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
 
void Update(TGLBEntry *e) override
Update line style listbox entry.
 
virtual ~TGLineLBEntry()
Delete line style listbox entry.
 
virtual void SetLineStyle(Style_t style)
Set the line style corresponding to the TPad line styles.
 
TGLineLBEntry(const TGLineLBEntry &)=delete
 
A listbox is a box, possibly with scrollbar, containing entries.
 
virtual void IntegralHeight(Bool_t mode)
 
virtual void InitListBox()
Initiate the internal classes of a list box.
 
Bool_t fIntegralHeight
true if height should be multiple of fItemVsize
 
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)
 
TGListBox(const TGListBox &)=delete
 
virtual ~TGListBox()
Delete a listbox widget.
 
virtual Bool_t GetSelection(Int_t id)
 
virtual void SortByName(Bool_t ascend=kTRUE)
Sort entries by name.
 
void Resize(TGDimension size) override
Resize the frame.
 
virtual TGVScrollBar * GetVScrollbar() const
 
TGViewPort * fVport
listbox viewport (see TGCanvas.h)
 
UInt_t fItemVsize
maximum height of single entry
 
TGDimension GetDefaultSize() const override
Return default size of listbox widget.
 
void SetLayoutManager(TGLayoutManager *) override
Set the layout manager for the composite frame.
 
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
 
virtual Int_t GetNumberOfEntries() const
 
TGLBContainer * fLbc
listbox container
 
virtual void DoubleClicked(const char *txt)
 
virtual TGLBEntry * GetSelectedEntry() const
 
virtual void RemoveEntry(Int_t id=-1)
remove entry with id.
 
virtual void NewEntry(const char *s="Entry")
method used to add entry via context menu
 
void Resize(UInt_t w, UInt_t h) override
Resize the listbox widget.
 
virtual Int_t GetSelected() const
Return id of selected listbox item.
 
void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h) override
Move and resize the listbox widget.
 
virtual void SetTopEntry(Int_t id=-1)
Scroll the entry with id to the top of the listbox.
 
void ChangeBackground(Pixel_t back) override
Change background to all entries.
 
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
 
void Layout() override
Layout the listbox components.
 
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 SelectionChanged()
 
virtual Bool_t GetMultipleSelections() const
 
void SetContainer(TGFrame *f)
 
virtual TGScrollBar * GetScrollBar() const
 
TGVScrollBar * fVScrollbar
vertical scrollbar
 
void DrawBorder() override
Draw borders of the list box widget.
 
virtual TGLBEntry * GetEntry(Int_t id) const
Returns list box entry with specified id.
 
virtual void Selected(Int_t id)
 
UInt_t GetItemVsize() const
 
virtual TGViewPort * GetViewPort() const
 
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
 
TGListBox operator=(const TGListBox &)=delete
 
virtual TGFrame * GetContainer() const
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a list box widget as a C++ statement(s) on output stream out.
 
virtual void Selected(const char *txt)
 
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.
 
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process messages generated by the listbox container and forward messages to the listbox message handl...
 
virtual TGLBEntry * FindEntry(const char *s) const
Find entry by name.
 
void RemoveAll() override
Remove all entries.
 
virtual void Selected(Int_t widgetId, Int_t id)
Emit Selected signal with list box id and entry id.
 
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
 
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
 
Text string listbox entries.
 
Bool_t fTextChanged
true if text has been changed
 
const TGString * GetText() const
 
GContext_t fNormGC
text drawing graphics context
 
FontStruct_t GetFontStruct() const
 
static const TGFont * fgDefaultFont
 
void DoRedraw() override
Redraw text listbox entry.
 
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a list box entry widget as a C++ statement(s) on output stream out.
 
void DrawCopy(Handle_t id, Int_t x, Int_t y) override
Draw text listbox entry on window/pixmap.
 
const char * GetTitle() const override
Returns title of object.
 
UInt_t fTHeight
text height
 
TGString * fText
entry text string
 
virtual void SetTitle(const char *text)
 
void Update(TGLBEntry *e) override
 
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
 
GContext_t GetNormGC() const
 
FontStruct_t fFontStruct
font used to draw string
 
TGTextLBEntry & operator=(const TGTextLBEntry &)=delete
 
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use for a text listbox entry.
 
virtual ~TGTextLBEntry()
Delete text listbox entry.
 
static const TGGC & GetDefaultGC()
Return default graphics context in use for a text listbox entry.
 
TGTextLBEntry(const TGTextLBEntry &)=delete
 
static TGGC * fgDefaultGC
 
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.
 
ROOT GUI Window base class.
 
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
 
const char * Data() const