Skip to content

Commit 2825a6a

Browse files
committed
update shims
1 parent 4e8b20b commit 2825a6a

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

libs/arcadeshield/_locales/arcadeshield-jsdoc-strings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"Bitmap.setRows": "Copy row(s) of pixel from buffer to bitmap.",
2121
"Bitmap.transposed": "Returns a transposed bitmap (with X/Y swapped)",
2222
"Bitmap.width": "Get the width of the bitmap",
23-
"bitmap.create": "Create new empty (transparent) bitmap",
24-
"bitmap.doubledIcon": "Double the size of an icon",
25-
"bitmap.ofBuffer": "Create new bitmap with given content"
23+
"bitmaps.create": "Create new empty (transparent) bitmap",
24+
"bitmaps.doubledIcon": "Double the size of an icon",
25+
"bitmaps.ofBuffer": "Create new bitmap with given content"
2626
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"bitmap|block": "bitmap",
2+
"bitmaps|block": "bitmaps",
33
"{id:category}Bitmap": "Bitmap",
4+
"{id:category}Bitmaps": "Bitmaps",
45
"{id:category}__screenhelpers": "__screenhelpers"
56
}

libs/arcadeshield/shims.d.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33

44
declare interface Bitmap {
5+
/**
6+
* Get underlying buffer
7+
*/
8+
//% property shim=BitmapMethods::__buffer
9+
__buffer: Buffer;
10+
511
/**
612
* Get the width of the bitmap
713
*/
@@ -129,24 +135,24 @@ declare interface Bitmap {
129135
//% shim=BitmapMethods::overlapsWith
130136
overlapsWith(other: Bitmap, x: int32, y: int32): boolean;
131137
}
132-
declare namespace bitmap {
138+
declare namespace bitmaps {
133139

134140
/**
135141
* Create new bitmap with given content
136142
*/
137-
//% shim=bitmap::ofBuffer
143+
//% shim=bitmaps::ofBuffer
138144
function ofBuffer(buf: Buffer): Bitmap;
139145

140146
/**
141147
* Create new empty (transparent) bitmap
142148
*/
143-
//% shim=bitmap::create
149+
//% shim=bitmaps::create
144150
function create(width: int32, height: int32): Bitmap;
145151

146152
/**
147153
* Double the size of an icon
148154
*/
149-
//% shim=bitmap::doubledIcon
155+
//% shim=bitmaps::doubledIcon
150156
function doubledIcon(icon: Buffer): Buffer;
151157
}
152158

0 commit comments

Comments
 (0)