Flutter Engine
 
Loading...
Searching...
No Matches
glyph_info.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7namespace impeller::interop {
8
9GlyphInfo::~GlyphInfo() = default;
10
12 return info_.fGraphemeClusterTextRange.start;
13}
14
16 return info_.fGraphemeClusterTextRange.end;
17}
18
20 return ImpellerRect{
21 info_.fGraphemeLayoutBounds.y(),
22 info_.fGraphemeLayoutBounds.x(),
23 info_.fGraphemeLayoutBounds.width(),
24 info_.fGraphemeLayoutBounds.height(),
25 };
26}
27
29 return info_.fIsEllipsis;
30}
31
33 switch (info_.fDirection) {
34 case skia::textlayout::TextDirection::kRtl:
36 case skia::textlayout::TextDirection::kLtr:
38 }
40}
41
42} // namespace impeller::interop
ImpellerTextDirection GetTextDirection() const
Definition glyph_info.cc:32
size_t GetGraphemeClusterCodeUnitRangeBegin() const
Definition glyph_info.cc:11
ImpellerRect GetGraphemeClusterBounds() const
Definition glyph_info.cc:19
size_t GetGraphemeClusterCodeUnitRangeEnd() const
Definition glyph_info.cc:15
ImpellerTextDirection
Definition impeller.h:479
@ kImpellerTextDirectionLTR
Definition impeller.h:481
@ kImpellerTextDirectionRTL
Definition impeller.h:480