23 class KwidgetGUI :
public Component,
public ActionBroadcaster
40 void moved()
override;
43 void paint(Graphics& g)
override;
51 void mouseDown(
const MouseEvent& event)
override;
54 void mouseDrag(
const MouseEvent& event)
override;
71 return static_cast<int>(
static_cast<float>(dividend) / divisor);
77 return static_cast<int>(
static_cast<float>(mult) * factor);
103 std::function<
void(
float)> callback);
111 template <
typename AttachedComponentType>
114 addAndMakeVisible(component);
126 template <
typename AttachedComponentType>
128 bool isDraggable =
true)
130 parent.addAndMakeVisible(component);
The TopBarComponent in each Kwidget containing the 3 Buttons and their functionality.
Definition topBarComponent.h:14
Definition AirAbsorptionFilter.cpp:2
const int k_buttonSize
Definition KwidgetGUI.h:5
const float k_topBarCornerSize
Definition KwidgetGUI.h:7
const int k_padding
Definition KwidgetGUI.h:3
const float k_borderThickness
Definition KwidgetGUI.h:4
const int k_minimumHeight
Definition KwidgetGUI.h:6