TGMdiWinResizer Class Reference

#include <TGMdiDecorFrame.h>

Inheritance diagram for TGMdiWinResizer:

TGFrame TGWidget TGFrame TGWidget TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TGMdiCornerWinResizer TGMdiCornerWinResizer TGMdiHorizontalWinResizer TGMdiHorizontalWinResizer TGMdiVerticalWinResizer TGMdiVerticalWinResizer List of all members.

Public Member Functions

 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)
virtual Bool_t HandleButton (Event_t *event)
virtual void DrawBorder ()
void SetResizeMode (Int_t mode)
void SetMinSize (Int_t w=50, Int_t h=20)
 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)
virtual Bool_t HandleButton (Event_t *event)
virtual void DrawBorder ()
void SetResizeMode (Int_t mode)
void SetMinSize (Int_t w=50, Int_t h=20)

Protected Member Functions

void MoveResizeIt ()
void DrawBox (Int_t x, Int_t y, UInt_t width, UInt_t height)
void MoveResizeIt ()
void DrawBox (Int_t x, Int_t y, UInt_t width, UInt_t height)

Protected Attributes

const TGWindowfMdiWin
Int_t fWinX
Int_t fWinY
Int_t fWinW
Int_t fWinH
Int_t fOldX
Int_t fOldY
Int_t fOldW
Int_t fOldH
Int_t fNewX
Int_t fNewY
Int_t fNewW
Int_t fNewH
Int_t fMinW
Int_t fMinH
Int_t fMdiOptions
Int_t fPos
Int_t fX0
Int_t fY0
Bool_t fLeftButPressed
Bool_t fRightButPressed
Bool_t fMidButPressed
const TGGCfBoxGC
Int_t fLineW
const TGWindowfMdiWin
const TGGCfBoxGC

Friends

class TGMdiMainFrame

Detailed Description

Definition at line 70 of file TGMdiDecorFrame.h.


Constructor & Destructor Documentation

TGMdiWinResizer::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 
)

Definition at line 758 of file TGMdiDecorFrame.cxx.

References fBoxGC, TGObject::fId, fLeftButPressed, fLineW, fMdiOptions, fMdiWin, fMidButPressed, fMinH, fMinW, fPos, fRightButPressed, TGWidget::fWidgetFlags, gVirtualX, kAnyModifier, kButton1, kButtonMotionMask, kButtonPressMask, kButtonReleaseMask, kFALSE, kNone, kWidgetIsEnabled, and TGWindow::SetWindowName().

TGMdiWinResizer::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 
)


Member Function Documentation

void TGMdiWinResizer::MoveResizeIt (  )  [protected]

Definition at line 862 of file TGMdiDecorFrame.cxx.

References DrawBox(), fMdiOptions, fNewH, fNewW, fNewX, fNewY, fOldH, fOldW, fOldX, fOldY, TGWindow::fParent, and kMdiOpaque.

Referenced by TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), and TGMdiHorizontalWinResizer::HandleMotion().

void TGMdiWinResizer::DrawBox ( Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
) [protected]

Definition at line 851 of file TGMdiDecorFrame.cxx.

References fBoxGC, fLineW, fMdiWin, TGGC::GetGC(), gVirtualX, and m.

Referenced by HandleButton(), and MoveResizeIt().

Bool_t TGMdiWinResizer::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGFrame.

Definition at line 790 of file TGMdiDecorFrame.cxx.

References DrawBox(), Event_t::fCode, TGObject::fId, fLeftButPressed, fMdiOptions, fMdiWin, fMidButPressed, fNewH, fNewW, fNewX, fNewY, fOldX, fOldY, TGWindow::fParent, fRightButPressed, Event_t::fType, fWinH, fWinW, fWinX, fWinY, fX0, Event_t::fXRoot, fY0, Event_t::fYRoot, TGObject::GetId(), gVirtualX, TGWidget::IsEnabled(), kButton1, kButton2, kButton3, kButtonPress, kButtonReleaseMask, kC_MDI, kFALSE, kMDI_CURRENT, kMdiOpaque, kNone, kPointerMotionMask, kTRUE, MK_MSG(), and TGFrame::SendMessage().

Referenced by TGMdiMainFrame::FreeSize().

virtual void TGMdiWinResizer::DrawBorder (  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 98 of file TGMdiDecorFrame.h.

void TGMdiWinResizer::SetResizeMode ( Int_t  mode  )  [inline]

Definition at line 100 of file TGMdiDecorFrame.h.

References fMdiOptions.

Referenced by TGMdiDecorFrame::SetResizeMode().

void TGMdiWinResizer::SetMinSize ( Int_t  w = 50,
Int_t  h = 20 
) [inline]

Definition at line 101 of file TGMdiDecorFrame.h.

References fMinH, fMinW, h, and w.

void TGMdiWinResizer::MoveResizeIt (  )  [protected]

void TGMdiWinResizer::DrawBox ( Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
) [protected]

virtual Bool_t TGMdiWinResizer::HandleButton ( Event_t event  )  [virtual]

Reimplemented from TGFrame.

virtual void TGMdiWinResizer::DrawBorder (  )  [inline, virtual]

Reimplemented from TGFrame.

Definition at line 98 of file TGMdiDecorFrame.h.

void TGMdiWinResizer::SetResizeMode ( Int_t  mode  )  [inline]

Definition at line 100 of file TGMdiDecorFrame.h.

References fMdiOptions.

void TGMdiWinResizer::SetMinSize ( Int_t  w = 50,
Int_t  h = 20 
) [inline]

Definition at line 101 of file TGMdiDecorFrame.h.

References fMinH, fMinW, h, and w.


Friends And Related Function Documentation

TGMdiMainFrame [friend]

Definition at line 72 of file TGMdiDecorFrame.h.


Member Data Documentation

const TGWindow* TGMdiWinResizer::fMdiWin [protected]

Definition at line 75 of file TGMdiDecorFrame.h.

Referenced by DrawBox(), HandleButton(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fWinX [protected]

Definition at line 76 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiHorizontalWinResizer::HandleMotion().

Int_t TGMdiWinResizer::fWinY [protected]

Definition at line 76 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiVerticalWinResizer::HandleMotion().

Int_t TGMdiWinResizer::fWinW [protected]

Definition at line 76 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiHorizontalWinResizer::HandleMotion().

Int_t TGMdiWinResizer::fWinH [protected]

Definition at line 76 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiVerticalWinResizer::HandleMotion().

Int_t TGMdiWinResizer::fOldX [protected]

Definition at line 77 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fOldY [protected]

Definition at line 77 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fOldW [protected]

Definition at line 77 of file TGMdiDecorFrame.h.

Referenced by TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fOldH [protected]

Definition at line 77 of file TGMdiDecorFrame.h.

Referenced by TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fNewX [protected]

Definition at line 78 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fNewY [protected]

Definition at line 78 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fNewW [protected]

Definition at line 78 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fNewH [protected]

Definition at line 78 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and MoveResizeIt().

Int_t TGMdiWinResizer::fMinW [protected]

Definition at line 79 of file TGMdiDecorFrame.h.

Referenced by TGMdiCornerWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), SetMinSize(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fMinH [protected]

Definition at line 79 of file TGMdiDecorFrame.h.

Referenced by TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), SetMinSize(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fMdiOptions [protected]

Definition at line 80 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), MoveResizeIt(), SetResizeMode(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fPos [protected]

Definition at line 81 of file TGMdiDecorFrame.h.

Referenced by TGMdiVerticalWinResizer::DrawBorder(), TGMdiHorizontalWinResizer::DrawBorder(), TGMdiCornerWinResizer::DrawBorder(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), TGMdiCornerWinResizer::TGMdiCornerWinResizer(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fX0 [protected]

Definition at line 82 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiHorizontalWinResizer::HandleMotion().

Int_t TGMdiWinResizer::fY0 [protected]

Definition at line 82 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), and TGMdiVerticalWinResizer::HandleMotion().

Bool_t TGMdiWinResizer::fLeftButPressed [protected]

Definition at line 83 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), TGMdiCornerWinResizer::HandleMotion(), TGMdiVerticalWinResizer::HandleMotion(), TGMdiHorizontalWinResizer::HandleMotion(), and TGMdiWinResizer().

Bool_t TGMdiWinResizer::fRightButPressed [protected]

Definition at line 83 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), and TGMdiWinResizer().

Bool_t TGMdiWinResizer::fMidButPressed [protected]

Definition at line 83 of file TGMdiDecorFrame.h.

Referenced by HandleButton(), and TGMdiWinResizer().

const TGGC* TGMdiWinResizer::fBoxGC [protected]

Definition at line 85 of file TGMdiDecorFrame.h.

Referenced by DrawBox(), and TGMdiWinResizer().

Int_t TGMdiWinResizer::fLineW [protected]

Definition at line 86 of file TGMdiDecorFrame.h.

Referenced by DrawBox(), and TGMdiWinResizer().

const TGWindow* TGMdiWinResizer::fMdiWin [protected]

Definition at line 75 of file TGMdiDecorFrame.h.

const TGGC* TGMdiWinResizer::fBoxGC [protected]

Definition at line 85 of file TGMdiDecorFrame.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1