FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Grid< T > Class Template Reference

Detailed Description

template<typename T>
class fl::Grid< T >

Definition at line 11 of file grid.h.

#include <grid.h>

+ Inheritance diagram for fl::Grid< T >:
+ Collaboration diagram for fl::Grid< T >:

Public Member Functions

 Grid ()=default
 
 Grid (u32 width, u32 height)
 
T & at (u32 x, u32 y)
 
const T & at (u32 x, u32 y) const
 
void clear ()
 
T * data ()
 
const T * data () const
 
u32 height () const
 
vec2< T > minMax () const
 
T & operator() (u32 x, u32 y)
 
const T & operator() (u32 x, u32 y) const
 
void reset (u32 width, u32 height)
 
fl::size size () const
 
u32 width () const
 

Private Member Functions

T & access (u32 x, u32 y)
 
const T & access (u32 x, u32 y) const
 

Static Private Member Functions

static T & NullValue ()
 

Private Attributes

fl::vector< T, fl::allocator_psram< T > > mData
 
u32 mHeight = 0
 
fl::MatrixSlice< T > mSlice
 
u32 mWidth = 0
 

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