65 l =
l + (1. -
l) * 45. / 100.;
129 for (
int i = 0; i < 5; i +=4) {
290 fFrame->SetEditDisabled();
298 fY +
fFrame->GetHeight(), ax, ay, wdummy);
455 out <<
"\n // dockable frame\n";
456 out <<
" TGDockableFrame *" <<
GetName()<<
" = new TGDockableFrame(" <<
fParent->GetName();
467 if (option && strstr(option,
"keep_names"))
468 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
472 <<
GetName() <<
"->GetContainer();\n";
477 el->fFrame->SavePrimitive(out, option);
478 out <<
" " <<
GetName() <<
"->AddFrame(" << el->fFrame->GetName();
479 el->fLayout->SavePrimitive(out, option);
483 out <<
"\n // next lines belong to the dockable frame widget\n";
485 out <<
" " <<
GetName() <<
"->EnableUndock(kTRUE);\n";
487 out <<
" " <<
GetName() <<
"->EnableUndock(kFALSE);\n";
490 out <<
" " <<
GetName() <<
"->EnableHide(kTRUE);\n";
492 out <<
" " <<
GetName() <<
"->EnableHide(kFALSE);\n";
498 out <<
" " <<
GetName() <<
"->UndockContainer();\n";
500 out <<
" " <<
GetName() <<
"->DockContainer();\n";
503 out <<
" " <<
GetName() <<
"->HideContainer();\n";
const Mask_t kLeaveWindowMask
const Mask_t kEnterWindowMask
Handle_t Window_t
Window handle.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
static void HLS2RGB(Float_t h, Float_t l, Float_t s, Float_t &r, Float_t &g, Float_t &b)
static void Pixel2RGB(ULong_t pixel, Int_t &r, Int_t &g, Int_t &b)
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
static void RGB2HLS(Float_t r, Float_t g, Float_t b, Float_t &h, Float_t &l, Float_t &s)
The base class for composite widgets (menu bars, list boxes, etc.).
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
Bool_t IsComposite() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame 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.
A frame with handles that allow it to be undocked (i.e.
void DockContainer(Int_t del=kTRUE)
Dock container back to TGDockableFrame.
Bool_t fEnableUndock
if frame can be undocked
friend class TGUndockedFrame
TGCompositeFrame * fButtons
container containing dock and hide buttons
TGUndockedFrame * fFrame
undocked frame
Bool_t ProcessMessage(Longptr_t, Longptr_t, Longptr_t) override
Process dockable frame messages.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a dockable frame widget as a C++ statement(s) on output stream out.
TGCompositeFrame * GetContainer() const
void AddFrame(TGFrame *f, TGLayoutHints *hints) override
Add frame to dockable frame container. Frame and hints are NOT adopted.
TGCompositeFrame * fContainer
container containing dockable frame
Bool_t fHidden
if frame is hidden
TGDockableFrame(const TGDockableFrame &)=delete
void UndockContainer()
Undock container.
Bool_t fDeleted
kTRUE if it is being deleted
void HideContainer()
Hide dock container.
void SetWindowName(const char *name) override
Set window name so it appear as title of the undock window.
Bool_t EnableUndock() const
Bool_t fFixedSize
kTRUE if fixed size when undocked
TGLayoutHints * fHints
layout hints
Bool_t fEnableHide
if frame can be hidden
Bool_t EnableHide() const
TGDockButton * fDockButton
dock button
void ShowContainer()
Show dock container.
TGDockHideButton * fHideButton
hide button
TString fDockName
name of frame
~TGDockableFrame() override
Cleanup dockable frame.
TGLayoutHints * fLc
layout hints
Bool_t IsUndocked() const
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC & GetBlackGC()
Get black graphics context.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
TGFrame(const TGFrame &)=delete
UInt_t fHeight
frame height
virtual UInt_t GetDefaultHeight() const
virtual void DrawBorder()
Draw frame border.
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
virtual void SendMessage(const TGWindow *w, Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Send message (i.e.
static const TGGC & GetShadowGC()
Get shadow color graphics context.
Pixel_t fBackground
frame background color
This class describes layout hints used by the layout classes.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
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.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
TGTransientFrame(const TGTransientFrame &)=delete
void FixSize()
Fix the size of the undocked frame so it cannot be changed via the WM.
~TGUndockedFrame() override
Delete undocked frame. Puts back dockable frame in its original container.
TGDockableFrame * fDockable
orignal dockable frame
TGUndockedFrame(const TGUndockedFrame &)=delete
void CloseWindow() override
Close undocked frame (called via WM close button).
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
const TGWindow * fParent
Parent window.
virtual void SetWindowName(const char *name=nullptr)
Set window name.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
EGEventType fType
of event (see EGEventType)