openshot-audio  0.1.7
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< intsliderRect
 
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
< PopupDisplayComponent
popupDisplay
 
ComponentparentForPopupDisplay
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Called when the button is clicked.

Implements juce::Button::Listener.

bool juce::Slider::Pimpl::canDoubleClickToValue ( ) const
inline
double juce::Slider::Pimpl::constrainedValue ( double  value) const
inline
float juce::Slider::Pimpl::getLinearSliderPos ( const double  value) const
inline
double juce::Slider::Pimpl::getMaxValue ( ) const
inline
double juce::Slider::Pimpl::getMinValue ( ) const
inline
double juce::Slider::Pimpl::getMouseWheelDelta ( double  value,
double  wheelAmount 
)
inline
float juce::Slider::Pimpl::getPositionOfValue ( const double  value) const
inline
int juce::Slider::Pimpl::getThumbIndexAt ( const MouseEvent e)
inline
double juce::Slider::Pimpl::getValue ( ) const
inline
void juce::Slider::Pimpl::handleAbsoluteDrag ( const MouseEvent e)
inline
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.

void juce::Slider::Pimpl::handleRotaryDrag ( const MouseEvent e)
inline
void juce::Slider::Pimpl::handleVelocityDrag ( const MouseEvent e)
inline
void juce::Slider::Pimpl::hideTextBox ( const bool  discardCurrentEditorContents)
inline
bool juce::Slider::Pimpl::incDecDragDirectionIsHorizontal ( ) const
inlinenoexcept
bool juce::Slider::Pimpl::isAbsoluteDragMode ( ModifierKeys  mods) const
inline
bool juce::Slider::Pimpl::isBar ( ) const
inlinenoexcept
bool juce::Slider::Pimpl::isHorizontal ( ) const
inlinenoexcept
bool juce::Slider::Pimpl::isRotary ( ) const
inlinenoexcept
bool juce::Slider::Pimpl::isVertical ( ) const
inlinenoexcept
void juce::Slider::Pimpl::labelTextChanged ( Label labelThatHasChanged)
inlineoverridevirtual

Called when a Label's text has changed.

Implements juce::Label::Listener.

void juce::Slider::Pimpl::lookAndFeelChanged ( LookAndFeel lf)
inline
void juce::Slider::Pimpl::modifierKeysChanged ( const ModifierKeys modifiers)
inline
void juce::Slider::Pimpl::mouseDoubleClick ( )
inline
void juce::Slider::Pimpl::mouseDown ( const MouseEvent e)
inline
void juce::Slider::Pimpl::mouseDrag ( const MouseEvent e)
inline
void juce::Slider::Pimpl::mouseUp ( )
inline
bool juce::Slider::Pimpl::mouseWheelMove ( const MouseEvent e,
const MouseWheelDetails wheel 
)
inline
void juce::Slider::Pimpl::paint ( Graphics g,
LookAndFeel lf 
)
inline
void juce::Slider::Pimpl::registerListeners ( )
inline
void juce::Slider::Pimpl::resized ( LookAndFeel lf)
inline
void juce::Slider::Pimpl::resizeIncDecButtons ( )
inline
void juce::Slider::Pimpl::restoreMouseIfHidden ( )
inline
void juce::Slider::Pimpl::sendDragEnd ( )
inline
void juce::Slider::Pimpl::sendDragStart ( )
inline
void juce::Slider::Pimpl::setIncDecButtonsMode ( const IncDecButtonMode  mode)
inline
void juce::Slider::Pimpl::setMaxValue ( double  newValue,
const NotificationType  notification,
const bool  allowNudgingOfOtherValues 
)
inline
void juce::Slider::Pimpl::setMinAndMaxValues ( double  newMinValue,
double  newMaxValue,
const NotificationType  notification 
)
inline
void juce::Slider::Pimpl::setMinValue ( double  newValue,
const NotificationType  notification,
const bool  allowNudgingOfOtherValues 
)
inline
void juce::Slider::Pimpl::setRange ( const double  newMin,
const double  newMax,
const double  newInt 
)
inline
void juce::Slider::Pimpl::setRotaryParameters ( const float  startAngleRadians,
const float  endAngleRadians,
const bool  stopAtEnd 
)
inline
void juce::Slider::Pimpl::setSkewFactorFromMidPoint ( const double  sliderValueToShowAtMidPoint)
inline
void juce::Slider::Pimpl::setSliderStyle ( const SliderStyle  newStyle)
inline
void juce::Slider::Pimpl::setTextBoxIsEditable ( const bool  shouldBeEditable)
inline
void juce::Slider::Pimpl::setTextBoxStyle ( const TextEntryBoxPosition  newPosition,
const bool  isReadOnly,
const int  textEntryBoxWidth,
const int  textEntryBoxHeight 
)
inline
void juce::Slider::Pimpl::setTextValueSuffix ( const String suffix)
inline
void juce::Slider::Pimpl::setValue ( double  newValue,
const NotificationType  notification 
)
inline
void juce::Slider::Pimpl::setVelocityModeParameters ( const double  sensitivity,
const int  threshold,
const double  offset,
const bool  userCanPressKeyToSwapMode 
)
inline
void juce::Slider::Pimpl::showPopupMenu ( )
inline
void juce::Slider::Pimpl::showTextBox ( )
inline
static void juce::Slider::Pimpl::sliderMenuCallback ( const int  result,
Slider slider 
)
inlinestatic
static double juce::Slider::Pimpl::smallestAngleBetween ( const double  a1,
const double  a2 
)
inlinestaticnoexcept
void juce::Slider::Pimpl::triggerChangeMessage ( const NotificationType  notification)
inline
void juce::Slider::Pimpl::updateText ( )
inline
void juce::Slider::Pimpl::updateTextBoxEnablement ( )
inline
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

ScopedPointer<DragInProgress> juce::Slider::Pimpl::currentDrag
Value juce::Slider::Pimpl::currentValue
ScopedPointer<Button> juce::Slider::Pimpl::decButton
double juce::Slider::Pimpl::doubleClickReturnValue
bool juce::Slider::Pimpl::doubleClickToValue
bool juce::Slider::Pimpl::editableText
ScopedPointer<Button> juce::Slider::Pimpl::incButton
IncDecButtonMode juce::Slider::Pimpl::incDecButtonMode
bool juce::Slider::Pimpl::incDecButtonsSideBySide
bool juce::Slider::Pimpl::incDecDragged
double juce::Slider::Pimpl::interval
bool juce::Slider::Pimpl::isVelocityBased
double juce::Slider::Pimpl::lastAngle
double juce::Slider::Pimpl::lastCurrentValue
Time juce::Slider::Pimpl::lastMouseWheelTime
double juce::Slider::Pimpl::lastValueMax
double juce::Slider::Pimpl::lastValueMin
ListenerList<SliderListener> juce::Slider::Pimpl::listeners
double juce::Slider::Pimpl::maximum
bool juce::Slider::Pimpl::menuEnabled
double juce::Slider::Pimpl::minimum
double juce::Slider::Pimpl::minMaxDiff
Point<float> juce::Slider::Pimpl::mouseDragStartPos
Point<float> juce::Slider::Pimpl::mousePosWhenLastDragged
int juce::Slider::Pimpl::numDecimalPlaces
Slider& juce::Slider::Pimpl::owner
Component* juce::Slider::Pimpl::parentForPopupDisplay
int juce::Slider::Pimpl::pixelsForFullDragExtent
ScopedPointer<PopupDisplayComponent> juce::Slider::Pimpl::popupDisplay
bool juce::Slider::Pimpl::popupDisplayEnabled
float juce::Slider::Pimpl::rotaryEnd
float juce::Slider::Pimpl::rotaryStart
bool juce::Slider::Pimpl::rotaryStop
bool juce::Slider::Pimpl::scrollWheelEnabled
bool juce::Slider::Pimpl::sendChangeOnlyOnRelease
double juce::Slider::Pimpl::skewFactor
int juce::Slider::Pimpl::sliderBeingDragged
Rectangle<int> juce::Slider::Pimpl::sliderRect
int juce::Slider::Pimpl::sliderRegionSize
int juce::Slider::Pimpl::sliderRegionStart
bool juce::Slider::Pimpl::snapsToMousePos
SliderStyle juce::Slider::Pimpl::style
int juce::Slider::Pimpl::textBoxHeight
TextEntryBoxPosition juce::Slider::Pimpl::textBoxPos
int juce::Slider::Pimpl::textBoxWidth
String juce::Slider::Pimpl::textSuffix
bool juce::Slider::Pimpl::useDragEvents
bool juce::Slider::Pimpl::userKeyOverridesVelocity
ScopedPointer<Label> juce::Slider::Pimpl::valueBox
Value juce::Slider::Pimpl::valueMax
Value juce::Slider::Pimpl::valueMin
double juce::Slider::Pimpl::valueOnMouseDown
double juce::Slider::Pimpl::valueWhenLastDragged
double juce::Slider::Pimpl::velocityModeOffset
double juce::Slider::Pimpl::velocityModeSensitivity
int juce::Slider::Pimpl::velocityModeThreshold

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