![]() |
LeechCraft 0.6.70-17769-g4e68d7fcba
Modular cross-platform feature rich live environment.
|
#include "xwrapper.h"
Public Types | |
| enum class | Layer { Top , Bottom , Normal } |
Signals | |
| void | windowListChanged () |
| void | activeWindowChanged () |
| void | desktopChanged () |
| void | windowNameChanged (ulong) |
| void | windowIconChanged (ulong) |
| void | windowDesktopChanged (ulong) |
| void | windowStateChanged (ulong) |
| void | windowActionsChanged (ulong) |
Public Member Functions | |
| xcb_connection_t * | GetConnection () const |
| Display * | GetDisplay () const |
| Window | GetRootWindow () const |
| bool | nativeEventFilter (const QByteArray &eventType, void *message, qintptr *result) override |
| void | Sync () |
| QList< Window > | GetWindows () |
| QString | GetWindowTitle (Window) |
| QIcon | GetWindowIcon (Window) |
| WinStateFlags | GetWindowState (Window) |
| AllowedActionFlags | GetWindowActions (Window) |
| Window | GetActiveApp () |
| bool | IsLCWindow (Window) |
| bool | ShouldShow (Window) |
| void | Subscribe (Window) |
| void | SetStrut (QWidget *, Qt::ToolBarArea) |
| void | ClearStrut (QWidget *) |
| void | SetStrut (Window wid, ulong left, ulong right, ulong top, ulong bottom, ulong leftStartY, ulong leftEndY, ulong rightStartY, ulong rightEndY, ulong topStartX, ulong topEndX, ulong bottomStartX, ulong bottomEndX) |
| void | RaiseWindow (Window) |
| void | MinimizeWindow (Window) |
| void | MaximizeWindow (Window) |
| void | UnmaximizeWindow (Window) |
| void | ShadeWindow (Window) |
| void | UnshadeWindow (Window) |
| void | MoveWindowTo (Window, Layer) |
| void | CloseWindow (Window) |
| void | ResizeWindow (Window, int, int) |
| int | GetDesktopCount () |
| int | GetCurrentDesktop () |
| void | SetCurrentDesktop (int) |
| QStringList | GetDesktopNames () |
| QString | GetDesktopName (int, const QString &=QString()) |
| int | GetWindowDesktop (Window) |
| void | MoveWindowToDesktop (Window, int) |
| QRect | GetAvailableGeometry (QScreen &) |
| QRect | GetAvailableGeometry (QWidget *) |
| Atom | GetAtom (std::string_view str) |
| Returns the atom denoting the given string. | |
Static Public Member Functions | |
| static XWrapper & | Instance () |
Definition at line 35 of file xwrapper.h.
|
strong |
| Enumerator | |
|---|---|
| Top | |
| Bottom | |
| Normal | |
Definition at line 48 of file xwrapper.h.
|
signal |
| void LC::Util::XWrapper::ClearStrut | ( | QWidget * | w | ) |
Definition at line 423 of file xwrapper.cpp.
References GetAtom().
| void LC::Util::XWrapper::CloseWindow | ( | Window | wid | ) |
Definition at line 517 of file xwrapper.cpp.
References GetAtom(), and LC::Util::SourcePager.
|
signal |
| Window LC::Util::XWrapper::GetActiveApp | ( | ) |
Definition at line 316 of file xwrapper.cpp.
References ShouldShow().
| Atom LC::Util::XWrapper::GetAtom | ( | std::string_view | str | ) |
Returns the atom denoting the given string.
| [in] | string | A view to a (null-terminated) string with the name of the atom. |
std::strlen(str.data()) should be equal to str.size(). Definition at line 712 of file xwrapper.cpp.
References LC::Util::AsByteArray(), and LC::Util::ToByteArray().
Referenced by ClearStrut(), CloseWindow(), GetAvailableGeometry(), GetCurrentDesktop(), GetDesktopCount(), GetDesktopNames(), GetWindowActions(), GetWindowDesktop(), GetWindowIcon(), GetWindows(), GetWindowState(), GetWindowTitle(), IsLCWindow(), MaximizeWindow(), MinimizeWindow(), MoveWindowTo(), MoveWindowToDesktop(), RaiseWindow(), SetCurrentDesktop(), SetStrut(), ShadeWindow(), ShouldShow(), UnmaximizeWindow(), and UnshadeWindow().
| QRect LC::Util::XWrapper::GetAvailableGeometry | ( | QScreen & | screen | ) |
Definition at line 649 of file xwrapper.cpp.
References GetAtom(), and GetWindows().
Referenced by GetAvailableGeometry().
| QRect LC::Util::XWrapper::GetAvailableGeometry | ( | QWidget * | widget | ) |
Definition at line 707 of file xwrapper.cpp.
References GetAvailableGeometry().
| xcb_connection_t * LC::Util::XWrapper::GetConnection | ( | ) | const |
Definition at line 65 of file xwrapper.cpp.
| int LC::Util::XWrapper::GetCurrentDesktop | ( | ) |
Definition at line 580 of file xwrapper.cpp.
References GetAtom().
| int LC::Util::XWrapper::GetDesktopCount | ( | ) |
Definition at line 569 of file xwrapper.cpp.
References GetAtom().
| QString LC::Util::XWrapper::GetDesktopName | ( | int | desktop, |
| const QString & | def = QString () ) |
Definition at line 618 of file xwrapper.cpp.
References GetDesktopNames().
| QStringList LC::Util::XWrapper::GetDesktopNames | ( | ) |
Definition at line 596 of file xwrapper.cpp.
References GetAtom().
Referenced by GetDesktopName().
| Display * LC::Util::XWrapper::GetDisplay | ( | ) | const |
Definition at line 70 of file xwrapper.cpp.
| Window LC::Util::XWrapper::GetRootWindow | ( | ) | const |
Definition at line 75 of file xwrapper.cpp.
| AllowedActionFlags LC::Util::XWrapper::GetWindowActions | ( | Window | wid | ) |
Definition at line 294 of file xwrapper.cpp.
References LC::Util::AsStringView(), LC::Util::ChangeDesktop, LC::Util::Close, GetAtom(), LC::Util::MaximizeHorz, LC::Util::MaximizeVert, LC::Util::Minimize, LC::Util::Move, LC::Util::MoveToBottom, LC::Util::MoveToTop, LC::Util::Resize, LC::Util::Shade, LC::Util::ShowFullscreen, and LC::Util::Stick.
| int LC::Util::XWrapper::GetWindowDesktop | ( | Window | wid | ) |
Definition at line 623 of file xwrapper.cpp.
References GetAtom().
| QIcon LC::Util::XWrapper::GetWindowIcon | ( | Window | wid | ) |
Definition at line 222 of file xwrapper.cpp.
References GetAtom().
Definition at line 173 of file xwrapper.cpp.
References GetAtom().
Referenced by GetAvailableGeometry().
| WinStateFlags LC::Util::XWrapper::GetWindowState | ( | Window | wid | ) |
Definition at line 272 of file xwrapper.cpp.
References LC::Util::AsStringView(), LC::Util::Attention, LC::Util::Fullscreen, GetAtom(), LC::Util::Hidden, LC::Util::MaximizedHorz, LC::Util::MaximizedVert, LC::Util::Modal, LC::Util::OnBottom, LC::Util::OnTop, LC::Util::Shaded, LC::Util::SkipPager, LC::Util::SkipTaskbar, and LC::Util::Sticky.
Referenced by ShouldShow().
| QString LC::Util::XWrapper::GetWindowTitle | ( | Window | wid | ) |
Definition at line 185 of file xwrapper.cpp.
References GetAtom().
|
static |
Definition at line 59 of file xwrapper.cpp.
| bool LC::Util::XWrapper::IsLCWindow | ( | Window | wid | ) |
Definition at line 329 of file xwrapper.cpp.
References GetAtom().
Referenced by Subscribe().
| void LC::Util::XWrapper::MaximizeWindow | ( | Window | wid | ) |
Definition at line 472 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, and LC::Util::StateAdd.
| void LC::Util::XWrapper::MinimizeWindow | ( | Window | wid | ) |
Definition at line 467 of file xwrapper.cpp.
References GetAtom().
Definition at line 505 of file xwrapper.cpp.
References Bottom, GetAtom(), LC::Util::SourcePager, LC::Util::StateAdd, LC::Util::StateRemove, and Top.
| void LC::Util::XWrapper::MoveWindowToDesktop | ( | Window | wid, |
| int | num ) |
Definition at line 636 of file xwrapper.cpp.
References GetAtom().
|
override |
Definition at line 80 of file xwrapper.cpp.
| void LC::Util::XWrapper::RaiseWindow | ( | Window | wid | ) |
Definition at line 462 of file xwrapper.cpp.
References GetAtom(), and LC::Util::SourcePager.
| void LC::Util::XWrapper::ResizeWindow | ( | Window | wid, |
| int | width, | ||
| int | height ) |
Definition at line 488 of file xwrapper.cpp.
| void LC::Util::XWrapper::SetCurrentDesktop | ( | int | desktop | ) |
Definition at line 591 of file xwrapper.cpp.
References GetAtom().
| void LC::Util::XWrapper::SetStrut | ( | QWidget * | widget, |
| Qt::ToolBarArea | area ) |
Definition at line 375 of file xwrapper.cpp.
References SetStrut().
Referenced by SetStrut().
| void LC::Util::XWrapper::SetStrut | ( | Window | wid, |
| ulong | left, | ||
| ulong | right, | ||
| ulong | top, | ||
| ulong | bottom, | ||
| ulong | leftStartY, | ||
| ulong | leftEndY, | ||
| ulong | rightStartY, | ||
| ulong | rightEndY, | ||
| ulong | topStartX, | ||
| ulong | topEndX, | ||
| ulong | bottomStartX, | ||
| ulong | bottomEndX ) |
Definition at line 430 of file xwrapper.cpp.
References GetAtom().
| void LC::Util::XWrapper::ShadeWindow | ( | Window | wid | ) |
Definition at line 493 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, and LC::Util::StateAdd.
| bool LC::Util::XWrapper::ShouldShow | ( | Window | wid | ) |
Definition at line 337 of file xwrapper.cpp.
References GetAtom(), GetWindowState(), and LC::Util::SkipTaskbar.
Referenced by GetActiveApp().
| void LC::Util::XWrapper::Subscribe | ( | Window | wid | ) |
Definition at line 367 of file xwrapper.cpp.
References IsLCWindow().
| void LC::Util::XWrapper::Sync | ( | ) |
Definition at line 167 of file xwrapper.cpp.
| void LC::Util::XWrapper::UnmaximizeWindow | ( | Window | wid | ) |
Definition at line 480 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, and LC::Util::StateRemove.
| void LC::Util::XWrapper::UnshadeWindow | ( | Window | wid | ) |
Definition at line 499 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, and LC::Util::StateRemove.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |