| 101 | } |
| 102 | |
| 103 | void 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 | |
| 124 | void PiuLabelDraw(void* it, PiuView* view, PiuRectangle area) |
| 125 | { |