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

A rectangular StartStopButton UI component. More...

#include <StartStopButton.h>

Inheritance diagram for krotos::StartStopButton:

Public Types

enum class  StartStopModes { start = 0 , stop }
 

Public Member Functions

 StartStopButton ()
 

Private Member Functions

void paint (Graphics &g) override
 
void resized () override
 

Private Attributes

Rectangle< float > m_bounds
 
StartStopModes m_mode {StartStopModes::start}
 
std::unique_ptr< Drawable > m_startDefaultImage
 
std::unique_ptr< Drawable > m_stopDefaultImage
 
std::unique_ptr< Drawable > m_startHoverImage
 
std::unique_ptr< Drawable > m_stopHoverImage
 

Detailed Description

A rectangular StartStopButton UI component.

This class implements a StartStopButton designed to start/stop autoplay.

Member Enumeration Documentation

◆ StartStopModes

Different Button Modes to safely switch between Button svgs.

Enumerator
start 
stop 

Constructor & Destructor Documentation

◆ StartStopButton()

krotos::StartStopButton::StartStopButton ( )

Member Function Documentation

◆ paint()

void krotos::StartStopButton::paint ( Graphics & g)
overrideprivate

◆ resized()

void krotos::StartStopButton::resized ( )
overrideprivate

Member Data Documentation

◆ m_bounds

Rectangle<float> krotos::StartStopButton::m_bounds
private

◆ m_mode

StartStopModes krotos::StartStopButton::m_mode {StartStopModes::start}
private

◆ m_startDefaultImage

std::unique_ptr<Drawable> krotos::StartStopButton::m_startDefaultImage
private

◆ m_startHoverImage

std::unique_ptr<Drawable> krotos::StartStopButton::m_startHoverImage
private

◆ m_stopDefaultImage

std::unique_ptr<Drawable> krotos::StartStopButton::m_stopDefaultImage
private

◆ m_stopHoverImage

std::unique_ptr<Drawable> krotos::StartStopButton::m_stopHoverImage
private

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