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

Function PiuScreenBuffer_create

modules/piu/Pebble/piuScreenBuffer.c:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void PiuScreenBuffer_create(xsMachine* the)
110{
111 PiuScreenBuffer* self;
112 xsVars(4);
113 xsSetHostChunk(xsThis, NULL, sizeof(PiuScreenBufferRecord));
114 self = PIU(ScreenBuffer, xsThis);
115 (*self)->the = the;
116 (*self)->reference = xsToReference(xsThis);
117 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuScreenBufferHooks);
118 (*self)->dispatch = (PiuDispatch)&PiuScreenBufferDispatchRecord;
119 (*self)->recordSize = PiuRecordSize(sizeof(PiuScreenBufferRecord));
120 (*self)->flags = piuVisible;
121 PiuContentDictionary(the, self);
122 PiuBehaviorOnCreate(self);
123}
124
125

Callers

nothing calls this directly

Calls 2

PiuContentDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected