Class that represents the Win32 device context. More...
#include <kanzi/core.ui/platform/windowing_ng/win32/win32_device_context.hpp>
Public Member Functions | |
KZ_NO_DISCARD int | choosePixelFormat (const PIXELFORMATDESCRIPTOR *formatDescriptor) noexcept |
Chooses the best pixel format to match the given pixel format description. | |
int | describePixelFormat (int formatID, PIXELFORMATDESCRIPTOR *formatDescriptor) const noexcept |
Describes the pixel format. | |
KZ_NO_DISCARD HDC | getNativeHandle () const noexcept |
Gets the context handle of a device. | |
bool | setPixelFormat (int formatID, const PIXELFORMATDESCRIPTOR *formatDescriptor) noexcept |
Sets the pixel format. | |
bool | swapBuffers () noexcept |
Posts rendering results. | |
Win32DeviceContext (HDC deviceContext) | |
Constructor. | |
Class that represents the Win32 device context.
|
explicit |
Constructor.
deviceContext | Device context handle. |
|
noexcept |
Posts rendering results.
Implicitly flushes the rendering pipeline and executes all received rendering commands before posting.
|
noexcept |
Describes the pixel format.
formatID | The format ID for which to describe the pixel format. |
formatDescriptor | The format descriptor output parameter to receive the pixel format description. |
|
noexcept |
Sets the pixel format.
formatID | The pixel format ID to set. |
formatDescriptor | The pixel format description to request. |
|
noexcept |
Chooses the best pixel format to match the given pixel format description.
formatDescriptor | The pixel format description to request. |
|
noexcept |
Gets the context handle of a device.