12 #ifndef ROOT_TGMdiDecorFrame
13 #define ROOT_TGMdiDecorFrame
43 #ifndef ROOT_TGMdiMainFrame
46 #ifndef ROOT_TGMdiFrame
217 const char *
name =
"Untitled");
void SetMinUserPlacement(Bool_t place=kTRUE)
virtual Bool_t HandleButton(Event_t *event)
Handle button events in resizer (grab button and resize).
TGMdiCornerWinResizer * fUpperLeftCR
void SetPreResizeHeight(Int_t h)
TGMdiCornerWinResizer(const TGWindow *p, const TGWindow *mdiwin, Int_t pos, const TGGC *boxGC, Int_t linew, Int_t mdioptions=kMdiDefaultResizeMode, Int_t w=20, Int_t h=20)
TGMdiCornerWinResizer constructor.
void Maximize(Bool_t max=kTRUE)
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
TGCompositeFrame * fRFrame
TGMdiVerticalWinResizer * fUpperHR
TGMdiHorizontalWinResizer * GetRightVR() const
TGCompositeFrame * fMFrame
Int_t GetPreResizeY() const
void SetMdiButtons(ULong_t buttons)
Set-up MDI buttons.
virtual Bool_t HandleMotion(Event_t *event)
Handle motion events in resizer (resize associated MDI window).
TGMdiTitleIcon(const TGWindow *p, const TGWindow *titlebar, const TGPicture *pic, Int_t w, Int_t h)
TGMdiTitleIcon constructor.
void SetDecorBorderWidth(Int_t bw)
Set border width of the decor.
TGMdiTitleIcon * fWinIcon
TGMdiVerticalWinResizer * fLowerHR
void SetLeftButPressed(Bool_t press=kTRUE)
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events in title bar (used to move MDI window).
virtual void DoRedraw()
Redraw icon.
TGPopupMenu * GetPopup() const
virtual ~TGMdiTitleIcon()
TGMdiTitleIcon destructor.
TGCompositeFrame * fLFrame
virtual Int_t CloseWindow()
TGLayoutHints * fMiddleHint
Bool_t fMinimizedUserPlacement
virtual void DrawBorder()
Draw corner resizer frame border.
void SetTitleBarColors(UInt_t fore, UInt_t back, TGFont *f)
Set title bar color (blue or grey, depends on active state).
virtual void DrawBorder()
Draw vertical resizer frame border.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse click on title bar.
void Minimize(Bool_t min=kTRUE)
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for title bar.
virtual ~TGMdiTitleBar()
TGMdiTitleBar destructor.
void SetMinimizedY(Int_t y)
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void Move(Int_t x, Int_t y)
Move the MDI window at position x, y.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button events.
void DrawBox(Int_t x, Int_t y, UInt_t width, UInt_t height)
Draw resize box (rectangle).
void SetPreResizeX(Int_t x)
Int_t GetMinimizedX() const
TGMdiCornerWinResizer * fLowerLeftCR
TGLayoutHints * fRightHint
void SetMidButPressed(Bool_t press=kTRUE)
Int_t GetMinimizedY() const
TGMdiButtons * GetButtons() const
virtual Bool_t HandleMotion(Event_t *event)
Handle motion events in resizer (resize associated MDI window).
virtual Bool_t HandleMotion(Event_t *event)
Handle motion events in resizer (resize associated MDI window).
virtual void MoveResize(Int_t x, Int_t y, UInt_t w, UInt_t h)
Move the MDI window at position x, y and set size to w, h.
void SetPreResizeY(Int_t y)
TGMdiTitleBar(const TGWindow *p, const TGWindow *mdiwin, const char *name="Untitled")
TGMdiTitleBar constructor.
Bool_t IsMaximized() const
void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
TGMdiTitleIcon * GetWinIcon() const
Bool_t GetMinUserPlacement() const
TGLayoutHints * fExpandHint
TGMdiTitleBar * fTitlebar
TGMdiCornerWinResizer * fLowerRightCR
TGMdiTitleBar * GetTitleBar() const
TGMdiHorizontalWinResizer * fRightVR
const TGPicture * GetWindowIcon()
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle configure notify event.
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click in title bar (maximize window)
TGMdiDecorFrame(TGMdiMainFrame *main, TGMdiFrame *frame, Int_t w, Int_t h, const TGGC *boxGC, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
void SetWindowIcon(const TGPicture *pic)
Set Window icon (appearing in the title bar)
TGMdiCornerWinResizer * GetUpperLeftCR() const
Int_t GetPreResizeWidth() const
virtual Bool_t CloseWindow()
Close MDI frame window.
Int_t GetPreResizeX() const
ULong_t GetMdiButtons() const
TGMdiFrame * GetMdiFrame() const
const char * GetWindowName()
TGMdiCornerWinResizer * GetLowerRightCR() const
void SetMinimizedX(Int_t x)
Bool_t IsMinimized() const
virtual void DrawBorder()
Draw frame border.
virtual ~TGMdiDecorFrame()
TGMdiDecorFrame destructor.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click event on MDI icon (close the window)
TGMdiHorizontalWinResizer(const TGWindow *p, const TGWindow *mdiwin, Int_t pos, const TGGC *boxGC, Int_t linew, Int_t mdioptions=kMdiDefaultResizeMode, Int_t w=5, Int_t h=4)
TGMdiHorizontalWinResizer constructor.
const TGPicture * GetPicture() const
TGLayoutHints * fLeftHint
void LayoutButtons(UInt_t buttonmask, Bool_t isMinimized, Bool_t isMaximized)
Recalculates the position of every enabled (displayed) buttons.
TGMdiVerticalWinResizer(const TGWindow *p, const TGWindow *mdiwin, Int_t pos, const TGGC *boxGC, Int_t linew, Int_t mdioptions=kMdiDefaultResizeMode, Int_t w=4, Int_t h=5)
TGMdiVerticalWinResizer constructor.
void SetPreResizeWidth(Int_t w)
void SetCurrent(Bool_t cur=kTRUE)
TGMdiCornerWinResizer * fUpperRightCR
TGMdiVerticalWinResizer * GetUpperHR() const
TGMdiCornerWinResizer * GetUpperRightCR() const
const TGString * GetText() const
virtual void Layout()
Recalculates the postion and the size of all decor frame components.
void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Restore().
TGMdiHorizontalWinResizer * fLeftVR
TGMdiWinResizer(const TGWindow *p, const TGWindow *mdiwin, Int_t pos, const TGGC *boxGC, Int_t linew, Int_t mdioptions=kMdiDefaultResizeMode, Int_t w=1, Int_t h=1, UInt_t options=kOwnBackground)
TGMdiWinResizer constructor.
const char * GetString() const
Bool_t IsLeftButPressed()
void SetMinSize(Int_t w=50, Int_t h=20)
void MoveResizeIt()
Move (resize) parent MDI window.
TGLabel * GetWinName() const
TGMdiMainFrame * fMdiMainFrame
void SetWindowName(const char *name)
Set MDI Window name (appearing in the title bar)
virtual void DrawBorder()
Draw horizontal resizer frame border.
const TGWindow * fMsgWindow
TGMdiVerticalWinResizer * GetLowerHR() const
void SetResizeMode(Int_t mode=kMdiDefaultResizeMode)
Set resize mode (opaque or transparent)
TGMdiHorizontalWinResizer * GetLeftVR() const
TGMdiCornerWinResizer * GetLowerLeftCR() const
void SetResizeMode(Int_t mode)
Int_t GetPreResizeHeight() const
virtual Bool_t HandleButton(Event_t *event)
Handle button event on MDI icon (popup menu)
Bool_t IsRightButPressed()
void SetRightButPressed(Bool_t press=kTRUE)