Win32Window Class Reference#include <win32Window.h>
Inheritance diagram for Win32Window: ![]() Detailed DescriptionImplementation of a window on Win32.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Helper to allocate our Win32 window class.
Windows message handler callback.
Add an accelerator to the list of accelerators for this window. Intended for use by addAccelerators().
Remove an accelerator from the list of accelerators for this window. Intended for use by removeAccelerators().
Return the HWND (win32 window handle) for this window.
Add a list of accelerators to this window.
Remove a list of accelerators from this window.
Returns true if
Allow windows to translate messages. Used for accelerators.
Return a pointer to the GFX device this window is bound to. A GFX device may use many windows, but a window can only be used by a single GFX device. Implements PlatformWindow.
Return a pointer to this window's render target. By setting window targets from different windows, we can effect rendering to multiple windows from a single device. Implements PlatformWindow.
Get our current video mode - if the window has been resized, it will reflect this.
Implements PlatformWindow.
If we're fullscreen, this function returns us to desktop mode. This will be either the last mode that we had that was not fullscreen, or the equivalent mode, windowed. Implements PlatformWindow.
Reimplemented from PlatformWindow.
Set the Client Area Extent (Resolution) of this window. This does not include the area occupied by a title-bar, menu, borders or other non-client elements. Implements PlatformWindow.
Resize the window to have some new bounds. This includes the area needed for a title-bar, menu, borders, and other non-client elements. Implements PlatformWindow.
Set the position of this window. This means that saying setPosition at 0,0 will put the position of the window title-bar (if one exists) at 0,0 and the Client area will be offset from that point by the space needed for the Non-Client area. Implements PlatformWindow.
Reimplemented from PlatformWindow.
Lock the mouse to this window. When this is set, the mouse will always be returned to the center of the client area after every mouse event. The mouse will also be hidden while it is locked. The mouse cannot be moved out of the bounds of the window, but the window may lose focus (for instance by an alt-tab or other event). While the window lacks focus, no mouse events will be reported. Implements PlatformWindow.
Should the mouse be locked at the next opportunity ? This flag is set to the current state of the mouse lock on a window, to specify the preferred lock status of the mouse in a platform window. This is important for situations where a call is made to setMouseLocked, and the window is not in a state that it can be cleanly locked. Take for example if it was called while the window is in the background, then it is not appropriate to lock the window, but rather the window should query this state at it's next opportunity and lock the mouse if requested. Implements PlatformWindow.
Get the ID that uniquely identifies this window in the context of its window manager.
Reimplemented from PlatformWindow.
Implements PlatformWindow.
Provide a simple GDI-based render for when the game is not rendering.
Return the class name for the windows we create with this class.
Return the class name for the curtain window class.
Return the platform specific object needed to create or attach an accelerated graohics drawing context on or to the window.
Implements PlatformWindow.
Friends And Related Function Documentation
Member Data Documentation
Which manager created us?
Which window comes next in list?
Our HWND - Win32 window handle.
The Win32 window style we want to use when windowed.
The GFX device that we're tied to.
Reference to the render target allocated on this window.
Our current size/resolution/fullscreen status.
Our position on the desktop.
Windows HACCEL for accelerators.
Keyboard accelerators for menus.
Is the mouse locked to this window?
The position the cursor was at when a mouse lock occured.
Determines whether this window should lock the mouse when it has an opportunity.
Menu associated with this window. This is a passive property of the window and is not required to be used at all.
Do we have a fullscreen window style set?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||