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