Krotos Modules 3
Loading...
Searching...
No Matches
krotos::KwidgetGUI_MacroSlider Class Reference

#include <KwidgetGUI_Macroslider.h>

Inheritance diagram for krotos::KwidgetGUI_MacroSlider:
krotos::KwidgetGUI

Classes

struct  Layout
 

Public Types

using Parameters = Kwidget_MacroSlider::Parameters
 
- Public Types inherited from krotos::KwidgetGUI
enum class  RenderStyle {
  normal = 0 , borderless , borderless_with_buttons , minimised ,
  NUM_STYLES
}
 

Public Member Functions

 KwidgetGUI_MacroSlider (Kwidget &owner)
 
 ~KwidgetGUI_MacroSlider ()
 
void paint (Graphics &g) override
 
void resized () override
 
void setLabelEditability (bool editable)
 
void setPerformMode (bool performMode)
 
void mouseEnter (const MouseEvent &) override
 
void mouseExit (const MouseEvent &) override
 
AttachedSlidergetMacroSlider () const
 
AttachedLabelgetLabel () const
 
- Public Member Functions inherited from krotos::KwidgetGUI
 KwidgetGUI (Kwidget &owner)
 
 ~KwidgetGUI () override=default
 
void moved () override
 
void paint (Graphics &g) override
 
void resized () override
 
void mouseDown (const MouseEvent &event) override
 
const String & getKwidgetType () const
 
const String & getKwidgetID () const
 
void setRenderStyle (RenderStyle newStyle)
 
int divideIntByFloat (int dividend, float divisor)
 
int multiplyIntByFloat (int mult, float factor)
 
virtual void finalSetup ()
 
void ignorePadding (bool ignore)
 
TopBarComponentgetTopBarComponent ()
 
KwidgetgetOwner ()
 

Private Attributes

struct krotos::KwidgetGUI_MacroSlider::Layout layout
 
Krotos_LookAndFeel m_krotosLAF
 
std::unique_ptr< AttachedSliderm_macroSlider {nullptr}
 
std::unique_ptr< AttachedLabelm_editableLabel {nullptr}
 
bool m_performMode {false}
 
bool m_labelEditability {false}
 

Additional Inherited Members

- Public Attributes inherited from krotos::KwidgetGUI
std::function< void(const String &)> onDelete
 
- Protected Member Functions inherited from krotos::KwidgetGUI
std::unique_ptr< SliderParameterAttachment > createParameterAttachment (const String &paramID, Slider &slider)
 
std::unique_ptr< ButtonParameterAttachment > createParameterAttachment (const String &paramID, Button &button)
 
std::unique_ptr< ComboBoxParameterAttachment > createParameterAttachment (const String &paramID, ComboBox &comboBox)
 
std::unique_ptr< ParameterAttachment > createParameterAttachment (const String &paramID, std::function< void(float)> callback)
 
std::unique_ptr< LabelCustomParameterAttachmentcreateCustomParameterAttachment (const String &paramID, Label &label)
 
template<typename AttachedComponentType >
void addAttachedComponent (AttachedComponentType &component, const String &paramID, bool isDraggable=true)
 
template<typename AttachedComponentType >
void addAttachedComponent (Component &parent, AttachedComponentType &component, const String &paramID, bool isDraggable=true)
 
void addParameterCallback (const String &paramID, std::function< void(float)> callback)
 
- Protected Attributes inherited from krotos::KwidgetGUI
bool m_ignorePadding {false}
 
Rectangle< int > m_currentBounds
 
TextButton m_selectButton
 
TextButton m_deleteButton
 
Colour m_borderColour {Colours::fuchsia}
 
TopBarComponent m_topBarComponent
 
RenderStyle m_renderStyle {RenderStyle::normal}
 

Member Typedef Documentation

◆ Parameters

Constructor & Destructor Documentation

◆ KwidgetGUI_MacroSlider()

krotos::KwidgetGUI_MacroSlider::KwidgetGUI_MacroSlider ( Kwidget & owner)

◆ ~KwidgetGUI_MacroSlider()

krotos::KwidgetGUI_MacroSlider::~KwidgetGUI_MacroSlider ( )

Member Function Documentation

◆ getLabel()

AttachedLabel * krotos::KwidgetGUI_MacroSlider::getLabel ( ) const
inline

◆ getMacroSlider()

AttachedSlider * krotos::KwidgetGUI_MacroSlider::getMacroSlider ( ) const
inline

◆ mouseEnter()

void krotos::KwidgetGUI_MacroSlider::mouseEnter ( const MouseEvent & )
override

◆ mouseExit()

void krotos::KwidgetGUI_MacroSlider::mouseExit ( const MouseEvent & )
override

◆ paint()

void krotos::KwidgetGUI_MacroSlider::paint ( Graphics & g)
override

◆ resized()

void krotos::KwidgetGUI_MacroSlider::resized ( )
override

◆ setLabelEditability()

void krotos::KwidgetGUI_MacroSlider::setLabelEditability ( bool editable)

Sets the visibility flag to show the toggle in perform Mode

Parameters
flagtelling you if the label should be editable or not

◆ setPerformMode()

void krotos::KwidgetGUI_MacroSlider::setPerformMode ( bool performMode)
inline

Member Data Documentation

◆ layout

struct krotos::KwidgetGUI_MacroSlider::Layout krotos::KwidgetGUI_MacroSlider::layout
private

◆ m_editableLabel

std::unique_ptr<AttachedLabel> krotos::KwidgetGUI_MacroSlider::m_editableLabel {nullptr}
private

◆ m_krotosLAF

Krotos_LookAndFeel krotos::KwidgetGUI_MacroSlider::m_krotosLAF
private

◆ m_labelEditability

bool krotos::KwidgetGUI_MacroSlider::m_labelEditability {false}
private

◆ m_macroSlider

std::unique_ptr<AttachedSlider> krotos::KwidgetGUI_MacroSlider::m_macroSlider {nullptr}
private

◆ m_performMode

bool krotos::KwidgetGUI_MacroSlider::m_performMode {false}
private

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