An X11 window.
More...
#include <kanzi/core.ui/platform/windowing_ng/x11/x11_window.hpp>
An X11 window.
- Since
- Kanzi 3.9.8
◆ X11Window() [1/3]
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. |
◆ X11Window() [2/3]
Constructor.
- Parameters
-
display | X11 display connection to which to attach the window. |
windowRegion | Region of the window in screen coordinates. |
◆ X11Window() [3/3]
kanzi::x11::X11Window::X11Window |
( |
Window | nativeHandle | ) |
|
|
explicit |
Constructor.
- Parameters
-
nativeHandle | The window handle. |
◆ destroy()
Destroys a window and all its associated data.
- Parameters
-
display | X11 display connection of the window. |
- Returns
- On success, true, otherwise false.
◆ bringToFront()
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.
◆ getNativeHandle()
Gets the native handle.
- Returns
- The native handle.
◆ storeName()
Stores a name for a window.
- Parameters
-
display | X11 display connection of the window. |
windowText | Name for the window. |
◆ tryFetchName()
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.
◆ isEventForWindow()
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: