An X11 display.
More...
#include <kanzi/core.ui/platform/windowing_ng/x11/x11_display.hpp>
An X11 display.
- Since
- Kanzi 3.9.8
kanzi::x11::X11Display::X11Display |
( |
const char * |
displayName | ) |
|
|
explicit |
Constructor.
- Parameters
-
displayName | X11 display name. |
kanzi::x11::X11Display::X11Display |
( |
Display * |
displayHandle | ) |
|
|
explicit |
Constructor.
- Parameters
-
displayHandle | X11 display handle. |
kanzi::x11::X11Display::~X11Display |
( |
| ) |
|
bool kanzi::x11::X11Display::registerWindowExit |
( |
const X11Window & |
window | ) |
const |
|
noexcept |
Registers a window exit atom.
- Parameters
-
window | The window for which to register the exit atom. |
- Returns
- On success, true, otherwise false.
template<int Size>
KZ_NO_DISCARD array<Atom, Size> kanzi::x11::X11Display::internAtoms |
( |
const array< const char *, Size > & |
atomNames, |
|
|
bool |
onlyIfExists |
|
) |
| const |
|
inlinenoexcept |
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.
KZ_NO_DISCARD Atom kanzi::x11::X11Display::internAtom |
( |
const char * |
atomName, |
|
|
bool |
onlyIfExists |
|
) |
| const |
|
noexcept |
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.
Gets the next X event.
- Returns
- The next X event.
KZ_NO_DISCARD int kanzi::x11::X11Display::getEventCount |
( |
| ) |
const |
|
noexcept |
Gets the number of remaining X events.
- Returns
- The X event count.
bool kanzi::x11::X11Display::sendXEvent |
( |
const XEvent & |
xEvent, |
|
|
bool |
doPropagation, |
|
|
long |
eventMask |
|
) |
| |
|
noexcept |
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.
void kanzi::x11::X11Display::syncEvents |
( |
| ) |
|
|
noexcept |
Flushes the event buffer and waits until the display server finishes processing all events.
KZ_NO_DISCARD Display* kanzi::x11::X11Display::getNativeHandle |
( |
| ) |
const |
|
noexcept |
Gets the native handle.
- Returns
- The native handle.
KZ_NO_DISCARD Window kanzi::x11::X11Display::getDefaultRootWindow |
( |
| ) |
const |
|
noexcept |
Gets the default root window handle.
- Returns
- The default root window handle.
KZ_NO_DISCARD int kanzi::x11::X11Display::getDefaultScreen |
( |
| ) |
const |
|
noexcept |
Gets the default screen handle.
- Returns
- The default screen handle.
KZ_NO_DISCARD int kanzi::x11::X11Display::getConnectionNumber |
( |
| ) |
const |
|
noexcept |
Gets the connection number.
- Returns
- The connection number.
KZ_NO_DISCARD optional<XWindowAttributes> kanzi::x11::X11Display::tryGetWindowAttributes |
( |
const X11Window & |
window | ) |
const |
|
noexcept |
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.
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: