MythGestureEvent Class Reference

A custom event that represents a mouse gesture. More...

#include <mythgesture.h>

List of all members.

Public Types

enum  Gesture {
  Unknown, 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...
enum  Button {
  NoButton, LeftButton, RightButton, MiddleButton,
  Aux1Button, Aux2Button
}

Public Member Functions

 MythGestureEvent (Gesture gesture, Button button=LeftButton)
 Create a MythGesture.
Gesture gesture (void) const
 Get the gesture type.
 operator QString () const
 Get the symbolic name of the gesture.
void SetPosition (QPoint position)
QPoint GetPosition () const
void SetButton (Button button)
Button GetButton (void) const

Static Public Attributes

static Type kEventType

Private Attributes

Gesture m_gesture
QPoint m_position
Button m_button

Detailed Description

A custom event that represents a mouse gesture.

Definition at line 38 of file mythgesture.h.


Member Enumeration Documentation

The types of gestures supported by myth.

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

Definition at line 44 of file mythgesture.h.

Enumerator:
NoButton 
LeftButton 
RightButton 
MiddleButton 
Aux1Button 
Aux2Button 

Definition at line 76 of file mythgesture.h.


Constructor & Destructor Documentation

MythGestureEvent::MythGestureEvent ( Gesture  gesture,
Button  button = LeftButton 
) [inline]

Create a MythGesture.

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

Definition at line 90 of file mythgesture.h.


Member Function Documentation

Gesture MythGestureEvent::gesture ( void   )  const [inline]
MythGestureEvent::operator QString (  )  const

Get the symbolic name of the gesture.

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

Definition at line 355 of file mythgesture.cpp.

void MythGestureEvent::SetPosition ( QPoint  position  )  [inline]

Definition at line 111 of file mythgesture.h.

Referenced by MythMainWindow::eventFilter().

QPoint MythGestureEvent::GetPosition (  )  const [inline]

Definition at line 112 of file mythgesture.h.

Referenced by MythScreenType::gestureEvent().

void MythGestureEvent::SetButton ( Button  button  )  [inline]

Definition at line 114 of file mythgesture.h.

Referenced by MythMainWindow::eventFilter().

Button MythGestureEvent::GetButton ( void   )  const [inline]

Definition at line 115 of file mythgesture.h.

Referenced by MythScreenType::gestureEvent(), and MythDialogBox::gestureEvent().


Member Data Documentation

QEvent::Type MythGestureEvent::kEventType [static]
Initial value:
    (QEvent::Type) QEvent::registerEventType()

Definition at line 117 of file mythgesture.h.

Referenced by MythMainWindow::customEvent().

Definition at line 120 of file mythgesture.h.

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

QPoint MythGestureEvent::m_position [private]

Definition at line 121 of file mythgesture.h.

Referenced by GetPosition(), MythGestureEvent(), and SetPosition().

Definition at line 122 of file mythgesture.h.

Referenced by GetButton(), MythGestureEvent(), and SetButton().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Thu May 23 06:43:29 2013 for MythTV by  doxygen 1.6.3