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

This class defines Windows NT window

#include <WNT_Window.hxx>

Inheritance diagram for WNT_Window:
Inheritance graph
[legend]

Public Member Functions

 WNT_Window (const Standard_CString theTitle, const Handle< WNT_WClass > &theClass, const WNT_Dword &theStyle, const Standard_Integer thePxLeft, const Standard_Integer thePxTop, const Standard_Integer thePxWidth, const Standard_Integer thePxHeight, const Quantity_NameOfColor theBackColor=Quantity_NOC_MATRAGRAY, const Aspect_Handle theParent=0, const Aspect_Handle theMenu=0, const Standard_Address theClientStruct=0)
 Creates a Window defined by his position and size
in pixles from the Parent Window.
Trigger: Raises WindowDefinitionError if the Position out of the
Screen Space or the window creation failed.

 WNT_Window (const Aspect_Handle aHandle, const Quantity_NameOfColor aBackColor=Quantity_NOC_MATRAGRAY)
 Creates a Window based on the existing window handle.
This handle equals ( aPart1 << 16 ) + aPart2.

 WNT_Window (const Standard_Integer aPart1, const Standard_Integer aPart2, const Quantity_NameOfColor aBackColor=Quantity_NOC_MATRAGRAY)
 Creates a Window based on the existing window <aHandle>.

virtual void Destroy ()
 Destroies the Window and all resourses attached to it.

 ~WNT_Window ()
void SetCursor (const Aspect_Handle aCursor) const
 Sets cursor <aCursor> for ENTIRE WINDOW CLASS to which
the Window belongs.

virtual void Map () const
 Opens the window <me>.

void Map (const Standard_Integer aMapMode) const
 Opens a window <me> according to <aMapMode>.
This method is specific to Windows NT.
<aMapMode> can be one of SW_xxx constants defined
in <windows.h>. See documentation.

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>
and returns TRUE if the window is mapped at screen.

void SetPos (const Standard_Integer X, const Standard_Integer Y, const Standard_Integer X1, const Standard_Integer Y1)
 Changes variables due to window position.

void SetFlags (const Standard_Integer aFlags)
 Sets user defined flags in the extra window data area.
Supported flags WDF_* are listed in InterfaceGraphic_WNT.hxx
In particular, the window backround can be turned off using this method.

void ResetFlags (const Standard_Integer aFlags)
 Reset specified flags in the extra window data area.
Supported flags WDF_* are listed in InterfaceGraphic_WNT.hxx
In particular, the window backround can be turned on using this method.

virtual Standard_Boolean IsMapped () const
 Returns True if the window <me> is opened
and False if the window is closed.

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 &Width, Standard_Integer &Height) const
 Returns The Window SIZE in PIXEL

Aspect_Handle HWindow () const
 Returns the Windows NT handle of the created window <me>.

Aspect_Handle HParentWindow () const
 Returns the Windows NT handle parent of the created window <me>.

Protected Attributes

Standard_Integer aXLeft
Standard_Integer aYTop
Standard_Integer aXRight
Standard_Integer aYBottom
Handle_WNT_WClass myWClass
Aspect_Handle myHWindow
Aspect_Handle myHParentWindow
WNT_WindowData myExtraData
Standard_Address myUsrData

Constructor & Destructor Documentation

WNT_Window::WNT_Window ( const Standard_CString  theTitle,
const Handle< WNT_WClass > &  theClass,
const WNT_Dword theStyle,
const Standard_Integer  thePxLeft,
const Standard_Integer  thePxTop,
const Standard_Integer  thePxWidth,
const Standard_Integer  thePxHeight,
const Quantity_NameOfColor  theBackColor = Quantity_NOC_MATRAGRAY,
const Aspect_Handle  theParent = 0,
const Aspect_Handle  theMenu = 0,
const Standard_Address  theClientStruct = 0 
)
WNT_Window::WNT_Window ( const Aspect_Handle  aHandle,
const Quantity_NameOfColor  aBackColor = Quantity_NOC_MATRAGRAY 
)
WNT_Window::WNT_Window ( const Standard_Integer  aPart1,
const Standard_Integer  aPart2,
const Quantity_NameOfColor  aBackColor = Quantity_NOC_MATRAGRAY 
)
WNT_Window::~WNT_Window ( ) [inline]

Member Function Documentation

virtual void WNT_Window::Destroy ( ) [virtual]

Implements Aspect_Window.

virtual Standard_Boolean WNT_Window::DoMapping ( ) const [virtual]

Implements Aspect_Window.

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

Implements Aspect_Window.

Aspect_Handle WNT_Window::HParentWindow ( ) const
Aspect_Handle WNT_Window::HWindow ( ) const
virtual Standard_Boolean WNT_Window::IsMapped ( ) const [virtual]

Implements Aspect_Window.

void WNT_Window::Map ( const Standard_Integer  aMapMode) const
virtual void WNT_Window::Map ( ) const [virtual]

Implements Aspect_Window.

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

Implements Aspect_Window.

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

Implements Aspect_Window.

void WNT_Window::ResetFlags ( const Standard_Integer  aFlags)
void WNT_Window::SetCursor ( const Aspect_Handle  aCursor) const
void WNT_Window::SetFlags ( const Standard_Integer  aFlags)
void WNT_Window::SetPos ( const Standard_Integer  X,
const Standard_Integer  Y,
const Standard_Integer  X1,
const Standard_Integer  Y1 
)
virtual void WNT_Window::Size ( Standard_Integer Width,
Standard_Integer Height 
) const [virtual]

Implements Aspect_Window.

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

Implements Aspect_Window.


Field Documentation

Handle_WNT_WClass WNT_Window::myWClass [protected]

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