135 "ROOT macros",
"*.C",
162 :
TGWindow(
p, 0, 0,
w,
h, 0, 0, 0, 0, 0, options)
193 wattr.fBackgroundPixel = back;
243 gVirtualX->GetWindowAttributes(
id, attributes);
464 switch (event->
fType) {
503 fgDbx =
event->fXRoot;
504 fgDby =
event->fYRoot;
505 fgDbw =
event->fWindow;
527 fgDbx =
event->fXRoot;
528 fgDby =
event->fYRoot;
529 fgDbw =
event->fWindow;
654 event.fWindow =
w->GetId();
655 event.fUser[0] =
msg;
656 event.fUser[1] =
parm1;
657 event.fUser[2] =
parm2;
802 std::cout <<
" x=" <<
fX <<
" y=" <<
fY;
803 std::cout <<
" w=" <<
fWidth <<
" h=" <<
fHeight << std::endl;
976 el->fFrame->SetFrameElement(0);
978 el->fFrame->DestroyWindow();
983 (
el->fLayout->References() > 0)) {
984 el->fLayout->RemoveReference();
985 if (!
el->fLayout->References()) {
986 el->fLayout->fFE = 0;
1006 Error(
"SetLayoutManager",
"no layout manager specified");
1034 el->fFrame->SetEditDisabled(set);
1096 if (!
fList)
return 0;
1102 if (
el->fFrame ==
f)
1140 if (
el->fLayout)
el->fLayout->RemoveReference();
1155 if (
el->fLayout)
el->fLayout->RemoveReference();
1156 f->SetFrameElement(0);
1180 el->fFrame->MapSubwindows();
1196 el->fFrame->UnmapWindow();
1210 el->fFrame->MapWindow();
1281 el->fFrame->Print(
tab.Data());
1296 el->fFrame->SetBackgroundColor(back);
1312 if (!
fList)
return this;
1321 f =
el->fFrame->GetFrameFromPoint(
x -
el->fFrame->GetX(),
1322 y -
el->fFrame->GetY());
1335 if (
child ==
this) {
1350 fx =
x -
el->fFrame->GetX();
1351 fy =
y -
el->fFrame->GetY();
1353 }
else if (
el->fFrame->IsComposite()) {
1355 x -
el->fFrame->GetX(),
y -
el->fFrame->GetY(),
fx, fy))
1569 if (
fname.EndsWith(
".C")) {
1574 if (
fname.EndsWith(
"gif")) {
1576 }
else if (
fname.EndsWith(
".png")) {
1578 }
else if (
fname.EndsWith(
".jpg")) {
1580 }
else if (
fname.EndsWith(
".tiff")) {
1582 }
else if (
fname.EndsWith(
".xpm")) {
1595 Error(
"SaveFrameAsCodeOrImage",
"File cannot be saved with this extension");
1615 if (
m->fKeyCode == event->
fCode) {
1617 if (
w->HandleKey(event))
return kTRUE;
1644 list =
main->GetBindList();
1733 Emit(
"CloseWindow()");
1752 event.fWindow =
GetId();
1848 Warning(
"SetIconPixmap",
"Failed to set window icon from xpm array.");
2008 if (!
gVirtualX->InheritsFrom(
"TGWin32")) {
2167 gc->SetForeground(color);
2228 Int_t x,
y,
l, t,
r,
b,
gl,
gr, sep,
max_ascent,
max_descent;
2260 gr =
gl +
tw + (sep << 1);
2311 Warning(
"SetTitle",
"title cannot be 0, try \"\"");
2327 Error(
"SetTitle",
"title cannot be 0, try \"\"");
2392 if ( event->
fY > 0 &&
2424 if ( event->
fY > 0 &&
2451 if ( event->
fY > 0 &&
2488 out <<
" ULong_t ucolor; // will reflect user color changes" << std::endl;
2498 <<
",ucolor);" << std::endl;
2511 options =
"kChildFrame";
2514 if (options.
Length() == 0) options =
"kMainFrame";
2515 else options +=
" | kMainFrame";
2518 if (options.
Length() == 0) options =
"kVerticalFrame";
2519 else options +=
" | kVerticalFrame";
2522 if (options.
Length() == 0) options =
"kHorizontalFrame";
2523 else options +=
" | kHorizontalFrame";
2526 if (options.
Length() == 0) options =
"kSunkenFrame";
2527 else options +=
" | kSunkenFrame";
2530 if (options.
Length() == 0) options =
"kRaisedFrame";
2531 else options +=
" | kRaisedFrame";
2534 if (options.
Length() == 0) options =
"kDoubleBorder";
2535 else options +=
" | kDoubleBorder";
2538 if (options.
Length() == 0) options =
"kFitWidth";
2539 else options +=
" | kFitWidth";
2542 if (options.
Length() == 0) options =
"kFixedWidth";
2543 else options +=
" | kFixedWidth";
2546 if (options.
Length() == 0) options =
"kFitHeight";
2547 else options +=
" | kFitHeight";
2550 if (options.
Length() == 0) options =
"kFixedHeight";
2551 else options +=
" | kFixedHeight";
2554 if (options.
Length() == 0) options =
"kOwnBackground";
2555 else options +=
" | kOwnBackground";
2558 if (options.
Length() == 0) options =
"kTransientFrame";
2559 else options +=
" | kTransientFrame";
2562 if (options.
Length() == 0) options =
"kTempFrame";
2563 else options +=
" | kTempFrame";
2578 if (
hints.Length() == 0)
hints =
"kMWMDecorAll";
2579 else hints +=
" | kMWMDecorAll";
2582 if (
hints.Length() == 0)
hints =
"kMWMDecorBorder";
2583 else hints +=
" | kMWMDecorBorder";
2586 if (
hints.Length() == 0)
hints =
"kMWMDecorResizeH";
2587 else hints +=
" | kMWMDecorResizeH";
2590 if (
hints.Length() == 0)
hints =
"kMWMDecorTitle";
2591 else hints +=
" | kMWMDecorTitle";
2594 if (
hints.Length() == 0)
hints =
"kMWMDecorMenu";
2595 else hints +=
" | kMWMDecorMenu";
2598 if (
hints.Length() == 0)
hints =
"kMWMDecorMinimize";
2599 else hints +=
" | kMWMDecorMinimize";
2602 if (
hints.Length() == 0)
hints =
"kMWMDecorMaximize";
2603 else hints +=
" | kMWMDecorMaximize";
2619 if (
hints.Length() == 0)
hints =
"kMWMFuncAll";
2620 else hints +=
" | kMWMFuncAll";
2623 if (
hints.Length() == 0)
hints =
"kMWMFuncResize";
2624 else hints +=
" | kMWMFuncResize";
2627 if (
hints.Length() == 0)
hints =
"kMWMFuncMove";
2628 else hints +=
" | kMWMFuncMove";
2631 if (
hints.Length() == 0)
hints =
"kMWMFuncMinimize";
2632 else hints +=
" | kMWMFuncMinimize";
2635 if (
hints.Length() == 0)
hints =
"kMWMFuncMaximize";
2636 else hints +=
" | kMWMFuncMaximize";
2639 if (
hints.Length() == 0)
hints =
"kMWMFuncClose";
2640 else hints +=
" | kMWMFuncClose";
2670 out <<
" " <<
GetName() <<
"->SetLayoutBroken(kTRUE);" << std::endl;
2691 if ((!(
el->fState &
kIsVisible)) && (
el->fFrame->GetParent() !=
this))
2696 if (
el->fFrame->InheritsFrom(
"TGVSplitter")) {
2701 else if (
el->fFrame->InheritsFrom(
"TGHSplitter")) {
2706 el->fFrame->SavePrimitive(out,
option);
2707 out <<
" " <<
GetName() <<
"->AddFrame(" <<
el->fFrame->GetName();
2708 el->fLayout->SavePrimitive(out,
option);
2709 out <<
");"<< std::endl;
2711 out <<
" " <<
el->fFrame->GetName() <<
"->MoveResize(";
2712 out <<
el->fFrame->GetX() <<
"," <<
el->fFrame->GetY() <<
",";
2713 out <<
el->fFrame->GetWidth() <<
"," <<
el->fFrame->GetHeight();
2714 out <<
");" << std::endl;
2722 out <<
" " <<
vsplit->GetName() <<
"->SetFrame(" <<
vsplit->GetFrame()->GetName();
2723 if (
vsplit->GetLeft()) out <<
",kTRUE);" << std::endl;
2724 else out <<
",kFALSE);"<< std::endl;
2728 out <<
" " <<
hsplit->GetName() <<
"->SetFrame(" <<
hsplit->GetFrame()->GetName();
2729 if (
hsplit->GetAbove()) out <<
",kTRUE);" << std::endl;
2730 else out <<
",kFALSE);"<< std::endl;
2778 out << std::endl <<
" // composite frame" << std::endl;
2779 out <<
" TGCompositeFrame *";
2780 out <<
GetName() <<
" = new TGCompositeFrame(" <<
fParent->GetName()
2785 out <<
");" << std::endl;
2793 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
2806 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
2808 out <<
");"<< std::endl;
2826 gROOT->ResetClassSaved();
2834 if (
c1==
c2)
continue;
2836 c3 =
c2->GetBaseClass(
c1);
2847 ilist->SetName(
"ListOfIncludes");
2859 iname =
c2->GetDeclFileName();
2865 while (*
iname !=
'.') {
2878 if (!
ilist->FindObject(
"TGDockableFrame"))
2880 if (!
ilist->FindObject(
"TG3DLine"))
2909 out.open(
ff.Data(), std::ios::out);
2911 Error(
"SaveSource",
"cannot open file: %s",
ff.Data());
2918 ilist = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfIncludes");
2927 out <<
"// Mainframe macro generated from application: "<<
gApplication->
Argv(0) << std::endl;
2928 out <<
"// By ROOT version "<<
gROOT->GetVersion() <<
" on "<<t.
AsSQLString()<< std::endl;
2933 out <<
"#ifndef ROOT_" <<
inc->GetString() << std::endl;
2934 out <<
"#include " <<
quote <<
inc->GetString() <<
".h" <<
quote << std::endl;
2935 out <<
"#endif" << std::endl;
2936 if (
strstr(
inc->GetString(),
"TRootEmbeddedCanvas")) {
2937 out <<
"#ifndef ROOT_TCanvas" << std::endl;
2938 out <<
"#include " <<
quote <<
"TCanvas.h" <<
quote << std::endl;
2939 out <<
"#endif" << std::endl;
2942 out << std::endl <<
"#include " <<
quote <<
"Riostream.h" <<
quote << std::endl;
2951 out <<
"void " <<
sname <<
"()" << std::endl;
2952 out <<
"{"<< std::endl;
2959 lSlots->SetName(
"ListOfSlots");
2971 out <<
" " <<
GetName() <<
"->SetMWMHints(";
2998 out <<
" " <<
GetName()<<
"->MapSubwindows();" << std::endl;
3003 out <<
" " <<
fhidden->GetName()<<
"->UnmapWindow();" << std::endl;
3013 if (
lm->InheritsFrom(
"TGXYLayout"))
3017 out <<
" " <<
GetName()<<
"->Resize("<<
GetName()<<
"->GetDefaultSize());" << std::endl;
3021 out <<
" " <<
GetName()<<
"->MapWindow();" <<std::endl;
3024 if ((
fWMX != -1) || (
fWMY != -1)) {
3031 out <<
"} " << std::endl;
3049 if (
rb -
lb > 1 &&
eq == -1) {
3053 out <<
"void " << s << std::endl;
3054 out <<
"{" << std::endl;
3055 s =
slobj->GetString();
3057 out <<
" std::cout << " <<
quote <<
"Slot " << s <<
quote
3059 <<
" << std::endl; " << std::endl;
3063 out <<
"void " << s << std::endl;
3064 out <<
"{" << std::endl;
3065 out <<
" std::cout << " <<
quote <<
"Slot " << s
3066 <<
quote <<
" << std::endl; " << std::endl;
3068 out <<
"void " <<
slobj->GetString() << std::endl;
3069 out <<
"{" << std::endl;
3070 out <<
" std::cout << " <<
quote <<
"Slot " <<
slobj->GetString()
3071 <<
quote <<
" << std::endl; " << std::endl;
3074 out <<
"}" << std::endl;
3076 gROOT->GetListOfSpecials()->Remove(
sl);
3086 gROOT->ResetClassSaved();
3103 out << std::endl <<
" // main frame" << std::endl;
3104 out <<
" TGMainFrame *";
3105 out <<
GetName() <<
" = new TGMainFrame(gClient->GetRoot(),10,10,"
3108 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3121 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3123 out <<
");"<< std::endl;
3130 <<
quote <<
");" << std::endl;
3137 <<
quote <<
");" << std::endl;
3148 out << std::endl <<
" // horizontal frame" << std::endl;
3149 out <<
" TGHorizontalFrame *";
3150 out <<
GetName() <<
" = new TGHorizontalFrame(" <<
fParent->GetName()
3155 out <<
");" << std::endl;
3163 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3176 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3178 out <<
");"<< std::endl;
3191 out << std::endl <<
" // vertical frame" << std::endl;
3192 out <<
" TGVerticalFrame *";
3193 out <<
GetName() <<
" = new TGVerticalFrame(" <<
fParent->GetName()
3198 out <<
");" << std::endl;
3206 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3219 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3221 out <<
");"<< std::endl;
3234 out <<
" TGFrame *";
3240 out <<
");" << std::endl;
3248 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3272 parFont.Form(
"ufont->GetFontStruct()");
3278 parGC.Form(
"uGC->GetGC()");
3284 out << std::endl <<
" // " <<
quote <<
GetTitle() <<
quote <<
" group frame" << std::endl;
3285 out <<
" TGGroupFrame *";
3293 out <<
");" << std::endl;
3307 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3310 out <<
" " <<
GetName() <<
"->SetTitlePos(";
3312 out <<
"TGGroupFrame::kCenter);" << std::endl;
3314 out <<
"TGGroupFrame::kRight);" << std::endl;
3319 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3323 out <<
");"<< std::endl;
3343 gROOT->ResetClassSaved();
3350 if (
c1==
c2)
continue;
3352 c3 =
c2->GetBaseClass(
c1);
3363 ilist->SetName(
"ListOfIncludes");
3375 iname =
c2->GetDeclFileName();
3381 while (*
iname !=
'.') {
3417 out.open(
ff.Data(), std::ios::out);
3419 Error(
"SaveSource",
"cannot open file: %s",
ff.Data());
3426 ilist = (
TList *)
gROOT->GetListOfSpecials()->FindObject(
"ListOfIncludes");
3435 out <<
"// Dialog macro generated from application: "<<
gApplication->
Argv(0) << std::endl;
3436 out <<
"// By ROOT version "<<
gROOT->GetVersion() <<
" on "<<t.
AsSQLString()<< std::endl;
3439 out << std::endl << std::endl;
3443 out <<
"#ifndef ROOT_"<<
inc->GetString() << std::endl;
3444 out <<
"#include "<<
quote <<
inc->GetString() <<
".h"<<
quote << std::endl;
3445 out <<
"#endif" << std::endl;
3446 if (
strstr(
inc->GetString(),
"TRootEmbeddedCanvas")) {
3447 out <<
"#ifndef ROOT_TCanvas"<< std::endl;
3448 out <<
"#include "<<
quote <<
"TCanvas.h"<<
quote << std::endl;
3449 out <<
"#endif" << std::endl;
3452 out << std::endl <<
"#include " <<
quote <<
"Riostream.h" <<
quote << std::endl;
3453 out << std::endl << std::endl;
3462 out <<
"void " <<
sname <<
"()" << std::endl;
3466 out <<
"{"<< std::endl;
3472 lSlots->SetName(
"ListOfSlots");
3485 out <<
" " <<
GetName() <<
"->SetMWMHints(";
3494 if ((
fWMX != -1) || (
fWMY != -1)) {
3495 out <<
" "<<
GetName()<<
"->SetWMPosition("<<
fWMX<<
","<<
fWMY<<
");"<<std::endl;
3514 if ((
fWMX != -1) || (
fWMY != -1)) {
3518 out <<
" " <<
GetName()<<
"->MapSubwindows();" << std::endl;
3523 out <<
" " <<
fhidden->GetName()<<
"->UnmapWindow();" << std::endl;
3532 if (
lm->InheritsFrom(
"TGXYLayout"))
3536 out <<
" " <<
GetName()<<
"->Resize("<<
GetName()<<
"->GetDefaultSize());" << std::endl;
3540 out <<
" " <<
GetName()<<
"->MapWindow();" <<std::endl;
3541 if (!
usexy) out <<
" " <<
GetName()<<
"->Resize();" << std::endl;
3542 out <<
"} " << std::endl;
3560 if (
rb -
lb > 1 &&
eq == -1) {
3564 out <<
"void " << s << std::endl;
3565 out <<
"{" << std::endl;
3566 s =
slobj->GetString();
3568 out <<
" std::cout << " <<
quote <<
"Slot " << s <<
quote
3570 <<
" << std::endl; " << std::endl;
3574 out <<
"void " << s << std::endl;
3575 out <<
"{" << std::endl;
3576 out <<
" std::cout << " <<
quote <<
"Slot " << s
3577 <<
quote <<
" << std::endl; " << std::endl;
3579 out <<
"void " <<
slobj->GetString() << std::endl;
3580 out <<
"{" << std::endl;
3581 out <<
" std::cout << " <<
quote <<
"Slot " <<
slobj->GetString()
3582 <<
quote <<
" << std::endl; " << std::endl;
3585 out <<
"}" << std::endl;
3587 gROOT->GetListOfSpecials()->Remove(
sl);
3598 gROOT->ResetClassSaved();
3608 out << std::endl <<
" // transient frame" << std::endl;
3609 out <<
" TGTransientFrame *";
3610 out <<
GetName()<<
" = new TGTransientFrame(gClient->GetRoot(),0"
3614 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
3627 out <<
" " <<
GetName() <<
"->SetLayoutManager(";
3629 out <<
");"<< std::endl;
3636 <<
quote <<
");" << std::endl;
3643 <<
quote <<
");" << std::endl;
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kButtonPressMask
Handle_t FontH_t
Font handle (as opposed to Font_t which is an index)
const Mask_t kExposureMask
const Mask_t kWAEventMask
Handle_t Window_t
Window handle.
const Mask_t kWABackPixel
const Mask_t kAnyModifier
ULong_t Time_t
Event time.
Handle_t GContext_t
Graphics context handle.
EInitialState
Initial window mapping state.
const Mask_t kPointerMotionMask
const Mask_t kKeyControlMask
const Mask_t kKeyMod2Mask
typically mod on numeric keys
const Mask_t kStructureNotifyMask
const Mask_t kButtonReleaseMask
ULong_t Pixel_t
Pixel value.
ULongptr_t Handle_t
Generic resource handle.
Handle_t FontStruct_t
Pointer to font structure.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
constexpr UInt_t kMaxUInt
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Int_t gErrorIgnoreLevel
Error handling routines.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
R__EXTERN TGDNDManager * gDNDManager
TList * gListOfHiddenFrames
static const char * gSaveMacroTypes[]
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmin
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t child
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t SetTextFont
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void funcs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t winc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t modifier
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t wmax
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t hinc
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
R__EXTERN TGuiBuilder * gGuiBuilder
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
R__EXTERN TVirtualDragManager * gDragManager
R__EXTERN Atom_t gROOT_MESSAGE
R__EXTERN Atom_t gWM_DELETE_WINDOW
TClass instances represent classes, structs and namespaces in the ROOT type system.
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
static const char * PixelAsHexString(ULong_t pixel)
Convert machine dependent pixel value (obtained via RGB2Pixel or via Number2Pixel() or via TColor::Ge...
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
const char * AsSQLString() const
Return the date & time in SQL compatible string format, like: 1997-01-15 20:16:28.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
const TGWindow * GetRoot() const
Returns current root (i.e.
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
const TGResourcePool * GetResourcePool() const
UInt_t GetDisplayHeight() const
Get display height.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
TGGCPool * GetGCPool() const
void SetRoot(TGWindow *root=nullptr)
Sets the current root (i.e.
Bool_t IsEditDisabled() const
Returns kTRUE if edit/guibuilding is forbidden.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
UInt_t GetDisplayWidth() const
Get display width.
The base class for composite widgets (menu bars, list boxes, etc.).
Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo) override
Handle drop event.
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
~TGCompositeFrame() override
Delete a composite frame.
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
TGLayoutManager * fLayoutManager
layout manager
virtual void ChangeSubframesBackground(Pixel_t back)
Change background color for this frame and all subframes.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGFrame * GetFrameFromPoint(Int_t x, Int_t y) override
Get frame located at specified point.
Int_t GetState(TGFrame *f) const
Get state of sub frame.
void Print(Option_t *option="") const override
Print all frames in this composite frame.
Bool_t HandleDragMotion(TGFrame *) override
Handle drag motion event.
virtual TGLayoutManager * GetLayoutManager() const
Bool_t HandleSelection(Event_t *) override
Bool_t HandleDragEnter(TGFrame *) override
Handle drag enter event.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
Bool_t HandleDragLeave(TGFrame *) override
Handle drag leave event.
Int_t fMustCleanup
cleanup mode (see EFrameCleanup)
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxiliary protected method used to save subframes.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
Translate coordinates to child frame.
void Layout() override
Layout the elements of the composite frame.
Bool_t HandleMotion(Event_t *) override
Bool_t fLayoutBroken
no layout manager is used
Bool_t fMapSubwindows
kTRUE - map subwindows
virtual void ShowFrame(TGFrame *f)
Show sub frame.
TList * fList
container of frame elements
Bool_t IsEditable() const override
Return kTRUE if frame is being edited.
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
Bool_t IsLayoutBroken() const override
Bool_t HandleButton(Event_t *) override
Bool_t IsArranged(TGFrame *f) const
Get state of sub frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void SetEditable(Bool_t on=kTRUE) override
Switch ON/OFF edit mode.
static TGLayoutHints * fgDefaultHints
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a composite frame widget as a C++ statement(s) on output stream out.
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
virtual void RemoveAll()
Remove all frames from composite frame.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
void SetLayoutBroken(Bool_t on=kTRUE) override
Set broken layout. No Layout method is called.
Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
Bool_t HandleClientMessage(Event_t *event)
Handle DND related client messages.
Bool_t HandleSelection(Event_t *event)
Handle selection event.
Bool_t IsDragging() const
void SetMainFrame(TGFrame *main)
static Atom_t GetDNDSelection()
Bool_t Drag(Int_t x_root, Int_t y_root, Atom_t action, Time_t timestamp)
Process drag event.
TGFrame * GetMainFrame() const
static Atom_t GetDNDActionCopy()
This class creates a file selection dialog.
Encapsulate fonts used in the GUI system.
FontStruct_t GetFontStruct() const
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual Bool_t HandleSelectionClear(Event_t *)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC * fgWhiteGC
virtual Int_t GetDragType() const
Returns drag source type.
~TGFrame() override
Destructor.
virtual void StartGuiBuilding(Bool_t on=kTRUE)
Go into GUI building mode.
Bool_t IsEditable() const override
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
static Pixel_t GetBlackPixel()
Get black pixel value.
UInt_t fOptions
frame options
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
virtual Bool_t HandleDoubleClick(Event_t *)
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fMinHeight
minimal frame height
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
virtual Bool_t HandleKey(Event_t *)
TGFrame(const TGFrame &)=delete
static Pixel_t GetWhitePixel()
Get white pixel value.
UInt_t fHeight
frame height
virtual Bool_t HandleColormapChange(Event_t *)
virtual void SetDropType(Int_t type)
SetDropType.
virtual void SetDragType(Int_t type)
SetDragType.
void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0) override
Reparent window, make p the new parent and position the window at position (x,y) in new parent.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a frame widget as a C++ statement(s) on output stream out.
virtual void DrawBorder()
Draw frame border.
static const TGGC * fgBckgndGC
virtual Bool_t ProcessMessage(Longptr_t, Longptr_t, Longptr_t)
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.
Int_t fBorderWidth
frame border width
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
static const TGGC * fgShadowGC
Bool_t HandleEvent(Event_t *event) override
Handle all frame events.
static Pixel_t fgDefaultSelectedBackground
UInt_t fMinWidth
minimal frame width
void DoRedraw() override
Redraw the frame.
void MapWindow() override
map window
virtual Pixel_t GetForeground() const
Return frame foreground color.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static UInt_t fgLastButton
TGFrameElement * fFE
pointer to frame element
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual Int_t GetDropType() const
Returns drop target type.
Int_t fDNDState
EDNDFlags.
static Time_t GetLastClick()
Get time of last mouse click.
void Move(Int_t x, Int_t y) override
Move frame.
TClass * IsA() const override
static const TGGC * fgBlackGC
static UInt_t fgUserColor
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static Time_t fgLastClick
virtual Bool_t HandleFocusChange(Event_t *)
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
UInt_t fMaxWidth
maximal frame width
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
virtual void ProcessedConfigure(Event_t *event)
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual Bool_t HandleSelectionRequest(Event_t *)
virtual Bool_t HandleSelection(Event_t *)
void Print(Option_t *option="") const override
Print window id.
virtual Bool_t HandleButton(Event_t *)
virtual Bool_t HandleMotion(Event_t *)
virtual Bool_t HandleClientMessage(Event_t *event)
Handle a client message.
virtual Pixel_t GetBackground() const
UInt_t fEventMask
currently active event mask
UInt_t fMaxHeight
maximal frame height
virtual Bool_t HandleCrossing(Event_t *)
virtual void ProcessedEvent(Event_t *event)
Bool_t Contains(Int_t x, Int_t y) const
static const TGGC & GetWhiteGC()
Get white graphics context.
static Pixel_t fgWhitePixel
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
Pixel_t fBackground
frame background color
static Pixel_t fgBlackPixel
static const TGGC & GetBckgndGC()
Get background color graphics context.
static const TGGC * fgHilightGC
static Pixel_t fgDefaultFrameBackground
Encapsulate a graphics context used in the low level graphics.
A composite frame with a border and a title.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a group frame widget as a C++ statement(s) on output stream out.
TGString * fText
title text
Bool_t fHasOwnFont
kTRUE - font defined locally, kFALSE - globally
static const TGGC & GetDefaultGC()
Return default graphics context in use.
static const TGGC * fgDefaultGC
TGGroupFrame(const TGGroupFrame &)=delete
Int_t fTitlePos
OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",...
static const TGFont * fgDefaultFont
void DrawBorder() override
Draw border of around the group frame.
TGDimension GetDefaultSize() const override
Returns default size.