JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MouseWheelDetails Struct Referencefinal

Contains status information about a mouse wheel event. More...

#include <juce_MouseEvent.h>

Collaboration diagram for juce::MouseWheelDetails:

Public Attributes

float deltaX
 The amount that the wheel has been moved in the X axis. More...
 
float deltaY
 The amount that the wheel has been moved in the Y axis. More...
 
bool isInertial
 If true, then this event is part of the inertial momentum phase that follows the wheel being released. More...
 
bool isReversed
 Indicates whether the user has reversed the direction of the wheel. More...
 
bool isSmooth
 If true, then the wheel has continuous, un-stepped motion. More...
 

Detailed Description

Contains status information about a mouse wheel event.

See also
MouseListener, MouseEvent

@tags{GUI}

Member Data Documentation

◆ deltaX

float juce::MouseWheelDetails::deltaX

The amount that the wheel has been moved in the X axis.

If isReversed is true, then a negative deltaX means that the wheel has been pushed physically to the left. If isReversed is false, then a negative deltaX means that the wheel has been pushed physically to the right.

◆ deltaY

float juce::MouseWheelDetails::deltaY

The amount that the wheel has been moved in the Y axis.

If isReversed is true, then a negative deltaY means that the wheel has been pushed physically upwards. If isReversed is false, then a negative deltaY means that the wheel has been pushed physically downwards.

◆ isInertial

bool juce::MouseWheelDetails::isInertial

If true, then this event is part of the inertial momentum phase that follows the wheel being released.

◆ isReversed

bool juce::MouseWheelDetails::isReversed

Indicates whether the user has reversed the direction of the wheel.

See deltaX and deltaY for an explanation of the effects of this value.

◆ isSmooth

bool juce::MouseWheelDetails::isSmooth

If true, then the wheel has continuous, un-stepped motion.


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