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 // //
17 // TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame, //
18 // TGMainFrame, TGTransientFrame and TGGroupFrame //
19 // //
20 // This header contains all different Frame classes. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TGWindow.h"
25 #include "TQObject.h"
26 #include "TGDimension.h"
27 #include "TGGC.h"
28 #include "TGFont.h"
29 #include "TGLayout.h"
30 #include "TGString.h"
31 
32 class TGResourcePool;
33 class TGTextButton;
34 class TGVFileSplitter;
35 class TDNDData;
36 class TList;
37 
38 //---- frame states
39 
43  kIsArranged = BIT(1)
44 };
45 
46 //---- frame cleanup
50  kDeepCleanup = -1
51 };
52 
53 //---- MWM hints stuff
54 
55 enum EMWMHints {
56  // functions
63 
64  // input mode
69 
70  // decorations
78 };
79 
80 //---- drag and drop
81 
82 enum EDNDFlags {
84  kIsDNDTarget = BIT(1)
85 };
86 
87 
88 
89 //////////////////////////////////////////////////////////////////////////
90 // //
91 // TGFrame //
92 // //
93 // This class subclasses TGWindow, used as base class for some simple //
94 // widgets (buttons, labels, etc.). //
95 // It provides: //
96 // - position & dimension fields //
97 // - an 'options' attribute (see constant above) //
98 // - a generic event handler //
99 // - a generic layout mechanism //
100 // - a generic border //
101 // //
102 //////////////////////////////////////////////////////////////////////////
103 
104 class TGFrame : public TGWindow, public TQObject {
105 
106 protected:
107  enum { kDeleteWindowCalled = BIT(15) };
108 
109  Int_t fX; // frame x position
110  Int_t fY; // frame y position
111  UInt_t fWidth; // frame width
112  UInt_t fHeight; // frame height
113  UInt_t fMinWidth; // minimal frame width
114  UInt_t fMinHeight; // minimal frame height
115  UInt_t fMaxWidth; // maximal frame width
116  UInt_t fMaxHeight; // maximal frame height
117  Int_t fBorderWidth; // frame border width
118  UInt_t fOptions; // frame options
119  Pixel_t fBackground; // frame background color
120  UInt_t fEventMask; // currenty active event mask
121  Int_t fDNDState; // EDNDFlags
122  TGFrameElement *fFE; // pointer to frame element
123 
124  static Bool_t fgInit;
129  static const TGGC *fgBlackGC;
130  static const TGGC *fgWhiteGC;
131  static const TGGC *fgHilightGC;
132  static const TGGC *fgShadowGC;
133  static const TGGC *fgBckgndGC;
136  static Int_t fgDbx, fgDby;
137  static Window_t fgDbw;
139 
140  static Time_t GetLastClick();
141 
142  virtual void *GetSender() { return this; } //used to set gTQSender
143  virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y,
144  UInt_t w, UInt_t h);
145  virtual void DoRedraw();
146 
148  { return fClient->GetResourcePool(); }
149 
150  TString GetOptionString() const; //used in SavePrimitive()
151 
152  // some protected methods use in gui builder
153  virtual void StartGuiBuilding(Bool_t on = kTRUE);
154 
155 private:
156  TGFrame(const TGFrame&) = delete;
157  TGFrame& operator=(const TGFrame&) = delete;
158 
159 public:
160  // Default colors and graphics contexts
163  static Pixel_t GetWhitePixel();
164  static Pixel_t GetBlackPixel();
165  static const TGGC &GetBlackGC();
166  static const TGGC &GetWhiteGC();
167  static const TGGC &GetHilightGC();
168  static const TGGC &GetShadowGC();
169  static const TGGC &GetBckgndGC();
170 
171  TGFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
172  UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground());
173  TGFrame(TGClient *c, Window_t id, const TGWindow *parent = nullptr);
174  virtual ~TGFrame();
175 
176  virtual void DeleteWindow();
177  virtual void ReallyDelete() { delete this; }
178 
179  UInt_t GetEventMask() const { return fEventMask; }
180  void AddInput(UInt_t emask);
181  void RemoveInput(UInt_t emask);
182 
183  virtual Bool_t HandleEvent(Event_t *event);
184  virtual Bool_t HandleConfigureNotify(Event_t *event);
185  virtual Bool_t HandleButton(Event_t *) { return kFALSE; }
186  virtual Bool_t HandleDoubleClick(Event_t *) { return kFALSE; }
187  virtual Bool_t HandleCrossing(Event_t *) { return kFALSE; }
188  virtual Bool_t HandleMotion(Event_t *) { return kFALSE; }
189  virtual Bool_t HandleKey(Event_t *) { return kFALSE; }
190  virtual Bool_t HandleFocusChange(Event_t *) { return kFALSE; }
191  virtual Bool_t HandleClientMessage(Event_t *event);
192  virtual Bool_t HandleSelection(Event_t *) { return kFALSE; }
194  virtual Bool_t HandleSelectionClear(Event_t *) { return kFALSE; }
195  virtual Bool_t HandleColormapChange(Event_t *) { return kFALSE; }
196  virtual Bool_t HandleDragEnter(TGFrame *) { return kFALSE; }
197  virtual Bool_t HandleDragLeave(TGFrame *) { return kFALSE; }
198  virtual Bool_t HandleDragMotion(TGFrame *) { return kFALSE; }
200  { return kFALSE; }
201  virtual void ProcessedConfigure(Event_t *event)
202  { Emit("ProcessedConfigure(Event_t*)", (Long_t)event); } //*SIGNAL*
203  virtual void ProcessedEvent(Event_t *event)
204  { Emit("ProcessedEvent(Event_t*)", (Long_t)event); } //*SIGNAL*
205 
206  virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2);
208 
209  virtual TGDimension GetDefaultSize() const ;
210  virtual void Move(Int_t x, Int_t y);
211  virtual void Resize(UInt_t w = 0, UInt_t h = 0);
212  virtual void Resize(TGDimension size);
213  virtual void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0);
214  virtual UInt_t GetDefaultWidth() const { return GetDefaultSize().fWidth; }
215  virtual UInt_t GetDefaultHeight() const { return GetDefaultSize().fHeight; }
216  virtual Pixel_t GetBackground() const { return fBackground; }
217  virtual void ChangeBackground(Pixel_t back);
218  virtual void SetBackgroundColor(Pixel_t back);
219  virtual Pixel_t GetForeground() const;
220  virtual void SetForegroundColor(Pixel_t /*fore*/) { }
221  virtual UInt_t GetOptions() const { return fOptions; }
222  virtual void ChangeOptions(UInt_t options);
223  virtual void Layout() { }
224  virtual void MapSubwindows() { } // Simple frames do not have subwindows
225  // Redefine this in TGCompositeFrame!
226  virtual void ReparentWindow(const TGWindow *p, Int_t x = 0, Int_t y = 0)
227  { TGWindow::ReparentWindow(p, x, y); Move(x, y); }
228  virtual void MapWindow() { TGWindow::MapWindow(); if (fFE) fFE->fState |= kIsVisible; }
229  virtual void MapRaised() { TGWindow::MapRaised(); if (fFE) fFE->fState |= kIsVisible; }
230  virtual void UnmapWindow() { TGWindow::UnmapWindow(); if (fFE) fFE->fState &= ~kIsVisible; }
231 
232  virtual void DrawBorder();
233  virtual void DrawCopy(Handle_t /*id*/, Int_t /*x*/, Int_t /*y*/) { }
234  virtual void Activate(Bool_t) { }
235  virtual Bool_t IsActive() const { return kFALSE; }
236  virtual Bool_t IsComposite() const { return kFALSE; }
237  virtual Bool_t IsEditable() const { return kFALSE; }
238  virtual void SetEditable(Bool_t) {}
239  virtual void SetLayoutBroken(Bool_t = kTRUE) {}
240  virtual Bool_t IsLayoutBroken() const { return kFALSE; }
241  virtual void SetCleanup(Int_t = kLocalCleanup) { /* backward compatebility */ }
242 
243  virtual void SetDragType(Int_t type);
244  virtual void SetDropType(Int_t type);
245  virtual Int_t GetDragType() const;
246  virtual Int_t GetDropType() const;
247 
248  UInt_t GetWidth() const { return fWidth; }
249  UInt_t GetHeight() const { return fHeight; }
250  UInt_t GetMinWidth() const { return fMinWidth; }
251  UInt_t GetMinHeight() const { return fMinHeight; }
252  UInt_t GetMaxWidth() const { return fMaxWidth; }
253  UInt_t GetMaxHeight() const { return fMaxHeight; }
255  Int_t GetX() const { return fX; }
256  Int_t GetY() const { return fY; }
257  Int_t GetBorderWidth() const { return fBorderWidth; }
258 
259  TGFrameElement *GetFrameElement() const { return fFE; }
260  void SetFrameElement(TGFrameElement *fe) { fFE = fe; }
261 
263  { return ((x >= 0) && (x < (Int_t)fWidth) && (y >= 0) && (y < (Int_t)fHeight)); }
265  { return (Contains(x, y) ? this : 0); }
266 
267  // Modifiers (without graphic update)
268  virtual void SetX(Int_t x) { fX = x; }
269  virtual void SetY(Int_t y) { fY = y; }
270  virtual void SetWidth(UInt_t w) { fWidth = w; }
271  virtual void SetHeight(UInt_t h) { fHeight = h; }
272  virtual void SetMinWidth(UInt_t w) { fMinWidth = w; }
273  virtual void SetMinHeight(UInt_t h) { fMinHeight = h; }
274  virtual void SetMaxWidth(UInt_t w) { fMaxWidth = w; }
275  virtual void SetMaxHeight(UInt_t h) { fMaxHeight = h; }
276  virtual void SetSize(const TGDimension &s) { fWidth = s.fWidth; fHeight = s.fHeight; }
277 
278  // Printing and saving
279  virtual void Print(Option_t *option="") const;
280  void SaveUserColor(std::ostream &out, Option_t *);
281  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
282 
283  // dummy to remove from context menu
284  virtual void Delete(Option_t * /*option*/ ="") { }
285  virtual TObject *DrawClone(Option_t * /*option */="") const { return 0; }
286  virtual void DrawClass() const { }
287  virtual void Dump() const { }
288  virtual void Inspect() const { }
289  virtual void SetDrawOption(Option_t * /*option*/="") { }
290 
291  // drag and drop...
292  void SetDNDSource(Bool_t onoff)
293  { if (onoff) fDNDState |= kIsDNDSource; else fDNDState &= ~kIsDNDSource; }
294  void SetDNDTarget(Bool_t onoff)
295  { if (onoff) fDNDState |= kIsDNDTarget; else fDNDState &= ~kIsDNDTarget; }
296  Bool_t IsDNDSource() const { return fDNDState & kIsDNDSource; }
297  Bool_t IsDNDTarget() const { return fDNDState & kIsDNDTarget; }
298 
299  virtual TDNDData *GetDNDData(Atom_t /*dataType*/) { return 0; }
300  virtual Bool_t HandleDNDDrop(TDNDData * /*DNDData*/) { return kFALSE; }
301  virtual Atom_t HandleDNDPosition(Int_t /*x*/, Int_t /*y*/, Atom_t /*action*/,
302  Int_t /*xroot*/, Int_t /*yroot*/) { return kNone; }
303  virtual Atom_t HandleDNDEnter(Atom_t * /*typelist*/) { return kNone; }
304  virtual Bool_t HandleDNDLeave() { return kFALSE; }
305  virtual Bool_t HandleDNDFinished() { return kFALSE; }
306 
307  ClassDef(TGFrame,0) // Base class for simple widgets (button, etc.)
308 };
309 
310 //////////////////////////////////////////////////////////////////////////
311 // //
312 // TGCompositeFrame //
313 // //
314 // This class is the base class for composite widgets //
315 // (menu bars, list boxes, etc.). //
316 // //
317 // It provides: //
318 // - a layout manager //
319 // - a frame container (TList *) //
320 // //
321 //////////////////////////////////////////////////////////////////////////
322 
323 class TGCompositeFrame : public TGFrame {
324 
325 
326 protected:
327  TGLayoutManager *fLayoutManager; // layout manager
328  TList *fList; // container of frame elements
329  Bool_t fLayoutBroken; // no layout manager is used
330  Int_t fMustCleanup; // cleanup mode (see EFrameCleanup)
331  Bool_t fMapSubwindows; // kTRUE - map subwindows
332 
333  static TGLayoutHints *fgDefaultHints; // default hints used by AddFrame()
334 
335 private:
338 
339 public:
340  TGCompositeFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
341  UInt_t options = 0,
343  TGCompositeFrame(TGClient *c, Window_t id, const TGWindow *parent = nullptr);
344  virtual ~TGCompositeFrame();
345 
346  virtual TList *GetList() const { return fList; }
347 
348  virtual UInt_t GetDefaultWidth() const
349  { return GetDefaultSize().fWidth; }
350  virtual UInt_t GetDefaultHeight() const
351  { return GetDefaultSize().fHeight; }
352  virtual TGDimension GetDefaultSize() const
353  { return (IsLayoutBroken() ? TGDimension(fWidth, fHeight) :
355  virtual TGFrame *GetFrameFromPoint(Int_t x, Int_t y);
356  virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y,
357  Int_t &fx, Int_t &fy);
358  virtual void MapSubwindows();
359  virtual void Layout();
360  virtual Bool_t HandleButton(Event_t *) { return kFALSE; }
361  virtual Bool_t HandleDoubleClick(Event_t *) { return kFALSE; }
362  virtual Bool_t HandleCrossing(Event_t *) { return kFALSE; }
363  virtual Bool_t HandleMotion(Event_t *) { return kFALSE; }
364  virtual Bool_t HandleKey(Event_t *) { return kFALSE; }
365  virtual Bool_t HandleFocusChange(Event_t *) { return kFALSE; }
366  virtual Bool_t HandleSelection(Event_t *) { return kFALSE; }
367  virtual Bool_t HandleDragEnter(TGFrame *);
368  virtual Bool_t HandleDragLeave(TGFrame *);
369  virtual Bool_t HandleDragMotion(TGFrame *);
370  virtual Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo);
371  virtual void ChangeOptions(UInt_t options);
373 
374  virtual TGLayoutManager *GetLayoutManager() const { return fLayoutManager; }
375  virtual void SetLayoutManager(TGLayoutManager *l);
376 
377  virtual TGFrameElement* FindFrameElement(TGFrame *f) const;
378 
379  virtual void AddFrame(TGFrame *f, TGLayoutHints *l = 0);
380  virtual void RemoveAll();
381  virtual void RemoveFrame(TGFrame *f);
382  virtual void ShowFrame(TGFrame *f);
383  virtual void HideFrame(TGFrame *f);
384  Int_t GetState(TGFrame *f) const;
385  Bool_t IsVisible(TGFrame *f) const;
386  Bool_t IsVisible(TGFrameElement *ptr) const { return (ptr->fState & kIsVisible); }
387  Bool_t IsArranged(TGFrame *f) const;
388  Bool_t IsArranged(TGFrameElement *ptr) const { return (ptr->fState & kIsArranged); }
389  Bool_t IsComposite() const { return kTRUE; }
390  virtual Bool_t IsEditable() const;
391  virtual void SetEditable(Bool_t on = kTRUE);
392  virtual void SetLayoutBroken(Bool_t on = kTRUE);
393  virtual Bool_t IsLayoutBroken() const
394  { return fLayoutBroken || !fLayoutManager; }
395  virtual void SetEditDisabled(UInt_t on = 1);
396  virtual void SetCleanup(Int_t mode = kLocalCleanup);
397  virtual Int_t MustCleanup() const { return fMustCleanup; }
398  virtual void Cleanup();
399  virtual void SetMapSubwindows(Bool_t on) { fMapSubwindows = on; }
400  virtual Bool_t IsMapSubwindows() const { return fMapSubwindows; }
401 
402  virtual void Print(Option_t *option="") const;
403  virtual void ChangeSubframesBackground(Pixel_t back);
404  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
405  virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option = "");
406 
407  ClassDef(TGCompositeFrame,0) // Base class for composite widgets (menubars, etc.)
408 };
409 
410 
412 public:
413  TGVerticalFrame(const TGWindow *p = 0, UInt_t w = 1, UInt_t h = 1,
414  UInt_t options = kChildFrame,
416  TGCompositeFrame(p, w, h, options | kVerticalFrame, back) { SetWindowName(); }
417  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
418 
419  ClassDef(TGVerticalFrame,0) // Composite frame with vertical child layout
420 };
421 
423 public:
424  TGHorizontalFrame(const TGWindow *p = 0, UInt_t w = 1, UInt_t h = 1,
425  UInt_t options = kChildFrame,
427  TGCompositeFrame(p, w, h, options | kHorizontalFrame, back) { SetWindowName(); }
428  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
429 
430  ClassDef(TGHorizontalFrame,0) // Composite frame with horizontal child layout
431 };
432 
433 
434 //////////////////////////////////////////////////////////////////////////
435 // //
436 // TGMainFrame //
437 // //
438 // This class defines top level windows that interact with the system //
439 // Window Manager (WM or MWM for Motif Window Manager). //
440 // //
441 //////////////////////////////////////////////////////////////////////////
442 
444 
445 protected:
446  enum { kDontCallClose = BIT(14) };
447 
448  // mapping between key and window
449  class TGMapKey : public TObject {
450  private:
453  public:
456  TGMapKey(UInt_t keycode, TGWindow *w): fKeyCode(keycode), fWindow(w) { }
457  };
458 
459  Atom_t *fDNDTypeList; // handles DND types
460  TList *fBindList; // list with key bindings
461  TString fWindowName; // window name
462  TString fIconName; // icon name
463  TString fIconPixmap; // icon pixmap name
464  TString fClassName; // WM class name
465  TString fResourceName; // WM resource name
466  UInt_t fMWMValue; // MWM decoration hints
467  UInt_t fMWMFuncs; // MWM functions
468  UInt_t fMWMInput; // MWM input modes
469  Int_t fWMX; // WM x position
470  Int_t fWMY; // WM y position
471  UInt_t fWMWidth; // WM width
472  UInt_t fWMHeight; // WM height
473  UInt_t fWMMinWidth; // WM min width
474  UInt_t fWMMinHeight; // WM min height
475  UInt_t fWMMaxWidth; // WM max width
476  UInt_t fWMMaxHeight; // WM max height
477  UInt_t fWMWidthInc; // WM width increments
478  UInt_t fWMHeightInc; // WM height increments
479  EInitialState fWMInitState; // WM initial state
480 
481  TString GetMWMvalueString() const; //used in SaveSource()
482  TString GetMWMfuncString() const; //used in SaveSource()
483  TString GetMWMinpString() const; //used in SaveSource()
484 
485 private:
486  TGMainFrame(const TGMainFrame&) = delete;
487  TGMainFrame& operator=(const TGMainFrame&) = delete;
488 
489 public:
490  TGMainFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
491  UInt_t options = kVerticalFrame);
492  virtual ~TGMainFrame();
493 
494  virtual Bool_t HandleKey(Event_t *event);
495  virtual Bool_t HandleClientMessage(Event_t *event);
496  virtual Bool_t HandleSelection(Event_t *event);
497  virtual Bool_t HandleSelectionRequest(Event_t *event);
498  virtual Bool_t HandleButton(Event_t *event);
499  virtual Bool_t HandleMotion(Event_t *event);
500  virtual Bool_t SaveFrameAsCodeOrImage();
501  virtual void SendCloseMessage();
502  virtual void CloseWindow(); //*SIGNAL*
503 
504  void DontCallClose();
505  void SetWindowName(const char *name = 0);
506  void SetIconName(const char *name);
507  const TGPicture *SetIconPixmap(const char *iconName);
508  void SetIconPixmap(char **xpm_array);
509  void SetClassHints(const char *className, const char *resourceName);
510  void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input);
511  void SetWMPosition(Int_t x, Int_t y);
512  void SetWMSize(UInt_t w, UInt_t h);
513  void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax,
514  UInt_t winc, UInt_t hinc);
515  void SetWMState(EInitialState state);
516 
517  virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const;
518  virtual void RemoveBind(const TGWindow *w, Int_t keycode, Int_t modifier) const;
519  TList *GetBindList() const { return fBindList; }
520 
521  const char *GetWindowName() const { return fWindowName; }
522  const char *GetIconName() const { return fIconName; }
523  const char *GetIconPixmap() const { return fIconPixmap; }
524  void GetClassHints(const char *&className, const char *&resourceName) const
525  { className = fClassName.Data(); resourceName = fResourceName.Data(); }
526  void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
527  { value = fMWMValue; funcs = fMWMFuncs; input = fMWMInput; }
528  void GetWMPosition(Int_t &x, Int_t &y) const { x = fWMX; y = fWMY; }
529  void GetWMSize(UInt_t &w, UInt_t &h) const { w = fWMWidth; h = fWMHeight; }
530  void GetWMSizeHints(UInt_t &wmin, UInt_t &hmin, UInt_t &wmax, UInt_t &hmax,
531  UInt_t &winc, UInt_t &hinc) const
532  { wmin = fWMMinWidth; hmin = fWMMinHeight; wmax = fWMMaxWidth;
533  hmax = fWMMaxHeight; winc = fWMWidthInc; hinc = fWMHeightInc; }
535 
536  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
537  virtual void SaveSource(const char *filename = "Rootappl.C", Option_t *option = ""); // *MENU*icon=bld_save.png*
538 
539  ClassDef(TGMainFrame,0) // Top level window frame
540 };
541 
542 
543 //////////////////////////////////////////////////////////////////////////
544 // //
545 // TGTransientFrame //
546 // //
547 // This class defines transient windows that typically are used for //
548 // dialogs. //
549 // //
550 //////////////////////////////////////////////////////////////////////////
551 
553 
554 protected:
555  const TGWindow *fMain; // window over which to popup dialog
556 
557 private:
560 
561 public:
562  TGTransientFrame(const TGWindow *p = nullptr, const TGWindow *main = nullptr, UInt_t w = 1, UInt_t h = 1,
563  UInt_t options = kVerticalFrame);
564 
567  virtual void CenterOnParent(Bool_t croot = kTRUE, EPlacement pos = kCenter);
568  const TGWindow *GetMain() const { return fMain; }
569  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
570  virtual void SaveSource(const char *filename = "Rootdlog.C", Option_t *option = ""); // *MENU*icon=bld_save.png*
571 
572  ClassDef(TGTransientFrame,0) // Frame for dialog (transient) windows
573 };
574 
575 
576 //////////////////////////////////////////////////////////////////////////
577 // //
578 // TGGroupFrame //
579 // //
580 // A group frame is a composite frame with a border and a title. //
581 // It is typically used to group a number of logically related widgets //
582 // visually together. //
583 // //
584 //////////////////////////////////////////////////////////////////////////
585 
587 
588 protected:
589  TGString *fText; // title text
590  FontStruct_t fFontStruct; // title fontstruct
591  GContext_t fNormGC; // title graphics context
592  Int_t fTitlePos; // *OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",1="Right")}*
593  Bool_t fHasOwnFont; // kTRUE - font defined locally, kFALSE - globally
594 
595  virtual void DoRedraw();
596 
597  static const TGFont *fgDefaultFont;
598  static const TGGC *fgDefaultGC;
599 
600 private:
601  TGGroupFrame(const TGGroupFrame&) = delete;
603 
604 public:
605  enum ETitlePos { kLeft = -1, kCenter = 0, kRight = 1 };
606 
608  static const TGGC &GetDefaultGC();
609 
610  TGGroupFrame(const TGWindow *p, TGString *title,
611  UInt_t options = kVerticalFrame,
612  GContext_t norm = GetDefaultGC()(),
615  TGGroupFrame(const TGWindow *p = nullptr, const char *title = nullptr,
616  UInt_t options = kVerticalFrame,
617  GContext_t norm = GetDefaultGC()(),
620  virtual ~TGGroupFrame();
621 
622  virtual TGDimension GetDefaultSize() const;
623  virtual void DrawBorder();
624  virtual void SetTitle(TGString *title);
625  virtual void SetTitle(const char *title);
626  virtual void Rename(const char *title) { SetTitle(title); } //*MENU*icon=bld_rename.png*
627  Int_t GetTitlePos() const { return fTitlePos; }
628  virtual void SetTitlePos(ETitlePos pos = kLeft) { fTitlePos = pos; } //*SUBMENU*
629  virtual void SetTextColor(Pixel_t color, Bool_t local = kTRUE);
630  virtual void SetTextFont(const char *fontName, Bool_t local = kTRUE);
631  virtual void SetTextFont(FontStruct_t font, Bool_t local = kTRUE);
632  GContext_t GetNormGC() const { return fNormGC; }
634 
635  virtual const char *GetTitle() const { return fText->GetString(); }
636  Bool_t HasOwnFont() const;
637 
638  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
639 
640  ClassDef(TGGroupFrame,0) // A composite frame with border and title
641 };
642 
643 //////////////////////////////////////////////////////////////////////////
644 // //
645 // TGHeaderFrame //
646 // //
647 // Horizontal Frame used to contain header buttons and splitters //
648 // in a list view. Used to have resizable column headers. //
649 // //
650 //////////////////////////////////////////////////////////////////////////
651 
653 private:
654  TGHeaderFrame(const TGHeaderFrame&) = delete;
656 
657 protected:
658  Int_t fNColumns; // number of columns
659  TGTextButton **fColHeader; // column headers for in detailed mode
660  TGVFileSplitter **fSplitHeader; // column splitters
661  Cursor_t fSplitCursor; // split cursor;
662  Bool_t fOverSplitter; // Indicates if the cursor is over a splitter
663  Int_t fOverButton; // Indicates over which button the mouse is
664  Int_t fLastButton; // Indicates the last button clicked if any
665 
666 public:
667  TGHeaderFrame(const TGWindow *p = nullptr, UInt_t w = 1, UInt_t h = 1,
668  UInt_t options = kChildFrame,
670 
671  virtual Bool_t HandleButton(Event_t* event);
672  virtual Bool_t HandleMotion(Event_t* event);
673  virtual Bool_t HandleDoubleClick(Event_t *event);
674 
675  void SetColumnsInfo(Int_t nColumns, TGTextButton **colHeader, TGVFileSplitter **splitHeader);
676 
677  ClassDef(TGHeaderFrame,0) // Header frame with buttons and splitters
678 };
679 
680 
681 #endif
TGWindow::SetWindowName
virtual void SetWindowName(const char *name=0)
Set window name.
Definition: TGWindow.cxx:128
TGFrame::HandleDragLeave
virtual Bool_t HandleDragLeave(TGFrame *)
Definition: TGFrame.h:197
TGCompositeFrame::GetDefaultSize
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGFrame.h:352
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:707
TGTransientFrame::kBottomRight
@ kBottomRight
Definition: TGFrame.h:566
TGTransientFrame
Definition: TGFrame.h:552
TGFrame::fY
Int_t fY
Definition: TGFrame.h:110
TGFrame::GetHeight
UInt_t GetHeight() const
Definition: TGFrame.h:249
kMWMDecorTitle
@ kMWMDecorTitle
Definition: TGFrame.h:74
TGMainFrame::fWMMinHeight
UInt_t fWMMinHeight
Definition: TGFrame.h:474
kIsMapped
@ kIsMapped
Definition: TGFrame.h:42
kMWMFuncMove
@ kMWMFuncMove
Definition: TGFrame.h:59
TGFrame::SetForegroundColor
virtual void SetForegroundColor(Pixel_t)
Definition: TGFrame.h:220
TGHeaderFrame::fLastButton
Int_t fLastButton
Definition: TGFrame.h:664
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:342
TGTransientFrame::kTopRight
@ kTopRight
Definition: TGFrame.h:565
TGWindow
Definition: TGWindow.h:31
TGMainFrame::fResourceName
TString fResourceName
Definition: TGFrame.h:465
TGFrame::HandleFocusChange
virtual Bool_t HandleFocusChange(Event_t *)
Definition: TGFrame.h:190
TGFrame::SetEditable
virtual void SetEditable(Bool_t)
Definition: TGFrame.h:238
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TGGroupFrame::fTitlePos
Int_t fTitlePos
Definition: TGFrame.h:592
TGCompositeFrame::GetList
virtual TList * GetList() const
Definition: TGFrame.h:346
TGMainFrame
Definition: TGFrame.h:443
TGFrame::fgBlackPixel
static Pixel_t fgBlackPixel
Definition: TGFrame.h:128
TGCompositeFrame::SetMapSubwindows
virtual void SetMapSubwindows(Bool_t on)
Definition: TGFrame.h:399
TGFrame::HandleMotion
virtual Bool_t HandleMotion(Event_t *)
Definition: TGFrame.h:188
TGTransientFrame::SaveSource
virtual void SaveSource(const char *filename="Rootdlog.C", Option_t *option="")
Save the GUI tranzient frame widget in a C++ macro file.
Definition: TGFrame.cxx:3295
TGCompositeFrame::ChangeSubframesBackground
virtual void ChangeSubframesBackground(Pixel_t back)
Change background color for this frame and all subframes.
Definition: TGFrame.cxx:1273
TGFrame::ChangeOptions
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
Definition: TGFrame.cxx:306
TGCompositeFrame::GetLayoutManager
virtual TGLayoutManager * GetLayoutManager() const
Definition: TGFrame.h:374
TGFrame::SetCleanup
virtual void SetCleanup(Int_t=kLocalCleanup)
Definition: TGFrame.h:241
TGPicture
Definition: TGPicture.h:36
f
#define f(i)
Definition: RSha256.hxx:104
TGFrame::IsLayoutBroken
virtual Bool_t IsLayoutBroken() const
Definition: TGFrame.h:240
TGDimension
Definition: TGDimension.h:27
TGFrame::SetBackgroundColor
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
Definition: TGFrame.cxx:297
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:2776
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGFrame::fgLastClick
static Time_t fgLastClick
Definition: TGFrame.h:134
TGTransientFrame::TGTransientFrame
TGTransientFrame(const TGTransientFrame &)=delete
TGCompositeFrame::HandleDragLeave
virtual Bool_t HandleDragLeave(TGFrame *)
Handle drag leave event.
Definition: TGFrame.cxx:1380
kIsArranged
@ kIsArranged
Definition: TGFrame.h:43
TGTransientFrame::kTopLeft
@ kTopLeft
Definition: TGFrame.h:565
TGMainFrame::SetIconName
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
Definition: TGFrame.cxx:1762
TGFrame::SetY
virtual void SetY(Int_t y)
Definition: TGFrame.h:269
TGGroupFrame::SetTitlePos
virtual void SetTitlePos(ETitlePos pos=kLeft)
Definition: TGFrame.h:628
TGGroupFrame::SetTextFont
virtual void SetTextFont(const char *fontName, Bool_t local=kTRUE)
Changes text font specified by name.
Definition: TGFrame.cxx:2161
TGMainFrame::fWMHeightInc
UInt_t fWMHeightInc
Definition: TGFrame.h:478
TGFrame::fgDbw
static Window_t fgDbw
Definition: TGFrame.h:137
TGMainFrame::SetIconPixmap
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
Definition: TGFrame.cxx:1777
TGFrame::Inspect
virtual void Inspect() const
Dump contents of this object in a graphics canvas.
Definition: TGFrame.h:288
TGMainFrame::TGMapKey::fWindow
TGWindow * fWindow
Definition: TGFrame.h:455
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:120
TGFrame::GetSize
TGDimension GetSize() const
Definition: TGFrame.h:254
TGLayout.h
TGCompositeFrame::GetFrameFromPoint
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Get frame located at specified point.
Definition: TGFrame.cxx:1293
TGTransientFrame::kCenter
@ kCenter
Definition: TGFrame.h:565
TGGroupFrame::ETitlePos
ETitlePos
Definition: TGFrame.h:605
TGFrame::fWidth
UInt_t fWidth
Definition: TGFrame.h:111
kIsDNDSource
@ kIsDNDSource
Definition: TGFrame.h:83
TGFrame::HandleSelectionClear
virtual Bool_t HandleSelectionClear(Event_t *)
Definition: TGFrame.h:194
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:442
TGMainFrame::GetWMState
EInitialState GetWMState() const
Definition: TGFrame.h:534
TGFrame::GetFrameFromPoint
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Definition: TGFrame.h:264
TGMainFrame::GetIconName
const char * GetIconName() const
Returns mime type name of object.
Definition: TGFrame.h:522
TGCompositeFrame::SetEditable
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
Definition: TGFrame.cxx:933
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:3149
TGMainFrame::GetMWMfuncString
TString GetMWMfuncString() const
Returns MWM function hints as a string - used in SavePrimitive().
Definition: TGFrame.cxx:2571
TGFrame::fgShadowGC
static const TGGC * fgShadowGC
Definition: TGFrame.h:132
TGFrame::ProcessMessage
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
Definition: TGFrame.h:207
TGCompositeFrame::Cleanup
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
Definition: TGFrame.cxx:952
TGFrame::DrawClass
virtual void DrawClass() const
Draw class inheritance tree of the class to which this object belongs.
Definition: TGFrame.h:286
TGMainFrame::GetClassHints
void GetClassHints(const char *&className, const char *&resourceName) const
Definition: TGFrame.h:524
TGMainFrame::fWMHeight
UInt_t fWMHeight
Definition: TGFrame.h:472
TGFrame::HandleSelection
virtual Bool_t HandleSelection(Event_t *)
Definition: TGFrame.h:192
TGFrame::GetDefaultHeight
virtual UInt_t GetDefaultHeight() const
Definition: TGFrame.h:215
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:3192
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:1865
TGFrame::HandleDNDEnter
virtual Atom_t HandleDNDEnter(Atom_t *)
Definition: TGFrame.h:303
TGVFileSplitter
Definition: TGSplitter.h:136
TGTransientFrame::kLeft
@ kLeft
Definition: TGFrame.h:565
kMWMDecorBorder
@ kMWMDecorBorder
Definition: TGFrame.h:72
TGGroupFrame::fgDefaultFont
static const TGFont * fgDefaultFont
Definition: TGFrame.h:597
TGCompositeFrame::HandleCrossing
virtual Bool_t HandleCrossing(Event_t *)
Definition: TGFrame.h:362
TGFrame::fOptions
UInt_t fOptions
Definition: TGFrame.h:118
TGTextButton
Definition: TGButton.h:142
TGWindow::MapRaised
virtual void MapRaised()
map raised
Definition: TGWindow.cxx:175
TGMainFrame::TGMapKey::fKeyCode
UInt_t fKeyCode
Definition: TGFrame.h:454
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:2728
TGFrame::DrawCopy
virtual void DrawCopy(Handle_t, Int_t, Int_t)
Definition: TGFrame.h:233
TGeant4Unit::s
static constexpr double s
Definition: TGeant4SystemOfUnits.h:162
kIsVisible
@ kIsVisible
Definition: TGFrame.h:41
TGFrame::SetDropType
virtual void SetDropType(Int_t type)
SetDropType.
Definition: TGFrame.cxx:801
TGFrame::HandleDNDDrop
virtual Bool_t HandleDNDDrop(TDNDData *)
Definition: TGFrame.h:300
TGMainFrame::DontCallClose
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
Definition: TGFrame.cxx:1741
TGFrame::HandleButton
virtual Bool_t HandleButton(Event_t *)
Definition: TGFrame.h:185
TGMainFrame::~TGMainFrame
virtual ~TGMainFrame()
TGMainFrame destructor.
Definition: TGFrame.cxx:1490
TGCompositeFrame::HandleSelection
virtual Bool_t HandleSelection(Event_t *)
Definition: TGFrame.h:366
TGFrame::ProcessedEvent
virtual void ProcessedEvent(Event_t *event)
Definition: TGFrame.h:203
Int_t
int Int_t
Definition: RtypesCore.h:45
TGGroupFrame::GetTitlePos
Int_t GetTitlePos() const
Definition: TGFrame.h:627
TGCompositeFrame::HandleButton
virtual Bool_t HandleButton(Event_t *)
Definition: TGFrame.h:360
TGFrame::GetLastClick
static Time_t GetLastClick()
Get time of last mouse click.
Definition: TGFrame.cxx:770
TGTransientFrame::fMain
const TGWindow * fMain
Definition: TGFrame.h:555
TGFrame::fDNDState
Int_t fDNDState
Definition: TGFrame.h:121
TGMainFrame::fWMInitState
EInitialState fWMInitState
Definition: TGFrame.h:479
TGFrame::fgUserColor
static UInt_t fgUserColor
Definition: TGFrame.h:138
TGTransientFrame::kBottomLeft
@ kBottomLeft
Definition: TGFrame.h:566
TGCompositeFrame::FindFrameElement
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
Definition: TGFrame.cxx:1079
TGHeaderFrame::fSplitHeader
TGVFileSplitter ** fSplitHeader
Definition: TGFrame.h:660
EMWMHints
EMWMHints
Definition: TGFrame.h:55
TGDimension.h
TGCompositeFrame::SetLayoutBroken
virtual void SetLayoutBroken(Bool_t on=kTRUE)
Set broken layout. No Layout method is called.
Definition: TGFrame.cxx:997
TGFrame::GetDropType
virtual Int_t GetDropType() const
Returns drop target type.
Definition: TGFrame.cxx:818
TGCompositeFrame::SetEditDisabled
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
Definition: TGFrame.cxx:1007
TGCompositeFrame::HandleDragMotion
virtual Bool_t HandleDragMotion(TGFrame *)
Handle drag motion event.
Definition: TGFrame.cxx:1398
x
Double_t x[n]
Definition: legend1.C:17
TGCompositeFrame::IsComposite
Bool_t IsComposite() const
Definition: TGFrame.h:389
TGMainFrame::BindKey
virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const
Bind key to a window.
Definition: TGFrame.cxx:1598
TGMainFrame::fWMWidthInc
UInt_t fWMWidthInc
Definition: TGFrame.h:477
TGFrame::fgWhitePixel
static Pixel_t fgWhitePixel
Definition: TGFrame.h:127
TGFrame::~TGFrame
virtual ~TGFrame()
Destructor.
Definition: TGFrame.cxx:251
TGCompositeFrame::fMustCleanup
Int_t fMustCleanup
Definition: TGFrame.h:330
TGMainFrame::SetWindowName
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
Definition: TGFrame.cxx:1749
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:413
TGFrame::HandleDoubleClick
virtual Bool_t HandleDoubleClick(Event_t *)
Definition: TGFrame.h:186
TGHeaderFrame::HandleMotion
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events in header frame.
Definition: TGFrame.cxx:2408
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGFrame::fMaxWidth
UInt_t fMaxWidth
Definition: TGFrame.h:115
TGFrame::GetDragType
virtual Int_t GetDragType() const
Returns drag source type.
Definition: TGFrame.cxx:809
TGHorizontalFrame
Definition: TGFrame.h:422
TGFrame::SetMaxWidth
virtual void SetMaxWidth(UInt_t w)
Definition: TGFrame.h:274
TGFrame::GetBackground
virtual Pixel_t GetBackground() const
Definition: TGFrame.h:216
TGClient::GetResourcePool
const TGResourcePool * GetResourcePool() const
Definition: TGClient.h:133
TGGroupFrame::kRight
@ kRight
Definition: TGFrame.h:605
TGFrame::fgDefaultFrameBackground
static Pixel_t fgDefaultFrameBackground
Definition: TGFrame.h:125
EFrameCleanup
EFrameCleanup
Definition: TGFrame.h:47
TGMainFrame::fWMX
Int_t fWMX
Definition: TGFrame.h:469
TGFrame::HandleSelectionRequest
virtual Bool_t HandleSelectionRequest(Event_t *)
Definition: TGFrame.h:193
TGFrame::fMaxHeight
UInt_t fMaxHeight
Definition: TGFrame.h:116
TGFrame::GetDefaultSize
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
Definition: TGFrame.cxx:569
TGFrame::GetBlackGC
static const TGGC & GetBlackGC()
Get black graphics context.
Definition: TGFrame.cxx:720
TString
Basic string class.
Definition: TString.h:136
TGFrame::GetForeground
virtual Pixel_t GetForeground() const
Return frame foreground color.
Definition: TGFrame.cxx:288
TGFrame::DrawBorder
virtual void DrawBorder()
Draw frame border.
Definition: TGFrame.cxx:406
TGFrame
Definition: TGFrame.h:104
TGFrame::IsEditable
virtual Bool_t IsEditable() const
Definition: TGFrame.h:237
TGFrame::MapSubwindows
virtual void MapSubwindows()
map sub windows
Definition: TGFrame.h:224
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGTransientFrame::kBottom
@ kBottom
Definition: TGFrame.h:565
kMWMFuncMinimize
@ kMWMFuncMinimize
Definition: TGFrame.h:60
TGFrame::SetDrawOption
virtual void SetDrawOption(Option_t *="")
Set drawing option for object.
Definition: TGFrame.h:289
TGFrame::SetHeight
virtual void SetHeight(UInt_t h)
Definition: TGFrame.h:271
TGFrame::GetMinWidth
UInt_t GetMinWidth() const
Definition: TGFrame.h:250
TGFrame::ProcessedConfigure
virtual void ProcessedConfigure(Event_t *event)
Definition: TGFrame.h:201
TGWindow.h
TGFrame::fMinWidth
UInt_t fMinWidth
Definition: TGFrame.h:113
TGFrame::MapWindow
virtual void MapWindow()
map window
Definition: TGFrame.h:228
TGMainFrame::HandleSelection
virtual Bool_t HandleSelection(Event_t *event)
Handle primary selection event.
Definition: TGFrame.cxx:1664
TGResourcePool
Definition: TGResourcePool.h:36
bool
TGHeaderFrame::operator=
TGHeaderFrame & operator=(const TGHeaderFrame &)=delete
TGCompositeFrame::SavePrimitiveSubframes
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary protected method used to save subframes.
Definition: TGFrame.cxx:2626
TGFrame::GetWidth
UInt_t GetWidth() const
Definition: TGFrame.h:248
Cursor_t
Handle_t Cursor_t
Cursor handle.
Definition: GuiTypes.h:34
TGCompositeFrame::fList
TList * fList
Definition: TGFrame.h:328
TGGroupFrame::SetTitle
virtual void SetTitle(TGString *title)
Set or change title of the group frame.
Definition: TGFrame.cxx:2267
TGFrame::fgDby
static Int_t fgDby
Definition: TGFrame.h:136
kMWMDecorMenu
@ kMWMDecorMenu
Definition: TGFrame.h:75
TGLayoutManager
Definition: TGLayout.h:142
TGFrame::GetOptionString
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
Definition: TGFrame.cxx:2465
TGFrame::GetOptions
virtual UInt_t GetOptions() const
Definition: TGFrame.h:221
TGFrame::GetResourcePool
const TGResourcePool * GetResourcePool() const
Definition: TGFrame.h:147
kMWMInputModeless
@ kMWMInputModeless
Definition: TGFrame.h:65
TGFrame::SetMaxHeight
virtual void SetMaxHeight(UInt_t h)
Definition: TGFrame.h:275
GContext_t
Handle_t GContext_t
Graphics context handle.
Definition: GuiTypes.h:38
TGGroupFrame::GetNormGC
GContext_t GetNormGC() const
Definition: TGFrame.h:632
TGFrame::HandleKey
virtual Bool_t HandleKey(Event_t *)
Definition: TGFrame.h:189
kMWMDecorResizeH
@ kMWMDecorResizeH
Definition: TGFrame.h:73
TGFrame::fgBlackGC
static const TGGC * fgBlackGC
Definition: TGFrame.h:129
TGFrame::fgWhiteGC
static const TGGC * fgWhiteGC
Definition: TGFrame.h:130
TGMainFrame::TGMapKey::operator=
TGMapKey & operator=(const TGMapKey &)
kNoCleanup
@ kNoCleanup
Definition: TGFrame.h:48
TQObject.h
TGFrame::HandleClientMessage
virtual Bool_t HandleClientMessage(Event_t *event)
Handle a client message.
Definition: TGFrame.cxx:654
TGFrame::AddInput
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
Definition: TGFrame.cxx:324
TGGroupFrame::Rename
virtual void Rename(const char *title)
Definition: TGFrame.h:626
kNone
const Handle_t kNone
Definition: GuiTypes.h:88
TGGroupFrame::operator=
TGGroupFrame & operator=(const TGGroupFrame &)=delete
TGFrame::GetHilightGC
static const TGGC & GetHilightGC()
Get highlight color graphics context.
Definition: TGFrame.cxx:740
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:256
TGMainFrame::kDontCallClose
@ kDontCallClose
Definition: TGFrame.h:446
TGFrame::fgDbx
static Int_t fgDbx
Definition: TGFrame.h:136
TGCompositeFrame::IsEditable
virtual Bool_t IsEditable() const
Return kTRUE if frame is being edited.
Definition: TGFrame.cxx:912
TGMainFrame::TGMapKey::TGMapKey
TGMapKey(const TGMapKey &)
TGFrame::DeleteWindow
virtual void DeleteWindow()
Delete window.
Definition: TGFrame.cxx:261
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:1028
TGFrame::ChangeBackground
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
Definition: TGFrame.cxx:278
TGFrame::SetMinWidth
virtual void SetMinWidth(UInt_t w)
Definition: TGFrame.h:272
kIsDNDTarget
@ kIsDNDTarget
Definition: TGFrame.h:84
TGGroupFrame::GetFontStruct
FontStruct_t GetFontStruct() const
Definition: TGFrame.h:633
TGMainFrame::fWMWidth
UInt_t fWMWidth
Definition: TGFrame.h:471
TGCompositeFrame::HandleDoubleClick
virtual Bool_t HandleDoubleClick(Event_t *)
Definition: TGFrame.h:361
TGMainFrame::fWMMaxHeight
UInt_t fWMMaxHeight
Definition: TGFrame.h:476
TGCompositeFrame::Print
virtual void Print(Option_t *option="") const
Print all frames in this composite frame.
Definition: TGFrame.cxx:1251
TGMainFrame::fWMY
Int_t fWMY
Definition: TGFrame.h:470
TGMainFrame::SendCloseMessage
virtual void SendCloseMessage()
Send close message to self.
Definition: TGFrame.cxx:1705
TGMainFrame::SetClassHints
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
Definition: TGFrame.cxx:1817
kMWMFuncClose
@ kMWMFuncClose
Definition: TGFrame.h:62
TGCompositeFrame::HandleDragDrop
virtual Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo)
Handle drop event.
Definition: TGFrame.cxx:1406
TGMainFrame::fWMMinWidth
UInt_t fWMMinWidth
Definition: TGFrame.h:473
TGGroupFrame::fNormGC
GContext_t fNormGC
Definition: TGFrame.h:591
kMWMInputFullApplicationModal
@ kMWMInputFullApplicationModal
Definition: TGFrame.h:68
TGFrame::fMinHeight
UInt_t fMinHeight
Definition: TGFrame.h:114
TGMainFrame::fMWMInput
UInt_t fMWMInput
Definition: TGFrame.h:468
TGDimension::fHeight
UInt_t fHeight
Definition: TGDimension.h:30
TGCompositeFrame::HandleFocusChange
virtual Bool_t HandleFocusChange(Event_t *)
Definition: TGFrame.h:365
TGMainFrame::HandleMotion
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
Definition: TGFrame.cxx:1652
TGFrame::operator=
TGFrame & operator=(const TGFrame &)=delete
TGMainFrame::GetMWMHints
void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
Definition: TGFrame.h:526
kMWMInputPrimaryApplicationModal
@ kMWMInputPrimaryApplicationModal
Definition: TGFrame.h:66
TGMainFrame::fIconName
TString fIconName
Definition: TGFrame.h:462
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:239
TGCompositeFrame::MapSubwindows
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Definition: TGFrame.cxx:1149
TGVerticalFrame
Definition: TGFrame.h:411
TGGroupFrame::DoRedraw
virtual void DoRedraw()
Redraw the group frame.
Definition: TGFrame.cxx:2104
TGGC
Definition: TGGC.h:31
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:226
TGGroupFrame::HasOwnFont
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global).
Definition: TGFrame.cxx:2174
TGFrame::Resize
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Definition: TGFrame.cxx:590
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:1317
TGFrame::SendMessage
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
Definition: TGFrame.cxx:630
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:3054
TGHeaderFrame::fSplitCursor
Cursor_t fSplitCursor
Definition: TGFrame.h:661
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGHeaderFrame::HandleDoubleClick
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click mouse event in header frame.
Definition: TGFrame.cxx:2381
TGCompositeFrame::IsVisible
Bool_t IsVisible(TGFrameElement *ptr) const
Definition: TGFrame.h:386
TGTransientFrame::EPlacement
EPlacement
Definition: TGFrame.h:565
TGCompositeFrame::HideFrame
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Definition: TGFrame.cxx:1175
TGFrame::fBorderWidth
Int_t fBorderWidth
Definition: TGFrame.h:117
TGTransientFrame::GetMain
const TGWindow * GetMain() const
Definition: TGFrame.h:568
Long_t
long Long_t
Definition: RtypesCore.h:54
main
int main(int argc, char **argv)
Definition: histspeedtest.cxx:751
TGDimension::fWidth
UInt_t fWidth
Definition: TGDimension.h:29
TGCompositeFrame::RemoveAll
virtual void RemoveAll()
Remove all frames from composite frame.
Definition: TGFrame.cxx:1116
TGHeaderFrame
Definition: TGFrame.h:652
TGLayoutHints
Definition: TGLayout.h:57
TGFrame::SaveUserColor
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
Definition: TGFrame.cxx:2438
TGMainFrame::TGMainFrame
TGMainFrame(const TGMainFrame &)=delete
TGGroupFrame
Definition: TGFrame.h:586
TGFrame::SetMinHeight
virtual void SetMinHeight(UInt_t h)
Definition: TGFrame.h:273
TGFrame::MapRaised
virtual void MapRaised()
map raised
Definition: TGFrame.h:229
TGFrame::GetEventMask
UInt_t GetEventMask() const
Definition: TGFrame.h:179
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:285
BIT
#define BIT(n)
Definition: Rtypes.h:85
TGMainFrame::fIconPixmap
TString fIconPixmap
Definition: TGFrame.h:463
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:2296
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:528
TDNDData
Definition: TGDNDManager.h:65
TGFrame::Print
virtual void Print(Option_t *option="") const
Print window id.
Definition: TGFrame.cxx:778
TGFrame::ReallyDelete
virtual void ReallyDelete()
Definition: TGFrame.h:177
TGFrame::fFE
TGFrameElement * fFE
Definition: TGFrame.h:122
TGCompositeFrame::MustCleanup
virtual Int_t MustCleanup() const
Definition: TGFrame.h:397
TGFrame::IsActive
virtual Bool_t IsActive() const
Definition: TGFrame.h:235
TGCompositeFrame::HandleKey
virtual Bool_t HandleKey(Event_t *)
Definition: TGFrame.h:364
TGFrame::fgInit
static Bool_t fgInit
Definition: TGFrame.h:124
TGMainFrame::CloseWindow
virtual void CloseWindow()
Close and delete main frame.
Definition: TGFrame.cxx:1731
TGFrame::HandleCrossing
virtual Bool_t HandleCrossing(Event_t *)
Definition: TGFrame.h:187
TGFrame::kDeleteWindowCalled
@ kDeleteWindowCalled
Definition: TGFrame.h:107
TGHeaderFrame::fOverSplitter
Bool_t fOverSplitter
Definition: TGFrame.h:662
TGFrame::GetX
Int_t GetX() const
Definition: TGFrame.h:255
TGCompositeFrame::RemoveFrame
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
Definition: TGFrame.cxx:1134
TGFrame::GetBckgndGC
static const TGGC & GetBckgndGC()
Get background color graphics context.
Definition: TGFrame.cxx:760
TGMainFrame::GetMWMinpString
TString GetMWMinpString() const
Returns MWM input mode hints as a string - used in SavePrimitive().
Definition: TGFrame.cxx:2608
TGFrame::fgHilightGC
static const TGGC * fgHilightGC
Definition: TGFrame.h:131
TGMainFrame::TGMapKey
Definition: TGFrame.h:449
TGCompositeFrame::SetLayoutManager
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
Definition: TGFrame.cxx:985
TGGroupFrame::GetDefaultSize
virtual TGDimension GetDefaultSize() const
Returns default size.
Definition: TGFrame.cxx:2090
TGFrame::HandleDragEnter
virtual Bool_t HandleDragEnter(TGFrame *)
Definition: TGFrame.h:196
TGFrame::Contains
Bool_t Contains(Int_t x, Int_t y) const
Definition: TGFrame.h:262
TGFrame::fgLastButton
static UInt_t fgLastButton
Definition: TGFrame.h:135
TGFrame::HandleDNDLeave
virtual Bool_t HandleDNDLeave()
Definition: TGFrame.h:304
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:1506
unsigned int
kLocalCleanup
@ kLocalCleanup
Definition: TGFrame.h:49
TGCompositeFrame::GetDefaultHeight
virtual UInt_t GetDefaultHeight() const
Definition: TGFrame.h:350
TGFrame::fX
Int_t fX
Definition: TGFrame.h:109
TGFrame::GetSender
virtual void * GetSender()
Definition: TGFrame.h:142
TGCompositeFrame::fLayoutBroken
Bool_t fLayoutBroken
Definition: TGFrame.h:329
kHorizontalFrame
@ kHorizontalFrame
Definition: GuiTypes.h:382
TGFrame::TGFrame
TGFrame(const TGFrame &)=delete
TGWindow::MapWindow
virtual void MapWindow()
map window
Definition: TGWindow.cxx:159
TGMainFrame::HandleSelectionRequest
virtual Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
Definition: TGFrame.cxx:1676
TGMainFrame::GetWMSize
void GetWMSize(UInt_t &w, UInt_t &h) const
Definition: TGFrame.h:529
TGMainFrame::SetWMSize
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
Definition: TGFrame.cxx:1852
TGCompositeFrame::fMapSubwindows
Bool_t fMapSubwindows
Definition: TGFrame.h:331
TGMainFrame::TGMapKey::TGMapKey
TGMapKey(UInt_t keycode, TGWindow *w)
Definition: TGFrame.h:456
kMWMInputSystemModal
@ kMWMInputSystemModal
Definition: TGFrame.h:67
TGMainFrame::GetIconPixmap
const char * GetIconPixmap() const
Definition: TGFrame.h:523
TGCompositeFrame::IsLayoutBroken
virtual Bool_t IsLayoutBroken() const
Definition: TGFrame.h:393
TGFrame::IsDNDSource
Bool_t IsDNDSource() const
Definition: TGFrame.h:296
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:3106
TGFrame::HandleDragMotion
virtual Bool_t HandleDragMotion(TGFrame *)
Definition: TGFrame.h:198
TGFrame::UnmapWindow
virtual void UnmapWindow()
unmap window
Definition: TGFrame.h:230
TGFrame::SetWidth
virtual void SetWidth(UInt_t w)
Definition: TGFrame.h:270
TGCompositeFrame::fgDefaultHints
static TGLayoutHints * fgDefaultHints
Definition: TGFrame.h:333
TGFrame::GetBorderWidth
Int_t GetBorderWidth() const
Definition: TGFrame.h:257
TGFrame::GetDNDData
virtual TDNDData * GetDNDData(Atom_t)
Definition: TGFrame.h:299
TGFrame::IsComposite
virtual Bool_t IsComposite() const
Definition: TGFrame.h:236
TGMainFrame::GetMWMvalueString
TString GetMWMvalueString() const
Returns MWM decoration hints as a string - used in SavePrimitive().
Definition: TGFrame.cxx:2531
TGObject::fClient
TGClient * fClient
Definition: TGObject.h:37
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:614
TGCompositeFrame::IsArranged
Bool_t IsArranged(TGFrame *f) const
Get state of sub frame.
Definition: TGFrame.cxx:1229
TGTransientFrame::CenterOnParent
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
Definition: TGFrame.cxx:1916
TGFrame::Delete
virtual void Delete(Option_t *="")
Delete this object.
Definition: TGFrame.h:284
TGFrame::GetMaxWidth
UInt_t GetMaxWidth() const
Definition: TGFrame.h:252
TGGroupFrame::fFontStruct
FontStruct_t fFontStruct
Definition: TGFrame.h:590
TGGroupFrame::DrawBorder
virtual void DrawBorder()
Draw border of around the group frame.
Definition: TGFrame.cxx:2185
TGFrame::Move
virtual void Move(Int_t x, Int_t y)
Move frame.
Definition: TGFrame.cxx:578
TGGroupFrame::SetTextColor
virtual void SetTextColor(Pixel_t color, Bool_t local=kTRUE)
Changes text color.
Definition: TGFrame.cxx:2116
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:1827
TGCompositeFrame::GetState
Int_t GetState(TGFrame *f) const
Get state of sub frame.
Definition: TGFrame.cxx:1203
TGGroupFrame::fgDefaultGC
static const TGGC * fgDefaultGC
Definition: TGFrame.h:598
TGCompositeFrame::fLayoutManager
TGLayoutManager * fLayoutManager
Definition: TGFrame.h:327
TGCompositeFrame::IsVisible
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
Definition: TGFrame.cxx:1216
kMWMFuncAll
@ kMWMFuncAll
Definition: TGFrame.h:57
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
Handle_t
ULong_t Handle_t
Generic resource handle.
Definition: GuiTypes.h:26
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
kMWMDecorAll
@ kMWMDecorAll
Definition: TGFrame.h:71
TGFrame::HandleConfigureNotify
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
Definition: TGFrame.cxx:428
TGMainFrame::HandleButton
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button events.
Definition: TGFrame.cxx:1640
TGFrame::SetDNDSource
void SetDNDSource(Bool_t onoff)
Definition: TGFrame.h:292
TGFrame::SetDNDTarget
void SetDNDTarget(Bool_t onoff)
Definition: TGFrame.h:294
TGFrame::HandleDNDFinished
virtual Bool_t HandleDNDFinished()
Definition: TGFrame.h:305
TGHeaderFrame::HandleButton
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in header frame.
Definition: TGFrame.cxx:2349
Event_t
Event structure.
Definition: GuiTypes.h:174
TGCompositeFrame::HandleDragEnter
virtual Bool_t HandleDragEnter(TGFrame *)
Handle drag enter event.
Definition: TGFrame.cxx:1350
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:3216
TGMainFrame::fDNDTypeList
Atom_t * fDNDTypeList
Definition: TGFrame.h:459
kDeepCleanup
@ kDeepCleanup
Definition: TGFrame.h:50
TGHeaderFrame::SetColumnsInfo
void SetColumnsInfo(Int_t nColumns, TGTextButton **colHeader, TGVFileSplitter **splitHeader)
Set columns information in the header frame.
Definition: TGFrame.cxx:2338
TGFrame::Dump
virtual void Dump() const
Dump contents of object on stdout.
Definition: TGFrame.h:287
TGHeaderFrame::fColHeader
TGTextButton ** fColHeader
Definition: TGFrame.h:659
TGFrame::GetWhitePixel
static Pixel_t GetWhitePixel()
Get white pixel value.
Definition: TGFrame.cxx:694
TGGroupFrame::GetTitle
virtual const char * GetTitle() const
Returns title of object.
Definition: TGFrame.h:635
TGFrameElement
Definition: TGLayout.h:112
TGFrame::GetY
Int_t GetY() const
Definition: TGFrame.h:256
TGFrame::GetShadowGC
static const TGGC & GetShadowGC()
Get shadow color graphics context.
Definition: TGFrame.cxx:750
kMWMDecorMaximize
@ kMWMDecorMaximize
Definition: TGFrame.h:77
TGString::GetString
const char * GetString() const
Definition: TGString.h:40
TGFrame::SetSize
virtual void SetSize(const TGDimension &s)
Definition: TGFrame.h:276
TGMainFrame::fMWMFuncs
UInt_t fMWMFuncs
Definition: TGFrame.h:467
TGGroupFrame::fHasOwnFont
Bool_t fHasOwnFont
Definition: TGFrame.h:593
TGFrame::GetDefaultSelectedBackground
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
Definition: TGFrame.cxx:681
TGCompositeFrame::IsMapSubwindows
virtual Bool_t IsMapSubwindows() const
Definition: TGFrame.h:400
TGGroupFrame::TGGroupFrame
TGGroupFrame(const TGGroupFrame &)=delete
TGGroupFrame::kCenter
@ kCenter
Definition: TGFrame.h:605
TGMainFrame::fWMMaxWidth
UInt_t fWMMaxWidth
Definition: TGFrame.h:475
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:1621
TGGroupFrame::~TGGroupFrame
virtual ~TGGroupFrame()
Delete a group frame.
Definition: TGFrame.cxx:2077
TGHeaderFrame::fNColumns
Int_t fNColumns
Definition: TGFrame.h:658
TGMainFrame::fBindList
TList * fBindList
Definition: TGFrame.h:460
TGCompositeFrame::TGCompositeFrame
TGCompositeFrame(const TGCompositeFrame &)=delete
EInitialState
EInitialState
Initial window mapping state.
Definition: GuiTypes.h:345
TGMainFrame::fWindowName
TString fWindowName
Definition: TGFrame.h:461
TGFrame::GetWhiteGC
static const TGGC & GetWhiteGC()
Get white graphics context.
Definition: TGFrame.cxx:730
TGCompositeFrame::SetCleanup
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Definition: TGFrame.cxx:1057
TGFrame::fHeight
UInt_t fHeight
Definition: TGFrame.h:112
TGFrame::fgBckgndGC
static const TGGC * fgBckgndGC
Definition: TGFrame.h:133
TGFrame::RemoveInput
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
Definition: TGFrame.cxx:333
TGFrame::fBackground
Pixel_t fBackground
Definition: TGFrame.h:119
TGFrame::HandleDNDPosition
virtual Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
Definition: TGFrame.h:301
kMWMFuncResize
@ kMWMFuncResize
Definition: TGFrame.h:58
type
int type
Definition: TGX11.cxx:121
TGCompositeFrame::IsArranged
Bool_t IsArranged(TGFrameElement *ptr) const
Definition: TGFrame.h:388
TGCompositeFrame::GetDefaultWidth
virtual UInt_t GetDefaultWidth() const
Definition: TGFrame.h:348
TGFont
Definition: TGFont.h:149
TGFrame::Activate
virtual void Activate(Bool_t)
Definition: TGFrame.h:234
TGFrame::Layout
virtual void Layout()
Definition: TGFrame.h:223
TGGroupFrame::fText
TGString * fText
Definition: TGFrame.h:589
TGFrame::fEventMask
UInt_t fEventMask
Definition: TGFrame.h:120
TGFrame::fgDefaultSelectedBackground
static Pixel_t fgDefaultSelectedBackground
Definition: TGFrame.h:126
kMWMFuncMaximize
@ kMWMFuncMaximize
Definition: TGFrame.h:61
TGFrame::SetDragType
virtual void SetDragType(Int_t type)
SetDragType.
Definition: TGFrame.cxx:794
EDNDFlags
EDNDFlags
Definition: TGFrame.h:82
TGCompositeFrame
Definition: TGFrame.h:323
TGWindow::UnmapWindow
virtual void UnmapWindow()
unmap window
Definition: TGWindow.cxx:183
TGGroupFrame::kLeft
@ kLeft
Definition: TGFrame.h:605
TGMainFrame::GetBindList
TList * GetBindList() const
Definition: TGFrame.h:519
TGGroupFrame::GetDefaultGC
static const TGGC & GetDefaultGC()
Return default graphics context in use.
Definition: TGFrame.cxx:2306
kMWMDecorMinimize
@ kMWMDecorMinimize
Definition: TGFrame.h:76
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:424
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1102
TGFrame::GetDefaultWidth
virtual UInt_t GetDefaultWidth() const
Definition: TGFrame.h:214
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:530
TGFrame::GetMinHeight
UInt_t GetMinHeight() const
Definition: TGFrame.h:251
TGFrame::SetX
virtual void SetX(Int_t x)
Definition: TGFrame.h:268
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:3569
TGString
Definition: TGString.h:30
TGHeaderFrame::fOverButton
Int_t fOverButton
Definition: TGFrame.h:663
TGCompositeFrame::HandleMotion
virtual Bool_t HandleMotion(Event_t *)
Definition: TGFrame.h:363
TGCompositeFrame::Layout
virtual void Layout()
Layout the elements of the composite frame.
Definition: TGFrame.cxx:1242
Time_t
ULong_t Time_t
Event time.
Definition: GuiTypes.h:42
TGMainFrame::fClassName
TString fClassName
Definition: TGFrame.h:464
TGFrame::HandleDragDrop
virtual Bool_t HandleDragDrop(TGFrame *, Int_t, Int_t, TGLayoutHints *)
Definition: TGFrame.h:199
TGMainFrame::SetWMState
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Definition: TGFrame.cxx:1883
TGClient
Definition: TGClient.h:46
TGFrame::SetFrameElement
void SetFrameElement(TGFrameElement *fe)
Definition: TGFrame.h:260
TGCompositeFrame::ShowFrame
virtual void ShowFrame(TGFrame *f)
Show sub frame.
Definition: TGFrame.cxx:1189
TGMainFrame::fMWMValue
UInt_t fMWMValue
Definition: TGFrame.h:466
TGFrame::HandleColormapChange
virtual Bool_t HandleColormapChange(Event_t *)
Definition: TGFrame.h:195
TGTransientFrame::kRight
@ kRight
Definition: TGFrame.h:565
EFrameState
EFrameState
Definition: TGFrame.h:40
TGMainFrame::HandleKey
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
Definition: TGFrame.cxx:1567
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:1840
TGCompositeFrame::operator=
TGCompositeFrame & operator=(const TGCompositeFrame &)=delete
TGFont.h
TGCompositeFrame::~TGCompositeFrame
virtual ~TGCompositeFrame()
Delete a composite frame.
Definition: TGFrame.cxx:889
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:565
TGFrame::GetFrameElement
TGFrameElement * GetFrameElement() const
Definition: TGFrame.h:259
TGFrame::GetMaxHeight
UInt_t GetMaxHeight() const
Definition: TGFrame.h:253
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int
TGFrame::IsDNDTarget
Bool_t IsDNDTarget() const
Definition: TGFrame.h:297
TGFrame::StartGuiBuilding
virtual void StartGuiBuilding(Bool_t on=kTRUE)
Go into GUI building mode.
Definition: TGFrame.cxx:826
TGMainFrame::HandleClientMessage
virtual Bool_t HandleClientMessage(Event_t *event)
Handle client messages sent to this frame.
Definition: TGFrame.cxx:1688
TGCompositeFrame::ProcessMessage
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
Definition: TGFrame.h:372
TGFrame::DoRedraw
virtual void DoRedraw()
Redraw the frame.
Definition: TGFrame.cxx:415
TGMainFrame::GetWindowName
const char * GetWindowName() const
Definition: TGFrame.h:521