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