![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Definition at line 33 of file PureWindow.cpp.
Public Member Functions | |
virtual | ~PureWindowImpl () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
TPureBool | initialize (TPureUInt width, TPureUInt height, TPureBool bFullscreen, const char *caption, HWND window=NULL) |
This creates the window actually. | |
void | Deinitialize () |
This deletes the window, then initialize() can be called again later. | |
TPureBool | isInitialized () const |
Gets whether the window is initialized. | |
void | ResetDefaults () |
Resets the default settings. | |
TPureUInt | getWidth () const |
Gets window width. | |
void | SetWidth (TPureUInt newwidth) |
Sets window width. | |
TPureUInt | getClientWidth () const |
Gets window client width. | |
void | SetClientWidth (TPureUInt newwidth) |
Sets window client width. | |
TPureUInt | getHeight () const |
Gets window height. | |
void | SetHeight (TPureUInt newheight) |
Sets window height. | |
TPureUInt | getClientHeight () const |
Gets window client height. | |
void | SetClientHeight (TPureUInt newheight) |
Sets window client width. | |
TPureUInt | getSideFrameWidth () const |
Gets window side frame width. | |
TPureUInt | getBottomFrameHeight () const |
Gets window bottom frame height. | |
TPureUInt | getCaptionHeight () const |
Gets window caption area height. | |
TPureUInt | getTitleBarHeight () const |
Gets window title bar height. | |
TPureUInt | getX () const |
Gets window X-coordinate. | |
void | SetX (TPureUInt newx) |
Sets window X-coordinate. | |
TPureUInt | getY () const |
Gets window Y-coordinate. | |
void | SetY (TPureUInt newy) |
Sets window Y-coordinate. | |
HWND | getWndHandle () const |
Gets window handle. | |
HDC | getWndDC () const |
Gets window Device Context. | |
TPureBool | isActive () const |
Gets whether window is active or not. | |
void | SetActive () |
Sets the window active. | |
TPureBool | isTopMost () const |
Gets whether window is topmost or not. | |
void | SetTopMost (TPureBool state) |
Sets the window topmost property. | |
const std::string & | getCaption () const |
Gets the window caption. | |
void | SetCaption (const std::string &newcaption) |
Sets the window caption. | |
TPureBool | isResizableH () const |
Gets whether window is resizable horizontally. | |
void | SetResizableH (TPureBool state) |
Sets whether window is resizable horizontally. | |
TPureBool | isResizableV () const |
Gets whether window is resizable vertically. | |
void | SetResizableV (TPureBool state) |
Sets whether window is resizable vertically. | |
TPureBool | isResizable () const |
Gets whether window is fully resizable. | |
void | SetResizable (TPureBool state) |
Sets whether window is fully resizable. | |
TPureBool | hasBorder () const |
Gets whether window has border or not. | |
void | SetBorder (TPureBool state) |
Sets whether window has border or not. | |
TPureBool | hasSysMenu () const |
Gets whether window has sysmenu or not. | |
void | SetSysMenu (TPureBool state) |
Sets whether window has sysmenu or not. | |
TPureBool | hasMinButton () const |
Gets whether window has minimize button or not. | |
void | SetMinButton (TPureBool state) |
Sets whether window has minimize button or not. | |
TPureBool | hasMaxButton () const |
Gets whether window has maximize/restore button or not. | |
void | SetMaxButton (TPureBool state) |
Sets whether window has maximize/restore button or not. | |
TPureBool | isEnabled () const |
Gets whether window is enabled or not. | |
void | SetEnabled (TPureBool state) |
Sets whether window is enabled or not. | |
WNDPROC | getWindowProc () const |
Gets the message handling window procedure of this window. | |
void | SetWindowProc (const WNDPROC windowproc) |
Sets the message handling window procedure of this window. | |
void | ProcessMessages () |
Processes the queued window messages. | |
TPureBool | hasCloseRequest () const |
Gets whether the window has a close request or not. | |
TPureBool | isAutoRedrawAllOnPosChange () const |
Gets whether automatic redraw of window contents on position change is enabled or not. | |
void | SetAutoRedrawAllOnPosChange (TPureBool state) |
Sets whether automatic redraw of window contents on position change is enabled or not. | |
TPureBool | isAutoCleanupOnQuitOn () const |
Gets whether automatic cleanup of window on close request is enabled or not. | |
void | SetAutoCleanupOnQuitOn (TPureBool state) |
Sets whether automatic cleanup of window on close request is enabled or not. | |
TPureBool | getAutoCameraWarningState () const |
Gets whether automatic camera warning on resize is enabled or not. | |
void | SetAutoCameraWarningState (TPureBool state) |
Sets whether automatic camera warning on resize is enabled or not. | |
void | Show () |
Shows the window. | |
void | ShowFull () |
Shows and brings the window to front and sets the focus to it. | |
void | Hide () |
Hides the window. | |
void | Minimize () |
Minimizes the window, so it will be visible only on the Taskbar. | |
void | Maximize () |
Maximizes the window. | |
void | Restore () |
Restores the window to the previous state Equivalent to clicking the restore button in the sysmenu. | |
void | Close () |
Closes the window. | |
TPureBool | isCursorVisible () const |
Gets whether the mouse cursor is visible or not within the window area. | |
void | SetCursorVisible (TPureBool state) |
Sets whether the mouse cursor is visible or not within the window area. | |
void | WriteSettings () |
Writes the window properties to the console window. | |
![]() |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static PureWindow & | createAndGet (PGEcfgProfiles &cfgProfiles, PGEInputHandler &inputHandler) |
Creates and gets the singleton instance. | |
Private Member Functions | |
PureWindowImpl (PGEcfgProfiles &cfgProfiles, PGEInputHandler &inputHandler) | |
PureWindowImpl (const PureWindowImpl &) | |
PureWindowImpl & | operator= (const PureWindowImpl &) |
void | SetPropertiesBeforeInitialize () |
Sets default values to properties, used by ctor and Deinitialize(). | |
TPureBool | setupWindowClass (WNDCLASS &clWnd) |
Fills the given WNDCLASS structure and registers it. | |
TPureBool | actualCreateWindow (TPureUInt width, TPureUInt height, TPureBool bFullscreen, const char *caption, const WNDCLASS &clWnd) |
This creates the window actually. | |
LRESULT | onActivate (TPureBool isActive) |
LRESULT | onSysCommand (WPARAM wParam, LPARAM lParam) |
LRESULT | onClose () |
LRESULT | onDestroy () |
LRESULT | onInput (HRAWINPUT handle) |
LRESULT | onKeyUp (TPureInt key) |
LRESULT | onKeyDown (TPureInt key) |
LRESULT | onMouseMove (TPureInt x, TPureInt y) |
LRESULT | onMouseWheel (TPureShort nWheel) |
LRESULT | onMouseUp (PGEInputMouse::MouseButton btn, WPARAM wParam, TPureInt x, TPureInt y) |
LRESULT | onMouseDown (PGEInputMouse::MouseButton btn, WPARAM wParam, TPureInt x, TPureInt y) |
LRESULT | onRedrawRequired () |
LRESULT | onPosChanged (const LPWINDOWPOS newPos) |
Private Attributes | |
const PureSharedSettings & | sharedSettings |
Pointer to shared settings, const because we just reading it. | |
PGEcfgProfiles & | m_cfgProfiles |
PGEInputHandler & | input |
Our source of input. | |
RAWINPUT | rawInput |
For raw mouse input. | |
UINT | rawInputSize |
Size of RAWINPUT. | |
HWND | hWindow |
Window Handle. | |
TPureBool | bExternalOwner |
If true, then an existing window was specified at init, thus we neither create nor delete the window. | |
DWORD | dwStyle |
DWORD | dwStyleEx |
Window styles. | |
WNDCLASS | clWindow |
Window class. | |
TITLEBARINFOEX | infoTitlebar |
Extended title bar info, for Vista and newer. | |
RECT | rectWindowFull |
Position and full size of the window. | |
RECT | rectWindowClient |
Position and size of window client area. | |
TPureUInt | nClientWidthOrig |
Original width of the window's client area. | |
TPureUInt | nClientHeightOrig |
Original height of the window's client area. | |
TPureUInt | nSideFrameWidth |
Side frame width. | |
TPureUInt | nBottomFrameHeight |
Bottom frame height. | |
TPureUInt | nCaptionHeight |
Caption area height. | |
TPureUInt | nTitleBarHeight |
Title bar height. | |
TPureBool | m_bFullscreen |
Is it a fullscreen window or not. | |
std::string | sCaption |
Window title. | |
TPureBool | enabled |
Is the window enabled or not. | |
TPureBool | bVisibleCursor |
Is the mouse cursor visible or not. | |
TPureBool | bBtnMin |
Does the window have a minimize button or not. | |
TPureBool | bBtnMax |
Does the window have a maximize button or not. | |
TPureBool | bBorder |
Does the window have border or not. | |
TPureBool | bSysMenu |
Does the window have a sysmenu or not. | |
TPureBool | bResizingH |
Is horizontal resizing enabled or not. | |
TPureBool | bResizingV |
Is vertical resizing enabled or not. | |
TPureBool | bCloseRequested |
True if a close request has been captured by the window. | |
TPureBool | bActive |
Is the window active or not. | |
TPureBool | bTopMost |
Is the window topmost or not. | |
TPureBool | bAutoCleanupOnQuit |
If true, the window will close itself on close request. | |
TPureBool | bAutoCameraWarn |
If true, the window will notify cameras about resizing. | |
TPureBool | bAutoRedrawOnPosChange |
If true, the window will redraw its content on position change. | |
Static Private Attributes | |
static const TPureBool | DEF_AUTOCLEANUP = true |
Default value of automatic cleanup on close request. | |
static const TPureBool | DEF_AUTOCAMWARN = true |
Default value of automatic camera warning on resizing. | |
static const TPureBool | DEF_REDRAWALL_WNDPOSCHNG = true |
Default value of automatic redrawing of window content on position change. | |
Friends | |
class | PureWindow |
LRESULT __stdcall | PuredefaultWindowProc (HWND hWindow, UINT wndMsg, WPARAM wParam, LPARAM lParam) |
This function is our message-handling callback function. | |
|
virtual |
Definition at line 266 of file PureWindow.cpp.
|
explicitprivate |
Definition at line 1432 of file PureWindow.cpp.
|
private |
Definition at line 1443 of file PureWindow.cpp.
|
private |
This creates the window actually.
This creates the windows actually.
Updates the following members: sCaption, bBtnMin, bBorder, bSysMenu, bVisibleCursor, enabled, dwStyle, dwStyleEx, rectWindow, nClientWidthOrig, nClientHeightOrig, nClientWidth, nClientHeight, hWindow.
width | Width of the window to be created. |
height | Height of the window to be created. |
bFullscreen | Should it be a fullscreen window? |
caption | Caption of the window. |
clWnd | A properly filled and registered WNDCLASS. You can use setupWindowClass() to have such. |
Definition at line 1529 of file PureWindow.cpp.
|
virtual |
Closes the window.
No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1353 of file PureWindow.cpp.
|
virtual |
This deletes the window, then initialize() can be called again later.
Implements PureWindow.
Definition at line 385 of file PureWindow.cpp.
|
virtual |
Gets whether automatic camera warning on resize is enabled or not.
Enabled by default.
Implements PureWindow.
Definition at line 1219 of file PureWindow.cpp.
|
virtual |
Gets window bottom frame height.
The window has a bottom frame, right under the client area. You can resize the window vertically by dragging the bottom frame with the mouse if vertical resizing is enabled.
Implements PureWindow.
Definition at line 616 of file PureWindow.cpp.
|
virtual |
Gets the window caption.
Implements PureWindow.
Definition at line 792 of file PureWindow.cpp.
|
virtual |
Gets window caption area height.
The caption area is within the title bar area and its height is smaller than the title bar height.
Implements PureWindow.
Definition at line 628 of file PureWindow.cpp.
|
virtual |
Gets window client height.
This area is where we render to.
Implements PureWindow.
Definition at line 558 of file PureWindow.cpp.
|
virtual |
Gets window client width.
This area is where we render to.
Implements PureWindow.
Definition at line 480 of file PureWindow.cpp.
CConsole & PureWindowImpl::getConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.
Definition at line 278 of file PureWindow.cpp.
|
virtual |
Gets window height.
Implements PureWindow.
Definition at line 522 of file PureWindow.cpp.
|
static |
Returns the logger module name of this class.
Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 291 of file PureWindow.cpp.
|
virtual |
Gets window side frame width.
The window has 2 side frames, a left and a right frame. The client are is between the 2 side frames. You can resize the window horizontally by dragging the side frames with the mouse if horizontal resizing is enabled.
Implements PureWindow.
Definition at line 603 of file PureWindow.cpp.
|
virtual |
Gets window title bar height.
The title bar is the bar containing the caption and the upper frame of the window. Its height is bigger than the caption height.
Implements PureWindow.
Definition at line 640 of file PureWindow.cpp.
|
virtual |
Gets window width.
Implements PureWindow.
Definition at line 444 of file PureWindow.cpp.
|
virtual |
Gets the message handling window procedure of this window.
Implements PureWindow.
Definition at line 1099 of file PureWindow.cpp.
|
virtual |
Gets window Device Context.
Implements PureWindow.
Definition at line 722 of file PureWindow.cpp.
|
virtual |
Gets window handle.
Implements PureWindow.
Definition at line 712 of file PureWindow.cpp.
|
virtual |
Gets window X-coordinate.
Implements PureWindow.
Definition at line 650 of file PureWindow.cpp.
|
virtual |
Gets window Y-coordinate.
Implements PureWindow.
Definition at line 681 of file PureWindow.cpp.
|
virtual |
Gets whether window has border or not.
Implements PureWindow.
Definition at line 920 of file PureWindow.cpp.
|
virtual |
Gets whether the window has a close request or not.
Implements PureWindow.
Definition at line 1152 of file PureWindow.cpp.
|
virtual |
Gets whether window has maximize/restore button or not.
This button maximizes the window or restores to original size.
Implements PureWindow.
Definition at line 1031 of file PureWindow.cpp.
|
virtual |
Gets whether window has minimize button or not.
This button minimizes the window to the Taskbar.
Implements PureWindow.
Definition at line 994 of file PureWindow.cpp.
|
virtual |
Gets whether window has sysmenu or not.
Sysmenu is the area where the caption of the window can be found.
Implements PureWindow.
Definition at line 957 of file PureWindow.cpp.
|
virtual |
Hides the window.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1283 of file PureWindow.cpp.
|
virtual |
This creates the window actually.
Only has effect if the window is not already initialized. Fails if either width or height is 0.
width | Width of the window to be created. Ignored if an already existing window is specified. |
height | Height of the window to be created. Ignored if an already existing window is specified. |
bFullscreen | Should it be a fullscreen window? Ignored if an already existing window is specified. |
caption | Caption of the window. Ignored if an already existing window is specified. |
window | If a target window is already created for rendering purpose, it can be specified here. To be used for legacy reasons only. If specified, no new window will be actually created but the given window will be treated as it was created by this class instance. Properties of this window should be managed by the owner. |
Implements PureWindow.
Definition at line 312 of file PureWindow.cpp.
|
virtual |
Gets whether window is active or not.
If window is active, it receives keyboard input.
Implements PureWindow.
Definition at line 733 of file PureWindow.cpp.
|
virtual |
Gets whether automatic cleanup of window on close request is enabled or not.
Enabled by default.
Implements PureWindow.
Definition at line 1191 of file PureWindow.cpp.
|
virtual |
Gets whether automatic redraw of window contents on position change is enabled or not.
Enabled by default.
Implements PureWindow.
Definition at line 1163 of file PureWindow.cpp.
|
virtual |
Gets whether the mouse cursor is visible or not within the window area.
Implements PureWindow.
Definition at line 1366 of file PureWindow.cpp.
|
virtual |
Gets whether window is enabled or not.
If not enabled, it doesn't receive any input neither from keyboard nor mouse.
Implements PureWindow.
Definition at line 1068 of file PureWindow.cpp.
|
virtual |
Gets whether the window is initialized.
Implements PureWindow.
Definition at line 419 of file PureWindow.cpp.
|
virtual |
Gets whether window is fully resizable.
Implements PureWindow.
Definition at line 880 of file PureWindow.cpp.
|
virtual |
Gets whether window is resizable horizontally.
Implements PureWindow.
Definition at line 822 of file PureWindow.cpp.
|
virtual |
Gets whether window is resizable vertically.
Implements PureWindow.
Definition at line 851 of file PureWindow.cpp.
|
virtual |
Gets whether window is topmost or not.
Topmost property does not necessarily bring the window above all other windows, but it will be above all non-topmost windows. Read MSDN documentation for details.
Implements PureWindow.
Definition at line 760 of file PureWindow.cpp.
|
virtual |
Maximizes the window.
Equivalent to clicking the maximize button in the sysmenu. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1319 of file PureWindow.cpp.
|
virtual |
Minimizes the window, so it will be visible only on the Taskbar.
Equivalent to clicking the minimize button in the sysmenu. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1301 of file PureWindow.cpp.
|
private |
Definition at line 1584 of file PureWindow.cpp.
|
private |
Definition at line 1627 of file PureWindow.cpp.
|
private |
Definition at line 1635 of file PureWindow.cpp.
|
private |
Definition at line 1642 of file PureWindow.cpp.
|
private |
Definition at line 1667 of file PureWindow.cpp.
|
private |
Definition at line 1658 of file PureWindow.cpp.
|
private |
Definition at line 1700 of file PureWindow.cpp.
Definition at line 1676 of file PureWindow.cpp.
|
private |
Definition at line 1693 of file PureWindow.cpp.
|
private |
Definition at line 1686 of file PureWindow.cpp.
|
private |
Definition at line 1723 of file PureWindow.cpp.
|
private |
Definition at line 1707 of file PureWindow.cpp.
|
private |
Definition at line 1592 of file PureWindow.cpp.
|
private |
Definition at line 1451 of file PureWindow.cpp.
|
virtual |
Processes the queued window messages.
Calls Deinitialize() if detects a close request (WM_CLOSE) AND "automatic cleanup on close request" is enabled. Calling this often is recommended (i.e. once somewhere in a main loop) to make the window react to user activity without delay. No effect before initialization.
Implements PureWindow.
Definition at line 1132 of file PureWindow.cpp.
|
virtual |
Resets the default settings.
Equivalent to calling these functions:
Implements PureWindow.
Definition at line 432 of file PureWindow.cpp.
|
virtual |
Restores the window to the previous state Equivalent to clicking the restore button in the sysmenu.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1337 of file PureWindow.cpp.
|
virtual |
Sets the window active.
If window is active, it receives keyboard input. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 745 of file PureWindow.cpp.
|
virtual |
Sets whether automatic camera warning on resize is enabled or not.
If state is true, the cameras will be automatically warned about a relevant property change, i.e. window resizing so they can readjust their properties. Enabled by default. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Automatic camera warning to be enabled or not. |
Implements PureWindow.
Definition at line 1233 of file PureWindow.cpp.
|
virtual |
Sets whether automatic cleanup of window on close request is enabled or not.
If state is true, the window will automatically destroy itself on close request in the next ProcessMessages(). Enabled by default. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Automatic cleanup of window to be enabled or not. |
Implements PureWindow.
Definition at line 1205 of file PureWindow.cpp.
|
virtual |
Sets whether automatic redraw of window contents on position change is enabled or not.
If state is true, window content will be redrawed on moving or resizing the window. Enabled by default. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Automatic redraw of window contents to be enabled or not. |
Implements PureWindow.
Definition at line 1177 of file PureWindow.cpp.
|
virtual |
Sets whether window has border or not.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window has border or not. |
Implements PureWindow.
Definition at line 933 of file PureWindow.cpp.
|
virtual |
Sets the window caption.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newcaption | Caption to be set for the window. |
Implements PureWindow.
Definition at line 805 of file PureWindow.cpp.
|
virtual |
Sets window client width.
This area is where we render to. Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newheight | Requested window client height in pixels. |
Implements PureWindow.
Definition at line 572 of file PureWindow.cpp.
|
virtual |
Sets window client width.
This area is where we render to. Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newwidth | Requested window client width in pixels. |
Implements PureWindow.
Definition at line 494 of file PureWindow.cpp.
|
virtual |
Sets whether the mouse cursor is visible or not within the window area.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Mouse cursor should be visible within the window area or not. |
Implements PureWindow.
Definition at line 1379 of file PureWindow.cpp.
|
virtual |
Sets whether window is enabled or not.
If not enabled, it doesn't receive any input neither from keyboard nor mouse. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Window should be enabled or not. |
Implements PureWindow.
Definition at line 1082 of file PureWindow.cpp.
|
virtual |
Sets window height.
Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newheight | Requested window height in pixels. |
Implements PureWindow.
Definition at line 535 of file PureWindow.cpp.
|
virtual |
Sets whether window has maximize/restore button or not.
This button maximizes the window or restores to original size. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window has maximize/restore button or not. |
Implements PureWindow.
Definition at line 1045 of file PureWindow.cpp.
|
virtual |
Sets whether window has minimize button or not.
This button minimizes the window to the Taskbar. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window has minimize button or not. |
Implements PureWindow.
Definition at line 1008 of file PureWindow.cpp.
|
private |
Sets default values to properties, used by ctor and Deinitialize().
Definition at line 1460 of file PureWindow.cpp.
|
virtual |
Sets whether window is fully resizable.
If state is true, the window will be resizable both horizontally and vertically. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window be resizable both horizontally and vertically or not. |
Implements PureWindow.
Definition at line 894 of file PureWindow.cpp.
|
virtual |
Sets whether window is resizable horizontally.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window be resizable horizontally or not. |
Implements PureWindow.
Definition at line 835 of file PureWindow.cpp.
|
virtual |
Sets whether window is resizable vertically.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window be resizable vertically or not. |
Implements PureWindow.
Definition at line 864 of file PureWindow.cpp.
|
virtual |
Sets whether window has sysmenu or not.
Sysmenu is the area where the caption of the window can be found. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Should window has sysmenu or not. |
Implements PureWindow.
Definition at line 971 of file PureWindow.cpp.
|
virtual |
Sets the window topmost property.
Topmost property does not necessarily bring the window above all other windows, but it will be above all non-topmost windows. Read MSDN documentation for details. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
state | Window topmost property to be this. |
Implements PureWindow.
Definition at line 774 of file PureWindow.cpp.
|
private |
Fills the given WNDCLASS structure and registers it.
clWnd | The WNDCLASS structure to be filled and registered. |
Definition at line 1492 of file PureWindow.cpp.
|
virtual |
Sets window width.
Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newwidth | Requested window width in pixels. |
Implements PureWindow.
Definition at line 457 of file PureWindow.cpp.
|
virtual |
Sets the message handling window procedure of this window.
The engine provides a message handling procedure by default, so it's not compulsory to set a custom procedure. No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
windowproc | A custom message handling window procedure for this window. If NULL, the engine's default message handling procedure will be set again. |
Implements PureWindow.
Definition at line 1113 of file PureWindow.cpp.
|
virtual |
Sets window X-coordinate.
Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newx | X-coordinate of window in screen pixels. |
Implements PureWindow.
Definition at line 663 of file PureWindow.cpp.
|
virtual |
Sets window Y-coordinate.
Has no effect before initialization and in fullscreen mode. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
newy | Y-coordinate of window in screen pixels. |
Implements PureWindow.
Definition at line 694 of file PureWindow.cpp.
|
virtual |
Shows the window.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1247 of file PureWindow.cpp.
|
virtual |
Shows and brings the window to front and sets the focus to it.
No effect before initialization. No effect if an already created window was specified for initialize(), in such case the owner of the window is responsible for setting its properties.
Implements PureWindow.
Definition at line 1264 of file PureWindow.cpp.
|
virtual |
Writes the window properties to the console window.
No effect before initialization.
Implements PureWindow.
Definition at line 1398 of file PureWindow.cpp.
|
friend |
This function is our message-handling callback function.
Some message is handled by this instead of the default DefWindowProc().
Definition at line 226 of file PureWindow.cpp.
|
friend |
Definition at line 215 of file PureWindow.cpp.
|
private |
Is the window active or not.
Definition at line 171 of file PureWindow.cpp.
|
private |
If true, the window will notify cameras about resizing.
Definition at line 174 of file PureWindow.cpp.
|
private |
If true, the window will close itself on close request.
Definition at line 173 of file PureWindow.cpp.
|
private |
If true, the window will redraw its content on position change.
Definition at line 175 of file PureWindow.cpp.
|
private |
Does the window have border or not.
Definition at line 166 of file PureWindow.cpp.
|
private |
Does the window have a maximize button or not.
Definition at line 165 of file PureWindow.cpp.
|
private |
Does the window have a minimize button or not.
Definition at line 164 of file PureWindow.cpp.
|
private |
True if a close request has been captured by the window.
Definition at line 170 of file PureWindow.cpp.
|
private |
If true, then an existing window was specified at init, thus we neither create nor delete the window.
Definition at line 148 of file PureWindow.cpp.
|
private |
Is horizontal resizing enabled or not.
Definition at line 168 of file PureWindow.cpp.
|
private |
Is vertical resizing enabled or not.
Definition at line 169 of file PureWindow.cpp.
|
private |
Does the window have a sysmenu or not.
Definition at line 167 of file PureWindow.cpp.
|
private |
Is the window topmost or not.
Definition at line 172 of file PureWindow.cpp.
|
private |
Is the mouse cursor visible or not.
Definition at line 163 of file PureWindow.cpp.
|
private |
Window class.
Definition at line 150 of file PureWindow.cpp.
|
staticprivate |
Default value of automatic camera warning on resizing.
Definition at line 135 of file PureWindow.cpp.
|
staticprivate |
Default value of automatic cleanup on close request.
Definition at line 134 of file PureWindow.cpp.
|
staticprivate |
Default value of automatic redrawing of window content on position change.
Definition at line 136 of file PureWindow.cpp.
|
private |
Definition at line 149 of file PureWindow.cpp.
|
private |
Window styles.
Definition at line 149 of file PureWindow.cpp.
|
private |
Is the window enabled or not.
Definition at line 162 of file PureWindow.cpp.
|
private |
Window Handle.
Definition at line 147 of file PureWindow.cpp.
|
private |
Extended title bar info, for Vista and newer.
Definition at line 151 of file PureWindow.cpp.
|
private |
Our source of input.
Definition at line 143 of file PureWindow.cpp.
|
private |
Is it a fullscreen window or not.
Definition at line 160 of file PureWindow.cpp.
|
private |
Definition at line 142 of file PureWindow.cpp.
|
private |
Bottom frame height.
Definition at line 157 of file PureWindow.cpp.
|
private |
Caption area height.
Definition at line 158 of file PureWindow.cpp.
|
private |
Original height of the window's client area.
Definition at line 155 of file PureWindow.cpp.
|
private |
Original width of the window's client area.
Definition at line 154 of file PureWindow.cpp.
|
private |
Side frame width.
Definition at line 156 of file PureWindow.cpp.
|
private |
Title bar height.
Definition at line 159 of file PureWindow.cpp.
|
private |
For raw mouse input.
Definition at line 144 of file PureWindow.cpp.
|
private |
Size of RAWINPUT.
Definition at line 145 of file PureWindow.cpp.
|
private |
Position and size of window client area.
Definition at line 153 of file PureWindow.cpp.
|
private |
Position and full size of the window.
Definition at line 152 of file PureWindow.cpp.
|
private |
Window title.
Definition at line 161 of file PureWindow.cpp.
|
private |
Pointer to shared settings, const because we just reading it.
Definition at line 140 of file PureWindow.cpp.