library: libGui #include "TGMdiDecorFrame.h" |
TGMdiTitleBar
class description - source file - inheritance tree (.pdf)
protected:
TGMdiTitleBar(const TGWindow* p, const TGWindow* mdiwin, const char* name = "Untitled")
void AddFrames(TGMdiTitleIcon* icon, TGMdiButtons* buttons)
void LayoutButtons(UInt_t buttonmask, Bool_t isMinimized, Bool_t isMaximized)
void RemoveFrames(TGMdiTitleIcon* icon, TGMdiButtons* buttons)
public:
TGMdiTitleBar(const TGMdiTitleBar&)
virtual ~TGMdiTitleBar()
static TClass* Class()
TGMdiButtons* GetButtons() const
TGMdiTitleIcon* GetWinIcon() const
TGLabel* GetWinName() const
Int_t GetX0()
Int_t GetY0()
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleDoubleClick(Event_t* event)
virtual Bool_t HandleMotion(Event_t* event)
virtual TClass* IsA() const
Bool_t IsLeftButPressed()
Bool_t IsMidButPressed()
Bool_t IsRightButPressed()
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
void SetLeftButPressed(Bool_t press = kTRUE)
void SetMidButPressed(Bool_t press = kTRUE)
void SetRightButPressed(Bool_t press = kTRUE)
void SetTitleBarColors(UInt_t fore, UInt_t back, TGFont* f)
void SetX0(Int_t x0)
void SetY0(Int_t y0)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
const TGWindow* fMdiWin owner MDI window
TGMdiButtons* fButtons MDI buttons
TGMdiTitleIcon* fWinIcon title icon
TGLabel* fWinName window name label
TGCompositeFrame* fLFrame
TGCompositeFrame* fMFrame
TGCompositeFrame* fRFrame the three parts of the title bar
TGLayoutHints* fLHint
TGLayoutHints* fLeftHint
TGLayoutHints* fMiddleHint
TGLayoutHints* fRightHint layout hints
Int_t fX0
Int_t fY0 initial position of the mouse click
Bool_t fLeftButPressed
Bool_t fRightButPressed
Bool_t fMidButPressed mouse button pressed
TGMdiDecorFrame, TGMdiTitleBar, TGMdiButtons, TGMdiTitleIcon,
TGMdiWinResizer, TGMdiVerticalWinResizer, TGMdiHorizontalWinResizer,
and TGMdiCornerWinResizer.
This file contains all different MDI frame decoration classes.
TGMdiTitleBar(const TGWindow *p, const TGWindow *mdiwin,
const char *name) :
TGCompositeFrame(p, 10, 10, kOwnBackground | kHorizontalFrame)
TGMdiTitleBar constructor.
the TGMdiTitleBar is the frame containing a title (window name)
an icon and MDI picture buttons as minimize, maximize, restore,
close and help.
~TGMdiTitleBar()
TGMdiTitleBar destructor.
void LayoutButtons(UInt_t buttonmask,Bool_t isMinimized,
Bool_t isMaximized)
Recalculates the position of every enabled (displayed) buttons.
void SetTitleBarColors(UInt_t fore, UInt_t back, TGFont *font)
Set title bar color (blue or grey, depends on active state).
Bool_t HandleDoubleClick(Event_t *event)
Handle double click in title bar (maximize window)
Bool_t HandleButton(Event_t *event)
Handle mouse click on title bar.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages for title bar.
Bool_t HandleMotion(Event_t *event)
Handle mouse motion events in title bar (used to move MDI window).
void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Restore().
void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
Inline Functions
TGMdiButtons* GetButtons() const
TGMdiTitleIcon* GetWinIcon() const
TGLabel* GetWinName() const
Int_t GetX0()
Int_t GetY0()
Bool_t IsLeftButPressed()
Bool_t IsRightButPressed()
Bool_t IsMidButPressed()
void SetX0(Int_t x0)
void SetY0(Int_t y0)
void SetLeftButPressed(Bool_t press = kTRUE)
void SetRightButPressed(Bool_t press = kTRUE)
void SetMidButPressed(Bool_t press = kTRUE)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGMdiTitleBar TGMdiTitleBar(const TGMdiTitleBar&)
Author: Bertrand Bellenot 20/08/2004
Last update: root/gui:$Name: $:$Id: TGMdiDecorFrame.cxx,v 1.14 2005/11/21 00:25:37 rdm Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.