| 183 | } |
| 184 | |
| 185 | void PiuContainerFitVertically(void* it) |
| 186 | { |
| 187 | PiuContainer* self = it; |
| 188 | PiuContent* content = (*self)->first; |
| 189 | PiuDimension height; |
| 190 | PiuContentFitVertically(it); |
| 191 | height = (*self)->bounds.height; |
| 192 | while (content) { |
| 193 | PiuCoordinates coordinates = &((*content)->coordinates); |
| 194 | if ((coordinates->vertical & piuTopBottom) == piuTopBottom) |
| 195 | (*content)->bounds.height = height - coordinates->top - coordinates->bottom; |
| 196 | else |
| 197 | (*content)->bounds.height = coordinates->height; |
| 198 | (*(*content)->dispatch->fitVertically)(content); |
| 199 | (*(*self)->dispatch->placeContentVertically)(self, content); |
| 200 | content = (*content)->next; |
| 201 | } |
| 202 | (*self)->flags |= piuContentsPlaced; |
| 203 | } |
| 204 | |
| 205 | void* PiuContainerHit(void* it, PiuCoordinate x, PiuCoordinate y) |
| 206 | { |
no test coverage detected