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
14namespace m5avatar {
15class 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_
Definition: BoundingRect.h:10
Definition: DrawContext.h:22
Definition: Drawable.h:13
Definition: Eyeblow.h:15