KWin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
KWin::Rules Class Reference

#include <rules.h>

Public Types

enum  Type {
  Position = 1 << 0 , Size = 1 << 1 , Desktops = 1 << 2 , MaximizeVert = 1 << 3 ,
  MaximizeHoriz = 1 << 4 , Minimize = 1 << 5 , Shade = 1 << 6 , SkipTaskbar = 1 << 7 ,
  SkipPager = 1 << 8 , SkipSwitcher = 1 << 9 , Above = 1 << 10 , Below = 1 << 11 ,
  Fullscreen = 1 << 12 , NoBorder = 1 << 13 , OpacityActive = 1 << 14 , OpacityInactive = 1 << 15 ,
  Activity = 1 << 16 , Screen = 1 << 17 , DesktopFile = 1 << 18 , Layer = 1 << 19 ,
  All = 0xffffffff
}
 
enum  {
  Unused = 0 , DontAffect , Force , Apply ,
  Remember , ApplyNow , ForceTemporarily
}
 
enum  StringMatch {
  FirstStringMatch , UnimportantMatch = FirstStringMatch , ExactMatch , SubstringMatch ,
  RegExpMatch , LastStringMatch = RegExpMatch
}
 
enum  SetRule { UnusedSetRule = Unused , SetRuleDummy = 256 }
 
enum  ForceRule { UnusedForceRule = Unused , ForceRuleDummy = 256 }
 

Public Member Functions

 Rules ()
 
 Rules (const RuleSettings *)
 
void write (RuleSettings *) const
 
bool isEmpty () const
 
bool discardUsed (bool withdrawn)
 
bool match (const Window *c) const
 
bool update (Window *, int selection)
 
bool applyPlacement (PlacementPolicy &placement) const
 
bool applyGeometry (QRectF &rect, bool init) const
 
bool applyPosition (QPointF &pos, bool init) const
 
bool applySize (QSizeF &s, bool init) const
 
bool applyMinSize (QSizeF &s) const
 
bool applyMaxSize (QSizeF &s) const
 
bool applyOpacityActive (int &s) const
 
bool applyOpacityInactive (int &s) const
 
bool applyIgnoreGeometry (bool &ignore, bool init) const
 
bool applyDesktops (QList< VirtualDesktop * > &desktops, bool init) const
 
bool applyScreen (int &desktop, bool init) const
 
bool applyActivity (QStringList &activity, bool init) const
 
bool applyMaximizeVert (MaximizeMode &mode, bool init) const
 
bool applyMaximizeHoriz (MaximizeMode &mode, bool init) const
 
bool applyMinimize (bool &minimized, bool init) const
 
bool applyShade (ShadeMode &shade, bool init) const
 
bool applySkipTaskbar (bool &skip, bool init) const
 
bool applySkipPager (bool &skip, bool init) const
 
bool applySkipSwitcher (bool &skip, bool init) const
 
bool applyKeepAbove (bool &above, bool init) const
 
bool applyKeepBelow (bool &below, bool init) const
 
bool applyFullScreen (bool &fs, bool init) const
 
bool applyNoBorder (bool &noborder, bool init) const
 
bool applyDecoColor (QString &schemeFile) const
 
bool applyBlockCompositing (bool &block) const
 
bool applyFSP (int &fsp) const
 
bool applyFPP (int &fpp) const
 
bool applyAcceptFocus (bool &focus) const
 
bool applyCloseable (bool &closeable) const
 
bool applyAutogrouping (bool &autogroup) const
 
bool applyAutogroupInForeground (bool &fg) const
 
bool applyAutogroupById (QString &id) const
 
bool applyStrictGeometry (bool &strict) const
 
bool applyShortcut (QString &shortcut, bool init) const
 
bool applyDisableGlobalShortcuts (bool &disable) const
 
bool applyDesktopFile (QString &desktopFile, bool init) const
 
bool applyLayer (enum Layer &layer) const
 
bool applyAdaptiveSync (bool &adaptivesync) const
 

Friends

QDebug & operator<< (QDebug &stream, const Rules *)
 

Detailed Description

Definition at line 90 of file rules.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Unused 
DontAffect 
Force 
Apply 
Remember 
ApplyNow 
ForceTemporarily 

Definition at line 120 of file rules.h.

◆ ForceRule

Enumerator
UnusedForceRule 
ForceRuleDummy 

Definition at line 141 of file rules.h.

◆ SetRule

Enumerator
UnusedSetRule 
SetRuleDummy 

Definition at line 137 of file rules.h.

◆ StringMatch

Enumerator
FirstStringMatch 
UnimportantMatch 
ExactMatch 
SubstringMatch 
RegExpMatch 
LastStringMatch 

Definition at line 129 of file rules.h.

◆ Type

Enumerator
Position 
Size 
Desktops 
MaximizeVert 
MaximizeHoriz 
Minimize 
Shade 
SkipTaskbar 
SkipPager 
SkipSwitcher 
Above 
Below 
Fullscreen 
NoBorder 
OpacityActive 
OpacityInactive 
Activity 
Screen 
DesktopFile 
Layer 
All 

Definition at line 95 of file rules.h.

Constructor & Destructor Documentation

◆ Rules() [1/2]

KWin::Rules::Rules ( )

Definition at line 35 of file rules.cpp.

◆ Rules() [2/2]

KWin::Rules::Rules ( const RuleSettings * settings)
explicit

Definition at line 94 of file rules.cpp.

Member Function Documentation

◆ applyAcceptFocus()

bool KWin::Rules::applyAcceptFocus ( bool & focus) const

◆ applyActivity()

bool KWin::Rules::applyActivity ( QStringList & activity,
bool init ) const

◆ applyAdaptiveSync()

bool KWin::Rules::applyAdaptiveSync ( bool & adaptivesync) const

◆ applyAutogroupById()

bool KWin::Rules::applyAutogroupById ( QString & id) const

◆ applyAutogroupInForeground()

bool KWin::Rules::applyAutogroupInForeground ( bool & fg) const

◆ applyAutogrouping()

bool KWin::Rules::applyAutogrouping ( bool & autogroup) const

◆ applyBlockCompositing()

bool KWin::Rules::applyBlockCompositing ( bool & block) const

◆ applyCloseable()

bool KWin::Rules::applyCloseable ( bool & closeable) const

◆ applyDecoColor()

bool KWin::Rules::applyDecoColor ( QString & schemeFile) const

◆ applyDesktopFile()

bool KWin::Rules::applyDesktopFile ( QString & desktopFile,
bool init ) const

◆ applyDesktops()

bool KWin::Rules::applyDesktops ( QList< VirtualDesktop * > & desktops,
bool init ) const

Definition at line 580 of file rules.cpp.

◆ applyDisableGlobalShortcuts()

bool KWin::Rules::applyDisableGlobalShortcuts ( bool & disable) const

◆ applyFPP()

bool KWin::Rules::applyFPP ( int & fpp) const

◆ applyFSP()

bool KWin::Rules::applyFSP ( int & fsp) const

◆ applyFullScreen()

bool KWin::Rules::applyFullScreen ( bool & fs,
bool init ) const

◆ applyGeometry()

bool KWin::Rules::applyGeometry ( QRectF & rect,
bool init ) const

Definition at line 538 of file rules.cpp.

◆ applyIgnoreGeometry()

bool KWin::Rules::applyIgnoreGeometry ( bool & ignore,
bool init ) const

◆ applyKeepAbove()

bool KWin::Rules::applyKeepAbove ( bool & above,
bool init ) const

◆ applyKeepBelow()

bool KWin::Rules::applyKeepBelow ( bool & below,
bool init ) const

◆ applyLayer()

bool KWin::Rules::applyLayer ( enum Layer & layer) const

◆ applyMaximizeHoriz()

bool KWin::Rules::applyMaximizeHoriz ( MaximizeMode & mode,
bool init ) const

Definition at line 593 of file rules.cpp.

◆ applyMaximizeVert()

bool KWin::Rules::applyMaximizeVert ( MaximizeMode & mode,
bool init ) const

Definition at line 601 of file rules.cpp.

◆ applyMaxSize()

bool KWin::Rules::applyMaxSize ( QSizeF & s) const

◆ applyMinimize()

bool KWin::Rules::applyMinimize ( bool & minimized,
bool init ) const

◆ applyMinSize()

bool KWin::Rules::applyMinSize ( QSizeF & s) const

◆ applyNoBorder()

bool KWin::Rules::applyNoBorder ( bool & noborder,
bool init ) const

◆ applyOpacityActive()

bool KWin::Rules::applyOpacityActive ( int & s) const

◆ applyOpacityInactive()

bool KWin::Rules::applyOpacityInactive ( int & s) const

◆ applyPlacement()

bool KWin::Rules::applyPlacement ( PlacementPolicy & placement) const

◆ applyPosition()

bool KWin::Rules::applyPosition ( QPointF & pos,
bool init ) const

Definition at line 554 of file rules.cpp.

◆ applyScreen()

bool KWin::Rules::applyScreen ( int & desktop,
bool init ) const

◆ applyShade()

bool KWin::Rules::applyShade ( ShadeMode & shade,
bool init ) const

Definition at line 611 of file rules.cpp.

◆ applyShortcut()

bool KWin::Rules::applyShortcut ( QString & shortcut,
bool init ) const

◆ applySize()

bool KWin::Rules::applySize ( QSizeF & s,
bool init ) const

Definition at line 562 of file rules.cpp.

◆ applySkipPager()

bool KWin::Rules::applySkipPager ( bool & skip,
bool init ) const

◆ applySkipSwitcher()

bool KWin::Rules::applySkipSwitcher ( bool & skip,
bool init ) const

◆ applySkipTaskbar()

bool KWin::Rules::applySkipTaskbar ( bool & skip,
bool init ) const

◆ applyStrictGeometry()

bool KWin::Rules::applyStrictGeometry ( bool & strict) const

◆ discardUsed()

bool KWin::Rules::discardUsed ( bool withdrawn)

Definition at line 664 of file rules.cpp.

◆ isEmpty()

bool KWin::Rules::isEmpty ( ) const

Definition at line 248 of file rules.cpp.

◆ match()

bool KWin::Rules::match ( const Window * c) const

Definition at line 397 of file rules.cpp.

◆ update()

bool KWin::Rules::update ( Window * c,
int selection )

Definition at line 422 of file rules.cpp.

◆ write()

void KWin::Rules::write ( RuleSettings * settings) const

Definition at line 187 of file rules.cpp.

Friends And Related Symbol Documentation

◆ operator<<

QDebug & operator<< ( QDebug & stream,
const Rules *  )
friend

Definition at line 712 of file rules.cpp.


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