libNeon
Loading...
Searching...
No Matches
neo::solid_fx Class Reference

#include <solid_fx.hpp>

Inheritance diagram for neo::solid_fx:
Collaboration diagram for neo::solid_fx:

Public Member Functions

 solid_fx (neo::rgb color=neo::rgb{0, 0, 0})
 
 solid_fx (solid_fx &&other) noexcept
 
solid_fxoperator= (solid_fx &&other) noexcept
 
rgb color () const
 
void set_color (rgb c)
 
std::function< void(std::chrono::milliseconds)> make_steady_timer_callback (transmittable_rgb_strip &strip, rmt_channel_t channel) const
 
void render_frame (transmittable_rgb_strip &strip, rmt_channel_t channel) const
 

Private Attributes

neo::rgb _color
 
std::recursive_mutex _color_mutex
 

Constructor & Destructor Documentation

◆ solid_fx() [1/2]

neo::solid_fx::solid_fx ( neo::rgb  color = neo::rgb{0, 0, 0})
inlineexplicit

◆ solid_fx() [2/2]

neo::solid_fx::solid_fx ( solid_fx &&  other)
noexcept

Member Function Documentation

◆ color()

neo::rgb neo::solid_fx::color ( ) const
inline

◆ make_steady_timer_callback()

std::function< void(std::chrono::milliseconds)> neo::solid_fx::make_steady_timer_callback ( transmittable_rgb_strip strip,
rmt_channel_t  channel 
) const

◆ operator=()

solid_fx & neo::solid_fx::operator= ( solid_fx &&  other)
noexcept

◆ render_frame()

void neo::solid_fx::render_frame ( transmittable_rgb_strip strip,
rmt_channel_t  channel 
) const

◆ set_color()

void neo::solid_fx::set_color ( neo::rgb  c)
inline

Member Data Documentation

◆ _color

neo::rgb neo::solid_fx::_color
private

◆ _color_mutex

std::recursive_mutex neo::solid_fx::_color_mutex
mutableprivate

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