Lines Matching refs:boxes
258 Float32Array TextBoxesToFloat32Array(std::vector<para::TextBox> boxes) { in TextBoxesToFloat32Array() argument
260 if (!boxes.size()) { in TextBoxesToFloat32Array()
263 SimpleTextBox* rects = new SimpleTextBox[boxes.size()]; in TextBoxesToFloat32Array()
264 for (int i = 0; i < boxes.size(); i++) { in TextBoxesToFloat32Array()
265 rects[i].rect = boxes[i].rect; in TextBoxesToFloat32Array()
266 if (boxes[i].direction == para::TextDirection::kRtl) { in TextBoxesToFloat32Array()
275 return Float32Array(typed_memory_view(boxes.size() * 5, fPtr)); in TextBoxesToFloat32Array()
283 std::vector<para::TextBox> boxes = self.getRectsForRange(start, end, heightStyle, widthStyle); in GetRectsForRange() local
284 return TextBoxesToFloat32Array(boxes); in GetRectsForRange()
288 std::vector<para::TextBox> boxes = self.getRectsForPlaceholders(); in GetRectsForPlaceholders() local
289 return TextBoxesToFloat32Array(boxes); in GetRectsForPlaceholders()