Classes | |
struct | DefaultFiberContext |
Structure that represents the default Win32 fiber context. More... | |
class | DefaultWin32WGLGraphicsOutput |
Class that represents the default Win32 WGL graphics output. More... | |
struct | DefaultWin32WGLGraphicsOutputProperties |
Structure that represents the default Win32 WGL graphics output properties. More... | |
class | WGLContext |
Class that represents the WGL context. More... | |
class | Win32DeviceContext |
Class that represents the Win32 device context. More... | |
class | Win32Display |
Class that represents a Win32 display. More... | |
class | Win32DynamicLibrary |
Class that represents the Win32 dynamic library. More... | |
class | Win32Fiber |
Class that represents the Win32 fiber. More... | |
struct | Win32LParam |
Structure that represents the Win32 LPARAM. More... | |
class | Win32Window |
Class that represents a Win32 window. More... | |
class | Win32WindowClass |
Class that represents the Win32 window class. More... | |
struct | Win32WParam |
Structure that represents the Win32 WPARAM. More... | |
Typedefs | |
typedef HWND | Win32WindowHandle |
Type alias for the native Win32 window handle. More... | |
Functions | |
bool | addMouseDownEvent (EventQueue &queue, PointerButton buttons, int x, int y, HWND hwnd) |
Adds a mouse button pressed down event. More... | |
bool | addMouseUpEvent (EventQueue &queue, PointerButton buttons, int x, int y) |
Adds a mouse button released event. More... | |
LRESULT CALLBACK | appWindowProcHandler (Win32WindowHandle windowHandle, UINT message, WPARAM wParam, LPARAM lParam) |
Win32 window procedure for receiving messages for the window that was created by the thread. More... | |
bool | attachTouchWindow (const Win32DynamicLibrary &user32Lib, Win32Window &window) noexcept |
Tries to dynamically register the touch input for a window. More... | |
bool | changeToFullscreenWin32Display (const Win32Display &display) |
Changes window mode of the application to full screen on the given Win32 display. More... | |
bool | closeWin32TouchInput (Win32LParam lParam) noexcept |
Closes the touch input handle. More... | |
bool | currentMouseMessageIsFromTouch () noexcept |
Predicate for testing whether the current mouse event originated from a touch device. More... | |
bool | displayWindow (Win32Window &window) noexcept |
Sets a window to be visible and active on the current display. More... | |
KZ_NO_DISCARD unsigned int | findWin32DisplayCount () noexcept |
Finds the number of available active displays. More... | |
string | getLastErrorAsString () noexcept |
Gets the last Win32 error as a printable string. More... | |
KZ_NO_DISCARD int | getMaximumPixelFormatID (const Win32DeviceContext &deviceContext) noexcept |
Gets the maximum allowable pixel format ID. More... | |
KZ_NO_DISCARD POINT | getMousePosition (const Win32Window &window) noexcept |
Gets the mouse position of a window in screen coordinates. More... | |
KZ_NO_DISCARD PointerButton | getTriggeredPointerButtonEvent (UINT message, Win32WParam wParam) noexcept |
Gets the triggered Kanzi mouse button from the Win32 mouse button event. More... | |
KZ_NO_DISCARD optional< windowing::Position > | getWin32DisplayOrigin (const Win32Display &display) |
Gets the origin of the Win32 display. More... | |
KZ_NO_DISCARD windowing::SizeU | getWin32DisplaySizeU (const Win32Display &display) |
Gets the size of the Win32 display. More... | |
KZ_NO_DISCARD KeyModifier | getWin32KeyModifiers (kanzi::LogicalKey key) |
Gets the currently active key modifiers for a logical key. More... | |
KZ_NO_DISCARD MONITORINFO | getWin32MonitorInfo (HMONITOR monitor) noexcept |
Gets the information about the Win32 monitor. More... | |
bool | getWin32TouchInputInfo (Win32WParam wParam, Win32LParam lParam, TOUCHINPUT &touchInputs) noexcept |
Gets the touch input information. More... | |
unsigned int | getWin32TouchPointCount (Win32WParam wParam) noexcept |
Gets the number of input points for a touch. More... | |
KZ_NO_DISCARD int | getWindowHeight (const Win32Window &window) noexcept |
Gets the window height in screen coordinates. More... | |
KZ_NO_DISCARD int | getWindowPositionX (const Win32Window &window) noexcept |
Gets the window X coordinate in screen coordinates. More... | |
KZ_NO_DISCARD int | getWindowPositionY (const Win32Window &window) noexcept |
Gets the window Y coordinate in screen coordinates. More... | |
KZ_NO_DISCARD LONG | getWindowStyle (const Win32Window &window) noexcept |
Gets the style flags for a window. More... | |
KZ_NO_DISCARD void * | getWindowUserData (const Win32Window &window) noexcept |
Gets the user data of a window. More... | |
KZ_NO_DISCARD int | getWindowWidth (const Win32Window &window) noexcept |
Gets the window width in screen coordinates. More... | |
bool | hideWindow (Win32Window &window) noexcept |
Makes a window invisible and inactive on the current display. More... | |
void | logActiveDisplays () noexcept |
Prints all available active displays. More... | |
void | logGraphicsFormats (const Win32DeviceContext &deviceContext) noexcept |
Logs all available graphic formats to the standard output. More... | |
void | logGraphicsFormats () noexcept |
Prints all possible graphics formats by ID to log in CSV format. More... | |
bool | makeFullscreenWindow (Win32Window &window, windowing::Position windowOrigin, windowing::SizeU windowSize) noexcept |
Sets a window to full-screen on the current display. More... | |
bool | makeRegularWindow (Win32Window &window) noexcept |
Sets a window to regular on the current display. More... | |
bool | maximizeWindow (Win32Window &window) noexcept |
Maximize a window on the current display. More... | |
bool | minimizeWindow (Win32Window &window) noexcept |
Minimize a window to the taskbar and make it inactive on the current display. More... | |
bool | moveWindow (Win32Window &window, int positionX, int positionY) noexcept |
Moves a window to a new position. More... | |
void | print (const char *format,...) noexcept |
Prints a formatted string to the standard output. More... | |
void WINAPI | processFiberMessages (DefaultFiberContext *fiberData) |
Processes the incoming messages on the Win32 message fiber. More... | |
void | registerWin32TouchInput (const Win32DynamicLibrary &user32Lib) noexcept |
Dynamically registers touch input. More... | |
bool | resizeClientWindowArea (Win32Window &window, int width, int height) noexcept |
Resizes the client-area of a window. More... | |
bool | resizeWindow (Win32Window &window, int width, int height) noexcept |
Resizes a window. More... | |
bool | setWindowStyle (Win32Window &window, LONG windowStyle) noexcept |
Sets the style flags for a window. More... | |
bool | setWindowUserData (Win32Window &window, void *userData) noexcept |
Sets user data for a window. More... | |
void | showMessageBox (const char *format,...) noexcept |
Prints a formatted string in a message window. More... | |
bool | showWindow (Win32Window &window) noexcept |
Set a window to be visible and active on the current display. More... | |
KZ_NO_DISCARD PointerButton | translateWin32ButtonsToKanzi (Win32WParam wParam) noexcept |
Maps the pressed down Win32 mouse buttons to logical mouse buttons used by Kanzi. More... | |
KZ_NO_DISCARD LogicalKey | win32KeyToLogicalKey (Win32WParam wParam, Win32LParam lParam) |
Maps the native Win32 key to a logical key used by Kanzi. More... | |
Variables | |
constexpr auto | MaximumWin32TouchPointCount |
The maximum number of touch input points. More... | |
typedef HWND kanzi::win32::Win32WindowHandle |
Type alias for the native Win32 window handle.
LRESULT CALLBACK kanzi::win32::appWindowProcHandler | ( | Win32WindowHandle | windowHandle, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Win32 window procedure for receiving messages for the window that was created by the thread.
windowHandle | The window for which to receive the message. |
message | Type of the message. |
wParam | Message-specific parameter. Exact meaning depends on the message code. |
lParam | Message-specific parameter. Exact meaning depends on the message code. |
|
noexcept |
Prints all possible graphics formats by ID to log in CSV format.
|
noexcept |
Prints all available active displays.
KZ_NO_DISCARD LogicalKey kanzi::win32::win32KeyToLogicalKey | ( | Win32WParam | wParam, |
Win32LParam | lParam | ||
) |
Maps the native Win32 key to a logical key used by Kanzi.
wParam | Extra data for the input key. The data depends on the key. |
lParam | Extra data for the input key. The data depends on the key. |
KZ_NO_DISCARD KeyModifier kanzi::win32::getWin32KeyModifiers | ( | kanzi::LogicalKey | key | ) |
Gets the currently active key modifiers for a logical key.
key | The logical key from which to extract the modifiers. |
|
noexcept |
Gets the triggered Kanzi mouse button from the Win32 mouse button event.
message | The type of Win32 mouse button event. |
wParam | The Win32 button to use for extended buttons. |
|
noexcept |
Maps the pressed down Win32 mouse buttons to logical mouse buttons used by Kanzi.
wParam | The Win32 button to translate. |
|
noexcept |
Predicate for testing whether the current mouse event originated from a touch device.
Use the predicate in the context when emulated touch input is mixed with real touch input.
bool kanzi::win32::addMouseDownEvent | ( | EventQueue & | queue, |
PointerButton | buttons, | ||
int | x, | ||
int | y, | ||
HWND | hwnd | ||
) |
Adds a mouse button pressed down event.
queue | The queue to which to add the event. |
buttons | The buttons pressed down for the event. |
x | X coordinate of the button event. In screen coordinates. |
y | Y coordinate of the button event. In screen coordinates. |
hwnd | The window that received the mouse button pressed down event. |
bool kanzi::win32::addMouseUpEvent | ( | EventQueue & | queue, |
PointerButton | buttons, | ||
int | x, | ||
int | y | ||
) |
Adds a mouse button released event.
queue | The queue to which to add the event. |
buttons | The buttons released for the event. |
x | X coordinate of the button event. In screen coordinates. |
y | Y coordinate of the button event. In screen coordinates. |
|
noexcept |
Gets the number of input points for a touch.
wParam | Win32 parameter from which to extract the number of input points. |
|
noexcept |
Dynamically registers touch input.
user32Lib | The library with which to register the touch input. |
|
noexcept |
Gets the touch input information.
wParam | Win32 parameter from which to extract the touch input information. |
lParam | Win32 parameter from which to extract the touch input information. |
touchInputs | Touch input that receives the information. |
|
noexcept |
Closes the touch input handle.
lParam | Win32 parameter from which to extract the touch input handle to close. |
void WINAPI kanzi::win32::processFiberMessages | ( | DefaultFiberContext * | fiberData | ) |
Processes the incoming messages on the Win32 message fiber.
|
noexcept |
Gets the last Win32 error as a printable string.
|
noexcept |
Prints a formatted string to the standard output.
format | The format string. |
... | The list of parameters to print. The parameters can be empty. |
|
noexcept |
Prints a formatted string in a message window.
format | The format string. |
... | The list of parameters to print. The parameters can be empty. |
|
noexcept |
Logs all available graphic formats to the standard output.
deviceContext | The device context for which to log the graphics formats. |
|
noexcept |
Gets the maximum allowable pixel format ID.
deviceContext | The device context for which to get the maximum allowable pixel format ID for. |
|
noexcept |
Finds the number of available active displays.
bool kanzi::win32::changeToFullscreenWin32Display | ( | const Win32Display & | display | ) |
Changes window mode of the application to full screen on the given Win32 display.
display | The display to which to change the window mode to full screen. |
KZ_NO_DISCARD windowing::SizeU kanzi::win32::getWin32DisplaySizeU | ( | const Win32Display & | display | ) |
Gets the size of the Win32 display.
display | The display for which to get the size. |
KZ_NO_DISCARD optional<windowing::Position> kanzi::win32::getWin32DisplayOrigin | ( | const Win32Display & | display | ) |
Gets the origin of the Win32 display.
display | The display for which to get the origin. |
nullopt | Getting the origin failed. |
|
noexcept |
Gets the information about the Win32 monitor.
monitor | The monitor for which to get the information. |
|
noexcept |
Resizes the client-area of a window.
window | Window whose client-area to resize. |
width | Width to which to resize. |
height | Height to which to resize. |
|
noexcept |
Resizes a window.
window | Window to resize. |
width | Width to which to resize. |
height | Height to which to resize. |
|
noexcept |
Moves a window to a new position.
window | Window to move. |
positionX | The horizontal position of the top-left corner of the window in screen coordinates. |
positionY | The vertical position of the top-left corner of the window in screen coordinates. |
|
noexcept |
Sets a window to full-screen on the current display.
window | Window to set to full-screen. |
windowOrigin | Window origin in pixels. |
windowSize | Window size in pixels. |
|
noexcept |
Sets a window to regular on the current display.
window | Window to set to regular. |
|
noexcept |
Sets a window to be visible and active on the current display.
If the window is minimized or maximized, restores the original size and position of the window.
window | Window to display. |
|
noexcept |
Set a window to be visible and active on the current display.
window | Window to show. |
|
noexcept |
Makes a window invisible and inactive on the current display.
window | Window to hide. |
|
noexcept |
Maximize a window on the current display.
window | Window to maximize. |
|
noexcept |
Minimize a window to the taskbar and make it inactive on the current display.
window | Window to minimize. |
|
noexcept |
Gets the window width in screen coordinates.
window | Window for which to retrieve the width. |
|
noexcept |
Gets the window height in screen coordinates.
window | Window for which to retrieve the height. |
|
noexcept |
Gets the window X coordinate in screen coordinates.
window | Window for which to retrieve the X coordinate. |
|
noexcept |
Gets the window Y coordinate in screen coordinates.
window | Window for which to retrieve the Y coordinate. |
|
noexcept |
Sets user data for a window.
window | Window for which to set the user data. |
userData | User data to set. |
|
noexcept |
Gets the user data of a window.
window | Window for which to get the user data. |
|
noexcept |
Sets the style flags for a window.
window | Window for which to set the style flags. |
windowStyle | The style flags to set. |
|
noexcept |
Gets the style flags for a window.
window | Window for which to get the style flags. |
|
noexcept |
Gets the mouse position of a window in screen coordinates.
|
noexcept |
Tries to dynamically register the touch input for a window.
user32Lib | Library with which to register the window. |
window | Window for which to register the touch input. |
constexpr auto kanzi::win32::MaximumWin32TouchPointCount |
The maximum number of touch input points.