webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebKit::WebMouseEvent Class Reference

#include <WebEvent.h>

Inheritance diagram for WebKit::WebMouseEvent:
WebKit::WebEvent WebKit::NativeWebMouseEvent

Public Types

enum  Button { NoButton = -1, LeftButton, MiddleButton, RightButton }
 
enum  SyntheticClickType { NoTap, OneFingerTap, TwoFingerTap }
 
- Public Types inherited from WebKit::WebEvent
enum  Type {
  NoType = -1, MouseDown, MouseUp, MouseMove,
  MouseForceChanged, MouseForceDown, MouseForceUp, Wheel,
  KeyDown, KeyUp, RawKeyDown, Char
}
 
enum  Modifiers {
  ShiftKey = 1 << 0, ControlKey = 1 << 1, AltKey = 1 << 2, MetaKey = 1 << 3,
  CapsLockKey = 1 << 4
}
 

Public Member Functions

 WebMouseEvent ()
 
 WebMouseEvent (Type, Button, const WebCore::IntPoint &position, const WebCore::IntPoint &globalPosition, float deltaX, float deltaY, float deltaZ, int clickCount, Modifiers, double timestamp, double force=0, SyntheticClickType=NoTap)
 
Button button () const
 
const WebCore::IntPointposition () const
 
const WebCore::IntPointglobalPosition () const
 
float deltaX () const
 
float deltaY () const
 
float deltaZ () const
 
int32_t clickCount () const
 
double force () const
 
SyntheticClickType syntheticClickType () const
 
void encode (IPC::Encoder &) const
 
- Public Member Functions inherited from WebKit::WebEvent
Type type () const
 
bool shiftKey () const
 
bool controlKey () const
 
bool altKey () const
 
bool metaKey () const
 
bool capsLockKey () const
 
Modifiers modifiers () const
 
double timestamp () const
 

Static Public Member Functions

static bool decode (IPC::Decoder &, WebMouseEvent &)
 

Additional Inherited Members

- Protected Member Functions inherited from WebKit::WebEvent
 WebEvent ()
 
 WebEvent (Type, Modifiers, double timestamp)
 
void encode (IPC::Encoder &) const
 
- Static Protected Member Functions inherited from WebKit::WebEvent
static bool decode (IPC::Decoder &, WebEvent &)
 

Member Enumeration Documentation

◆ Button

Enumerator
NoButton 
LeftButton 
MiddleButton 
RightButton 

◆ SyntheticClickType

Enumerator
NoTap 
OneFingerTap 
TwoFingerTap 

Constructor & Destructor Documentation

◆ WebMouseEvent() [1/2]

WebKit::WebMouseEvent::WebMouseEvent ( )

◆ WebMouseEvent() [2/2]

WebKit::WebMouseEvent::WebMouseEvent ( Type  type,
Button  button,
const WebCore::IntPoint position,
const WebCore::IntPoint globalPosition,
float  deltaX,
float  deltaY,
float  deltaZ,
int  clickCount,
Modifiers  modifiers,
double  timestamp,
double  force = 0,
SyntheticClickType  syntheticClickType = NoTap 
)

Member Function Documentation

◆ button()

Button WebKit::WebMouseEvent::button ( ) const
inline

◆ clickCount()

int32_t WebKit::WebMouseEvent::clickCount ( ) const
inline

◆ decode()

bool WebKit::WebMouseEvent::decode ( IPC::Decoder decoder,
WebMouseEvent result 
)
static

◆ deltaX()

float WebKit::WebMouseEvent::deltaX ( ) const
inline

◆ deltaY()

float WebKit::WebMouseEvent::deltaY ( ) const
inline

◆ deltaZ()

float WebKit::WebMouseEvent::deltaZ ( ) const
inline

◆ encode()

void WebKit::WebMouseEvent::encode ( IPC::Encoder encoder) const

◆ force()

double WebKit::WebMouseEvent::force ( ) const
inline

◆ globalPosition()

const WebCore::IntPoint& WebKit::WebMouseEvent::globalPosition ( ) const
inline

◆ position()

const WebCore::IntPoint& WebKit::WebMouseEvent::position ( ) const
inline

◆ syntheticClickType()

SyntheticClickType WebKit::WebMouseEvent::syntheticClickType ( ) const
inline

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