Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
modules
skplaintexteditor
src
shape.h
Go to the documentation of this file.
1
// Copyright 2019 Google LLC.
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
4
#include "
include/core/SkFont.h
"
5
#include "
include/core/SkTextBlob.h
"
6
7
#include <cstddef>
8
#include <vector>
9
10
namespace
SkPlainTextEditor
{
11
12
struct
ShapeResult
{
13
sk_sp<SkTextBlob>
blob
;
14
std::vector<std::size_t>
lineBreakOffsets
;
15
std::vector<SkRect>
glyphBounds
;
16
std::vector<bool>
wordBreaks
;
17
int
verticalAdvance
;
18
};
19
20
ShapeResult
Shape
(
const
char
* ut8text,
21
size_t
textByteLen,
22
const
SkFont
& font,
23
sk_sp<SkFontMgr>
fontMgr
,
24
const
char
* locale,
25
float
width
);
26
27
}
// namespace SkPlainTextEditor
SkFont.h
SkTextBlob.h
Shape
Shape
Definition
aaxfermodes.cpp:46
SkFont
Definition
SkFont.h:35
sk_sp
Definition
SkRefCnt.h:220
fontMgr
sk_sp< SkFontMgr > fontMgr
Definition
examples.cpp:32
SkPlainTextEditor
Definition
editor.h:24
width
int32_t width
Definition
serialization_callbacks.cc:0
SkPlainTextEditor::ShapeResult
Definition
shape.h:12
SkPlainTextEditor::ShapeResult::verticalAdvance
int verticalAdvance
Definition
shape.h:17
SkPlainTextEditor::ShapeResult::wordBreaks
std::vector< bool > wordBreaks
Definition
shape.h:16
SkPlainTextEditor::ShapeResult::glyphBounds
std::vector< SkRect > glyphBounds
Definition
shape.h:15
SkPlainTextEditor::ShapeResult::blob
sk_sp< SkTextBlob > blob
Definition
shape.h:13
SkPlainTextEditor::ShapeResult::lineBreakOffsets
std::vector< std::size_t > lineBreakOffsets
Definition
shape.h:14
Generated on Fri Apr 26 2024 06:16:22 for Flutter Engine by
1.9.8