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

Function PiuLabelDictionary

modules/piu/All/piuLabel.c:103–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void PiuLabelDictionary(xsMachine* the, void* it)
104{
105 PiuLabel* self = it;
106 xsBooleanValue boolean;
107 if (xsFindBoolean(xsArg(1), xsID_ellipsis, &boolean)) {
108 if (boolean)
109 (*self)->flags |= piuLabelEllipsis;
110 else
111 (*self)->flags &= ~piuLabelEllipsis;
112 }
113 if (xsFindResult(xsArg(1), xsID_string)) {
114 xsSlot* string = PiuString(xsResult);
115 (*self)->string = string;
116 }
117 else if (xsFindResult(xsArg(1), xsID_contents)) {
118 xsResult = xsCall1(xsResult, xsID_join, xsString(""));
119 xsSlot* string = PiuString(xsResult);
120 (*self)->string = string;
121 }
122}
123
124void PiuLabelDraw(void* it, PiuView* view, PiuRectangle area)
125{

Callers 1

PiuLabel_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected