Class that represents the Win32 device context.
More...
#include <kanzi/core.ui/platform/windowing_ng/win32/win32_device_context.hpp>
Class that represents the Win32 device context.
- Since
- Kanzi 3.9.7
kanzi::win32::Win32DeviceContext::Win32DeviceContext |
( |
HDC |
deviceContext | ) |
|
|
explicit |
Constructor.
- Parameters
-
deviceContext | Device context handle. |
bool kanzi::win32::Win32DeviceContext::swapBuffers |
( |
| ) |
|
|
noexcept |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
- See also
- swapInterval().
- Returns
- On success, true, otherwise false.
int kanzi::win32::Win32DeviceContext::describePixelFormat |
( |
int |
formatID, |
|
|
PIXELFORMATDESCRIPTOR * |
formatDescriptor |
|
) |
| const |
|
noexcept |
Describes the pixel format.
- Parameters
-
formatID | The format ID for which to describe the pixel format. |
formatDescriptor | The format descriptor output parameter to receive the pixel format description. |
- Returns
- On success, maximum pixel format index, otherwise 0.
bool kanzi::win32::Win32DeviceContext::setPixelFormat |
( |
int |
formatID, |
|
|
const PIXELFORMATDESCRIPTOR * |
formatDescriptor |
|
) |
| |
|
noexcept |
Sets the pixel format.
- Parameters
-
formatID | The pixel format ID to set. |
formatDescriptor | The pixel format description to request. |
- Returns
- On success, true, otherwise false.
KZ_NO_DISCARD int kanzi::win32::Win32DeviceContext::choosePixelFormat |
( |
const PIXELFORMATDESCRIPTOR * |
formatDescriptor | ) |
|
|
noexcept |
Chooses the best pixel format to match the given pixel format description.
- Parameters
-
formatDescriptor | The pixel format description to request. |
- Returns
- On success, closest pixel format index, otherwise 0.
KZ_NO_DISCARD HDC kanzi::win32::Win32DeviceContext::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets the context handle of a device.
- Returns
- The context handle of a device.
The documentation for this class was generated from the following file: