TGViewPort


class description - source file - inheritance tree

class TGViewPort : public TGCompositeFrame


    public:
TGViewPort TGViewPort(TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kChildFrame, ULong_t back = fgDefaultFrameBackground) TGViewPort TGViewPort(TGViewPort&) void ~TGViewPort() TClass* Class() virtual void DrawBorder() TGFrame* GetContainer() virtual TGDimension GetDefaultSize() virtual TClass* IsA() virtual void Layout() void SetContainer(TGFrame* f) void SetHPos(Int_t xpos) void SetPos(Int_t xpos, Int_t ypos) void SetVPos(Int_t ypos) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fX0 Int_t fY0 position of container frame in viewport TGFrame* fContainer container frame (must inherit from TGCompositeFrame)

Class Description

                                                                      
 TGCanvas and TGViewPort                                              
                                                                      
 A TGCanvas is a frame containing two scrollbars (a horizontal and    
 a vertical) and a viewport. The viewport acts as the window through  
 which we look at the contents of the container frame.                
                                                                      


TGViewPort(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCompositeFrame(p, w, h, options, back)
 Create a viewport object.

void SetContainer(TGFrame *f)
 Add container frame to the viewport. We must make sure that the added
 container is at least a TGCompositeFrame (TGCanvas::AddFrame depends
 on it).



Inline Functions


           TGFrame* GetContainer()
               void DrawBorder()
               void Layout()
        TGDimension GetDefaultSize()
               void SetHPos(Int_t xpos)
               void SetVPos(Int_t ypos)
               void SetPos(Int_t xpos, Int_t ypos)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
         TGViewPort TGViewPort(TGViewPort&)
               void ~TGViewPort()


Author: Fons Rademakers 11/01/98
Last update: 2.00/00 28/02/98 10.52.35 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.