MythGestureEvent Class Reference

#include <mythgesture.h>

List of all members.


Detailed Description

A custom event that represents a mouse gesture.

Definition at line 39 of file mythgesture.h.


Public Types

enum  Gesture {
  Up, Down, Left, Right,
  UpLeft, UpRight, DownLeft, DownRight,
  UpThenLeft, UpThenRight, DownThenLeft, DownThenRight,
  LeftThenUp, LeftThenDown, RightThenUp, RightThenDown,
  Click, MaxGesture
}
 The types of gestures supported by myth. More...

Public Member Functions

 MythGestureEvent (size_t gesture)
 Create a myth gesture.
int gesture (void) const
 Get the gesture type.
 operator QString () const
 Get the symbolic name of the gesture.

Private Attributes

size_t _gesture

Member Enumeration Documentation

The types of gestures supported by myth.

Enumerator:
Up 
Down 
Left 
Right 
UpLeft 
UpRight 
DownLeft 
DownRight 
UpThenLeft 
UpThenRight 
DownThenLeft 
DownThenRight 
LeftThenUp 
LeftThenDown 
RightThenUp 
RightThenDown 
Click 
MaxGesture 

Definition at line 45 of file mythgesture.h.


Constructor & Destructor Documentation

MythGestureEvent::MythGestureEvent ( size_t  gesture  )  [inline]

Create a myth gesture.

Parameters:
type The gesture type, as per the Type enumeration.
See also:
Type

Definition at line 81 of file mythgesture.h.


Member Function Documentation

int MythGestureEvent::gesture ( void   )  const [inline]

Get the gesture type.

Returns:
The gesture value corresponding to the Gesture enumeration.

Definition at line 91 of file mythgesture.h.

Referenced by MythMainWindow::eventFilter(), MythThemedMenuPrivate::gestureEvent(), MythListButton::gestureEvent(), and MythMainWindow::mouseTimeout().

MythGestureEvent::operator QString (  )  const

Get the symbolic name of the gesture.

Returns:
A string containing the symbolic name of the gesture.

Definition at line 357 of file mythgesture.cpp.


Member Data Documentation

size_t MythGestureEvent::_gesture [private]

Definition at line 101 of file mythgesture.h.

Referenced by gesture(), MythGestureEvent(), and operator QString().


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

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5