YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
src
util
pixel_stream_const.h
1
/*
2
* pixelstreamconst.h
3
*
4
* Created on: 13.03.2018
5
* Author: student
6
*/
7
8
#ifndef _PIXELSTREAMCONST_H_
9
#define _PIXELSTREAMCONST_H_
10
11
#include "lcd_interface.h"
12
13
class
pixel_stream_const
:
public
pixel_stream
14
{
15
public
:
16
pixel_stream_const
(color_t c) : color(c) { }
17
virtual
~pixel_stream_const
() =
default
;
18
19
inline
color_t getColorType()
override
{
20
return
COLOR_TYPE(color);
21
}
22
inline
color_t getNext()
override
{
23
return
color;
24
}
25
inline
void
reset() { }
26
27
private
:
28
color_t color;
29
};
30
31
#endif
/* _PIXELSTREAMCONST_H_ */
pixel_stream_const
Definition
pixel_stream_const.h:14
pixel_stream
Definition
lcd_interface.h:36
Generated by
1.12.0