KDecoration2::DecoratedClient

Search for usage in LXR

KDecoration2::DecoratedClient Class Reference

#include <decoratedclient.h>

Inheritance diagram for KDecoration2::DecoratedClient:

Properties

bool active
 
Qt::Edges adjacentScreenEdges
 
bool applicationMenuActive
 
QString caption
 
bool closeable
 
KDecoration2::Decorationdecoration
 
bool hasApplicationMenu
 
int height
 
QIcon icon
 
bool keepAbove
 
bool keepBelow
 
bool maximizeable
 
bool maximized
 
bool maximizedHorizontally
 
bool maximizedVertically
 
bool minimizeable
 
bool modal
 
bool moveable
 
bool onAllDesktops
 
QPalette palette
 
bool providesContextHelp
 
bool resizeable
 
bool shadeable
 
bool shaded
 
QSize size
 
int width
 
- Properties inherited from QObject
 objectName
 

Signals

void activeChanged (bool)
 
void adjacentScreenEdgesChanged (Qt::Edges edges)
 
void applicationMenuActiveChanged (bool)
 
void captionChanged (QString)
 
void closeableChanged (bool)
 
void hasApplicationMenuChanged (bool)
 
void heightChanged (int)
 
void iconChanged (QIcon)
 
void keepAboveChanged (bool)
 
void keepBelowChanged (bool)
 
void maximizeableChanged (bool)
 
void maximizedChanged (bool)
 
void maximizedHorizontallyChanged (bool)
 
void maximizedVerticallyChanged (bool)
 
void minimizeableChanged (bool)
 
void moveableChanged (bool)
 
void onAllDesktopsChanged (bool)
 
void paletteChanged (const QPalette &palette)
 
void providesContextHelpChanged (bool)
 
void resizeableChanged (bool)
 
void shadeableChanged (bool)
 
void shadedChanged (bool)
 
void sizeChanged (const QSize &size)
 
void widthChanged (int)
 

Public Member Functions

Qt::Edges adjacentScreenEdges () const
 
QString caption () const
 
QColor color (ColorGroup group, ColorRole role) const
 
QColor color (QPalette::ColorGroup group, QPalette::ColorRole role) const
 
Decorationdecoration () const
 
WId decorationId () const
 
bool hasApplicationMenu () const
 
int height () const
 
QIcon icon () const
 
bool isActive () const
 
bool isApplicationMenuActive () const
 
bool isCloseable () const
 
bool isKeepAbove () const
 
bool isKeepBelow () const
 
bool isMaximizeable () const
 
bool isMaximized () const
 
bool isMaximizedHorizontally () const
 
bool isMaximizedVertically () const
 
bool isMinimizeable () const
 
bool isModal () const
 
bool isMoveable () const
 
bool isOnAllDesktops () const
 
bool isResizeable () const
 
bool isShadeable () const
 
bool isShaded () const
 
QPalette palette () const
 
bool providesContextHelp () const
 
void showApplicationMenu (int actionId)
 
QSize size () const
 
int width () const
 
QString windowClass () const
 
WId windowId () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Public Types inherited from QObject
typedef  QObjectList
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The Client which gets decorated.

The DecoratedClient provides access to all the properties relevant for decorating the Client. Each DecoratedClient is bound to one Decoration and each Decoration is bound to this one DecoratedClient.

The DecoratedClient only exports properties, it does not provide any means to change the state. To change state one needs to call the methods on Decoration. This is as the backend might disallow state changes. Therefore any changes should be bound to the change signals of the DecoratedClient and not be bound to state changes of input elements (such as a button).

Definition at line 38 of file decoratedclient.h.

Property Documentation

◆ active

bool KDecoration2::DecoratedClient::active
read

Whether the DecoratedClient is active (has focus) or is inactive.

Definition at line 48 of file decoratedclient.h.

◆ adjacentScreenEdges

Qt::Edges KDecoration2::DecoratedClient::adjacentScreenEdges
read

The Edges which are adjacent to a screen edge.

E.g. for a maximized DecoratedClient this will include all Edges. The Decoration can use this information to hide borders.

Definition at line 152 of file decoratedclient.h.

◆ applicationMenuActive

bool KDecoration2::DecoratedClient::applicationMenuActive
read

Whether the application menu for this DecoratedClient is currently shown to the user The Decoration can use this information to highlight the respective button.

Since
5.9

Definition at line 163 of file decoratedclient.h.

◆ caption

QString KDecoration2::DecoratedClient::caption
read

The caption of the DecoratedClient.

Definition at line 52 of file decoratedclient.h.

◆ closeable

bool KDecoration2::DecoratedClient::closeable
read

Whether the DecoratedClient can be closed.

If this property is false a DecorationButton for closing the DecoratedClient should be disabled.

Definition at line 97 of file decoratedclient.h.

◆ decoration

KDecoration2::Decoration * KDecoration2::DecoratedClient::decoration
read

The Decoration of this DecoratedClient.

Definition at line 44 of file decoratedclient.h.

◆ hasApplicationMenu

bool KDecoration2::DecoratedClient::hasApplicationMenu
read

Whether the DecoratedClient has an application menu.

Since
5.9

Definition at line 157 of file decoratedclient.h.

◆ height

int KDecoration2::DecoratedClient::height
read

The height of the DecoratedClient.

Definition at line 138 of file decoratedclient.h.

◆ icon

QIcon KDecoration2::DecoratedClient::icon
read

The icon of the DecoratedClient.

This can be used as the icon for the window menu button.

Definition at line 65 of file decoratedclient.h.

◆ keepAbove

bool KDecoration2::DecoratedClient::keepAbove
read

Whether the DecoratedClient is set to be kept above other DecoratedClients.

There can be multiple DecoratedClients which are set to be kept above.

Definition at line 86 of file decoratedclient.h.

◆ keepBelow

bool KDecoration2::DecoratedClient::keepBelow
read

Whether the DecoratedClient is set to be kept below other DecoratedClients.

There can be multiple DecoratedClients which are set to be kept below.

Definition at line 91 of file decoratedclient.h.

◆ maximizeable

bool KDecoration2::DecoratedClient::maximizeable
read

Whether the DecoratedClient can be maximized.

If this property is false a DecorationButton for maximizing the DecoratedClient should be disabled.

Definition at line 102 of file decoratedclient.h.

◆ maximized

bool KDecoration2::DecoratedClient::maximized
read

Whether the DecoratedClient is maximized.

A DecoratedClient is maximized if it is both maximizedHorizontally and maximizedVertically. The Decoration of a maximized DecoratedClient should only consist of the title bar area.

Definition at line 71 of file decoratedclient.h.

◆ maximizedHorizontally

bool KDecoration2::DecoratedClient::maximizedHorizontally
read

Whether the DecoratedClient is maximized horizontally.

A horizontally maximized DecoratedClient uses the maximal possible width.

Definition at line 76 of file decoratedclient.h.

◆ maximizedVertically

bool KDecoration2::DecoratedClient::maximizedVertically
read

Whether the DecoratedClient is maximized vertically.

A vertically maximized DecoratedClient uses the maximal possible height.

Definition at line 81 of file decoratedclient.h.

◆ minimizeable

bool KDecoration2::DecoratedClient::minimizeable
read

Whether the DecoratedClient can be minimized.

If this property is false a DecorationButton for minimizing the DecoratedClient should be disabled.

Definition at line 107 of file decoratedclient.h.

◆ modal

bool KDecoration2::DecoratedClient::modal
read

Whether the DecoratedClient is a modal dialog.

Definition at line 116 of file decoratedclient.h.

◆ moveable

bool KDecoration2::DecoratedClient::moveable
read

Whether the DecoratedClient can be moved.

Definition at line 125 of file decoratedclient.h.

◆ onAllDesktops

bool KDecoration2::DecoratedClient::onAllDesktops
read

Whether the DecoratedClient is on all desktops or on just one.

Definition at line 56 of file decoratedclient.h.

◆ palette

QPalette KDecoration2::DecoratedClient::palette
read

The palette this DecoratedClient uses.

The palette might be different for each DecoratedClient and the Decoration should honor the palette.

Definition at line 147 of file decoratedclient.h.

◆ providesContextHelp

bool KDecoration2::DecoratedClient::providesContextHelp
read

Whether the DecoratedClient provides context help.

The Decoration should only show a context help button if this property is true.

Definition at line 112 of file decoratedclient.h.

◆ resizeable

bool KDecoration2::DecoratedClient::resizeable
read

Whether the DecoratedClient can be resized.

Definition at line 129 of file decoratedclient.h.

◆ shadeable

bool KDecoration2::DecoratedClient::shadeable
read

Whether the DecoratedClient can be shaded.

If this property is false a DecorationButton for shading the DecoratedClient should be disabled.

Definition at line 121 of file decoratedclient.h.

◆ shaded

bool KDecoration2::DecoratedClient::shaded
read

Whether the DecoratedClient is shaded.

Shaded means that the actual content is not visible, only the Decoration is visible.

Definition at line 61 of file decoratedclient.h.

◆ size

QSize KDecoration2::DecoratedClient::size
read

The size of the DecoratedClient.

Definition at line 142 of file decoratedclient.h.

◆ width

int KDecoration2::DecoratedClient::width
read

The width of the DecoratedClient.

Definition at line 134 of file decoratedclient.h.

Member Function Documentation

◆ adjacentScreenEdges()

Qt::Edges KDecoration2::DecoratedClient::adjacentScreenEdges ( ) const

Definition at line 142 of file decoratedclient.cpp.

◆ caption()

QString KDecoration2::DecoratedClient::caption ( ) const

Definition at line 27 of file decoratedclient.cpp.

◆ color() [1/2]

QColor KDecoration2::DecoratedClient::color ( ColorGroup group,
ColorRole role ) const

Used to get additional colors that are not in QPalette.

Parameters
groupThe color group
roleThe color role
Returns
The color if provided for combination of group and role, otherwise invalid QColor.
Since
5.3

Definition at line 178 of file decoratedclient.cpp.

◆ color() [2/2]

QColor KDecoration2::DecoratedClient::color ( QPalette::ColorGroup group,
QPalette::ColorRole role ) const

Used to get colors in QPalette.

Parameters
groupThe color group
roleThe color role
Returns
palette().color(group, role)
Since
5.3

Definition at line 173 of file decoratedclient.cpp.

◆ decoration()

Decoration * KDecoration2::DecoratedClient::decoration ( ) const

Definition at line 168 of file decoratedclient.cpp.

◆ decorationId()

WId KDecoration2::DecoratedClient::decorationId ( ) const

Definition at line 117 of file decoratedclient.cpp.

◆ hasApplicationMenu()

bool KDecoration2::DecoratedClient::hasApplicationMenu ( ) const

Whether the DecoratedClient has an application menu.

Since
5.9

Definition at line 152 of file decoratedclient.cpp.

◆ height()

int KDecoration2::DecoratedClient::height ( ) const

Definition at line 127 of file decoratedclient.cpp.

◆ icon()

QIcon KDecoration2::DecoratedClient::icon ( ) const

Definition at line 42 of file decoratedclient.cpp.

◆ isActive()

bool KDecoration2::DecoratedClient::isActive ( ) const

Definition at line 22 of file decoratedclient.cpp.

◆ isApplicationMenuActive()

bool KDecoration2::DecoratedClient::isApplicationMenuActive ( ) const

Whether the application menu for this DecoratedClient is currently shown to the user The Decoration can use this information to highlight the respective button.

Since
5.9

Definition at line 160 of file decoratedclient.cpp.

◆ isCloseable()

bool KDecoration2::DecoratedClient::isCloseable ( ) const

Definition at line 72 of file decoratedclient.cpp.

◆ isKeepAbove()

bool KDecoration2::DecoratedClient::isKeepAbove ( ) const

Definition at line 62 of file decoratedclient.cpp.

◆ isKeepBelow()

bool KDecoration2::DecoratedClient::isKeepBelow ( ) const

Definition at line 67 of file decoratedclient.cpp.

◆ isMaximizeable()

bool KDecoration2::DecoratedClient::isMaximizeable ( ) const

Definition at line 77 of file decoratedclient.cpp.

◆ isMaximized()

bool KDecoration2::DecoratedClient::isMaximized ( ) const

Definition at line 47 of file decoratedclient.cpp.

◆ isMaximizedHorizontally()

bool KDecoration2::DecoratedClient::isMaximizedHorizontally ( ) const

Definition at line 52 of file decoratedclient.cpp.

◆ isMaximizedVertically()

bool KDecoration2::DecoratedClient::isMaximizedVertically ( ) const

Definition at line 57 of file decoratedclient.cpp.

◆ isMinimizeable()

bool KDecoration2::DecoratedClient::isMinimizeable ( ) const

Definition at line 82 of file decoratedclient.cpp.

◆ isModal()

bool KDecoration2::DecoratedClient::isModal ( ) const

Definition at line 92 of file decoratedclient.cpp.

◆ isMoveable()

bool KDecoration2::DecoratedClient::isMoveable ( ) const

Definition at line 102 of file decoratedclient.cpp.

◆ isOnAllDesktops()

bool KDecoration2::DecoratedClient::isOnAllDesktops ( ) const

Definition at line 32 of file decoratedclient.cpp.

◆ isResizeable()

bool KDecoration2::DecoratedClient::isResizeable ( ) const

Definition at line 107 of file decoratedclient.cpp.

◆ isShadeable()

bool KDecoration2::DecoratedClient::isShadeable ( ) const

Definition at line 97 of file decoratedclient.cpp.

◆ isShaded()

bool KDecoration2::DecoratedClient::isShaded ( ) const

Definition at line 37 of file decoratedclient.cpp.

◆ palette()

QPalette KDecoration2::DecoratedClient::palette ( ) const

Definition at line 137 of file decoratedclient.cpp.

◆ providesContextHelp()

bool KDecoration2::DecoratedClient::providesContextHelp ( ) const

Definition at line 87 of file decoratedclient.cpp.

◆ showApplicationMenu()

void KDecoration2::DecoratedClient::showApplicationMenu ( int actionId)

Request the application menu to be shown to the user.

Parameters
actionIdThe DBus menu ID of the action that should be highlighted, 0 for none.

Definition at line 183 of file decoratedclient.cpp.

◆ size()

QSize KDecoration2::DecoratedClient::size ( ) const

Definition at line 132 of file decoratedclient.cpp.

◆ width()

int KDecoration2::DecoratedClient::width ( ) const

Definition at line 122 of file decoratedclient.cpp.

◆ windowClass()

QString KDecoration2::DecoratedClient::windowClass ( ) const

Definition at line 147 of file decoratedclient.cpp.

◆ windowId()

WId KDecoration2::DecoratedClient::windowId ( ) const

Definition at line 112 of file decoratedclient.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.