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

Function PiuRoundRect_create

modules/piu/Pebble/piuRoundRect.c:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void PiuRoundRect_create(xsMachine* the)
113{
114 PiuRoundRect* self;
115 xsVars(4);
116 xsSetHostChunk(xsThis, NULL, sizeof(PiuRoundRectRecord));
117 self = PIU(RoundRect, xsThis);
118 (*self)->the = the;
119 (*self)->reference = xsToReference(xsThis);
120 xsSetHostHooks(xsThis, (xsHostHooks*)&PiuRoundRectHooks);
121 (*self)->dispatch = (PiuDispatch)&PiuRoundRectDispatchRecord;
122 (*self)->recordSize = PiuRecordSize(sizeof(PiuRoundRectRecord));
123 (*self)->flags = piuVisible;
124 (*self)->corners = 0xF;
125 (*self)->radius = 8;
126 PiuContentDictionary(the, self);
127 PiuRoundRectDictionary(the, self);
128 PiuBehaviorOnCreate(self);
129}
130
131void PiuRoundRect_get_corners(xsMachine* the)
132{

Callers

nothing calls this directly

Calls 3

PiuContentDictionaryFunction · 0.85
PiuRoundRectDictionaryFunction · 0.85
PiuBehaviorOnCreateFunction · 0.85

Tested by

no test coverage detected