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

#include <any_fx.hpp>

Inheritance diagram for neo::any_fx:
Collaboration diagram for neo::any_fx:

Public Member Functions

 any_fx ()=default
 
 any_fx (any_fx &&other) noexcept
 
any_fxoperator= (any_fx &&other) noexcept
 
fx_type type () const
 
void set_type (fx_type t)
 
solid_fx const & s_fx () const
 
gradient_fx const & g_fx () const
 
matrix_fx const & m_fx () const
 
std::function< void(std::chrono::milliseconds)> make_steady_timer_callback (transmittable_rgb_strip &strip, rmt_channel_t channel, blending_method method=blend_linear) const
 
std::vector< rgbrender_frame (transmittable_rgb_strip &strip, rmt_channel_t channel, std::chrono::milliseconds elapsed, std::vector< rgb > recycle_buffer={}, blending_method method=blend_linear) const
 

Private Attributes

std::atomic< fx_type_type = fx_type::solid
 
solid_fx _s_fx {}
 
gradient_fx _g_fx {}
 
matrix_fx _m_fx {}
 

Friends

class any_fx_config
 

Constructor & Destructor Documentation

◆ any_fx() [1/2]

neo::any_fx::any_fx ( )
default

◆ any_fx() [2/2]

neo::any_fx::any_fx ( any_fx &&  other)
noexcept

Member Function Documentation

◆ g_fx()

gradient_fx const & neo::any_fx::g_fx ( ) const
inline

◆ m_fx()

matrix_fx const & neo::any_fx::m_fx ( ) const
inline

◆ make_steady_timer_callback()

std::function< void(std::chrono::milliseconds)> neo::any_fx::make_steady_timer_callback ( transmittable_rgb_strip strip,
rmt_channel_t  channel,
blending_method  method = blend_linear 
) const

◆ operator=()

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

◆ render_frame()

std::vector< rgb > neo::any_fx::render_frame ( transmittable_rgb_strip strip,
rmt_channel_t  channel,
std::chrono::milliseconds  elapsed,
std::vector< rgb recycle_buffer = {},
blending_method  method = blend_linear 
) const

◆ s_fx()

solid_fx const & neo::any_fx::s_fx ( ) const
inline

◆ set_type()

void neo::any_fx::set_type ( fx_type  t)
inline

◆ type()

fx_type neo::any_fx::type ( ) const
inline

Friends And Related Function Documentation

◆ any_fx_config

friend class any_fx_config
friend

Member Data Documentation

◆ _g_fx

gradient_fx neo::any_fx::_g_fx {}
private

◆ _m_fx

matrix_fx neo::any_fx::_m_fx {}
private

◆ _s_fx

solid_fx neo::any_fx::_s_fx {}
private

◆ _type

std::atomic<fx_type> neo::any_fx::_type = fx_type::solid
private

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