m5stack-avatar
Loading...
Searching...
No Matches
Drawable.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 DRAWABLE_H_
6#define DRAWABLE_H_
7#define LGFX_USE_V1
8#include <M5GFX.h>
9#include "BoundingRect.h"
10#include "DrawContext.h"
11
12namespace m5avatar {
13class Drawable {
14 public:
15 virtual ~Drawable() = default;
16 virtual void draw(M5Canvas *spi, BoundingRect rect,
17 DrawContext *drawContext) = 0;
18 // virtual void draw(TFT_eSPI *spi, DrawContext *drawContext) = 0;
19};
20
21} // namespace m5avatar
22
23#endif // DRAWABLE_H_
Definition: BoundingRect.h:10
Definition: DrawContext.h:22
Definition: Drawable.h:13