An individual sample item component shown in the SampleBrowser. A parent component for the various buttons and labels for the browser functionality.
More...
#include <SampleItem.h>
|
| | SampleItem (const String &sampleLabel) |
| | Creates a SampleItem component.
|
| |
| | ~SampleItem () |
| |
| void | resized () override |
| |
| void | paint (Graphics &g) override |
| |
| void | buttonClicked (Button *buttonThatWasClicked) override |
| |
| void | setCued (bool isCued) |
| | Call this to enable or disable the "cued" state for this component. This will draw a marker icon and highlight the sample butotn text.
|
| |
|
| static const Identifier | CuedId {"Cued"} |
| | Identifier used for the boolean LAF property to draw this item as cued or not.
|
| |
An individual sample item component shown in the SampleBrowser. A parent component for the various buttons and labels for the browser functionality.
◆ SampleItem()
| krotos::SampleItem::SampleItem |
( |
const String & | sampleLabel | ) |
|
Creates a SampleItem component.
- Parameters
-
| sampleLabel | The name / label to show in the browser. |
◆ ~SampleItem()
| krotos::SampleItem::~SampleItem |
( |
| ) |
|
◆ buttonClicked()
| void krotos::SampleItem::buttonClicked |
( |
Button * | buttonThatWasClicked | ) |
|
|
override |
◆ paint()
| void krotos::SampleItem::paint |
( |
Graphics & | g | ) |
|
|
override |
◆ resized()
| void krotos::SampleItem::resized |
( |
| ) |
|
|
override |
◆ setCued()
| void krotos::SampleItem::setCued |
( |
bool | isCued | ) |
|
Call this to enable or disable the "cued" state for this component. This will draw a marker icon and highlight the sample butotn text.
- Parameters
-
| isCued | The sample is cued or not. |
◆ CuedId
| const Identifier krotos::SampleItem::CuedId {"Cued"} |
|
static |
Identifier used for the boolean LAF property to draw this item as cued or not.
◆ deleteButton
| DrawableButton krotos::SampleItem::deleteButton |
◆ m_deleteIcon
| std::unique_ptr<Drawable> krotos::SampleItem::m_deleteIcon |
|
private |
◆ m_deleteIconClick
| std::unique_ptr<Drawable> krotos::SampleItem::m_deleteIconClick |
|
private |
◆ m_deleteIconHover
| std::unique_ptr<Drawable> krotos::SampleItem::m_deleteIconHover |
|
private |
◆ m_isCued
| bool krotos::SampleItem::m_isCued {false} |
|
private |
◆ m_layout
◆ m_muteSoloButtonLAF
◆ m_muteValue
| Value krotos::SampleItem::m_muteValue |
|
private |
◆ m_playIcon
| std::unique_ptr<Drawable> krotos::SampleItem::m_playIcon |
|
private |
◆ m_playIconClick
| std::unique_ptr<Drawable> krotos::SampleItem::m_playIconClick |
|
private |
◆ m_playIconHover
| std::unique_ptr<Drawable> krotos::SampleItem::m_playIconHover |
|
private |
◆ m_soloValue
| Value krotos::SampleItem::m_soloValue |
|
private |
◆ muteButton
| TextButton krotos::SampleItem::muteButton |
◆ playButton
| DrawableButton krotos::SampleItem::playButton |
◆ sampleSelectButton
| TextButton krotos::SampleItem::sampleSelectButton |
The sample name text button.
◆ soloButton
| TextButton krotos::SampleItem::soloButton |
The documentation for this class was generated from the following files: