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