| 165 | |
| 166 | class View extends Native("PiuViewDelete") { |
| 167 | constructor(application, it) { |
| 168 | super(); |
| 169 | let screen = globalThis.screen; |
| 170 | it.rotation = this.rotation; |
| 171 | let poco = this.poco = new Poco(screen, it); |
| 172 | this._create(application, it, screen, poco, poco.rectangle()); |
| 173 | if (screen.pixelFormat == Bitmap.CLUT16) |
| 174 | application.clut = new Resource("main.cct"); |
| 175 | screen.context = this; |
| 176 | } |
| 177 | _create(application, it, screen, poco, rectangle) { native("PiuView_create").call(this, application, it, screen, poco, rectangle); } |
| 178 | |
| 179 | get rotation() { return native("PiuView_get_rotation").call(this); } |