Skip to content

Commit 1b0735c

Browse files
committed
EMCC: Emscripten version wip
1 parent 6b82897 commit 1b0735c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/platform/emcc/canvas.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)