An X11 window.
More...
#include <kanzi/core.ui/platform/windowing_ng/x11/x11_window.hpp>
An X11 window.
- Since
- Kanzi 3.9.8
kanzi::x11::X11Window::X11Window |
( |
const X11Display & |
display, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
|
explicit |
Constructor.
- Parameters
-
display | X11 display connection to which to attach the window. |
x | Horizontal position of the top-left corner of the window in screen coordinates. |
y | Vertical position of the top-left corner of the window in screen coordinates. |
width | Horizontal extent of the window in screen coordinates. |
height | Vertical extent of the window in screen coordinates. |
Constructor.
- Parameters
-
display | X11 display connection to which to attach the window. |
windowRegion | Region of the window in screen coordinates. |
kanzi::x11::X11Window::X11Window |
( |
Window |
nativeHandle | ) |
|
|
explicit |
Constructor.
- Parameters
-
nativeHandle | The window handle. |
void kanzi::x11::X11Window::destroy |
( |
const X11Display & |
display | ) |
|
|
noexcept |
Destroys a window and all its associated data.
- Parameters
-
display | X11 display connection of the window. |
- Returns
- On success, true, otherwise false.
bool kanzi::x11::X11Window::bringToFront |
( |
const X11Display & |
display | ) |
|
|
noexcept |
Brings a window in front of all other windows in the z-order.
- Parameters
-
display | X11 display connection of the window. |
- Returns
- On success, true, otherwise false.
KZ_NO_DISCARD Window kanzi::x11::X11Window::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets the native handle.
- Returns
- The native handle.
void kanzi::x11::X11Window::storeName |
( |
const X11Display & |
display, |
|
|
const char * |
windowText |
|
) |
| |
|
noexcept |
Stores a name for a window.
- Parameters
-
display | X11 display connection of the window. |
windowText | Name for the window. |
Tries to get the name of a window.
- Parameters
-
display | X11 display connection of the window. |
- Return values
-
nullopt | Getting the name of the window failed. |
- Returns
- The name of the window.
KZ_NO_DISCARD bool kanzi::x11::X11Window::isEventForWindow |
( |
const XEvent & |
x11Event | ) |
const |
|
noexcept |
Tests whether an event is for the window.
- Parameters
-
x11Event | X11 event to test. |
- Returns
- On success, true, otherwise false.
The documentation for this class was generated from the following file: