An X11 display.
More...
#include <kanzi/core.ui/platform/windowing_ng/x11/x11_display.hpp>
An X11 display.
- Since
- Kanzi 3.9.8
◆ X11Display() [1/2]
kanzi::x11::X11Display::X11Display |
( |
const char * | displayName | ) |
|
|
explicit |
Constructor.
- Parameters
-
displayName | X11 display name. |
◆ X11Display() [2/2]
kanzi::x11::X11Display::X11Display |
( |
Display * | displayHandle | ) |
|
|
explicit |
Constructor.
- Parameters
-
displayHandle | X11 display handle. |
◆ ~X11Display()
kanzi::x11::X11Display::~X11Display |
( |
| ) |
|
◆ registerWindowExit()
Registers a window exit atom.
- Parameters
-
window | The window for which to register the exit atom. |
- Returns
- On success, true, otherwise false.
◆ internAtoms()
Interns atoms identified with names.
- Parameters
-
atomNames | Names of the atoms to intern. |
onlyIfExists | Whether to intern the atom if it already exists. |
- Returns
- The interned atoms.
◆ internAtom()
Interns an atom identified with a name.
- Parameters
-
atomName | Name of the atom to intern. |
onlyIfExists | Whether to intern the atom if it already exists. |
- Returns
- The interned atom.
◆ getNextEvent()
Gets the next X event.
- Returns
- The next X event.
◆ getEventCount()
Gets the number of remaining X events.
- Returns
- The X event count.
◆ sendXEvent()
Sends an X event to the display server.
- Parameters
-
xEvent | X event to send. |
doPropagation | Whether to propagate the event to any ancestor client windows selecting on the mask bits. |
eventMask | X event mask bits. |
- Returns
- On success, true, otherwise false.
◆ syncEvents()
void kanzi::x11::X11Display::syncEvents |
( |
| ) |
|
|
noexcept |
Flushes the event buffer and waits until the display server finishes processing all events.
◆ getNativeHandle()
Gets the native handle.
- Returns
- The native handle.
◆ getDefaultRootWindow()
Gets the default root window handle.
- Returns
- The default root window handle.
◆ getDefaultScreen()
Gets the default screen handle.
- Returns
- The default screen handle.
◆ getConnectionNumber()
Gets the connection number.
- Returns
- The connection number.
◆ tryGetWindowAttributes()
Tries to get the window attributes.
- Parameters
-
window | The window for which to get the attributes. |
- Return values
-
nullopt | Getting the window attributes failed. |
- Returns
- The window attributes.
◆ tryGetTranslatedPositionRelatedToOrigin()
Tries to get the position of a window relative to an origin.
- Parameters
-
window | The window whose position you want to get. |
origin | The origin relative to which you want to get the window position. |
- Return values
-
nullopt | Getting the window position failed. |
- Returns
- The position of the window relative to the origin.
The documentation for this class was generated from the following file: