openshot-audio  0.1.4
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::Slider::Pimpl Class Reference
Inheritance diagram for juce::Slider::Pimpl:
juce::AsyncUpdater juce::Button::Listener juce::Label::Listener juce::Value::Listener

Classes

struct  DragInProgress
 
class  PopupDisplayComponent
 

Public Member Functions

 Pimpl (Slider &s, SliderStyle sliderStyle, TextEntryBoxPosition textBoxPosition)
 
 ~Pimpl ()
 
void registerListeners ()
 
bool isHorizontal () const noexcept
 
bool isVertical () const noexcept
 
bool isRotary () const noexcept
 
bool isBar () const noexcept
 
bool incDecDragDirectionIsHorizontal () const noexcept
 
float getPositionOfValue (const double value) const
 
void setRange (const double newMin, const double newMax, const double newInt)
 
double getValue () const
 
void setValue (double newValue, const NotificationType notification)
 
void setMinValue (double newValue, const NotificationType notification, const bool allowNudgingOfOtherValues)
 
void setMaxValue (double newValue, const NotificationType notification, const bool allowNudgingOfOtherValues)
 
void setMinAndMaxValues (double newMinValue, double newMaxValue, const NotificationType notification)
 
double getMinValue () const
 
double getMaxValue () const
 
void triggerChangeMessage (const NotificationType notification)
 
void handleAsyncUpdate () override
 
void sendDragStart ()
 
void sendDragEnd ()
 
void buttonClicked (Button *button) override
 
void valueChanged (Value &value) override
 
void labelTextChanged (Label *label) override
 
void updateText ()
 
double constrainedValue (double value) const
 
float getLinearSliderPos (const double value) const
 
void setSliderStyle (const SliderStyle newStyle)
 
void setRotaryParameters (const float startAngleRadians, const float endAngleRadians, const bool stopAtEnd)
 
void setVelocityModeParameters (const double sensitivity, const int threshold, const double offset, const bool userCanPressKeyToSwapMode)
 
void setSkewFactorFromMidPoint (const double sliderValueToShowAtMidPoint)
 
void setIncDecButtonsMode (const IncDecButtonMode mode)
 
void setTextBoxStyle (const TextEntryBoxPosition newPosition, const bool isReadOnly, const int textEntryBoxWidth, const int textEntryBoxHeight)
 
void setTextBoxIsEditable (const bool shouldBeEditable)
 
void showTextBox ()
 
void hideTextBox (const bool discardCurrentEditorContents)
 
void setTextValueSuffix (const String &suffix)
 
void updateTextBoxEnablement ()
 
void lookAndFeelChanged (LookAndFeel &lf)
 
void showPopupMenu ()
 
int getThumbIndexAt (const MouseEvent &e)
 
void handleRotaryDrag (const MouseEvent &e)
 
void handleAbsoluteDrag (const MouseEvent &e)
 
void handleVelocityDrag (const MouseEvent &e)
 
void mouseDown (const MouseEvent &e)
 
void mouseDrag (const MouseEvent &e)
 
void mouseUp ()
 
bool canDoubleClickToValue () const
 
void mouseDoubleClick ()
 
double getMouseWheelDelta (double value, double wheelAmount)
 
bool mouseWheelMove (const MouseEvent &e, const MouseWheelDetails &wheel)
 
void modifierKeysChanged (const ModifierKeys &modifiers)
 
bool isAbsoluteDragMode (ModifierKeys mods) const
 
void restoreMouseIfHidden ()
 
void paint (Graphics &g, LookAndFeel &lf)
 
void resized (LookAndFeel &lf)
 
void resizeIncDecButtons ()
 
- Public Member Functions inherited from juce::AsyncUpdater
 AsyncUpdater ()
 
virtual ~AsyncUpdater ()
 
void triggerAsyncUpdate ()
 
void cancelPendingUpdate () noexcept
 
void handleUpdateNowIfNeeded ()
 
bool isUpdatePending () const noexcept
 
- Public Member Functions inherited from juce::Button::Listener
virtual ~Listener ()
 
virtual void buttonStateChanged (Button *)
 
- Public Member Functions inherited from juce::Label::Listener
virtual ~Listener ()
 
virtual void editorShown (Label *, TextEditor &)
 
virtual void editorHidden (Label *, TextEditor &)
 
- Public Member Functions inherited from juce::Value::Listener
 Listener ()
 
virtual ~Listener ()
 

Static Public Member Functions

static void sliderMenuCallback (const int result, Slider *slider)
 
static double smallestAngleBetween (const double a1, const double a2) noexcept
 

Public Attributes

Sliderowner
 
SliderStyle style
 
ListenerList< SliderListenerlisteners
 
Value currentValue
 
Value valueMin
 
Value valueMax
 
double lastCurrentValue
 
double lastValueMin
 
double lastValueMax
 
double minimum
 
double maximum
 
double interval
 
double doubleClickReturnValue
 
double valueWhenLastDragged
 
double valueOnMouseDown
 
double skewFactor
 
double lastAngle
 
double velocityModeSensitivity
 
double velocityModeOffset
 
double minMaxDiff
 
int velocityModeThreshold
 
float rotaryStart
 
float rotaryEnd
 
Point< float > mouseDragStartPos
 
Point< float > mousePosWhenLastDragged
 
int sliderRegionStart
 
int sliderRegionSize
 
int sliderBeingDragged
 
int pixelsForFullDragExtent
 
Time lastMouseWheelTime
 
Rectangle< int > sliderRect
 
ScopedPointer< DragInProgresscurrentDrag
 
TextEntryBoxPosition textBoxPos
 
String textSuffix
 
int numDecimalPlaces
 
int textBoxWidth
 
int textBoxHeight
 
IncDecButtonMode incDecButtonMode
 
bool editableText
 
bool doubleClickToValue
 
bool isVelocityBased
 
bool userKeyOverridesVelocity
 
bool rotaryStop
 
bool incDecButtonsSideBySide
 
bool sendChangeOnlyOnRelease
 
bool popupDisplayEnabled
 
bool menuEnabled
 
bool useDragEvents
 
bool incDecDragged
 
bool scrollWheelEnabled
 
bool snapsToMousePos
 
ScopedPointer< LabelvalueBox
 
ScopedPointer< ButtonincButton
 
ScopedPointer< ButtondecButton
 
ScopedPointer< PopupDisplayComponentpopupDisplay
 
ComponentparentForPopupDisplay
 

Constructor & Destructor Documentation

◆ Pimpl()

juce::Slider::Pimpl::Pimpl ( Slider s,
SliderStyle  sliderStyle,
TextEntryBoxPosition  textBoxPosition 
)
inline

◆ ~Pimpl()

juce::Slider::Pimpl::~Pimpl ( )
inline

Member Function Documentation

◆ buttonClicked()

void juce::Slider::Pimpl::buttonClicked ( Button )
inlineoverridevirtual

Called when the button is clicked.

Implements juce::Button::Listener.

◆ canDoubleClickToValue()

bool juce::Slider::Pimpl::canDoubleClickToValue ( ) const
inline

◆ constrainedValue()

double juce::Slider::Pimpl::constrainedValue ( double  value) const
inline

◆ getLinearSliderPos()

float juce::Slider::Pimpl::getLinearSliderPos ( const double  value) const
inline

◆ getMaxValue()

double juce::Slider::Pimpl::getMaxValue ( ) const
inline

◆ getMinValue()

double juce::Slider::Pimpl::getMinValue ( ) const
inline

◆ getMouseWheelDelta()

double juce::Slider::Pimpl::getMouseWheelDelta ( double  value,
double  wheelAmount 
)
inline

◆ getPositionOfValue()

float juce::Slider::Pimpl::getPositionOfValue ( const double  value) const
inline

◆ getThumbIndexAt()

int juce::Slider::Pimpl::getThumbIndexAt ( const MouseEvent e)
inline

◆ getValue()

double juce::Slider::Pimpl::getValue ( ) const
inline

◆ handleAbsoluteDrag()

void juce::Slider::Pimpl::handleAbsoluteDrag ( const MouseEvent e)
inline

◆ handleAsyncUpdate()

void juce::Slider::Pimpl::handleAsyncUpdate ( )
inlineoverridevirtual

Called back to do whatever your class needs to do.

This method is called by the message thread at the next convenient time after the triggerAsyncUpdate() method has been called.

Implements juce::AsyncUpdater.

◆ handleRotaryDrag()

void juce::Slider::Pimpl::handleRotaryDrag ( const MouseEvent e)
inline

◆ handleVelocityDrag()

void juce::Slider::Pimpl::handleVelocityDrag ( const MouseEvent e)
inline

◆ hideTextBox()

void juce::Slider::Pimpl::hideTextBox ( const bool  discardCurrentEditorContents)
inline

◆ incDecDragDirectionIsHorizontal()

bool juce::Slider::Pimpl::incDecDragDirectionIsHorizontal ( ) const
inlinenoexcept

◆ isAbsoluteDragMode()

bool juce::Slider::Pimpl::isAbsoluteDragMode ( ModifierKeys  mods) const
inline

◆ isBar()

bool juce::Slider::Pimpl::isBar ( ) const
inlinenoexcept

◆ isHorizontal()

bool juce::Slider::Pimpl::isHorizontal ( ) const
inlinenoexcept

◆ isRotary()

bool juce::Slider::Pimpl::isRotary ( ) const
inlinenoexcept

◆ isVertical()

bool juce::Slider::Pimpl::isVertical ( ) const
inlinenoexcept

◆ labelTextChanged()

void juce::Slider::Pimpl::labelTextChanged ( Label labelThatHasChanged)
inlineoverridevirtual

Called when a Label's text has changed.

Implements juce::Label::Listener.

◆ lookAndFeelChanged()

void juce::Slider::Pimpl::lookAndFeelChanged ( LookAndFeel lf)
inline

◆ modifierKeysChanged()

void juce::Slider::Pimpl::modifierKeysChanged ( const ModifierKeys modifiers)
inline

◆ mouseDoubleClick()

void juce::Slider::Pimpl::mouseDoubleClick ( )
inline

◆ mouseDown()

void juce::Slider::Pimpl::mouseDown ( const MouseEvent e)
inline

◆ mouseDrag()

void juce::Slider::Pimpl::mouseDrag ( const MouseEvent e)
inline

◆ mouseUp()

void juce::Slider::Pimpl::mouseUp ( )
inline

◆ mouseWheelMove()

bool juce::Slider::Pimpl::mouseWheelMove ( const MouseEvent e,
const MouseWheelDetails wheel 
)
inline

◆ paint()

void juce::Slider::Pimpl::paint ( Graphics g,
LookAndFeel lf 
)
inline

◆ registerListeners()

void juce::Slider::Pimpl::registerListeners ( )
inline

◆ resized()

void juce::Slider::Pimpl::resized ( LookAndFeel lf)
inline

◆ resizeIncDecButtons()

void juce::Slider::Pimpl::resizeIncDecButtons ( )
inline

◆ restoreMouseIfHidden()

void juce::Slider::Pimpl::restoreMouseIfHidden ( )
inline

◆ sendDragEnd()

void juce::Slider::Pimpl::sendDragEnd ( )
inline

◆ sendDragStart()

void juce::Slider::Pimpl::sendDragStart ( )
inline

◆ setIncDecButtonsMode()

void juce::Slider::Pimpl::setIncDecButtonsMode ( const IncDecButtonMode  mode)
inline

◆ setMaxValue()

void juce::Slider::Pimpl::setMaxValue ( double  newValue,
const NotificationType  notification,
const bool  allowNudgingOfOtherValues 
)
inline

◆ setMinAndMaxValues()

void juce::Slider::Pimpl::setMinAndMaxValues ( double  newMinValue,
double  newMaxValue,
const NotificationType  notification 
)
inline

◆ setMinValue()

void juce::Slider::Pimpl::setMinValue ( double  newValue,
const NotificationType  notification,
const bool  allowNudgingOfOtherValues 
)
inline

◆ setRange()

void juce::Slider::Pimpl::setRange ( const double  newMin,
const double  newMax,
const double  newInt 
)
inline

◆ setRotaryParameters()

void juce::Slider::Pimpl::setRotaryParameters ( const float  startAngleRadians,
const float  endAngleRadians,
const bool  stopAtEnd 
)
inline

◆ setSkewFactorFromMidPoint()

void juce::Slider::Pimpl::setSkewFactorFromMidPoint ( const double  sliderValueToShowAtMidPoint)
inline

◆ setSliderStyle()

void juce::Slider::Pimpl::setSliderStyle ( const SliderStyle  newStyle)
inline

◆ setTextBoxIsEditable()

void juce::Slider::Pimpl::setTextBoxIsEditable ( const bool  shouldBeEditable)
inline

◆ setTextBoxStyle()

void juce::Slider::Pimpl::setTextBoxStyle ( const TextEntryBoxPosition  newPosition,
const bool  isReadOnly,
const int  textEntryBoxWidth,
const int  textEntryBoxHeight 
)
inline

◆ setTextValueSuffix()

void juce::Slider::Pimpl::setTextValueSuffix ( const String suffix)
inline

◆ setValue()

void juce::Slider::Pimpl::setValue ( double  newValue,
const NotificationType  notification 
)
inline

◆ setVelocityModeParameters()

void juce::Slider::Pimpl::setVelocityModeParameters ( const double  sensitivity,
const int  threshold,
const double  offset,
const bool  userCanPressKeyToSwapMode 
)
inline

◆ showPopupMenu()

void juce::Slider::Pimpl::showPopupMenu ( )
inline

◆ showTextBox()

void juce::Slider::Pimpl::showTextBox ( )
inline

◆ sliderMenuCallback()

static void juce::Slider::Pimpl::sliderMenuCallback ( const int  result,
Slider slider 
)
inlinestatic

◆ smallestAngleBetween()

static double juce::Slider::Pimpl::smallestAngleBetween ( const double  a1,
const double  a2 
)
inlinestaticnoexcept

◆ triggerChangeMessage()

void juce::Slider::Pimpl::triggerChangeMessage ( const NotificationType  notification)
inline

◆ updateText()

void juce::Slider::Pimpl::updateText ( )
inline

◆ updateTextBoxEnablement()

void juce::Slider::Pimpl::updateTextBoxEnablement ( )
inline

◆ valueChanged()

void juce::Slider::Pimpl::valueChanged ( Value value)
inlineoverridevirtual

Called when a Value object is changed.

Note that the Value object passed as a parameter may not be exactly the same object that you registered the listener with - it might be a copy that refers to the same underlying ValueSource. To find out, you can call Value::refersToSameSourceAs().

Implements juce::Value::Listener.

Member Data Documentation

◆ currentDrag

ScopedPointer<DragInProgress> juce::Slider::Pimpl::currentDrag

◆ currentValue

Value juce::Slider::Pimpl::currentValue

◆ decButton

ScopedPointer<Button> juce::Slider::Pimpl::decButton

◆ doubleClickReturnValue

double juce::Slider::Pimpl::doubleClickReturnValue

◆ doubleClickToValue

bool juce::Slider::Pimpl::doubleClickToValue

◆ editableText

bool juce::Slider::Pimpl::editableText

◆ incButton

ScopedPointer<Button> juce::Slider::Pimpl::incButton

◆ incDecButtonMode

IncDecButtonMode juce::Slider::Pimpl::incDecButtonMode

◆ incDecButtonsSideBySide

bool juce::Slider::Pimpl::incDecButtonsSideBySide

◆ incDecDragged

bool juce::Slider::Pimpl::incDecDragged

◆ interval

double juce::Slider::Pimpl::interval

◆ isVelocityBased

bool juce::Slider::Pimpl::isVelocityBased

◆ lastAngle

double juce::Slider::Pimpl::lastAngle

◆ lastCurrentValue

double juce::Slider::Pimpl::lastCurrentValue

◆ lastMouseWheelTime

Time juce::Slider::Pimpl::lastMouseWheelTime

◆ lastValueMax

double juce::Slider::Pimpl::lastValueMax

◆ lastValueMin

double juce::Slider::Pimpl::lastValueMin

◆ listeners

ListenerList<SliderListener> juce::Slider::Pimpl::listeners

◆ maximum

double juce::Slider::Pimpl::maximum

◆ menuEnabled

bool juce::Slider::Pimpl::menuEnabled

◆ minimum

double juce::Slider::Pimpl::minimum

◆ minMaxDiff

double juce::Slider::Pimpl::minMaxDiff

◆ mouseDragStartPos

Point<float> juce::Slider::Pimpl::mouseDragStartPos

◆ mousePosWhenLastDragged

Point<float> juce::Slider::Pimpl::mousePosWhenLastDragged

◆ numDecimalPlaces

int juce::Slider::Pimpl::numDecimalPlaces

◆ owner

Slider& juce::Slider::Pimpl::owner

◆ parentForPopupDisplay

Component* juce::Slider::Pimpl::parentForPopupDisplay

◆ pixelsForFullDragExtent

int juce::Slider::Pimpl::pixelsForFullDragExtent

◆ popupDisplay

ScopedPointer<PopupDisplayComponent> juce::Slider::Pimpl::popupDisplay

◆ popupDisplayEnabled

bool juce::Slider::Pimpl::popupDisplayEnabled

◆ rotaryEnd

float juce::Slider::Pimpl::rotaryEnd

◆ rotaryStart

float juce::Slider::Pimpl::rotaryStart

◆ rotaryStop

bool juce::Slider::Pimpl::rotaryStop

◆ scrollWheelEnabled

bool juce::Slider::Pimpl::scrollWheelEnabled

◆ sendChangeOnlyOnRelease

bool juce::Slider::Pimpl::sendChangeOnlyOnRelease

◆ skewFactor

double juce::Slider::Pimpl::skewFactor

◆ sliderBeingDragged

int juce::Slider::Pimpl::sliderBeingDragged

◆ sliderRect

Rectangle<int> juce::Slider::Pimpl::sliderRect

◆ sliderRegionSize

int juce::Slider::Pimpl::sliderRegionSize

◆ sliderRegionStart

int juce::Slider::Pimpl::sliderRegionStart

◆ snapsToMousePos

bool juce::Slider::Pimpl::snapsToMousePos

◆ style

SliderStyle juce::Slider::Pimpl::style

◆ textBoxHeight

int juce::Slider::Pimpl::textBoxHeight

◆ textBoxPos

TextEntryBoxPosition juce::Slider::Pimpl::textBoxPos

◆ textBoxWidth

int juce::Slider::Pimpl::textBoxWidth

◆ textSuffix

String juce::Slider::Pimpl::textSuffix

◆ useDragEvents

bool juce::Slider::Pimpl::useDragEvents

◆ userKeyOverridesVelocity

bool juce::Slider::Pimpl::userKeyOverridesVelocity

◆ valueBox

ScopedPointer<Label> juce::Slider::Pimpl::valueBox

◆ valueMax

Value juce::Slider::Pimpl::valueMax

◆ valueMin

Value juce::Slider::Pimpl::valueMin

◆ valueOnMouseDown

double juce::Slider::Pimpl::valueOnMouseDown

◆ valueWhenLastDragged

double juce::Slider::Pimpl::valueWhenLastDragged

◆ velocityModeOffset

double juce::Slider::Pimpl::velocityModeOffset

◆ velocityModeSensitivity

double juce::Slider::Pimpl::velocityModeSensitivity

◆ velocityModeThreshold

int juce::Slider::Pimpl::velocityModeThreshold

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