LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
LeechCraft::Util::XWrapper Class Reference

#include "xwrapper.h"

+ Inheritance diagram for LeechCraft::Util::XWrapper:
+ Collaboration diagram for LeechCraft::Util::XWrapper:

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 nativeEventFilter (const QByteArray &eventType, void *message, long *result) override
 
void Sync ()
 
QList< WindowGetWindows ()
 
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 XWrapperInstance ()
 

Detailed Description

Definition at line 55 of file xwrapper.h.

Member Enumeration Documentation

◆ Layer

Enumerator
Top 
Bottom 
Normal 

Definition at line 67 of file xwrapper.h.

Member Function Documentation

◆ activeWindowChanged

void LeechCraft::Util::XWrapper::activeWindowChanged ( )
signal

◆ ClearStrut()

void LeechCraft::Util::XWrapper::ClearStrut ( QWidget *  w)

Definition at line 439 of file xwrapper.cpp.

◆ CloseWindow()

void LeechCraft::Util::XWrapper::CloseWindow ( Window  wid)

Definition at line 531 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager.

◆ desktopChanged

void LeechCraft::Util::XWrapper::desktopChanged ( )
signal

◆ GetActiveApp()

Window LeechCraft::Util::XWrapper::GetActiveApp ( )

Definition at line 329 of file xwrapper.cpp.

References Media::None.

◆ GetAtom()

Atom LeechCraft::Util::XWrapper::GetAtom ( const QString &  name)

Definition at line 734 of file xwrapper.cpp.

◆ GetAvailableGeometry() [1/2]

QRect LeechCraft::Util::XWrapper::GetAvailableGeometry ( int  screen = -1)

Definition at line 663 of file xwrapper.cpp.

◆ GetAvailableGeometry() [2/2]

QRect LeechCraft::Util::XWrapper::GetAvailableGeometry ( QWidget *  widget)

Definition at line 729 of file xwrapper.cpp.

◆ GetCurrentDesktop()

int LeechCraft::Util::XWrapper::GetCurrentDesktop ( )

Definition at line 594 of file xwrapper.cpp.

◆ GetDesktopCount()

int LeechCraft::Util::XWrapper::GetDesktopCount ( )

Definition at line 583 of file xwrapper.cpp.

◆ GetDesktopName()

QString LeechCraft::Util::XWrapper::GetDesktopName ( int  desktop,
const QString &  def = QString () 
)

Definition at line 632 of file xwrapper.cpp.

◆ GetDesktopNames()

QStringList LeechCraft::Util::XWrapper::GetDesktopNames ( )

Definition at line 610 of file xwrapper.cpp.

◆ GetDisplay()

Display * LeechCraft::Util::XWrapper::GetDisplay ( ) const

Definition at line 78 of file xwrapper.cpp.

◆ GetRootWindow()

Window LeechCraft::Util::XWrapper::GetRootWindow ( ) const

Definition at line 83 of file xwrapper.cpp.

◆ GetWindowActions()

◆ GetWindowDesktop()

int LeechCraft::Util::XWrapper::GetWindowDesktop ( Window  wid)

Definition at line 637 of file xwrapper.cpp.

◆ GetWindowIcon()

QIcon LeechCraft::Util::XWrapper::GetWindowIcon ( Window  wid)

Definition at line 220 of file xwrapper.cpp.

References LeechCraft::Util::oral::sph::count.

◆ GetWindows()

QList< Window > LeechCraft::Util::XWrapper::GetWindows ( )

Definition at line 169 of file xwrapper.cpp.

◆ GetWindowState()

◆ GetWindowTitle()

QString LeechCraft::Util::XWrapper::GetWindowTitle ( Window  wid)

Definition at line 181 of file xwrapper.cpp.

◆ Instance()

XWrapper & LeechCraft::Util::XWrapper::Instance ( )
static

Definition at line 72 of file xwrapper.cpp.

◆ IsLCWindow()

bool LeechCraft::Util::XWrapper::IsLCWindow ( Window  wid)

Definition at line 342 of file xwrapper.cpp.

◆ MaximizeWindow()

void LeechCraft::Util::XWrapper::MaximizeWindow ( Window  wid)

Definition at line 486 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager, and LeechCraft::Util::StateAdd.

◆ MinimizeWindow()

void LeechCraft::Util::XWrapper::MinimizeWindow ( Window  wid)

Definition at line 481 of file xwrapper.cpp.

◆ MoveWindowTo()

void LeechCraft::Util::XWrapper::MoveWindowTo ( Window  wid,
Layer  layer 
)

◆ MoveWindowToDesktop()

void LeechCraft::Util::XWrapper::MoveWindowToDesktop ( Window  wid,
int  num 
)

Definition at line 650 of file xwrapper.cpp.

◆ nativeEventFilter()

bool LeechCraft::Util::XWrapper::nativeEventFilter ( const QByteArray &  eventType,
void *  message,
long *  result 
)
override

Definition at line 88 of file xwrapper.cpp.

◆ RaiseWindow()

void LeechCraft::Util::XWrapper::RaiseWindow ( Window  wid)

Definition at line 476 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager.

◆ ResizeWindow()

void LeechCraft::Util::XWrapper::ResizeWindow ( Window  wid,
int  width,
int  height 
)

Definition at line 502 of file xwrapper.cpp.

◆ SetCurrentDesktop()

void LeechCraft::Util::XWrapper::SetCurrentDesktop ( int  desktop)

Definition at line 605 of file xwrapper.cpp.

◆ SetStrut() [1/2]

void LeechCraft::Util::XWrapper::SetStrut ( QWidget *  widget,
Qt::ToolBarArea  area 
)

Definition at line 391 of file xwrapper.cpp.

◆ SetStrut() [2/2]

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 446 of file xwrapper.cpp.

◆ ShadeWindow()

void LeechCraft::Util::XWrapper::ShadeWindow ( Window  wid)

Definition at line 507 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager, and LeechCraft::Util::StateAdd.

◆ ShouldShow()

bool LeechCraft::Util::XWrapper::ShouldShow ( Window  wid)

Definition at line 353 of file xwrapper.cpp.

References Media::None, and LeechCraft::Util::SkipTaskbar.

◆ Subscribe()

void LeechCraft::Util::XWrapper::Subscribe ( Window  wid)

Definition at line 383 of file xwrapper.cpp.

◆ Sync()

void LeechCraft::Util::XWrapper::Sync ( )

Definition at line 163 of file xwrapper.cpp.

◆ UnmaximizeWindow()

void LeechCraft::Util::XWrapper::UnmaximizeWindow ( Window  wid)

Definition at line 494 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager, and LeechCraft::Util::StateRemove.

◆ UnshadeWindow()

void LeechCraft::Util::XWrapper::UnshadeWindow ( Window  wid)

Definition at line 513 of file xwrapper.cpp.

References LeechCraft::Util::SourcePager, and LeechCraft::Util::StateRemove.

◆ windowActionsChanged

void LeechCraft::Util::XWrapper::windowActionsChanged ( ulong  )
signal

◆ windowDesktopChanged

void LeechCraft::Util::XWrapper::windowDesktopChanged ( ulong  )
signal

◆ windowIconChanged

void LeechCraft::Util::XWrapper::windowIconChanged ( ulong  )
signal

◆ windowListChanged

void LeechCraft::Util::XWrapper::windowListChanged ( )
signal

◆ windowNameChanged

void LeechCraft::Util::XWrapper::windowNameChanged ( ulong  )
signal

◆ windowStateChanged

void LeechCraft::Util::XWrapper::windowStateChanged ( ulong  )
signal

The documentation for this class was generated from the following files: