webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Attributes | List of all members
WebCore::PlatformMouseEvent Class Reference

#include <PlatformMouseEvent.h>

Inheritance diagram for WebCore::PlatformMouseEvent:
WebCore::PlatformEvent WebCore::PlatformEvent WebCore::PlatformMouseEventBuilder WebCore::PlatformMouseEventBuilder WebKit::WebKit2PlatformMouseEvent

Public Member Functions

 PlatformMouseEvent ()
 
 PlatformMouseEvent (const IntPoint &position, const IntPoint &globalPosition, MouseButton button, PlatformEvent::Type type, int clickCount, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp, double force, SyntheticClickType syntheticClickType)
 
const IntPoint & position () const
 
const IntPoint & globalPosition () const
 
MouseButton button () const
 
int clickCount () const
 
unsigned modifierFlags () const
 
double force () const
 
SyntheticClickType syntheticClickType () const
 
 PlatformMouseEvent ()
 
 PlatformMouseEvent (const IntPoint &position, const IntPoint &globalPosition, MouseButton button, PlatformEvent::Type type, int clickCount, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp, double force, SyntheticClickType syntheticClickType)
 
const IntPoint & position () const
 
const IntPoint & globalPosition () const
 
MouseButton button () const
 
int clickCount () const
 
unsigned modifierFlags () const
 
double force () const
 
SyntheticClickType syntheticClickType () const
 
- Public Member Functions inherited from WebCore::PlatformEvent
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifier > modifiers () const
 
double timestamp () const
 
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifier > modifiers () const
 
double timestamp () const
 

Protected Attributes

IntPoint m_position
 
IntPoint m_globalPosition
 
MouseButton m_button
 
int m_clickCount
 
unsigned m_modifierFlags
 
double m_force { 0 }
 
SyntheticClickType m_syntheticClickType { NoTap }
 
- Protected Attributes inherited from WebCore::PlatformEvent
unsigned m_type
 
OptionSet< Modifier > m_modifiers
 
double m_timestamp
 

Additional Inherited Members

- Public Types inherited from WebCore::PlatformEvent
enum  Type : uint8_t {
  NoType = 0, KeyDown, KeyUp, RawKeyDown,
  Char, MouseMoved, MousePressed, MouseReleased,
  MouseForceChanged, MouseForceDown, MouseForceUp, MouseScroll,
  Wheel, NoType = 0, KeyDown, KeyUp,
  RawKeyDown, Char, MouseMoved, MousePressed,
  MouseReleased, MouseForceChanged, MouseForceDown, MouseForceUp,
  MouseScroll, Wheel
}
 
enum  Modifier {
  Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2, Modifier::ShiftKey = 1 << 3,
  Modifier::CapsLockKey = 1 << 4, Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2,
  Modifier::ShiftKey = 1 << 3, Modifier::CapsLockKey = 1 << 4
}
 
enum  Type : uint8_t {
  NoType = 0, KeyDown, KeyUp, RawKeyDown,
  Char, MouseMoved, MousePressed, MouseReleased,
  MouseForceChanged, MouseForceDown, MouseForceUp, MouseScroll,
  Wheel, NoType = 0, KeyDown, KeyUp,
  RawKeyDown, Char, MouseMoved, MousePressed,
  MouseReleased, MouseForceChanged, MouseForceDown, MouseForceUp,
  MouseScroll, Wheel
}
 
enum  Modifier {
  Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2, Modifier::ShiftKey = 1 << 3,
  Modifier::CapsLockKey = 1 << 4, Modifier::AltKey = 1 << 0, Modifier::CtrlKey = 1 << 1, Modifier::MetaKey = 1 << 2,
  Modifier::ShiftKey = 1 << 3, Modifier::CapsLockKey = 1 << 4
}
 
- Protected Member Functions inherited from WebCore::PlatformEvent
 PlatformEvent ()
 
 PlatformEvent (Type type)
 
 PlatformEvent (Type type, OptionSet< Modifier > modifiers, double timestamp)
 
 PlatformEvent (Type type, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp)
 
 ~PlatformEvent ()
 
 PlatformEvent ()
 
 PlatformEvent (Type type)
 
 PlatformEvent (Type type, OptionSet< Modifier > modifiers, double timestamp)
 
 PlatformEvent (Type type, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey, double timestamp)
 
 ~PlatformEvent ()
 

Constructor & Destructor Documentation

◆ PlatformMouseEvent() [1/4]

WebCore::PlatformMouseEvent::PlatformMouseEvent ( )
inline

◆ PlatformMouseEvent() [2/4]

WebCore::PlatformMouseEvent::PlatformMouseEvent ( const IntPoint &  position,
const IntPoint &  globalPosition,
MouseButton  button,
PlatformEvent::Type  type,
int  clickCount,
bool  shiftKey,
bool  ctrlKey,
bool  altKey,
bool  metaKey,
double  timestamp,
double  force,
SyntheticClickType  syntheticClickType 
)
inline

◆ PlatformMouseEvent() [3/4]

WebCore::PlatformMouseEvent::PlatformMouseEvent ( )
inline

◆ PlatformMouseEvent() [4/4]

WebCore::PlatformMouseEvent::PlatformMouseEvent ( const IntPoint &  position,
const IntPoint &  globalPosition,
MouseButton  button,
PlatformEvent::Type  type,
int  clickCount,
bool  shiftKey,
bool  ctrlKey,
bool  altKey,
bool  metaKey,
double  timestamp,
double  force,
SyntheticClickType  syntheticClickType 
)
inline

Member Function Documentation

◆ button() [1/2]

MouseButton WebCore::PlatformMouseEvent::button ( ) const
inline

◆ button() [2/2]

MouseButton WebCore::PlatformMouseEvent::button ( ) const
inline

◆ clickCount() [1/2]

int WebCore::PlatformMouseEvent::clickCount ( ) const
inline

◆ clickCount() [2/2]

int WebCore::PlatformMouseEvent::clickCount ( ) const
inline

◆ force() [1/2]

double WebCore::PlatformMouseEvent::force ( ) const
inline

◆ force() [2/2]

double WebCore::PlatformMouseEvent::force ( ) const
inline

◆ globalPosition() [1/2]

const IntPoint& WebCore::PlatformMouseEvent::globalPosition ( ) const
inline

◆ globalPosition() [2/2]

const IntPoint& WebCore::PlatformMouseEvent::globalPosition ( ) const
inline

◆ modifierFlags() [1/2]

unsigned WebCore::PlatformMouseEvent::modifierFlags ( ) const
inline

◆ modifierFlags() [2/2]

unsigned WebCore::PlatformMouseEvent::modifierFlags ( ) const
inline

◆ position() [1/2]

const IntPoint& WebCore::PlatformMouseEvent::position ( ) const
inline

◆ position() [2/2]

const IntPoint& WebCore::PlatformMouseEvent::position ( ) const
inline

◆ syntheticClickType() [1/2]

SyntheticClickType WebCore::PlatformMouseEvent::syntheticClickType ( ) const
inline

◆ syntheticClickType() [2/2]

SyntheticClickType WebCore::PlatformMouseEvent::syntheticClickType ( ) const
inline

Member Data Documentation

◆ m_button

MouseButton WebCore::PlatformMouseEvent::m_button
protected

◆ m_clickCount

int WebCore::PlatformMouseEvent::m_clickCount
protected

◆ m_force

double WebCore::PlatformMouseEvent::m_force { 0 }
protected

◆ m_globalPosition

IntPoint WebCore::PlatformMouseEvent::m_globalPosition
protected

◆ m_modifierFlags

unsigned WebCore::PlatformMouseEvent::m_modifierFlags
protected

◆ m_position

IntPoint WebCore::PlatformMouseEvent::m_position
protected

◆ m_syntheticClickType

SyntheticClickType WebCore::PlatformMouseEvent::m_syntheticClickType { NoTap }
protected

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