• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWinLibraries

KCommonDecorationButton Class Reference
[KWin decorations library]

#include <kcommondecoration.h>

Inheritance diagram for KCommonDecorationButton:

Inheritance graph
[legend]

List of all members.


Detailed Description

Title bar buttons of KCommonDecoration need to inherit this class.

Definition at line 368 of file kcommondecoration.h.


Public Types

enum  {
  ManualReset = 1 << 0, SizeChange = 1 << 1, ToggleChange = 1 << 2, StateChange = 1 << 3,
  IconChange = 1 << 4, DecorationReset = 1 << 5
}

Public Member Functions

KCommonDecoration * decoration () const
bool isLeft () const
 KCommonDecorationButton (ButtonType type, KCommonDecoration *parent)
Qt::MouseButtons lastMousePress () const
virtual void reset (unsigned long changed)=0
void setRealizeButtons (int btns)
void setSize (const QSize &s)
void setTipText (const QString &tip)
QSize sizeHint () const
ButtonType type () const
virtual ~KCommonDecorationButton ()

Protected Member Functions

void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void setLeft (bool left)
void setOn (bool on)
void setToggleButton (bool toggle)

Member Enumeration Documentation

anonymous enum

These flags specify what has changed, e.g.

the reason for a reset().

Enumerator:
ManualReset  The button might want to do a full reset for some reason...
SizeChange  The button size changed.

See also:
setSize()
ToggleChange  The button toggle state has changed.

See also:
setToggleButton()
StateChange  The button has been set pressed or not...

See also:
setOn()
IconChange  The window icon has been changed.
DecorationReset  E.g. when decoration colors have changed.

Definition at line 381 of file kcommondecoration.h.


Member Function Documentation

Qt::MouseButtons KCommonDecorationButton::lastMousePress (  )  const [inline]

The mouse button that has been clicked last time.

Definition at line 424 of file kcommondecoration.h.

virtual void KCommonDecorationButton::reset ( unsigned long  changed  )  [pure virtual]

Initialize the button after size change etc.


The documentation for this class was generated from the following files:
  • kcommondecoration.h
  • kcommondecoration.cpp

KWinLibraries

Skip menu "KWinLibraries"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal