LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::XWrapper Class Reference

#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< 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, 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 XWrapperInstance ()
 

Detailed Description

Definition at line 33 of file xwrapper.h.

Member Enumeration Documentation

◆ Layer

enum class LC::Util::XWrapper::Layer
strong
Enumerator
Top 
Bottom 
Normal 

Definition at line 45 of file xwrapper.h.

Member Function Documentation

◆ activeWindowChanged

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

◆ ClearStrut()

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

Definition at line 410 of file xwrapper.cpp.

◆ CloseWindow()

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

Definition at line 504 of file xwrapper.cpp.

References LC::Util::SourcePager.

◆ desktopChanged

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

◆ GetActiveApp()

Window LC::Util::XWrapper::GetActiveApp ( )

Definition at line 303 of file xwrapper.cpp.

◆ GetAtom()

Atom LC::Util::XWrapper::GetAtom ( std::string_view  str)

Returns the atom denoting the given string.

Parameters
[in]stringA view to a (null-terminated) string with the name of the atom.
Returns
An X11 Atom.
Note
The string pointed by str should be null-terminated — that is, std::strlen(str.data()) should be equal to str.size().

Definition at line 704 of file xwrapper.cpp.

References LC::Util::AsByteArray(), and LC::Util::ToByteArray().

+ Here is the call graph for this function:

◆ GetAvailableGeometry() [1/2]

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

Definition at line 636 of file xwrapper.cpp.

◆ GetAvailableGeometry() [2/2]

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

Definition at line 699 of file xwrapper.cpp.

◆ GetCurrentDesktop()

int LC::Util::XWrapper::GetCurrentDesktop ( )

Definition at line 567 of file xwrapper.cpp.

◆ GetDesktopCount()

int LC::Util::XWrapper::GetDesktopCount ( )

Definition at line 556 of file xwrapper.cpp.

◆ GetDesktopName()

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

Definition at line 605 of file xwrapper.cpp.

◆ GetDesktopNames()

QStringList LC::Util::XWrapper::GetDesktopNames ( )

Definition at line 583 of file xwrapper.cpp.

◆ GetDisplay()

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

Definition at line 57 of file xwrapper.cpp.

◆ GetRootWindow()

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

Definition at line 62 of file xwrapper.cpp.

◆ GetWindowActions()

AllowedActionFlags LC::Util::XWrapper::GetWindowActions ( Window  wid)

Definition at line 281 of file xwrapper.cpp.

References LC::Util::AsStringView().

+ Here is the call graph for this function:

◆ GetWindowDesktop()

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

Definition at line 610 of file xwrapper.cpp.

◆ GetWindowIcon()

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

Definition at line 209 of file xwrapper.cpp.

◆ GetWindows()

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

Definition at line 160 of file xwrapper.cpp.

◆ GetWindowState()

WinStateFlags LC::Util::XWrapper::GetWindowState ( Window  wid)

Definition at line 259 of file xwrapper.cpp.

References LC::Util::AsStringView().

+ Here is the call graph for this function:

◆ GetWindowTitle()

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

Definition at line 172 of file xwrapper.cpp.

◆ Instance()

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

Definition at line 51 of file xwrapper.cpp.

◆ IsLCWindow()

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

Definition at line 316 of file xwrapper.cpp.

◆ MaximizeWindow()

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

Definition at line 459 of file xwrapper.cpp.

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

◆ MinimizeWindow()

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

Definition at line 454 of file xwrapper.cpp.

◆ MoveWindowTo()

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

Definition at line 492 of file xwrapper.cpp.

References LC::Util::SourcePager, LC::Util::StateAdd, and LC::Util::StateRemove.

◆ MoveWindowToDesktop()

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

Definition at line 623 of file xwrapper.cpp.

◆ nativeEventFilter()

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

Definition at line 67 of file xwrapper.cpp.

◆ RaiseWindow()

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

Definition at line 449 of file xwrapper.cpp.

References LC::Util::SourcePager.

◆ ResizeWindow()

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

Definition at line 475 of file xwrapper.cpp.

◆ SetCurrentDesktop()

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

Definition at line 578 of file xwrapper.cpp.

◆ SetStrut() [1/2]

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

Definition at line 362 of file xwrapper.cpp.

◆ SetStrut() [2/2]

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.

◆ ShadeWindow()

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

Definition at line 480 of file xwrapper.cpp.

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

◆ ShouldShow()

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

Definition at line 324 of file xwrapper.cpp.

◆ Subscribe()

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

Definition at line 354 of file xwrapper.cpp.

◆ Sync()

void LC::Util::XWrapper::Sync ( )

Definition at line 154 of file xwrapper.cpp.

◆ UnmaximizeWindow()

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

Definition at line 467 of file xwrapper.cpp.

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

◆ UnshadeWindow()

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

Definition at line 486 of file xwrapper.cpp.

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

◆ windowActionsChanged

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

◆ windowDesktopChanged

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

◆ windowIconChanged

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

◆ windowListChanged

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

◆ windowNameChanged

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

◆ windowStateChanged

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

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