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

This class ... More...

#include <AttachedLabel.h>

Inheritance diagram for krotos::AttachedLabel:

Public Member Functions

 AttachedLabel (const String &labelText)
 
void resized () override
 
KrotosLabelgetLabel ()
 
std::unique_ptr< LabelCustomParameterAttachment > & getAttachment ()
 

Public Attributes

std::function< void()> onTextChange
 

Private Attributes

KrotosLabel m_label
 
std::unique_ptr< LabelCustomParameterAttachmentm_attachment
 

Detailed Description

This class ...

Constructor & Destructor Documentation

◆ AttachedLabel()

krotos::AttachedLabel::AttachedLabel ( const String & labelText)

Constructs a new label with specified text for the label.

Member Function Documentation

◆ getAttachment()

std::unique_ptr< LabelCustomParameterAttachment > & krotos::AttachedLabel::getAttachment ( )

Returns reference to the attachment Object.

◆ getLabel()

KrotosLabel & krotos::AttachedLabel::getLabel ( )

Returns reference to the label displaying the component name.

◆ resized()

void krotos::AttachedLabel::resized ( )
override

Member Data Documentation

◆ m_attachment

std::unique_ptr<LabelCustomParameterAttachment> krotos::AttachedLabel::m_attachment
private

◆ m_label

KrotosLabel krotos::AttachedLabel::m_label
private

◆ onTextChange

std::function<void()> krotos::AttachedLabel::onTextChange

You can assign a lambda to this callback object to have it called when the label changes.


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