Lines Matching refs:SkScalar
37 void SkStackViewLayout::setSpacer(SkScalar spacer)
61 typedef SkScalar (*AlignProc)(SkScalar childLimit, SkScalar parentLimit);
62 typedef SkScalar (SkView::*GetSizeProc)() const;
63 typedef void (SkView::*SetLocProc)(SkScalar coord);
64 typedef void (SkView::*SetSizeProc)(SkScalar coord);
66 static SkScalar left_align_proc(SkScalar childLimit, SkScalar parentLimit) { return 0; }
67 static SkScalar center_align_proc(SkScalar childLimit, SkScalar parentLimit) { return SkScalarHalf(parentLimit - childLimit); }
68 static SkScalar right_align_proc(SkScalar childLimit, SkScalar parentLimit) { return parentLimit - childLimit; }
69 static SkScalar fill_align_proc(SkScalar childLimit, SkScalar parentLimit) { return 0; }
74 static SkScalar compute_children_limit(SkView* parent, GetSizeProc sizeProc, int* count,
79 SkScalar limit = 0;
106 SkScalar startM, endM, crossStartM, crossLimit;
151 SkScalar childLimit = compute_children_limit(parent, mainGetSizeP, &childCount, flexMask, &flexCount);
158 SkScalar parentLimit = (parent->*mainGetSizeP)() - startM - endM;
159 SkScalar pos = startM + gAlignProcs[fPack](childLimit, parentLimit);
160 SkScalar flexAmount = 0;
172 SkScalar crossLoc = crossStartM + gAlignProcs[fAlign]((child->*crossGetSizeP)(), crossLimit);
201 SkScalar value[4];
272 (void)dom.findScalars(node, "margin", (SkScalar*)&fMargin, 4);