JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Namespaces
juce_MouseEvent.h File Reference

Go to the source code of this file.

Classes

class  juce::MouseEvent
 Contains position and status information about a mouse event. More...
 
struct  juce::MouseWheelDetails
 Contains status information about a mouse wheel event. More...
 
struct  juce::PenDetails
 Contains status information about a pen event. More...
 

Namespaces

namespace  juce
 JUCE Namespace.
 

Class Documentation

◆ juce::MouseWheelDetails

struct juce::MouseWheelDetails

Contains status information about a mouse wheel event.

See also
MouseListener, MouseEvent

@tags{GUI}

Definition at line 391 of file juce_MouseEvent.h.

Class Members
float 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.

float 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.

bool isInertial If true, then this event is part of the inertial momentum phase that follows the wheel being released.
bool 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.

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

◆ juce::PenDetails

struct juce::PenDetails

Contains status information about a pen event.

See also
MouseListener, MouseEvent

@tags{GUI}

Definition at line 433 of file juce_MouseEvent.h.

Class Members
float rotation The rotation of the pen device in radians.

Indicates the clockwise rotation, or twist, of the pen. The default is 0.

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 positive value indicates a tilt to the right.

The default is 0.

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 positive value indicates a tilt toward the user.

The default is 0.