MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / constructor

Method constructor

modules/piu/MC/piuMC.js:167–176  ·  view source on GitHub ↗
(application, it)

Source from the content-addressed store, hash-verified

165
166class 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); }

Callers

nothing calls this directly

Calls 2

_createMethod · 0.95
rectangleMethod · 0.80

Tested by

no test coverage detected