BuGUI
BUtton Grid User Interface
Loading...
Searching...
No Matches
bugui::base_converter< Value_t > Struct Template Referenceabstract

Provides base functionalities for converting color objects to devices specific colour values. More...

#include <color_converter.hpp>

Public Types

using color_value_t = Value_t

Public Member Functions

virtual void set (const color &color)=0
 Sets the original color.
bool operator== (const color &other) const
 Determines equality between the original color and another.
Value_t get () const
 Retrives the main device specific colour value.
Value_t get_secondary () const
 Retrives the secondary device specific colour value.
Value_t get_state () const
 Retrives the current state.
virtual void clear ()=0
 Resets the original and the device specific colour to their initial value.
virtual bool is_clear ()=0
 Checks that the original and device specific colour are set to their initial value.

Protected Attributes

Value_t value {}
Value_t secondary {}
color original {}

Detailed Description

template<typename Value_t>
struct bugui::base_converter< Value_t >

Provides base functionalities for converting color objects to devices specific colour values.

Member Function Documentation

◆ clear()

template<typename Value_t>
virtual void bugui::base_converter< Value_t >::clear ( )
pure virtual

◆ is_clear()

template<typename Value_t>
virtual bool bugui::base_converter< Value_t >::is_clear ( )
pure virtual

Checks that the original and device specific colour are set to their initial value.

Implemented in bugui::color_converter< T, Value_t >, bugui::color_converter< T, color::rgba >, bugui::color_converter< T, uint8_t >, and bugui::color_converter< typename Device::color >.

◆ set()

template<typename Value_t>
virtual void bugui::base_converter< Value_t >::set ( const color & color)
pure virtual

The documentation for this struct was generated from the following file: