|
Krotos Modules 3
|
A component designed to represent a draggable element with a visual representation. More...
#include <DragComponent.h>
Classes | |
| struct | ColourDefinitions |
| struct | Layout |
Public Member Functions | |
| DragComponent (const String &labelText) | |
| void | paint (Graphics &g) override |
Private Member Functions | |
| int | calculateTextWidth (const String &text) const |
Private Attributes | |
| struct krotos::DragComponent::ColourDefinitions | m_colours |
| int | m_textWidth |
| std::unique_ptr< Drawable > | m_dragIconImage |
| String | m_labelText |
A component designed to represent a draggable element with a visual representation.
This component is used for displaying and managing a draggable interface element, like the label of a Slider which includes a background, border, optional icon, and text.
| krotos::DragComponent::DragComponent | ( | const String & | labelText | ) |
Constructor
| labelText | The text to display within the drag component. |
|
private |
|
override |
|
private |
|
private |
|
private |
|
private |