Lines Matching refs:child
24 UIView* child = childrenHead_;
30 while (child != nullptr) {
32 child = child->GetNextSibling();
51 UIView* child = childrenHead_;
62 if (child == nullptr) {
66 child->ReMeasure();
67 left = child->GetStyle(STYLE_MARGIN_LEFT);
68 right = child->GetStyle(STYLE_MARGIN_RIGHT);
69 top = child->GetStyle(STYLE_MARGIN_TOP);
70 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM);
72 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left;
74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top;
75 child->SetPosition(actPosX, actPosY);
76 child->LayoutChildren();
77 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight);
78 child = child->GetNextSibling();
85 UIView* child = childrenHead_;
96 if (child == nullptr) {
100 child->ReMeasure();
101 left = child->GetStyle(STYLE_MARGIN_LEFT);
102 right = child->GetStyle(STYLE_MARGIN_RIGHT);
103 top = child->GetStyle(STYLE_MARGIN_TOP);
104 bottom = child->GetStyle(STYLE_MARGIN_BOTTOM);
106 int16_t actPosX = posX + (layoutWidth - child->GetRelativeRect().GetWidth() - left - right) / 2 + left;
108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top;
109 child->SetPosition(actPosX, actPosY);
110 child->LayoutChildren();
111 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight);
112 child = child->GetNextSibling();