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

#include <PlatformWheelEvent.h>

Inheritance diagram for WebCore::PlatformWheelEvent:
WebCore::PlatformEvent WebCore::PlatformEvent WebCore::PlatformWheelEventBuilder WebCore::PlatformWheelEventBuilder WebKit::WebKit2PlatformWheelEvent

Public Member Functions

 PlatformWheelEvent ()
 
 PlatformWheelEvent (IntPoint position, IntPoint globalPosition, float deltaX, float deltaY, float wheelTicksX, float wheelTicksY, PlatformWheelEventGranularity granularity, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey)
 
PlatformWheelEvent copyTurningVerticalTicksIntoHorizontalTicks () const
 
PlatformWheelEvent copyWithDeltasAndVelocity (float deltaX, float deltaY, const FloatSize &velocity) const
 
const IntPointposition () const
 
const IntPointglobalPosition () const
 
float deltaX () const
 
float deltaY () const
 
float wheelTicksX () const
 
float wheelTicksY () const
 
PlatformWheelEventGranularity granularity () const
 
bool directionInvertedFromDevice () const
 
const FloatSizescrollingVelocity () const
 
bool useLatchedEventElement () const
 
 PlatformWheelEvent ()
 
 PlatformWheelEvent (IntPoint position, IntPoint globalPosition, float deltaX, float deltaY, float wheelTicksX, float wheelTicksY, PlatformWheelEventGranularity granularity, bool shiftKey, bool ctrlKey, bool altKey, bool metaKey)
 
PlatformWheelEvent copyTurningVerticalTicksIntoHorizontalTicks () const
 
PlatformWheelEvent copyWithDeltasAndVelocity (float deltaX, float deltaY, const FloatSize &velocity) const
 
const IntPointposition () const
 
const IntPointglobalPosition () const
 
float deltaX () const
 
float deltaY () const
 
float wheelTicksX () const
 
float wheelTicksY () const
 
PlatformWheelEventGranularity granularity () const
 
bool directionInvertedFromDevice () const
 
const FloatSizescrollingVelocity () const
 
bool useLatchedEventElement () const
 
- Public Member Functions inherited from WebCore::PlatformEvent
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifiermodifiers () const
 
double timestamp () const
 
Type type () const
 
bool shiftKey () const
 
bool ctrlKey () const
 
bool altKey () const
 
bool metaKey () const
 
OptionSet< Modifiermodifiers () const
 
double timestamp () const
 

Protected Attributes

IntPoint m_position
 
IntPoint m_globalPosition
 
float m_deltaX { 0 }
 
float m_deltaY { 0 }
 
float m_wheelTicksX { 0 }
 
float m_wheelTicksY { 0 }
 
PlatformWheelEventGranularity m_granularity { ScrollByPixelWheelEvent }
 
bool m_directionInvertedFromDevice { false }
 
FloatSize m_scrollingVelocity
 
- Protected Attributes inherited from WebCore::PlatformEvent
unsigned m_type
 
OptionSet< Modifierm_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

◆ PlatformWheelEvent() [1/4]

WebCore::PlatformWheelEvent::PlatformWheelEvent ( )
inline

◆ PlatformWheelEvent() [2/4]

WebCore::PlatformWheelEvent::PlatformWheelEvent ( IntPoint  position,
IntPoint  globalPosition,
float  deltaX,
float  deltaY,
float  wheelTicksX,
float  wheelTicksY,
PlatformWheelEventGranularity  granularity,
bool  shiftKey,
bool  ctrlKey,
bool  altKey,
bool  metaKey 
)
inline

◆ PlatformWheelEvent() [3/4]

WebCore::PlatformWheelEvent::PlatformWheelEvent ( )
inline

◆ PlatformWheelEvent() [4/4]

WebCore::PlatformWheelEvent::PlatformWheelEvent ( IntPoint  position,
IntPoint  globalPosition,
float  deltaX,
float  deltaY,
float  wheelTicksX,
float  wheelTicksY,
PlatformWheelEventGranularity  granularity,
bool  shiftKey,
bool  ctrlKey,
bool  altKey,
bool  metaKey 
)
inline

Member Function Documentation

◆ copyTurningVerticalTicksIntoHorizontalTicks() [1/2]

PlatformWheelEvent WebCore::PlatformWheelEvent::copyTurningVerticalTicksIntoHorizontalTicks ( ) const
inline

◆ copyTurningVerticalTicksIntoHorizontalTicks() [2/2]

PlatformWheelEvent WebCore::PlatformWheelEvent::copyTurningVerticalTicksIntoHorizontalTicks ( ) const
inline

◆ copyWithDeltasAndVelocity() [1/2]

PlatformWheelEvent WebCore::PlatformWheelEvent::copyWithDeltasAndVelocity ( float  deltaX,
float  deltaY,
const FloatSize velocity 
) const
inline

◆ copyWithDeltasAndVelocity() [2/2]

PlatformWheelEvent WebCore::PlatformWheelEvent::copyWithDeltasAndVelocity ( float  deltaX,
float  deltaY,
const FloatSize velocity 
) const
inline

◆ deltaX() [1/2]

float WebCore::PlatformWheelEvent::deltaX ( ) const
inline

◆ deltaX() [2/2]

float WebCore::PlatformWheelEvent::deltaX ( ) const
inline

◆ deltaY() [1/2]

float WebCore::PlatformWheelEvent::deltaY ( ) const
inline

◆ deltaY() [2/2]

float WebCore::PlatformWheelEvent::deltaY ( ) const
inline

◆ directionInvertedFromDevice() [1/2]

bool WebCore::PlatformWheelEvent::directionInvertedFromDevice ( ) const
inline

◆ directionInvertedFromDevice() [2/2]

bool WebCore::PlatformWheelEvent::directionInvertedFromDevice ( ) const
inline

◆ globalPosition() [1/2]

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

◆ globalPosition() [2/2]

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

◆ granularity() [1/2]

PlatformWheelEventGranularity WebCore::PlatformWheelEvent::granularity ( ) const
inline

◆ granularity() [2/2]

PlatformWheelEventGranularity WebCore::PlatformWheelEvent::granularity ( ) const
inline

◆ position() [1/2]

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

◆ position() [2/2]

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

◆ scrollingVelocity() [1/2]

const FloatSize& WebCore::PlatformWheelEvent::scrollingVelocity ( ) const
inline

◆ scrollingVelocity() [2/2]

const FloatSize& WebCore::PlatformWheelEvent::scrollingVelocity ( ) const
inline

◆ useLatchedEventElement() [1/2]

bool WebCore::PlatformWheelEvent::useLatchedEventElement ( ) const
inline

◆ useLatchedEventElement() [2/2]

bool WebCore::PlatformWheelEvent::useLatchedEventElement ( ) const
inline

◆ wheelTicksX() [1/2]

float WebCore::PlatformWheelEvent::wheelTicksX ( ) const
inline

◆ wheelTicksX() [2/2]

float WebCore::PlatformWheelEvent::wheelTicksX ( ) const
inline

◆ wheelTicksY() [1/2]

float WebCore::PlatformWheelEvent::wheelTicksY ( ) const
inline

◆ wheelTicksY() [2/2]

float WebCore::PlatformWheelEvent::wheelTicksY ( ) const
inline

Member Data Documentation

◆ m_deltaX

float WebCore::PlatformWheelEvent::m_deltaX { 0 }
protected

◆ m_deltaY

float WebCore::PlatformWheelEvent::m_deltaY { 0 }
protected

◆ m_directionInvertedFromDevice

bool WebCore::PlatformWheelEvent::m_directionInvertedFromDevice { false }
protected

◆ m_globalPosition

IntPoint WebCore::PlatformWheelEvent::m_globalPosition
protected

◆ m_granularity

PlatformWheelEventGranularity WebCore::PlatformWheelEvent::m_granularity { ScrollByPixelWheelEvent }
protected

◆ m_position

IntPoint WebCore::PlatformWheelEvent::m_position
protected

◆ m_scrollingVelocity

FloatSize WebCore::PlatformWheelEvent::m_scrollingVelocity
protected

◆ m_wheelTicksX

float WebCore::PlatformWheelEvent::m_wheelTicksX { 0 }
protected

◆ m_wheelTicksY

float WebCore::PlatformWheelEvent::m_wheelTicksY { 0 }
protected

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