Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TGFrame.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: Fons Rademakers 03/01/98
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGFrame
13#define ROOT_TGFrame
14
15
16#include "TGWindow.h"
17#include "TQObject.h"
18#include "TGDimension.h"
19#include "TGGC.h"
20#include "TGFont.h"
21#include "TGLayout.h"
22#include "TGString.h"
23
24class TGResourcePool;
25class TGTextButton;
26class TGVFileSplitter;
27class TDNDData;
28class TList;
29
30//---- frame states
31
37
38//---- frame cleanup
44
45//---- MWM hints stuff
46
71
72//---- drag and drop
73
78
79
80class TGFrame : public TGWindow, public TQObject {
81
82protected:
83 enum { kDeleteWindowCalled = BIT(15) };
84
85 Int_t fX; ///< frame x position
86 Int_t fY; ///< frame y position
87 UInt_t fWidth; ///< frame width
88 UInt_t fHeight; ///< frame height
89 UInt_t fMinWidth; ///< minimal frame width
90 UInt_t fMinHeight; ///< minimal frame height
91 UInt_t fMaxWidth; ///< maximal frame width
92 UInt_t fMaxHeight; ///< maximal frame height
93 Int_t fBorderWidth; ///< frame border width
94 UInt_t fOptions; ///< frame options
95 Pixel_t fBackground; ///< frame background color
96 UInt_t fEventMask; ///< currently active event mask
97 Int_t fDNDState; ///< EDNDFlags
98 TGFrameElement *fFE; ///< pointer to frame element
99
105 static const TGGC *fgBlackGC;
106 static const TGGC *fgWhiteGC;
107 static const TGGC *fgHilightGC;
108 static const TGGC *fgShadowGC;
109 static const TGGC *fgBckgndGC;
115
116 static Time_t GetLastClick();
117
118 void *GetSender() override { return this; } //used to set gTQSender
119 virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y,
120 UInt_t w, UInt_t h);
121 void DoRedraw() override;
122
124 { return fClient->GetResourcePool(); }
125
126 TString GetOptionString() const; //used in SavePrimitive()
127
128 // some protected methods use in gui builder
129 virtual void StartGuiBuilding(Bool_t on = kTRUE);
130
132
133private:
134 TGFrame(const TGFrame&) = delete;
135 TGFrame& operator=(const TGFrame&) = delete;
136
137public:
138 // Default colors and graphics contexts
141 static Pixel_t GetWhitePixel();
142 static Pixel_t GetBlackPixel();
143 static const TGGC &GetBlackGC();
144 static const TGGC &GetWhiteGC();
145 static const TGGC &GetHilightGC();
146 static const TGGC &GetShadowGC();
147 static const TGGC &GetBckgndGC();
148
149 TGFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
150 UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground());
151 TGFrame(TGClient *c, Window_t id, const TGWindow *parent = nullptr);
152 ~TGFrame() override;
153
154 virtual void DeleteWindow();
155 virtual void ReallyDelete() { delete this; }
156
157 UInt_t GetEventMask() const { return fEventMask; }
158 void AddInput(UInt_t emask);
160
161 Bool_t HandleEvent(Event_t *event) override;
162 virtual Bool_t HandleConfigureNotify(Event_t *event);
163 virtual Bool_t HandleButton(Event_t *) { return kFALSE; }
164 virtual Bool_t HandleDoubleClick(Event_t *) { return kFALSE; }
165 virtual Bool_t HandleCrossing(Event_t *) { return kFALSE; }
166 virtual Bool_t HandleMotion(Event_t *) { return kFALSE; }
167 virtual Bool_t HandleKey(Event_t *) { return kFALSE; }
168 virtual Bool_t HandleFocusChange(Event_t *) { return kFALSE; }
169 virtual Bool_t HandleClientMessage(Event_t *event);
170 virtual Bool_t HandleSelection(Event_t *) { return kFALSE; }
174 virtual Bool_t HandleDragEnter(TGFrame *) { return kFALSE; }
175 virtual Bool_t HandleDragLeave(TGFrame *) { return kFALSE; }
176 virtual Bool_t HandleDragMotion(TGFrame *) { return kFALSE; }
178 { return kFALSE; }
179 virtual void ProcessedConfigure(Event_t *event)
180 { Emit("ProcessedConfigure(Event_t*)", (Longptr_t)event); } //*SIGNAL*
181 virtual void ProcessedEvent(Event_t *event)
182 { Emit("ProcessedEvent(Event_t*)", (Longptr_t)event); } //*SIGNAL*
183
186
187 virtual TGDimension GetDefaultSize() const ;
188 void Move(Int_t x, Int_t y) override;
189 void Resize(UInt_t w = 0, UInt_t h = 0) override;
190 virtual void Resize(TGDimension size);
191 void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0) override;
192 virtual UInt_t GetDefaultWidth() const { return GetDefaultSize().fWidth; }
193 virtual UInt_t GetDefaultHeight() const { return GetDefaultSize().fHeight; }
194 virtual Pixel_t GetBackground() const { return fBackground; }
195 virtual void ChangeBackground(Pixel_t back);
196 void SetBackgroundColor(Pixel_t back) override;
197 virtual Pixel_t GetForeground() const;
198 virtual void SetForegroundColor(Pixel_t /*fore*/) { }
199 virtual UInt_t GetOptions() const { return fOptions; }
200 virtual void ChangeOptions(UInt_t options);
201 virtual void Layout() { }
202 void MapSubwindows() override {} // Simple frames do not have subwindows
203 // Redefine this in TGCompositeFrame!
204 void ReparentWindow(const TGWindow *p, Int_t x = 0, Int_t y = 0) override
205 { TGWindow::ReparentWindow(p, x, y); Move(x, y); }
206 void MapWindow() override { TGWindow::MapWindow(); if (fFE) fFE->fState |= kIsVisible; }
207 void MapRaised() override { TGWindow::MapRaised(); if (fFE) fFE->fState |= kIsVisible; }
209
210 virtual void DrawBorder();
211 virtual void DrawCopy(Handle_t /*id*/, Int_t /*x*/, Int_t /*y*/) { }
212 virtual void Activate(Bool_t) { }
213 virtual Bool_t IsActive() const { return kFALSE; }
214 virtual Bool_t IsComposite() const { return kFALSE; }
215 Bool_t IsEditable() const override { return kFALSE; }
216 void SetEditable(Bool_t) override {}
217 virtual void SetLayoutBroken(Bool_t = kTRUE) {}
218 virtual Bool_t IsLayoutBroken() const { return kFALSE; }
219 virtual void SetCleanup(Int_t = kLocalCleanup) { /* backward compatibility */ }
220
221 virtual void SetDragType(Int_t type);
222 virtual void SetDropType(Int_t type);
223 virtual Int_t GetDragType() const;
224 virtual Int_t GetDropType() const;
225
226 UInt_t GetWidth() const { return fWidth; }
227 UInt_t GetHeight() const { return fHeight; }
228 UInt_t GetMinWidth() const { return fMinWidth; }
229 UInt_t GetMinHeight() const { return fMinHeight; }
230 UInt_t GetMaxWidth() const { return fMaxWidth; }
231 UInt_t GetMaxHeight() const { return fMaxHeight; }
233 Int_t GetX() const { return fX; }
234 Int_t GetY() const { return fY; }
236
237 TGFrameElement *GetFrameElement() const { return fFE; }
239
241 { return ((x >= 0) && (x < (Int_t)fWidth) && (y >= 0) && (y < (Int_t)fHeight)); }
243 { return Contains(x, y) ? this : nullptr; }
244
245 // Modifiers (without graphic update)
246 virtual void SetX(Int_t x) { fX = x; }
247 virtual void SetY(Int_t y) { fY = y; }
248 virtual void SetWidth(UInt_t w) { fWidth = w; }
249 virtual void SetHeight(UInt_t h) { fHeight = h; }
250 virtual void SetMinWidth(UInt_t w) { fMinWidth = w; }
251 virtual void SetMinHeight(UInt_t h) { fMinHeight = h; }
252 virtual void SetMaxWidth(UInt_t w) { fMaxWidth = w; }
253 virtual void SetMaxHeight(UInt_t h) { fMaxHeight = h; }
254 virtual void SetSize(const TGDimension &s) { fWidth = s.fWidth; fHeight = s.fHeight; }
255
256 // Printing and saving
257 void Print(Option_t *option="") const override;
258 void SaveUserColor(std::ostream &out, Option_t *);
259 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
260
261 // dummy to remove from context menu
262 void Delete(Option_t * /*option*/ ="") override {}
263 TObject *DrawClone(Option_t * /*option */="") const override { return nullptr; }
264 void DrawClass() const override {}
265 void Dump() const override {}
266 void Inspect() const override {}
267 void SetDrawOption(Option_t * /*option*/="") override {}
268
269 // drag and drop...
276
277 virtual TDNDData *GetDNDData(Atom_t /*dataType*/) { return nullptr; }
278 virtual Bool_t HandleDNDDrop(TDNDData * /*DNDData*/) { return kFALSE; }
279 virtual Atom_t HandleDNDPosition(Int_t /*x*/, Int_t /*y*/, Atom_t /*action*/,
280 Int_t /*xroot*/, Int_t /*yroot*/) { return kNone; }
281 virtual Atom_t HandleDNDEnter(Atom_t * /*typelist*/) { return kNone; }
282 virtual Bool_t HandleDNDLeave() { return kFALSE; }
283 virtual Bool_t HandleDNDFinished() { return kFALSE; }
284
285 ClassDefOverride(TGFrame,0) // Base class for simple widgets (button, etc.)
286};
287
288
289class TGCompositeFrame : public TGFrame {
290
291
292protected:
293 TGLayoutManager *fLayoutManager; ///< layout manager
294 TList *fList; ///< container of frame elements
295 Bool_t fLayoutBroken; ///< no layout manager is used
296 Int_t fMustCleanup; ///< cleanup mode (see EFrameCleanup)
297 Bool_t fMapSubwindows; ///< kTRUE - map subwindows
298
299 static TGLayoutHints *fgDefaultHints; // default hints used by AddFrame()
300
301private:
304
305public:
306 TGCompositeFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
307 UInt_t options = 0,
309 TGCompositeFrame(TGClient *c, Window_t id, const TGWindow *parent = nullptr);
310 ~TGCompositeFrame() override;
311
312 virtual TList *GetList() const { return fList; }
313
314 UInt_t GetDefaultWidth() const override
315 { return GetDefaultSize().fWidth; }
316 UInt_t GetDefaultHeight() const override
317 { return GetDefaultSize().fHeight; }
323 Int_t &fx, Int_t &fy);
324 void MapSubwindows() override;
325 void Layout() override;
326 Bool_t HandleButton(Event_t *) override { return kFALSE; }
327 Bool_t HandleDoubleClick(Event_t *) override { return kFALSE; }
328 Bool_t HandleCrossing(Event_t *) override { return kFALSE; }
329 Bool_t HandleMotion(Event_t *) override { return kFALSE; }
330 Bool_t HandleKey(Event_t *) override { return kFALSE; }
331 Bool_t HandleFocusChange(Event_t *) override { return kFALSE; }
332 Bool_t HandleSelection(Event_t *) override { return kFALSE; }
333 Bool_t HandleDragEnter(TGFrame *) override;
334 Bool_t HandleDragLeave(TGFrame *) override;
335 Bool_t HandleDragMotion(TGFrame *) override;
336 Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo) override;
337 void ChangeOptions(UInt_t options) override;
339
341 virtual void SetLayoutManager(TGLayoutManager *l);
342
343 virtual TGFrameElement* FindFrameElement(TGFrame *f) const;
344
345 virtual void AddFrame(TGFrame *f, TGLayoutHints *l = nullptr);
346 virtual void RemoveAll();
347 virtual void RemoveFrame(TGFrame *f);
348 virtual void ShowFrame(TGFrame *f);
349 virtual void HideFrame(TGFrame *f);
350 Int_t GetState(TGFrame *f) const;
351 Bool_t IsVisible(TGFrame *f) const;
352 Bool_t IsVisible(TGFrameElement *ptr) const { return (ptr->fState & kIsVisible); }
353 Bool_t IsArranged(TGFrame *f) const;
354 Bool_t IsArranged(TGFrameElement *ptr) const { return (ptr->fState & kIsArranged); }
355 Bool_t IsComposite() const override { return kTRUE; }
356 Bool_t IsEditable() const override;
357 void SetEditable(Bool_t on = kTRUE) override;
358 void SetLayoutBroken(Bool_t on = kTRUE) override;
359 Bool_t IsLayoutBroken() const override { return fLayoutBroken || !fLayoutManager; }
360 void SetEditDisabled(UInt_t on = 1) override;
361 void SetCleanup(Int_t mode = kLocalCleanup) override;
362 Int_t MustCleanup() const override { return fMustCleanup; }
363 virtual void Cleanup();
365 Bool_t IsMapSubwindows() const override { return fMapSubwindows; }
366
367 void Print(Option_t *option="") const override;
368 virtual void ChangeSubframesBackground(Pixel_t back);
369 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
370 virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option = "");
371
372 ClassDefOverride(TGCompositeFrame,0) // Base class for composite widgets (menubars, etc.)
373};
374
375
377public:
378 TGVerticalFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
379 UInt_t options = kChildFrame,
381 TGCompositeFrame(p, w, h, options | kVerticalFrame, back) { SetWindowName(); }
382 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
383
384 ClassDefOverride(TGVerticalFrame,0) // Composite frame with vertical child layout
385};
386
388public:
389 TGHorizontalFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
390 UInt_t options = kChildFrame,
392 TGCompositeFrame(p, w, h, options | kHorizontalFrame, back) { SetWindowName(); }
393 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
394
395 ClassDefOverride(TGHorizontalFrame,0) // Composite frame with horizontal child layout
396};
397
398
400
401protected:
402 enum { kDontCallClose = BIT(14) };
403
404 // mapping between key and window
414
415 Atom_t *fDNDTypeList; ///< handles DND types
416 TList *fBindList; ///< list with key bindings
417 TString fWindowName; ///< window name
418 TString fIconName; ///< icon name
419 TString fIconPixmap; ///< icon pixmap name
420 TString fClassName; ///< WM class name
421 TString fResourceName; ///< WM resource name
422 UInt_t fMWMValue; ///< MWM decoration hints
423 UInt_t fMWMFuncs; ///< MWM functions
424 UInt_t fMWMInput; ///< MWM input modes
425 Int_t fWMX; ///< WM x position
426 Int_t fWMY; ///< WM y position
427 UInt_t fWMWidth; ///< WM width
428 UInt_t fWMHeight; ///< WM height
429 UInt_t fWMMinWidth; ///< WM min width
430 UInt_t fWMMinHeight; ///< WM min height
431 UInt_t fWMMaxWidth; ///< WM max width
432 UInt_t fWMMaxHeight; ///< WM max height
433 UInt_t fWMWidthInc; ///< WM width increments
434 UInt_t fWMHeightInc; ///< WM height increments
435 EInitialState fWMInitState; ///< WM initial state
436
437 TString GetMWMvalueString() const; ///< used in SaveSource()
438 TString GetMWMfuncString() const; ///< used in SaveSource()
439 TString GetMWMinpString() const; ///< used in SaveSource()
440
441private:
442 TGMainFrame(const TGMainFrame&) = delete;
444
445public:
446 TGMainFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
447 UInt_t options = kVerticalFrame);
448 ~TGMainFrame() override;
449
450 Bool_t HandleKey(Event_t *event) override;
451 Bool_t HandleClientMessage(Event_t *event) override;
452 Bool_t HandleSelection(Event_t *event) override;
453 Bool_t HandleSelectionRequest(Event_t *event) override;
454 Bool_t HandleButton(Event_t *event) override;
455 Bool_t HandleMotion(Event_t *event) override;
457 virtual Bool_t SaveFrameAsCodeOrImage(const TString &fileName);
458 virtual void SendCloseMessage();
459 virtual void CloseWindow(); //*SIGNAL*
460
461 void DontCallClose();
462 void SetWindowName(const char *name = nullptr) override;
463 void SetIconName(const char *name);
464 const TGPicture *SetIconPixmap(const char *iconName);
465 void SetIconPixmap(char **xpm_array);
466 void SetClassHints(const char *className, const char *resourceName);
468 void SetWMPosition(Int_t x, Int_t y);
469 void SetWMSize(UInt_t w, UInt_t h);
472 void SetWMState(EInitialState state);
473
474 virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const;
475 virtual void RemoveBind(const TGWindow *w, Int_t keycode, Int_t modifier) const;
476 TList *GetBindList() const { return fBindList; }
477
478 const char *GetWindowName() const { return fWindowName; }
479 const char *GetIconName() const override { return fIconName; }
480 const char *GetIconPixmap() const { return fIconPixmap; }
481 void GetClassHints(const char *&className, const char *&resourceName) const
482 { className = fClassName.Data(); resourceName = fResourceName.Data(); }
485 void GetWMPosition(Int_t &x, Int_t &y) const { x = fWMX; y = fWMY; }
486 void GetWMSize(UInt_t &w, UInt_t &h) const { w = fWMWidth; h = fWMHeight; }
492
493 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
494 virtual void SaveSource(const char *filename = "Rootappl.C", Option_t *option = ""); // *MENU*icon=bld_save.png*
495
496 ClassDefOverride(TGMainFrame,0) // Top level window frame
497};
498
499
501
502protected:
503 const TGWindow *fMain; // window over which to popup dialog
504
505private:
508
509public:
510 TGTransientFrame(const TGWindow *p = nullptr, const TGWindow *main = nullptr, UInt_t w = 1, UInt_t h = 1,
511 UInt_t options = kVerticalFrame);
512
515 virtual void CenterOnParent(Bool_t croot = kTRUE, EPlacement pos = kCenter);
516 const TGWindow *GetMain() const { return fMain; }
517 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
518 void SaveSource(const char *filename = "Rootdlog.C", Option_t *option = "") override; // *MENU*icon=bld_save.png*
519
520 ClassDefOverride(TGTransientFrame,0) // Frame for dialog (transient) windows
521};
522
523
525
526protected:
527 TGString *fText; ///< title text
528 FontStruct_t fFontStruct; ///< title fontstruct
529 GContext_t fNormGC; ///< title graphics context
530 Int_t fTitlePos; ///< *OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",1="Right")}*
531 Bool_t fHasOwnFont; ///< kTRUE - font defined locally, kFALSE - globally
532
533 void DoRedraw() override;
534
535 static const TGFont *fgDefaultFont;
536 static const TGGC *fgDefaultGC;
537
538private:
539 TGGroupFrame(const TGGroupFrame&) = delete;
541
542public:
543 enum ETitlePos { kLeft = -1, kCenter = 0, kRight = 1 };
544
546 static const TGGC &GetDefaultGC();
547
548 TGGroupFrame(const TGWindow *p, TGString *title,
549 UInt_t options = kVerticalFrame,
553 TGGroupFrame(const TGWindow *p = nullptr, const char *title = nullptr,
554 UInt_t options = kVerticalFrame,
558 ~TGGroupFrame() override;
559
560 TGDimension GetDefaultSize() const override;
561 void DrawBorder() override;
562 virtual void SetTitle(TGString *title);
563 virtual void SetTitle(const char *title);
564 virtual void Rename(const char *title) { SetTitle(title); } //*MENU*icon=bld_rename.png*
565 Int_t GetTitlePos() const { return fTitlePos; }
566 virtual void SetTitlePos(ETitlePos pos = kLeft) { fTitlePos = pos; } //*SUBMENU*
567 virtual void SetTextColor(Pixel_t color, Bool_t local = kTRUE);
568 virtual void SetTextFont(const char *fontName, Bool_t local = kTRUE);
569 virtual void SetTextFont(FontStruct_t font, Bool_t local = kTRUE);
570 GContext_t GetNormGC() const { return fNormGC; }
572
573 const char *GetTitle() const override { return fText->GetString(); }
574 Bool_t HasOwnFont() const;
575
576 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
577
578 ClassDefOverride(TGGroupFrame,0) // A composite frame with border and title
579};
580
581
583private:
584 TGHeaderFrame(const TGHeaderFrame&) = delete;
586
587protected:
588 Int_t fNColumns; ///< number of columns
589 TGTextButton **fColHeader; ///< column headers for in detailed mode
590 TGVFileSplitter **fSplitHeader; ///< column splitters
591 Cursor_t fSplitCursor; ///< split cursor;
592 Bool_t fOverSplitter; ///< Indicates if the cursor is over a splitter
593 Int_t fOverButton; ///< Indicates over which button the mouse is
594 Int_t fLastButton; ///< Indicates the last button clicked if any
595
596public:
597 TGHeaderFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
598 UInt_t options = kChildFrame,
600
601 Bool_t HandleButton(Event_t* event) override;
602 Bool_t HandleMotion(Event_t* event) override;
603 Bool_t HandleDoubleClick(Event_t *event) override;
604
606
607 ClassDefOverride(TGHeaderFrame,0) // Header frame with buttons and splitters
608};
609
610
611#endif
Handle_t Atom_t
WM token.
Definition GuiTypes.h:37
Handle_t Window_t
Window handle.
Definition GuiTypes.h:29
ULong_t Time_t
Event time.
Definition GuiTypes.h:42
Handle_t GContext_t
Graphics context handle.
Definition GuiTypes.h:38
EInitialState
Initial window mapping state.
Definition GuiTypes.h:345
@ kChildFrame
Definition GuiTypes.h:379
@ kVerticalFrame
Definition GuiTypes.h:381
@ kHorizontalFrame
Definition GuiTypes.h:382
Handle_t Cursor_t
Cursor handle.
Definition GuiTypes.h:34
const Handle_t kNone
Definition GuiTypes.h:88
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
ULongptr_t Handle_t
Generic resource handle.
Definition GuiTypes.h:26
Handle_t FontStruct_t
Pointer to font structure.
Definition GuiTypes.h:39
int main()
Definition Prototype.cxx:12
#define f(i)
Definition RSha256.hxx:104
#define c(i)
Definition RSha256.hxx:101
#define h(i)
Definition RSha256.hxx:106
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
long Longptr_t
Definition RtypesCore.h:75
unsigned int UInt_t
Definition RtypesCore.h:46
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
const char Option_t
Definition RtypesCore.h:66
#define BIT(n)
Definition Rtypes.h:90
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
EMWMHints
Definition TGFrame.h:47
@ kMWMDecorResizeH
Definition TGFrame.h:65
@ kMWMFuncAll
Definition TGFrame.h:49
@ kMWMInputPrimaryApplicationModal
Definition TGFrame.h:58
@ kMWMInputSystemModal
Definition TGFrame.h:59
@ kMWMFuncMove
Definition TGFrame.h:51
@ kMWMDecorBorder
Definition TGFrame.h:64
@ kMWMFuncResize
Definition TGFrame.h:50
@ kMWMDecorMaximize
Definition TGFrame.h:69
@ kMWMDecorTitle
Definition TGFrame.h:66
@ kMWMDecorMinimize
Definition TGFrame.h:68
@ kMWMDecorMenu
Definition TGFrame.h:67
@ kMWMDecorAll
Definition TGFrame.h:63
@ kMWMInputFullApplicationModal
Definition TGFrame.h:60
@ kMWMFuncMaximize
Definition TGFrame.h:53
@ kMWMInputModeless
Definition TGFrame.h:57
@ kMWMFuncClose
Definition TGFrame.h:54
@ kMWMFuncMinimize
Definition TGFrame.h:52
EFrameCleanup
Definition TGFrame.h:39
@ kNoCleanup
Definition TGFrame.h:40
@ kLocalCleanup
Definition TGFrame.h:41
@ kDeepCleanup
Definition TGFrame.h:42
EFrameState
Definition TGFrame.h:32
@ kIsArranged
Definition TGFrame.h:35
@ kIsVisible
Definition TGFrame.h:33
@ kIsMapped
Definition TGFrame.h:34
EDNDFlags
Definition TGFrame.h:74
@ kIsDNDTarget
Definition TGFrame.h:76
@ kIsDNDSource
Definition TGFrame.h:75
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetIconPixmap
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 TranslateCoordinates
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmin
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 filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmin
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 child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t SetTextFont
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void funcs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetMWMHints
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t winc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t modifier
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t SetWMSizeHints
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 Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hinc
char name[80]
Definition TGX11.cxx:110
Drag and drop data container.
Window client.
Definition TGClient.h:37
const TGResourcePool * GetResourcePool() const
Definition TGClient.h:124
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:289
Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo) override
Handle drop event.
Definition TGFrame.cxx:1421
void SetMapSubwindows(Bool_t on) override
Definition TGFrame.h:364
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
Definition TGFrame.h:318
~TGCompositeFrame() override
Delete a composite frame.
Definition TGFrame.cxx:904
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
Definition TGFrame.cxx:1094
TGLayoutManager * fLayoutManager
layout manager
Definition TGFrame.h:293
virtual void ChangeSubframesBackground(Pixel_t back)
Change background color for this frame and all subframes.
Definition TGFrame.cxx:1288
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
Definition TGFrame.cxx:1000
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Definition TGFrame.cxx:1117
Bool_t HandleKey(Event_t *) override
Definition TGFrame.h:330
Bool_t HandleCrossing(Event_t *) override
Definition TGFrame.h:328
virtual TList * GetList() const
Definition TGFrame.h:312
UInt_t GetDefaultWidth() const override
Definition TGFrame.h:314
TGFrame * GetFrameFromPoint(Int_t x, Int_t y) override
Get frame located at specified point.
Definition TGFrame.cxx:1308
Int_t GetState(TGFrame *f) const
Get state of sub frame.
Definition TGFrame.cxx:1218
void Print(Option_t *option="") const override
Print all frames in this composite frame.
Definition TGFrame.cxx:1266
Bool_t ProcessMessage(Longptr_t, Longptr_t, Longptr_t) override
Definition TGFrame.h:338
Bool_t HandleDragMotion(TGFrame *) override
Handle drag motion event.
Definition TGFrame.cxx:1413
virtual TGLayoutManager * GetLayoutManager() const
Definition TGFrame.h:340
Int_t MustCleanup() const override
Definition TGFrame.h:362
Bool_t HandleSelection(Event_t *) override
Definition TGFrame.h:332
Bool_t HandleDragEnter(TGFrame *) override
Handle drag enter event.
Definition TGFrame.cxx:1365
Bool_t IsComposite() const override
Definition TGFrame.h:355
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
Definition TGFrame.cxx:967
Bool_t HandleDragLeave(TGFrame *) override
Handle drag leave event.
Definition TGFrame.cxx:1395
Int_t fMustCleanup
cleanup mode (see EFrameCleanup)
Definition TGFrame.h:296
Bool_t HandleDoubleClick(Event_t *) override
Definition TGFrame.h:327
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxiliary protected method used to save subframes.
Definition TGFrame.cxx:2649
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
Definition TGFrame.cxx:1164
Bool_t IsVisible(TGFrameElement *ptr) const
Definition TGFrame.h:352
UInt_t GetDefaultHeight() const override
Definition TGFrame.h:316
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
Definition TGFrame.cxx:1257
Bool_t HandleMotion(Event_t *) override
Definition TGFrame.h:329
Bool_t fLayoutBroken
no layout manager is used
Definition TGFrame.h:295
Bool_t fMapSubwindows
kTRUE - map subwindows
Definition TGFrame.h:297
virtual void ShowFrame(TGFrame *f)
Show sub frame.
Definition TGFrame.cxx:1204
TList * fList
container of frame elements
Definition TGFrame.h:294
Bool_t IsEditable() const override
Return kTRUE if frame is being edited.
Definition TGFrame.cxx:927
Bool_t IsArranged(TGFrameElement *ptr) const
Definition TGFrame.h:354
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
Definition TGFrame.cxx:1072
Bool_t IsLayoutBroken() const override
Definition TGFrame.h:359
Bool_t HandleButton(Event_t *) override
Definition TGFrame.h:326
Bool_t IsArranged(TGFrame *f) const
Get state of sub frame.
Definition TGFrame.cxx:1244
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
Definition TGFrame.cxx:1149
void SetEditable(Bool_t on=kTRUE) override
Switch ON/OFF edit mode.
Definition TGFrame.cxx:948
static TGLayoutHints * fgDefaultHints
Definition TGFrame.h:299
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a composite frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:2750
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
Definition TGFrame.cxx:1022
virtual void RemoveAll()
Remove all frames from composite frame.
Definition TGFrame.cxx:1131
Bool_t HandleFocusChange(Event_t *) override
Definition TGFrame.h:331
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
Definition TGFrame.cxx:1043
Bool_t IsMapSubwindows() const override
Definition TGFrame.h:365
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Definition TGFrame.cxx:1190
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
Definition TGFrame.cxx:1231
TGCompositeFrame & operator=(const TGCompositeFrame &)=delete
void SetLayoutBroken(Bool_t on=kTRUE) override
Set broken layout. No Layout method is called.
Definition TGFrame.cxx:1012
UInt_t fHeight
Definition TGDimension.h:21
UInt_t fWidth
Definition TGDimension.h:20
Encapsulate fonts used in the GUI system.
Definition TGFont.h:140
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Definition TGFrame.h:80
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
Definition TGFrame.cxx:321
virtual Atom_t HandleDNDEnter(Atom_t *)
Definition TGFrame.h:281
virtual void SetSize(const TGDimension &s)
Definition TGFrame.h:254
virtual void DrawCopy(Handle_t, Int_t, Int_t)
Definition TGFrame.h:211
virtual Bool_t HandleSelectionClear(Event_t *)
Definition TGFrame.h:172
void Delete(Option_t *="") override
Delete this object.
Definition TGFrame.h:262
TObject * DrawClone(Option_t *="") const override
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
Definition TGFrame.h:263
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition TGFrame.cxx:584
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
Definition TGFrame.cxx:696
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
Definition TGFrame.cxx:339
static const TGGC * fgWhiteGC
Definition TGFrame.h:106
virtual Int_t GetDragType() const
Returns drag source type.
Definition TGFrame.cxx:824
~TGFrame() override
Destructor.
Definition TGFrame.cxx:266
virtual void StartGuiBuilding(Bool_t on=kTRUE)
Go into GUI building mode.
Definition TGFrame.cxx:841
Bool_t IsEditable() const override
Definition TGFrame.h:215
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
Definition TGFrame.cxx:629
virtual Bool_t IsLayoutBroken() const
Definition TGFrame.h:218
static const TGGC & GetBlackGC()
Get black graphics context.
Definition TGFrame.cxx:735
static Pixel_t GetBlackPixel()
Get black pixel value.
Definition TGFrame.cxx:722
UInt_t fOptions
frame options
Definition TGFrame.h:94
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
Definition TGFrame.cxx:443
Int_t fX
frame x position
Definition TGFrame.h:85
virtual Bool_t HandleDoubleClick(Event_t *)
Definition TGFrame.h:164
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
Definition TGFrame.cxx:605
UInt_t fMinHeight
minimal frame height
Definition TGFrame.h:90
virtual Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
Definition TGFrame.h:279
Int_t GetBorderWidth() const
Definition TGFrame.h:235
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
Definition TGFrame.cxx:348
virtual Bool_t HandleDragEnter(TGFrame *)
Definition TGFrame.h:174
virtual Bool_t HandleDragLeave(TGFrame *)
Definition TGFrame.h:175
UInt_t GetEventMask() const
Definition TGFrame.h:157
virtual Bool_t HandleDNDDrop(TDNDData *)
Definition TGFrame.h:278
virtual void SetX(Int_t x)
Definition TGFrame.h:246
UInt_t GetMinWidth() const
Definition TGFrame.h:228
virtual void SetForegroundColor(Pixel_t)
Definition TGFrame.h:198
virtual Bool_t IsActive() const
Definition TGFrame.h:213
static Bool_t fgInit
Definition TGFrame.h:100
virtual Bool_t HandleKey(Event_t *)
Definition TGFrame.h:167
TGFrame(const TGFrame &)=delete
static Pixel_t GetWhitePixel()
Get white pixel value.
Definition TGFrame.cxx:709
virtual void SetMinWidth(UInt_t w)
Definition TGFrame.h:250
UInt_t fHeight
frame height
Definition TGFrame.h:88
virtual UInt_t GetDefaultWidth() const
Definition TGFrame.h:192
static Int_t fgDby
Definition TGFrame.h:112
virtual Bool_t HandleColormapChange(Event_t *)
Definition TGFrame.h:173
virtual void ReallyDelete()
Definition TGFrame.h:155
virtual UInt_t GetDefaultHeight() const
Definition TGFrame.h:193
virtual void SetDropType(Int_t type)
SetDropType.
Definition TGFrame.cxx:816
virtual void SetDragType(Int_t type)
SetDragType.
Definition TGFrame.cxx:809
UInt_t GetMaxHeight() const
Definition TGFrame.h:231
void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0) override
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
Definition TGFrame.h:204
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3152
virtual void DrawBorder()
Draw frame border.
Definition TGFrame.cxx:421
static const TGGC * fgBckgndGC
Definition TGFrame.h:109
virtual Bool_t ProcessMessage(Longptr_t, Longptr_t, Longptr_t)
Definition TGFrame.h:185
virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw 3D rectangle on the frame border.
Definition TGFrame.cxx:357
Int_t fBorderWidth
frame border width
Definition TGFrame.h:93
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
Definition TGFrame.cxx:312
void SetDrawOption(Option_t *="") override
Set drawing option for object.
Definition TGFrame.h:267
static const TGGC * fgShadowGC
Definition TGFrame.h:108
Bool_t HandleEvent(Event_t *event) override
Handle all frame events.
Definition TGFrame.cxx:457
TGDimension GetSize() const
Definition TGFrame.h:232
static Pixel_t fgDefaultSelectedBackground
Definition TGFrame.h:102
void DrawClass() const override
Draw class inheritance tree of the class to which this object belongs.
Definition TGFrame.h:264
UInt_t fMinWidth
minimal frame width
Definition TGFrame.h:89
virtual void Activate(Bool_t)
Definition TGFrame.h:212
void DoRedraw() override
Redraw the frame.
Definition TGFrame.cxx:430
void MapWindow() override
map window
Definition TGFrame.h:206
@ kDeleteWindowCalled
Definition TGFrame.h:83
virtual Pixel_t GetForeground() const
Return frame foreground color.
Definition TGFrame.cxx:303
TGFrameElement * GetFrameElement() const
Definition TGFrame.h:237
Bool_t IsDNDTarget() const
Definition TGFrame.h:275
static const TGGC & GetHilightGC()
Get highlight color graphics context.
Definition TGFrame.cxx:755
virtual void SetLayoutBroken(Bool_t=kTRUE)
Definition TGFrame.h:217
virtual Bool_t HandleDragMotion(TGFrame *)
Definition TGFrame.h:176
virtual Bool_t HandleDNDFinished()
Definition TGFrame.h:283
static UInt_t fgLastButton
Definition TGFrame.h:111
TGFrameElement * fFE
pointer to frame element
Definition TGFrame.h:98
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
virtual Int_t GetDropType() const
Returns drop target type.
Definition TGFrame.cxx:833
Int_t fDNDState
EDNDFlags.
Definition TGFrame.h:97
virtual void SetMaxHeight(UInt_t h)
Definition TGFrame.h:253
static Time_t GetLastClick()
Get time of last mouse click.
Definition TGFrame.cxx:785
void Move(Int_t x, Int_t y) override
Move frame.
Definition TGFrame.cxx:593
static const TGGC * fgBlackGC
Definition TGFrame.h:105
Int_t GetX() const
Definition TGFrame.h:233
void Dump() const override
Dump contents of object on stdout.
Definition TGFrame.h:265
static Int_t fgDbx
Definition TGFrame.h:112
static UInt_t fgUserColor
Definition TGFrame.h:114
virtual void DeleteWindow()
Delete window.
Definition TGFrame.cxx:276
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Definition TGFrame.h:242
virtual UInt_t GetOptions() const
Definition TGFrame.h:199
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
Definition TGFrame.cxx:2520
void SetDNDSource(Bool_t onoff)
Definition TGFrame.h:270
static Time_t fgLastClick
Definition TGFrame.h:110
Int_t fY
frame y position
Definition TGFrame.h:86
virtual Bool_t HandleFocusChange(Event_t *)
Definition TGFrame.h:168
virtual Bool_t IsComposite() const
Definition TGFrame.h:214
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
Definition TGFrame.cxx:293
UInt_t fMaxWidth
maximal frame width
Definition TGFrame.h:91
void UnmapWindow() override
unmap window
Definition TGFrame.h:208
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
Definition TGFrame.cxx:645
UInt_t GetMaxWidth() const
Definition TGFrame.h:230
virtual void ProcessedConfigure(Event_t *event)
Definition TGFrame.h:179
static const TGGC & GetShadowGC()
Get shadow color graphics context.
Definition TGFrame.cxx:765
virtual void SetMaxWidth(UInt_t w)
Definition TGFrame.h:252
const TGResourcePool * GetResourcePool() const
Definition TGFrame.h:123
virtual Bool_t HandleDNDLeave()
Definition TGFrame.h:282
virtual TDNDData * GetDNDData(Atom_t)
Definition TGFrame.h:277
virtual Bool_t HandleSelectionRequest(Event_t *)
Definition TGFrame.h:171
virtual Bool_t HandleSelection(Event_t *)
Definition TGFrame.h:170
void Print(Option_t *option="") const override
Print window id.
Definition TGFrame.cxx:793
UInt_t fWidth
frame width
Definition TGFrame.h:87
virtual Bool_t HandleButton(Event_t *)
Definition TGFrame.h:163
UInt_t GetMinHeight() const
Definition TGFrame.h:229
virtual Bool_t HandleMotion(Event_t *)
Definition TGFrame.h:166
void SetFrameElement(TGFrameElement *fe)
Definition TGFrame.h:238
UInt_t GetHeight() const
Definition TGFrame.h:227
virtual void SetCleanup(Int_t=kLocalCleanup)
Definition TGFrame.h:219
void MapSubwindows() override
map sub windows
Definition TGFrame.h:202
virtual Bool_t HandleClientMessage(Event_t *event)
Handle a client message.
Definition TGFrame.cxx:669
virtual void SetMinHeight(UInt_t h)
Definition TGFrame.h:251
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
Definition TGFrame.cxx:2501
Bool_t IsDNDSource() const
Definition TGFrame.h:274
Int_t GetY() const
Definition TGFrame.h:234
virtual void Layout()
Definition TGFrame.h:201
virtual Pixel_t GetBackground() const
Definition TGFrame.h:194
UInt_t fEventMask
currently active event mask
Definition TGFrame.h:96
UInt_t fMaxHeight
maximal frame height
Definition TGFrame.h:92
virtual void SetWidth(UInt_t w)
Definition TGFrame.h:248
void SetDNDTarget(Bool_t onoff)
Definition TGFrame.h:272
virtual Bool_t HandleCrossing(Event_t *)
Definition TGFrame.h:165
virtual void ProcessedEvent(Event_t *event)
Definition TGFrame.h:181
static Window_t fgDbw
Definition TGFrame.h:113
Bool_t Contains(Int_t x, Int_t y) const
Definition TGFrame.h:240
virtual void SetY(Int_t y)
Definition TGFrame.h:247
virtual Bool_t HandleDragDrop(TGFrame *, Int_t, Int_t, TGLayoutHints *)
Definition TGFrame.h:177
static const TGGC & GetWhiteGC()
Get white graphics context.
Definition TGFrame.cxx:745
static Pixel_t fgWhitePixel
Definition TGFrame.h:103
UInt_t GetWidth() const
Definition TGFrame.h:226
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
Definition TGFrame.cxx:2479
void * GetSender() override
Definition TGFrame.h:118
virtual void SetHeight(UInt_t h)
Definition TGFrame.h:249
void SetEditable(Bool_t) override
Definition TGFrame.h:216
void Inspect() const override
Dump contents of this object in a graphics canvas.
Definition TGFrame.h:266
Pixel_t fBackground
frame background color
Definition TGFrame.h:95
TGFrame & operator=(const TGFrame &)=delete
static Pixel_t fgBlackPixel
Definition TGFrame.h:104
static const TGGC & GetBckgndGC()
Get background color graphics context.
Definition TGFrame.cxx:775
static const TGGC * fgHilightGC
Definition TGFrame.h:107
void MapRaised() override
map raised
Definition TGFrame.h:207
static Pixel_t fgDefaultFrameBackground
Definition TGFrame.h:101
Encapsulate a graphics context used in the low level graphics.
Definition TGGC.h:22
A composite frame with a border and a title.
Definition TGFrame.h:524
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a group frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3167
TGString * fText
title text
Definition TGFrame.h:527
Bool_t fHasOwnFont
kTRUE - font defined locally, kFALSE - globally
Definition TGFrame.h:531
TGGroupFrame & operator=(const TGGroupFrame &)=delete
FontStruct_t GetFontStruct() const
Definition TGFrame.h:571
static const TGGC & GetDefaultGC()
Return default graphics context in use.
Definition TGFrame.cxx:2347
static const TGGC * fgDefaultGC
Definition TGFrame.h:536
TGGroupFrame(const TGGroupFrame &)=delete
GContext_t GetNormGC() const
Definition TGFrame.h:570
Int_t fTitlePos
OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",...
Definition TGFrame.h:530
static const TGFont * fgDefaultFont
Definition TGFrame.h:535
void DrawBorder() override
Draw border of around the group frame.
Definition TGFrame.cxx:2226
TGDimension GetDefaultSize() const override
Returns default size.
Definition TGFrame.cxx:2131
virtual void SetTitlePos(ETitlePos pos=kLeft)
Definition TGFrame.h:566
void DoRedraw() override
Redraw the group frame.
Definition TGFrame.cxx:2145
virtual void Rename(const char *title)
Definition TGFrame.h:564
FontStruct_t fFontStruct
title fontstruct
Definition TGFrame.h:528
GContext_t fNormGC
title graphics context
Definition TGFrame.h:529
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
Definition TGFrame.cxx:2337
~TGGroupFrame() override
Delete a group frame.
Definition TGFrame.cxx:2118
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global).
Definition TGFrame.cxx:2215
virtual void SetTextColor(Pixel_t color, Bool_t local=kTRUE)
Changes text color.
Definition TGFrame.cxx:2157
Int_t GetTitlePos() const
Definition TGFrame.h:565
const char * GetTitle() const override
Returns title of object.
Definition TGFrame.h:573
virtual void SetTitle(TGString *title)
Set or change title of the group frame.
Definition TGFrame.cxx:2308
Horizontal Frame used to contain header buttons and splitters in a list view.
Definition TGFrame.h:582
Bool_t HandleDoubleClick(Event_t *event) override
Handle double click mouse event in header frame.
Definition TGFrame.cxx:2422
Int_t fLastButton
Indicates the last button clicked if any.
Definition TGFrame.h:594
void SetColumnsInfo(Int_t nColumns, TGTextButton **colHeader, TGVFileSplitter **splitHeader)
Set columns information in the header frame.
Definition TGFrame.cxx:2379
TGVFileSplitter ** fSplitHeader
column splitters
Definition TGFrame.h:590
Bool_t fOverSplitter
Indicates if the cursor is over a splitter.
Definition TGFrame.h:592
TGHeaderFrame(const TGHeaderFrame &)=delete
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion events in header frame.
Definition TGFrame.cxx:2449
TGTextButton ** fColHeader
column headers for in detailed mode
Definition TGFrame.h:589
Cursor_t fSplitCursor
split cursor;
Definition TGFrame.h:591
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in header frame.
Definition TGFrame.cxx:2390
Int_t fNColumns
number of columns
Definition TGFrame.h:588
TGHeaderFrame & operator=(const TGHeaderFrame &)=delete
Int_t fOverButton
Indicates over which button the mouse is.
Definition TGFrame.h:593
A composite frame that layout their children in horizontal way.
Definition TGFrame.h:387
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a horizontal frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3094
TGHorizontalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Definition TGFrame.h:389
This class describes layout hints used by the layout classes.
Definition TGLayout.h:50
Frame layout manager.
Definition TGLayout.h:135
virtual TGDimension GetDefaultSize() const =0
TGMapKey & operator=(const TGMapKey &)
TGMapKey(UInt_t keycode, TGWindow *w)
Definition TGFrame.h:412
TGWindow * fWindow
Definition TGFrame.h:411
TGMapKey(const TGMapKey &)
Defines top level windows that interact with the system Window Manager.
Definition TGFrame.h:399
void GetWMSizeHints(UInt_t &wmin, UInt_t &hmin, UInt_t &wmax, UInt_t &hmax, UInt_t &winc, UInt_t &hinc) const
Definition TGFrame.h:487
TGMainFrame(const TGMainFrame &)=delete
UInt_t fWMWidthInc
WM width increments.
Definition TGFrame.h:433
UInt_t fWMHeightInc
WM height increments.
Definition TGFrame.h:434
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion events.
Definition TGFrame.cxx:1691
virtual Bool_t SaveFrameAsCodeOrImage()
Opens dialog window allowing user to save the frame contents as a ROOT macro or as an image.
Definition TGFrame.cxx:1527
virtual void SaveSource(const char *filename="Rootappl.C", Option_t *option="")
Save the GUI main frame widget in a C++ macro file.
Definition TGFrame.cxx:2784
TList * GetBindList() const
Definition TGFrame.h:476
TString GetMWMfuncString() const
used in SaveSource()
Definition TGFrame.cxx:2594
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
Definition TGFrame.cxx:1780
UInt_t fWMWidth
WM width.
Definition TGFrame.h:427
UInt_t fWMMinHeight
WM min height.
Definition TGFrame.h:430
void GetWMPosition(Int_t &x, Int_t &y) const
Definition TGFrame.h:485
Int_t fWMY
WM y position.
Definition TGFrame.h:426
EInitialState GetWMState() const
Definition TGFrame.h:491
UInt_t fWMMinWidth
WM min width.
Definition TGFrame.h:429
TString fResourceName
WM resource name.
Definition TGFrame.h:421
UInt_t fMWMValue
MWM decoration hints.
Definition TGFrame.h:422
void GetWMSize(UInt_t &w, UInt_t &h) const
Definition TGFrame.h:486
Atom_t * fDNDTypeList
handles DND types
Definition TGFrame.h:415
virtual void SendCloseMessage()
Send close message to self.
Definition TGFrame.cxx:1744
void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
Definition TGFrame.h:483
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
Definition TGFrame.cxx:1858
Int_t fWMX
WM x position.
Definition TGFrame.h:425
virtual void CloseWindow()
Close and delete main frame.
Definition TGFrame.cxx:1770
TString fIconPixmap
icon pixmap name
Definition TGFrame.h:419
UInt_t fWMMaxWidth
WM max width.
Definition TGFrame.h:431
~TGMainFrame() override
TGMainFrame destructor.
Definition TGFrame.cxx:1507
Bool_t HandleButton(Event_t *event) override
Handle mouse button events.
Definition TGFrame.cxx:1679
Bool_t HandleClientMessage(Event_t *event) override
Handle client messages sent to this frame.
Definition TGFrame.cxx:1727
TString fWindowName
window name
Definition TGFrame.h:417
@ kDontCallClose
Definition TGFrame.h:402
UInt_t fWMHeight
WM height.
Definition TGFrame.h:428
TList * fBindList
list with key bindings
Definition TGFrame.h:416
UInt_t fWMMaxHeight
WM max height.
Definition TGFrame.h:432
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Definition TGFrame.cxx:1924
TGMainFrame & operator=(const TGMainFrame &)=delete
virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const
Bind key to a window.
Definition TGFrame.cxx:1637
UInt_t fMWMFuncs
MWM functions.
Definition TGFrame.h:423
EInitialState fWMInitState
WM initial state.
Definition TGFrame.h:435
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
Definition TGFrame.cxx:1801
TString GetMWMinpString() const
used in SaveSource()
Definition TGFrame.cxx:2631
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
Definition TGFrame.cxx:1893
TString fClassName
WM class name.
Definition TGFrame.h:420
TString fIconName
icon name
Definition TGFrame.h:418
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
Definition TGFrame.cxx:1788
TString GetMWMvalueString() const
used in SaveSource()
Definition TGFrame.cxx:2554
Bool_t HandleKey(Event_t *event) override
Handle keyboard events.
Definition TGFrame.cxx:1606
const char * GetWindowName() const
Definition TGFrame.h:478
Bool_t HandleSelection(Event_t *event) override
Handle primary selection event.
Definition TGFrame.cxx:1703
const char * GetIconPixmap() const
Definition TGFrame.h:480
const char * GetIconName() const override
Returns mime type name of object.
Definition TGFrame.h:479
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a main frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3050
virtual void RemoveBind(const TGWindow *w, Int_t keycode, Int_t modifier) const
Remove key binding.
Definition TGFrame.cxx:1660
void GetClassHints(const char *&className, const char *&resourceName) const
Definition TGFrame.h:481
Bool_t HandleSelectionRequest(Event_t *event) override
Handle selection request event.
Definition TGFrame.cxx:1715
UInt_t fMWMInput
MWM input modes.
Definition TGFrame.h:424
TGClient * fClient
Connection to display server.
Definition TGObject.h:25
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
This class implements a pool for the default GUI resource set, like GC's, colors, fonts,...
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
Definition TGString.h:20
const char * GetString() const
Definition TGString.h:30
Yield an action as soon as it is clicked.
Definition TGButton.h:142
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:500
TGTransientFrame & operator=(const TGTransientFrame &)=delete
void SaveSource(const char *filename="Rootdlog.C", Option_t *option="") override
Save the GUI transient frame widget in a C++ macro file.
Definition TGFrame.cxx:3239
const TGWindow * GetMain() const
Definition TGFrame.h:516
TGTransientFrame(const TGTransientFrame &)=delete
const TGWindow * fMain
Definition TGFrame.h:503
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
Definition TGFrame.cxx:1957
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a transient frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3500
A composite frame that layout their children in vertical way.
Definition TGFrame.h:376
TGVerticalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Definition TGFrame.h:378
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a vertical frame widget as a C++ statement(s) on output stream out.
Definition TGFrame.cxx:3123
ROOT GUI Window base class.
Definition TGWindow.h:23
virtual void MapRaised()
map raised
Definition TGWindow.cxx:176
virtual void MapWindow()
map window
Definition TGWindow.cxx:160
virtual void UnmapWindow()
unmap window
Definition TGWindow.cxx:184
virtual void SetWindowName(const char *name=nullptr)
Set window name.
Definition TGWindow.cxx:129
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
Definition TGWindow.cxx:257
A doubly linked list.
Definition TList.h:38
Mother of all ROOT objects.
Definition TObject.h:41
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Definition TQObject.h:48
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition TQObject.h:164
Basic string class.
Definition TString.h:139
const char * Data() const
Definition TString.h:376
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Event structure.
Definition GuiTypes.h:174
TLine l
Definition textangle.C:4