![]() |
LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
|
#include "xwrapper.h"
Inheritance diagram for LC::Util::XWrapper:
Collaboration diagram for LC::Util::XWrapper: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 | |
| Display * | GetDisplay () const |
| Window | GetRootWindow () const |
| bool | nativeEventFilter (const QByteArray &eventType, void *message, long *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 (int screen=-1) |
| 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 33 of file xwrapper.h.
|
strong |
| Enumerator | |
|---|---|
| Top | |
| Bottom | |
| Normal | |
Definition at line 45 of file xwrapper.h.
|
signal |
| void LC::Util::XWrapper::ClearStrut | ( | QWidget * | w | ) |
Definition at line 410 of file xwrapper.cpp.
References ClearStrut(), and GetAtom().
Referenced by ClearStrut().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::CloseWindow | ( | Window | wid | ) |
Definition at line 504 of file xwrapper.cpp.
References CloseWindow(), GetAtom(), and LC::Util::SourcePager.
Referenced by CloseWindow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
| Window LC::Util::XWrapper::GetActiveApp | ( | ) |
Definition at line 303 of file xwrapper.cpp.
References GetActiveApp(), and ShouldShow().
Referenced by GetActiveApp().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 704 of file xwrapper.cpp.
References LC::Util::AsByteArray(), GetAtom(), and LC::Util::ToByteArray().
Referenced by ClearStrut(), CloseWindow(), GetAtom(), GetAvailableGeometry(), GetCurrentDesktop(), GetDesktopCount(), GetDesktopNames(), GetWindowActions(), GetWindowDesktop(), GetWindowIcon(), GetWindows(), GetWindowState(), GetWindowTitle(), IsLCWindow(), MaximizeWindow(), MinimizeWindow(), MoveWindowTo(), MoveWindowToDesktop(), RaiseWindow(), SetCurrentDesktop(), SetStrut(), ShadeWindow(), ShouldShow(), UnmaximizeWindow(), and UnshadeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| QRect LC::Util::XWrapper::GetAvailableGeometry | ( | int | screen = -1 | ) |
Definition at line 636 of file xwrapper.cpp.
References GetAtom(), GetAvailableGeometry(), and GetWindows().
Referenced by GetAvailableGeometry(), and GetAvailableGeometry().
Here is the call graph for this function:
Here is the caller graph for this function:| QRect LC::Util::XWrapper::GetAvailableGeometry | ( | QWidget * | widget | ) |
Definition at line 699 of file xwrapper.cpp.
References GetAvailableGeometry().
Here is the call graph for this function:| int LC::Util::XWrapper::GetCurrentDesktop | ( | ) |
Definition at line 567 of file xwrapper.cpp.
References GetAtom(), and GetCurrentDesktop().
Referenced by GetCurrentDesktop().
Here is the call graph for this function:
Here is the caller graph for this function:| int LC::Util::XWrapper::GetDesktopCount | ( | ) |
Definition at line 556 of file xwrapper.cpp.
References GetAtom(), and GetDesktopCount().
Referenced by GetDesktopCount().
Here is the call graph for this function:
Here is the caller graph for this function:| QString LC::Util::XWrapper::GetDesktopName | ( | int | desktop, |
| const QString & | def = QString () ) |
Definition at line 605 of file xwrapper.cpp.
References GetDesktopName(), and GetDesktopNames().
Referenced by GetDesktopName().
Here is the call graph for this function:
Here is the caller graph for this function:| QStringList LC::Util::XWrapper::GetDesktopNames | ( | ) |
Definition at line 583 of file xwrapper.cpp.
References GetAtom(), and GetDesktopNames().
Referenced by GetDesktopName(), and GetDesktopNames().
Here is the call graph for this function:
Here is the caller graph for this function:| Display * LC::Util::XWrapper::GetDisplay | ( | ) | const |
Definition at line 57 of file xwrapper.cpp.
References GetDisplay().
Referenced by GetDisplay().
Here is the call graph for this function:
Here is the caller graph for this function:| Window LC::Util::XWrapper::GetRootWindow | ( | ) | const |
Definition at line 62 of file xwrapper.cpp.
References GetRootWindow().
Referenced by GetRootWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| AllowedActionFlags LC::Util::XWrapper::GetWindowActions | ( | Window | wid | ) |
Definition at line 281 of file xwrapper.cpp.
References LC::Util::AsStringView(), LC::Util::ChangeDesktop, LC::Util::Close, GetAtom(), GetWindowActions(), 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.
Referenced by GetWindowActions().
Here is the call graph for this function:
Here is the caller graph for this function:| int LC::Util::XWrapper::GetWindowDesktop | ( | Window | wid | ) |
Definition at line 610 of file xwrapper.cpp.
References GetAtom(), and GetWindowDesktop().
Referenced by GetWindowDesktop().
Here is the call graph for this function:
Here is the caller graph for this function:| QIcon LC::Util::XWrapper::GetWindowIcon | ( | Window | wid | ) |
Definition at line 209 of file xwrapper.cpp.
References GetAtom(), and GetWindowIcon().
Referenced by GetWindowIcon().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 160 of file xwrapper.cpp.
References GetAtom(), and GetWindows().
Referenced by GetAvailableGeometry(), and GetWindows().
Here is the call graph for this function:
Here is the caller graph for this function:| WinStateFlags LC::Util::XWrapper::GetWindowState | ( | Window | wid | ) |
Definition at line 259 of file xwrapper.cpp.
References LC::Util::AsStringView(), LC::Util::Attention, LC::Util::Fullscreen, GetAtom(), GetWindowState(), 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 GetWindowState(), and ShouldShow().
Here is the call graph for this function:
Here is the caller graph for this function:| QString LC::Util::XWrapper::GetWindowTitle | ( | Window | wid | ) |
Definition at line 172 of file xwrapper.cpp.
References GetAtom(), and GetWindowTitle().
Referenced by GetWindowTitle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 51 of file xwrapper.cpp.
References Instance().
Referenced by Instance().
Here is the call graph for this function:
Here is the caller graph for this function:| bool LC::Util::XWrapper::IsLCWindow | ( | Window | wid | ) |
Definition at line 316 of file xwrapper.cpp.
References GetAtom(), and IsLCWindow().
Referenced by IsLCWindow(), and Subscribe().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::MaximizeWindow | ( | Window | wid | ) |
Definition at line 459 of file xwrapper.cpp.
References GetAtom(), MaximizeWindow(), LC::Util::SourcePager, and LC::Util::StateAdd.
Referenced by MaximizeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::MinimizeWindow | ( | Window | wid | ) |
Definition at line 454 of file xwrapper.cpp.
References GetAtom(), and MinimizeWindow().
Referenced by MinimizeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 492 of file xwrapper.cpp.
References Bottom, GetAtom(), MoveWindowTo(), LC::Util::SourcePager, LC::Util::StateAdd, LC::Util::StateRemove, and Top.
Referenced by MoveWindowTo().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::MoveWindowToDesktop | ( | Window | wid, |
| int | num ) |
Definition at line 623 of file xwrapper.cpp.
References GetAtom(), and MoveWindowToDesktop().
Referenced by MoveWindowToDesktop().
Here is the call graph for this function:
Here is the caller graph for this function:
|
override |
Definition at line 67 of file xwrapper.cpp.
References nativeEventFilter().
Referenced by nativeEventFilter().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::RaiseWindow | ( | Window | wid | ) |
Definition at line 449 of file xwrapper.cpp.
References GetAtom(), RaiseWindow(), and LC::Util::SourcePager.
Referenced by RaiseWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::ResizeWindow | ( | Window | wid, |
| int | width, | ||
| int | height ) |
Definition at line 475 of file xwrapper.cpp.
References ResizeWindow().
Referenced by ResizeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::SetCurrentDesktop | ( | int | desktop | ) |
Definition at line 578 of file xwrapper.cpp.
References GetAtom(), and SetCurrentDesktop().
Referenced by SetCurrentDesktop().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::SetStrut | ( | QWidget * | widget, |
| Qt::ToolBarArea | area ) |
Definition at line 362 of file xwrapper.cpp.
References SetStrut().
Referenced by SetStrut(), and SetStrut().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 417 of file xwrapper.cpp.
References GetAtom(), and SetStrut().
Here is the call graph for this function:| void LC::Util::XWrapper::ShadeWindow | ( | Window | wid | ) |
Definition at line 480 of file xwrapper.cpp.
References GetAtom(), ShadeWindow(), LC::Util::SourcePager, and LC::Util::StateAdd.
Referenced by ShadeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| bool LC::Util::XWrapper::ShouldShow | ( | Window | wid | ) |
Definition at line 324 of file xwrapper.cpp.
References GetAtom(), GetWindowState(), ShouldShow(), and LC::Util::SkipTaskbar.
Referenced by GetActiveApp(), and ShouldShow().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::Subscribe | ( | Window | wid | ) |
Definition at line 354 of file xwrapper.cpp.
References IsLCWindow(), and Subscribe().
Referenced by Subscribe().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::Sync | ( | ) |
Definition at line 154 of file xwrapper.cpp.
References Sync().
Referenced by Sync().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::UnmaximizeWindow | ( | Window | wid | ) |
Definition at line 467 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, LC::Util::StateRemove, and UnmaximizeWindow().
Referenced by UnmaximizeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:| void LC::Util::XWrapper::UnshadeWindow | ( | Window | wid | ) |
Definition at line 486 of file xwrapper.cpp.
References GetAtom(), LC::Util::SourcePager, LC::Util::StateRemove, and UnshadeWindow().
Referenced by UnshadeWindow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |