library: libGui
#include "TGMdiDecorFrame.h"

TGMdiWinResizer


class description - source file - inheritance tree (.pdf)

class TGMdiWinResizer : public TGFrame, public TGWidget

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
TGWidget
<-
TGMdiWinResizer
<-
TGMdiCornerWinResizer
TGMdiHorizontalWinResizer
TGMdiVerticalWinResizer

    protected:
void DrawBox(Int_t x, Int_t y, UInt_t width, UInt_t height) void MoveResizeIt() public:
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(const TGMdiWinResizer&) ~TGMdiWinResizer() static TClass* Class() virtual void DrawBorder() virtual Bool_t HandleButton(Event_t* event) virtual TClass* IsA() const void SetMinSize(Int_t w = 50, Int_t h = 20) void SetResizeMode(Int_t mode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
const TGWindow* fMdiWin owner MDI Window Int_t fWinX Int_t fWinY Int_t fWinW Int_t fWinH MDI win position and dimension Int_t fOldX Int_t fOldY Int_t fOldW Int_t fOldH old MDI win position and dimension Int_t fNewX Int_t fNewY Int_t fNewW Int_t fNewH new MDI win position and dimension Int_t fMinW Int_t fMinH Min width and height of the MDI Win Int_t fMdiOptions MDI options Int_t fPos position of the resizer Int_t fX0 Int_t fY0 initial position of the mouse click Bool_t fLeftButPressed Bool_t fRightButPressed Bool_t fMidButPressed mouse buttons flags const TGGC* fBoxGC GC used for resizing rectangle Int_t fLineW line width of resizing rectangle

Class Description

                                                                      
 TGMdiDecorFrame, TGMdiTitleBar, TGMdiButtons, TGMdiTitleIcon,        
 TGMdiWinResizer, TGMdiVerticalWinResizer, TGMdiHorizontalWinResizer, 
 and TGMdiCornerWinResizer.                                           
                                                                      
 This file contains all different MDI frame decoration classes.       
                                                                      


TGMdiWinResizer(const TGWindow *p, const TGWindow *mdiwin, Int_t pos, const TGGC *boxgc, Int_t linew, Int_t mdioptions, Int_t w, Int_t h, UInt_t options) : TGFrame(p, w, h, options)
 TGMdiWinResizer constructor.
 The TGMdiWinResizer is a frame allowing to resize MDI window.
 Could be horizontal, vertical or corner resizer (see derived classes
 TGMdiVerticalWinResizer, TGMdiHorizontalWinResizer, and
 TGMdiCornerWinResizer).

Bool_t HandleButton(Event_t *event)
 Handle button events in resizer (grab button and resize).

void DrawBox(Int_t x, Int_t y, UInt_t width, UInt_t height)
 Draw resize box (rectangle).

void MoveResizeIt()
 Move (resize) parent MDI window.



Inline Functions


                   void ~TGMdiWinResizer()
                   void DrawBorder()
                   void SetResizeMode(Int_t mode)
                   void SetMinSize(Int_t w = 50, Int_t h = 20)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
        TGMdiWinResizer TGMdiWinResizer(const TGMdiWinResizer&)


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.