72 float orientation,
float rotation,
73 float tiltX,
float tiltY,
80 bool mouseWasDragged)
noexcept;
198 int getMouseDownX() const noexcept;
204 int getMouseDownY() const noexcept;
211 Point<
int> getMouseDownPosition() const noexcept;
221 int getDistanceFromDragStart() const noexcept;
228 int getDistanceFromDragStartX() const noexcept;
235 int getDistanceFromDragStartY() const noexcept;
242 Point<
int> getOffsetFromDragStart() const noexcept;
257 bool mouseWasDraggedSinceMouseDown() const noexcept;
262 bool mouseWasClicked() const noexcept;
267 int getNumberOfClicks() const noexcept {
return numberOfClicks; }
276 int getLengthOfMousePress() const noexcept;
279 bool isPressureValid() const noexcept;
282 bool isOrientationValid() const noexcept;
285 bool isRotationValid() const noexcept;
288 bool isTiltValid (
bool tiltX) const noexcept;
298 Point<
int> getPosition() const noexcept;
304 int getScreenX() const;
310 int getScreenY() const;
316 Point<
int> getScreenPosition() const;
322 int getMouseDownScreenX() const;
328 int getMouseDownScreenY() const;
334 Point<
int> getMouseDownScreenPosition() const;
365 static
void setDoubleClickTimeout (
int timeOutMilliseconds) noexcept;
374 static
int getDoubleClickTimeout() noexcept;
379 const
uint8 numberOfClicks, wasMovedSinceMouseDown;
The base class for all JUCE user-interface objects.
Represents the state of the mouse buttons and modifier keys.
Contains position and status information about a mouse event.
const float tiltY
The tilt of the pen device along the y-axis between -1.0 and 1.0.
const Point< float > mouseDownPosition
The coordinates of the last place that a mouse button was pressed.
const ModifierKeys mods
The key modifiers associated with the event.
MouseInputSource source
The source device that generated this event.
const Time mouseDownTime
The time that the corresponding mouse-down event occurred.
Component *const originalComponent
The component that the event first occurred on.
const float orientation
The orientation of the touch input for this event in radians where 0 indicates a touch aligned with t...
const int x
The x-position of the mouse when the event occurred.
const float pressure
The pressure of the touch or stylus for this event.
const Point< float > position
The position of the mouse when the event occurred.
const int y
The y-position of the mouse when the event occurred.
const float rotation
The rotation of the pen device for this event in radians.
const Time eventTime
The time that this mouse-event occurred.
Component *const eventComponent
The component that this event applies to.
const float tiltX
The tilt of the pen device along the x-axis between -1.0 and 1.0.
A pair of (x, y) coordinates.
Holds an absolute date and time.
bool isInertial
If true, then this event is part of the inertial momentum phase that follows the wheel being released...
float rotation
The rotation of the pen device in radians.
float tiltX
Indicates the angle of tilt of the pointer in a range of -1.0 to 1.0 along the x-axis where a positiv...
float tiltY
Indicates the angle of tilt of the pointer in a range of -1.0 to 1.0 along the y-axis where a positiv...
bool isReversed
Indicates whether the user has reversed the direction of the wheel.
float deltaY
The amount that the wheel has been moved in the Y axis.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
float deltaX
The amount that the wheel has been moved in the X axis.
bool isSmooth
If true, then the wheel has continuous, un-stepped motion.
unsigned char uint8
A platform-independent 8-bit unsigned integer type.
Contains status information about a mouse wheel event.
Contains status information about a pen event.