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