21 void paint(Graphics& g)
override;
37 static constexpr int width = 74;
46 static constexpr int textX = 38;
A component designed to represent a draggable element with a visual representation.
Definition DragComponent.h:12
String m_labelText
Definition DragComponent.h:54
void paint(Graphics &g) override
Definition DragComponent.cpp:15
std::unique_ptr< Drawable > m_dragIconImage
Definition DragComponent.h:53
int m_textWidth
Definition DragComponent.h:52
DragComponent(const String &labelText)
Definition DragComponent.cpp:5
struct krotos::DragComponent::ColourDefinitions m_colours
int calculateTextWidth(const String &text) const
Definition DragComponent.cpp:38
Definition AirAbsorptionFilter.cpp:2
Definition DragComponent.h:28
const Colour textColour
Definition DragComponent.h:31
const Colour borderColour
Definition DragComponent.h:30
const Colour backgroundColour
Definition DragComponent.h:29
Definition DragComponent.h:36
static constexpr int width
Definition DragComponent.h:37
static constexpr int iconY
Definition DragComponent.h:40
static constexpr float kerningFactor
Definition DragComponent.h:49
static constexpr float borderThickness
Definition DragComponent.h:44
static constexpr int height
Definition DragComponent.h:38
static constexpr int textHeight
Definition DragComponent.h:48
static constexpr int iconWidth
Definition DragComponent.h:41
static constexpr int iconX
Definition DragComponent.h:39
static constexpr int textY
Definition DragComponent.h:47
static constexpr int textX
Definition DragComponent.h:46
static constexpr float borderRadius
Definition DragComponent.h:43
static constexpr int iconHeight
Definition DragComponent.h:42
static constexpr float fontSize
Definition DragComponent.h:45