LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 Filter (XEvent *)
 
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 54 of file xwrapper.h.

Member Enumeration Documentation

Enumerator
Top 
Bottom 
Normal 

Definition at line 67 of file xwrapper.h.

Member Function Documentation

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

Definition at line 436 of file xwrapper.cpp.

References Display_.

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

Definition at line 528 of file xwrapper.cpp.

void LeechCraft::Util::XWrapper::desktopChanged ( )
signal
bool LeechCraft::Util::XWrapper::Filter ( XEvent ev)

Definition at line 89 of file xwrapper.cpp.

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

Definition at line 326 of file xwrapper.cpp.

References Display_, and Media::None.

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

Definition at line 723 of file xwrapper.cpp.

References Display_.

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

Definition at line 652 of file xwrapper.cpp.

References Display_.

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

Definition at line 718 of file xwrapper.cpp.

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

Definition at line 591 of file xwrapper.cpp.

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

Definition at line 580 of file xwrapper.cpp.

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

Definition at line 629 of file xwrapper.cpp.

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

Definition at line 607 of file xwrapper.cpp.

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

Definition at line 79 of file xwrapper.cpp.

References Display_.

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

Definition at line 84 of file xwrapper.cpp.

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

Definition at line 634 of file xwrapper.cpp.

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

Definition at line 217 of file xwrapper.cpp.

References Display_.

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

Definition at line 166 of file xwrapper.cpp.

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

Definition at line 178 of file xwrapper.cpp.

References Display_.

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

Definition at line 73 of file xwrapper.cpp.

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

Definition at line 339 of file xwrapper.cpp.

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

Definition at line 483 of file xwrapper.cpp.

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

Definition at line 478 of file xwrapper.cpp.

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

Definition at line 516 of file xwrapper.cpp.

References LeechCraft::Util::StateRemove.

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

Definition at line 647 of file xwrapper.cpp.

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

Definition at line 473 of file xwrapper.cpp.

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

Definition at line 499 of file xwrapper.cpp.

References Display_.

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

Definition at line 602 of file xwrapper.cpp.

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

Definition at line 388 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 443 of file xwrapper.cpp.

References Display_.

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

Definition at line 504 of file xwrapper.cpp.

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

Definition at line 350 of file xwrapper.cpp.

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

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

Definition at line 380 of file xwrapper.cpp.

References Display_.

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

Definition at line 160 of file xwrapper.cpp.

References Display_.

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

Definition at line 491 of file xwrapper.cpp.

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

Definition at line 510 of file xwrapper.cpp.

void LeechCraft::Util::XWrapper::windowActionsChanged ( ulong  )
signal
void LeechCraft::Util::XWrapper::windowDesktopChanged ( ulong  )
signal
void LeechCraft::Util::XWrapper::windowIconChanged ( ulong  )
signal
void LeechCraft::Util::XWrapper::windowListChanged ( )
signal
void LeechCraft::Util::XWrapper::windowNameChanged ( ulong  )
signal
void LeechCraft::Util::XWrapper::windowStateChanged ( ulong  )
signal

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