• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.2 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Static Public Member Functions
KRockerGesture Class Reference

#include <kgesture.h>

List of all members.

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:
descriptioncreate 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:
descriptioncreate gesture according to this

Definition at line 429 of file kgesture.cpp.

KRockerGesture::KRockerGesture ( const KRockerGesture &  other)

Copies the given gesture.

Parameters:
othergesture 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.

QString KRockerGesture::mouseButtonName ( Qt::MouseButton  button)
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:
  • kgesture.h
  • kgesture.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:26:21 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.2 API Reference

Skip menu "kdelibs-4.10.2 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal