m5stack-avatar
Loading...
Searching...
No Matches
Eye.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 EYE_H_
6
#define EYE_H_
7
8
#define LGFX_USE_V1
9
#include <M5GFX.h>
10
#include "DrawContext.h"
11
#include "Drawable.h"
12
13
namespace
m5avatar {
14
15
class
Eye
final :
public
Drawable
{
16
private
:
17
uint16_t r;
18
bool
isLeft;
19
20
public
:
21
// constructor
22
Eye
() =
delete
;
23
Eye
(uint16_t x, uint16_t y, uint16_t r,
bool
isLeft);
// deprecated
24
Eye
(uint16_t r,
bool
isLeft);
25
~Eye
() =
default
;
26
Eye
(
const
Eye
&other) =
default
;
27
Eye
&operator=(
const
Eye
&other) =
default
;
28
void
draw(M5Canvas *spi,
BoundingRect
rect,
29
DrawContext
*drawContext)
override
;
30
// void draw(TFT_eSPI *spi, DrawContext *drawContext) override; // deprecated
31
};
32
33
}
// namespace m5avatar
34
35
#endif
// EYE_H_
m5avatar::BoundingRect
Definition:
BoundingRect.h:10
m5avatar::DrawContext
Definition:
DrawContext.h:22
m5avatar::Drawable
Definition:
Drawable.h:13
m5avatar::Eye
Definition:
Eye.h:15
src
Eye.h
Generated by
1.9.5