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.
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
ULongptr_t Handle_t
Generic resource handle.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#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.
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.
virtual void SetBackgroundColor(Pixel_t back)
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.
virtual void DoRedraw()
Redraw icon & text listbox entry.
virtual void SetPicture(const TGPicture *pic=nullptr)
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;
const TGPicture * GetPicture() const
TGIconLBEntry(const TGIconLBEntry &)=delete
virtual void Update(TGLBEntry *e)
Update icon & text listbox entry.
TGIconLBEntry operator=(const TGIconLBEntry &)=delete
const TGPicture * fPicture
virtual void DrawCopy(Handle_t id, Int_t x, Int_t y)
Draw copy on window/pixmap.
A Composite frame that contains a list of TGLBEnties.
virtual void RemoveAll()
Remove all entries in this container.
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.
virtual void Layout()
Layout container.
virtual void SetListBox(TGListBox *lb)
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
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.
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.
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
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)
TGListBox * fListBox
list box which contains this container
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.
TGLBContainer operator=(const TGLBContainer &)=delete
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.
Pixel_t fBkcolor
entry background color
virtual void SetBackgroundColor(Pixel_t col)
Set background color (override from TGWindow base class).
Int_t fEntryId
message id of listbox entry
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.
Bool_t fActive
true if entry is active
virtual void DoRedraw()
Redraw the frame.
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
virtual void DoRedraw()
Redraw line style listbox entry.
UInt_t fLineLength
line length
UInt_t fLineWidth
line width
virtual Int_t GetLineWidth() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
TGLineLBEntry operator=(const TGLineLBEntry &)=delete
virtual ~TGLineLBEntry()
Delete line style listbox entry.
virtual void SetLineWidth(Int_t width)
Set or change line width 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.
TGLineLBEntry(const TGLineLBEntry &)=delete
virtual void Update(TGLBEntry *e)
Update line style listbox entry.
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.
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual TGVScrollBar * GetVScrollbar() const
TGViewPort * fVport
listbox viewport (see TGCanvas.h)
UInt_t fItemVsize
maximum height of single entry
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
virtual Int_t GetNumberOfEntries() const
TGLBContainer * fLbc
listbox container
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.
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 Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process messages generated by the listbox container and forward messages to the listbox message handl...
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
vertical scrollbar
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)
UInt_t GetItemVsize() const
virtual TGViewPort * GetViewPort() const
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
TGListBox operator=(const TGListBox &)=delete
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.
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
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
FontStruct_t GetFontStruct() const
static const TGFont * fgDefaultFont
UInt_t fTHeight
text height
TGString * fText
entry text string
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
FontStruct_t fFontStruct
font used to draw string
virtual const char * GetTitle() const
Returns title of object.
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.
virtual void Update(TGLBEntry *e)
static const TGGC & GetDefaultGC()
Return default graphics context in use for a text listbox entry.
TGTextLBEntry(const TGTextLBEntry &)=delete
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.
ROOT GUI Window base class.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
const char * Data() const