Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
Xw_Window Class Reference

This class defines XLib window intended for creation of OpenGL context.

#include <Xw_Window.hxx>

Inheritance diagram for Xw_Window:
Inheritance graph
[legend]

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_DisplayConnectionmyDisplay
 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 ( 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 
)
Xw_Window::Xw_Window ( const Handle< Aspect_DisplayConnection > &  theXDisplay,
const Window  theXWin 
)
Xw_Window::~Xw_Window ( ) [inline]

Member Function Documentation

virtual void Xw_Window::Destroy ( ) [virtual]

Implements Aspect_Window.

const Handle< Aspect_DisplayConnection >& Xw_Window::DisplayConnection ( ) const
Returns:
connection to X Display
virtual Standard_Boolean Xw_Window::DoMapping ( ) const [virtual]

Implements Aspect_Window.

virtual Aspect_TypeOfResize Xw_Window::DoResize ( ) const [virtual]

Implements Aspect_Window.

virtual Standard_Boolean Xw_Window::IsMapped ( ) const [virtual]

Implements Aspect_Window.

virtual void Xw_Window::Map ( ) const [virtual]

Implements Aspect_Window.

virtual void Xw_Window::Position ( Standard_Integer X1,
Standard_Integer Y1,
Standard_Integer X2,
Standard_Integer Y2 
) const [virtual]

Implements Aspect_Window.

virtual Quantity_Ratio Xw_Window::Ratio ( ) const [virtual]

Implements Aspect_Window.

virtual void Xw_Window::Size ( Standard_Integer theWidth,
Standard_Integer theHeight 
) const [virtual]

Implements Aspect_Window.

virtual void Xw_Window::Unmap ( ) const [virtual]

Implements Aspect_Window.

Window Xw_Window::XWindow ( ) const
Returns:
native Window handle

Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines