We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b82897 commit 1b0735cCopy full SHA for 1b0735c
src/platform/emcc/canvas.h
@@ -0,0 +1,33 @@
1
+// This file is part of SmallBASIC
2
+//
3
+// Copyright(C) 2001-2022 Chris Warren-Smith.
4
5
+// This program is distributed under the terms of the GPL v2.0 or later
6
+// Download the GNU Public License (GPL) from www.gnu.org
7
8
+
9
+#pragma once
10
11
+struct Canvas {
12
+ Canvas();
13
+ Canvas(int width, int height);
14
+ virtual ~Canvas();
15
16
+ bool create(int width, int height);
17
+ void setClip(int x, int y, int w, int h);
18
19
+ MARect *_clip;
20
+ int _id;
21
+ int _w;
22
+ int _h;
23
+};
24
25
+struct Font {
26
+ Font(int size, bool bold, bool italic);
27
28
+ int _size;
29
+ bool _bold;
30
+ bool _italic;
31
32
+ strlib::String _face;
33
0 commit comments