m5stack-avatar
Loading...
Searching...
No Matches
Eyeblow.h
1
// Copyright (c) Shinya Ishikawa. All rights reserved.
2
// Licensed under the MIT license. See LICENSE file in the project root for full
3
// license information.
4
5
#ifndef EYEBLOW_H_
6
#define EYEBLOW_H_
7
8
#define LGFX_USE_V1
9
#include <M5GFX.h>
10
#include "BoundingRect.h"
11
#include "DrawContext.h"
12
#include "Drawable.h"
13
14
namespace
m5avatar {
15
class
Eyeblow
final :
public
Drawable
{
16
private
:
17
uint16_t width;
18
uint16_t height;
19
bool
isLeft;
20
21
public
:
22
// constructor
23
Eyeblow
() =
delete
;
24
Eyeblow
(uint16_t w, uint16_t h,
bool
isLeft);
25
~Eyeblow
() =
default
;
26
Eyeblow
(
const
Eyeblow
&other) =
default
;
27
Eyeblow
&operator=(
const
Eyeblow
&other) =
default
;
28
void
draw(M5Canvas *spi,
BoundingRect
rect,
29
DrawContext
*drawContext)
override
;
30
};
31
32
}
// namespace m5avatar
33
34
#endif
// EYEBLOW_H_
m5avatar::BoundingRect
Definition:
BoundingRect.h:10
m5avatar::DrawContext
Definition:
DrawContext.h:22
m5avatar::Drawable
Definition:
Drawable.h:13
m5avatar::Eyeblow
Definition:
Eyeblow.h:15
src
Eyeblow.h
Generated by
1.9.5