This class defines XLib window intended for creation of OpenGL context.
#include <Xw_Window.hxx>
Public Member Functions |
| Xw_Window (const Handle< Aspect_DisplayConnection > &theXDisplay, const Standard_CString theTitle, const Standard_Integer thePxLeft, const Standard_Integer thePxTop, const Standard_Integer thePxWidth, const Standard_Integer thePxHeight) |
| Creates a XLib window defined by his position and size in pixels. Throws exception if window can not be created or Display do not support GLX extension.
|
| Xw_Window (const Handle< Aspect_DisplayConnection > &theXDisplay, const Window theXWin) |
| Creates a wrapper over existing Window handle.
|
virtual void | Destroy () |
| Destroies the Window and all resourses attached to it.
|
| ~Xw_Window () |
virtual void | Map () const |
| Opens the window <me>
|
virtual void | Unmap () const |
| Closes the window <me>
|
virtual Aspect_TypeOfResize | DoResize () const |
| Applies the resizing to the window <me>
|
virtual Standard_Boolean | DoMapping () const |
| Apply the mapping change to the window <me>
|
virtual Standard_Boolean | IsMapped () const |
| Returns True if the window <me> is opened.
|
virtual Quantity_Ratio | Ratio () const |
| Returns The Window RATIO equal to the physical WIDTH/HEIGHT dimensions.
|
virtual void | Position (Standard_Integer &X1, Standard_Integer &Y1, Standard_Integer &X2, Standard_Integer &Y2) const |
| Returns The Window POSITION in PIXEL.
|
virtual void | Size (Standard_Integer &theWidth, Standard_Integer &theHeight) const |
| Returns The Window SIZE in PIXEL.
|
Window | XWindow () const |
const Handle
< Aspect_DisplayConnection > & | DisplayConnection () const |
Protected Attributes |
Handle< Aspect_DisplayConnection > | myDisplay |
| X Display connection.
|
Window | myXWindow |
| XLib window handle.
|
Standard_Integer | myXLeft |
| left position in pixels
|
Standard_Integer | myYTop |
| top position in pixels
|
Standard_Integer | myXRight |
| right position in pixels
|
Standard_Integer | myYBottom |
| bottom position in pixels
|
Standard_Boolean | myIsOwnWin |
| flag to indicate own window handle (to be deallocated on destruction)
|
Constructor & Destructor Documentation
Xw_Window::~Xw_Window |
( |
| ) |
[inline] |
Member Function Documentation
virtual void Xw_Window::Destroy |
( |
| ) |
[virtual] |
- Returns:
- connection to X Display
virtual void Xw_Window::Map |
( |
| ) |
const [virtual] |
virtual void Xw_Window::Unmap |
( |
| ) |
const [virtual] |
Window Xw_Window::XWindow |
( |
| ) |
const |
- Returns:
- native Window handle
Field Documentation
The documentation for this class was generated from the following file: