![]() |
LeechCraft
0.6.70-6645-gcd10d7e
Modular cross-platform feature rich live environment.
|
#include "xwrapper.h"
Public Types | |
enum | Layer { Layer::Top, Layer::Bottom, Layer::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 | Filter (XEvent *) |
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, int left, int right, int top, int bottom, int leftStartY, int leftEndY, int rightStartY, int rightEndY, int topStartX, int topEndX, int bottomStartX, int 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 (const QString &) |
Static Public Member Functions | |
static XWrapper & | Instance () |
Definition at line 61 of file xwrapper.h.
|
strong |
Enumerator | |
---|---|
Top | |
Bottom | |
Normal |
Definition at line 79 of file xwrapper.h.
|
signal |
void LeechCraft::Util::XWrapper::ClearStrut | ( | QWidget * | w | ) |
Definition at line 473 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::CloseWindow | ( | Window | wid | ) |
Definition at line 565 of file xwrapper.cpp.
References activeWindowChanged(), desktopChanged(), GetAtom(), windowActionsChanged(), windowDesktopChanged(), windowIconChanged(), windowListChanged(), windowNameChanged(), and windowStateChanged().
|
signal |
bool LeechCraft::Util::XWrapper::Filter | ( | XEvent * | ev | ) |
Definition at line 113 of file xwrapper.cpp.
Window LeechCraft::Util::XWrapper::GetActiveApp | ( | ) |
Definition at line 363 of file xwrapper.cpp.
References Media::None, and ShouldShow().
Atom LeechCraft::Util::XWrapper::GetAtom | ( | const QString & | name | ) |
Definition at line 807 of file xwrapper.cpp.
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 LeechCraft::Util::XWrapper::GetAvailableGeometry | ( | int | screen = -1 | ) |
Definition at line 736 of file xwrapper.cpp.
References GetAtom(), and GetWindows().
Referenced by GetAvailableGeometry().
QRect LeechCraft::Util::XWrapper::GetAvailableGeometry | ( | QWidget * | widget | ) |
Definition at line 802 of file xwrapper.cpp.
References GetAvailableGeometry().
int LeechCraft::Util::XWrapper::GetCurrentDesktop | ( | ) |
Definition at line 663 of file xwrapper.cpp.
References GetAtom().
int LeechCraft::Util::XWrapper::GetDesktopCount | ( | ) |
Definition at line 652 of file xwrapper.cpp.
References GetAtom().
QString LeechCraft::Util::XWrapper::GetDesktopName | ( | int | desktop, |
const QString & | def = QString () |
||
) |
Definition at line 701 of file xwrapper.cpp.
References GetDesktopNames().
QStringList LeechCraft::Util::XWrapper::GetDesktopNames | ( | ) |
Definition at line 679 of file xwrapper.cpp.
References GetAtom().
Referenced by GetDesktopName().
Display * LeechCraft::Util::XWrapper::GetDisplay | ( | ) | const |
Definition at line 102 of file xwrapper.cpp.
Window LeechCraft::Util::XWrapper::GetRootWindow | ( | ) | const |
Definition at line 107 of file xwrapper.cpp.
AllowedActionFlags LeechCraft::Util::XWrapper::GetWindowActions | ( | Window | wid | ) |
Definition at line 324 of file xwrapper.cpp.
References LeechCraft::Util::ChangeDesktop, LeechCraft::Util::Close, GetAtom(), LeechCraft::Util::MaximizeHorz, LeechCraft::Util::MaximizeVert, LeechCraft::Util::Minimize, LeechCraft::Util::Move, LeechCraft::Util::MoveToBottom, LeechCraft::Util::MoveToTop, LeechCraft::Util::Resize, LeechCraft::Util::Shade, LeechCraft::Util::ShowFullscreen, and LeechCraft::Util::Stick.
int LeechCraft::Util::XWrapper::GetWindowDesktop | ( | Window | wid | ) |
Definition at line 706 of file xwrapper.cpp.
References GetAtom().
QIcon LeechCraft::Util::XWrapper::GetWindowIcon | ( | Window | wid | ) |
Definition at line 254 of file xwrapper.cpp.
References GetAtom().
Definition at line 203 of file xwrapper.cpp.
References GetAtom().
Referenced by GetAvailableGeometry().
WinStateFlags LeechCraft::Util::XWrapper::GetWindowState | ( | Window | wid | ) |
Definition at line 285 of file xwrapper.cpp.
References LeechCraft::Util::Attention, LeechCraft::Util::Fullscreen, GetAtom(), LeechCraft::Util::Hidden, LeechCraft::Util::MaximizedHorz, LeechCraft::Util::MaximizedVert, LeechCraft::Util::Modal, LeechCraft::Util::OnBottom, LeechCraft::Util::OnTop, LeechCraft::Util::Shaded, LeechCraft::Util::SkipPager, LeechCraft::Util::SkipTaskbar, and LeechCraft::Util::Sticky.
Referenced by ShouldShow().
QString LeechCraft::Util::XWrapper::GetWindowTitle | ( | Window | wid | ) |
Definition at line 215 of file xwrapper.cpp.
References GetAtom().
|
static |
Definition at line 96 of file xwrapper.cpp.
bool LeechCraft::Util::XWrapper::IsLCWindow | ( | Window | wid | ) |
Definition at line 376 of file xwrapper.cpp.
References GetAtom().
Referenced by Subscribe().
void LeechCraft::Util::XWrapper::MaximizeWindow | ( | Window | wid | ) |
Definition at line 520 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::MinimizeWindow | ( | Window | wid | ) |
Definition at line 515 of file xwrapper.cpp.
References GetAtom().
Definition at line 553 of file xwrapper.cpp.
References Bottom, GetAtom(), LeechCraft::Util::StateRemove, and Top.
void LeechCraft::Util::XWrapper::MoveWindowToDesktop | ( | Window | wid, |
int | num | ||
) |
Definition at line 719 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::RaiseWindow | ( | Window | wid | ) |
Definition at line 510 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::ResizeWindow | ( | Window | wid, |
int | width, | ||
int | height | ||
) |
Definition at line 536 of file xwrapper.cpp.
void LeechCraft::Util::XWrapper::SetCurrentDesktop | ( | int | desktop | ) |
Definition at line 674 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::SetStrut | ( | QWidget * | widget, |
Qt::ToolBarArea | area | ||
) |
Definition at line 425 of file xwrapper.cpp.
void LeechCraft::Util::XWrapper::SetStrut | ( | Window | wid, |
int | left, | ||
int | right, | ||
int | top, | ||
int | bottom, | ||
int | leftStartY, | ||
int | leftEndY, | ||
int | rightStartY, | ||
int | rightEndY, | ||
int | topStartX, | ||
int | topEndX, | ||
int | bottomStartX, | ||
int | bottomEndX | ||
) |
Definition at line 480 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::ShadeWindow | ( | Window | wid | ) |
Definition at line 541 of file xwrapper.cpp.
References GetAtom().
bool LeechCraft::Util::XWrapper::ShouldShow | ( | Window | wid | ) |
Definition at line 387 of file xwrapper.cpp.
References GetAtom(), GetWindowState(), Media::None, and LeechCraft::Util::SkipTaskbar.
Referenced by GetActiveApp().
void LeechCraft::Util::XWrapper::Subscribe | ( | Window | wid | ) |
Definition at line 417 of file xwrapper.cpp.
References IsLCWindow().
void LeechCraft::Util::XWrapper::Sync | ( | ) |
Definition at line 197 of file xwrapper.cpp.
void LeechCraft::Util::XWrapper::UnmaximizeWindow | ( | Window | wid | ) |
Definition at line 528 of file xwrapper.cpp.
References GetAtom().
void LeechCraft::Util::XWrapper::UnshadeWindow | ( | Window | wid | ) |
Definition at line 547 of file xwrapper.cpp.
References GetAtom().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |