| 75 | // PiuStyle.c |
| 76 | |
| 77 | export class Style extends Native("PiuStyleDelete") { |
| 78 | constructor(it) { super(); native("PiuStyleCreate").call(this, it); } |
| 79 | get bottom() { return native("PiuStyle_get_bottom").call(this); } |
| 80 | get color() { return native("PiuStyle_get_color").call(this); } |
| 81 | get family() { return native("PiuStyle_get_family").call(this); } |
| 82 | get horizontal() { return native("PiuStyle_get_horizontal").call(this); } |
| 83 | get indentation() { return native("PiuStyle_get_indentation").call(this); } |
| 84 | get leading() { return native("PiuStyle_get_leading").call(this); } |
| 85 | get left() { return native("PiuStyle_get_left").call(this); } |
| 86 | get margins() { return native("PiuStyle_get_margins").call(this); } |
| 87 | get right() { return native("PiuStyle_get_right").call(this); } |
| 88 | get size() { return native("PiuStyle_get_size").call(this); } |
| 89 | get stretch() { return native("PiuStyle_get_stretch").call(this); } |
| 90 | get style() { return native("PiuStyle_get_style").call(this); } |
| 91 | get top() { return native("PiuStyle_get_top").call(this); } |
| 92 | get vertical() { return native("PiuStyle_get_vertical").call(this); } |
| 93 | get weight() { return native("PiuStyle_get_weight").call(this); } |
| 94 | |
| 95 | measure(string) { return native("PiuStyle_measure").call(this, string); } |
| 96 | static template(i) { |
| 97 | const it = i; |
| 98 | return function() { |
| 99 | let style; |
| 100 | if (globalThis.assetMap) |
| 101 | style = assetMap.get(it); |
| 102 | else |
| 103 | globalThis.assetMap = new Map; |
| 104 | if (!style) { |
| 105 | style = new Style(it); |
| 106 | assetMap.set(it, style); |
| 107 | } |
| 108 | return style; |
| 109 | } |
| 110 | } |
| 111 | } |
| 112 | globalThis.Style = Style; |
| 113 | |
| 114 | // BEHAVIOR |
nothing calls this directly
no outgoing calls
no test coverage detected