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 |