KDEUI
#include <kgesture.h>
Public Member Functions | |
KRockerGesture () | |
KRockerGesture (enum Qt::MouseButton hold, enum Qt::MouseButton thenPush) | |
KRockerGesture (const QString &description) | |
KRockerGesture (const KRockerGesture &other) | |
~KRockerGesture () | |
void | getButtons (Qt::MouseButton *hold, Qt::MouseButton *thenPush) const |
uint | hashable () const |
bool | isValid () const |
bool | operator!= (const KRockerGesture &other) const |
KRockerGesture & | operator= (const KRockerGesture &other) |
bool | operator== (const KRockerGesture &other) const |
QString | rockerName () const |
void | setButtons (Qt::MouseButton hold, Qt::MouseButton thenPush) |
QString | toString () const |
Static Public Member Functions | |
static QString | mouseButtonName (Qt::MouseButton button) |
Detailed Description
Definition at line 152 of file kgesture.h.
Constructor & Destructor Documentation
KRockerGesture::KRockerGesture | ( | ) |
Create a new invalid rocker gesture.
Definition at line 416 of file kgesture.cpp.
KRockerGesture::KRockerGesture | ( | enum Qt::MouseButton | hold, |
enum Qt::MouseButton | thenPush | ||
) |
Creates a new gesture consisting of given buttons.
- Parameters
-
description create gesture according to this
Definition at line 422 of file kgesture.cpp.
KRockerGesture::KRockerGesture | ( | const QString & | description | ) |
Creates a new gesture from a string description.
- Parameters
-
description create gesture according to this
Definition at line 429 of file kgesture.cpp.
KRockerGesture::KRockerGesture | ( | const KRockerGesture & | other | ) |
Copies the given gesture.
- Parameters
-
other gesture to copy
Definition at line 464 of file kgesture.cpp.
KRockerGesture::~KRockerGesture | ( | ) |
Destructor.
Definition at line 470 of file kgesture.cpp.
Member Function Documentation
void KRockerGesture::getButtons | ( | Qt::MouseButton * | hold, |
Qt::MouseButton * | thenPush | ||
) | const |
Write the button combination to hold and thenPush.
Definition at line 506 of file kgesture.cpp.
uint KRockerGesture::hashable | ( | ) | const |
Return an opaque value for use in hash tables.
Definition at line 602 of file kgesture.cpp.
bool KRockerGesture::isValid | ( | ) | const |
Return true if this gesture is valid.
Definition at line 544 of file kgesture.cpp.
|
static |
Return a user-friendly name for the mouse button button.
Definition at line 513 of file kgesture.cpp.
bool KRockerGesture::operator!= | ( | const KRockerGesture & | other | ) | const |
Return the opposite of operator==()
Definition at line 597 of file kgesture.cpp.
KRockerGesture & KRockerGesture::operator= | ( | const KRockerGesture & | other | ) |
Set this gesture to the other gesture.
Definition at line 584 of file kgesture.cpp.
bool KRockerGesture::operator== | ( | const KRockerGesture & | other | ) | const |
Return whether this gesture is equal to the other gesture.
Definition at line 592 of file kgesture.cpp.
QString KRockerGesture::rockerName | ( | ) | const |
Return a user-friendly name of the button combination.
Definition at line 532 of file kgesture.cpp.
void KRockerGesture::setButtons | ( | Qt::MouseButton | hold, |
Qt::MouseButton | thenPush | ||
) |
set button combination to trigger
Definition at line 476 of file kgesture.cpp.
QString KRockerGesture::toString | ( | ) | const |
Return a string representation of this gesture.
Return an empty string if invalid. This function is mainly for use with config files.
- See also
- rockerName()
Definition at line 550 of file kgesture.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.