JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::Slider::RotaryParameters Struct Reference

Structure defining rotary parameters for a slider. More...

#include <juce_Slider.h>

Collaboration diagram for juce::Slider::RotaryParameters:

Public Attributes

float endAngleRadians
 The angle (in radians, clockwise from the top) at which the slider's maximum value is represented. More...
 
float startAngleRadians
 The angle (in radians, clockwise from the top) at which the slider's minimum value is represented. More...
 
bool stopAtEnd
 Determines what happens when a circular drag action rotates beyond the minimum or maximum angle. More...
 

Detailed Description

Structure defining rotary parameters for a slider.

Member Data Documentation

◆ endAngleRadians

float juce::Slider::RotaryParameters::endAngleRadians

The angle (in radians, clockwise from the top) at which the slider's maximum value is represented.

This must be greater than startAngleRadians.

◆ startAngleRadians

float juce::Slider::RotaryParameters::startAngleRadians

The angle (in radians, clockwise from the top) at which the slider's minimum value is represented.

◆ stopAtEnd

bool juce::Slider::RotaryParameters::stopAtEnd

Determines what happens when a circular drag action rotates beyond the minimum or maximum angle.

If true, the value will stop changing until the mouse moves back the way it came; if false, the value will snap back to the value nearest to the mouse. Note that this has no effect if the drag mode is vertical or horizontal.


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