QCAD
Open Source 2D CAD
Viewport Class Reference

A viewport encapsulates one graphics view and might provide means to navigate (scroll bars) and other widgets that are available for every graphics view. More...

Public Member Functions

void getEventHandler ()
 
void getGraphicsView ()
 
void getVpWidget ()
 
void init ()
 Initializes this viewport. More...
 
void initEventHandler ()
 
void Viewport (void vpNumber, void vpWidget, void documentInterface)
 

Public Attributes

int documentInterface
 
int eventHandler
 
int vpNumber
 
int vpWidget
 

Detailed Description

A viewport encapsulates one graphics view and might provide means to navigate (scroll bars) and other widgets that are available for every graphics view.

Parameters
vpNumberNumber of viewport. There can be up to four viewports available for example in an MDI child (tab). This number is used to identify the viewport settings in configuration files and document settings.
vpWidgetViewport widget that will contain the viewport after initialization.

Constructor & Destructor Documentation

void Viewport::Viewport ( void  vpNumber,
void  vpWidget,
void  documentInterface 
)
inline

Member Function Documentation

void Viewport::getEventHandler ( )
inline
void Viewport::getGraphicsView ( )
inline
void Viewport::getVpWidget ( )
inline
void Viewport::init ( )
inline

Initializes this viewport.

void Viewport::initEventHandler ( )
inline

Member Data Documentation

int Viewport::documentInterface
int Viewport::eventHandler
int Viewport::vpNumber
int Viewport::vpWidget

The documentation for this class was generated from the following file: