| 36 | // PiuSkin.c |
| 37 | |
| 38 | export class Skin extends Native("PiuSkinDelete") { |
| 39 | constructor(it) { super(); native("PiuSkinCreate").call(this, it); } |
| 40 | get borders() { return native("PiuSkin_get_borders").call(this); } |
| 41 | get bottom() { return native("PiuSkin_get_bottom").call(this); } |
| 42 | get bounds() { return native("PiuSkin_get_bounds").call(this); } |
| 43 | get color() { return native("PiuSkin_get_color").call(this); } |
| 44 | get fill() { return native("PiuSkin_get_fill").call(this); } |
| 45 | get left() { return native("PiuSkin_get_left").call(this); } |
| 46 | get right() { return native("PiuSkin_get_right").call(this); } |
| 47 | get states() { return native("PiuSkin_get_states").call(this); } |
| 48 | get stroke() { return native("PiuSkin_get_stroke").call(this); } |
| 49 | get texture() { return native("PiuSkin_get_texture").call(this); } |
| 50 | get tiles() { return native("PiuSkin_get_tiles").call(this); } |
| 51 | get top() { return native("PiuSkin_get_top").call(this); } |
| 52 | get variants() { return native("PiuSkin_get_variants").call(this); } |
| 53 | get x() { return native("PiuSkin_get_x").call(this); } |
| 54 | get y() { return native("PiuSkin_get_y").call(this); } |
| 55 | get width() { return native("PiuSkin_get_width").call(this); } |
| 56 | get height() { return native("PiuSkin_get_height").call(this); } |
| 57 | static template(i) { |
| 58 | const it = i; |
| 59 | return function() { |
| 60 | let skin; |
| 61 | if (globalThis.assetMap) |
| 62 | skin = assetMap.get(it); |
| 63 | else |
| 64 | globalThis.assetMap = new Map; |
| 65 | if (!skin) { |
| 66 | skin = new Skin(it); |
| 67 | assetMap.set(it, skin); |
| 68 | } |
| 69 | return skin; |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | globalThis.Skin = Skin; |
| 74 | |
| 75 | // PiuStyle.c |
nothing calls this directly
no outgoing calls
no test coverage detected