Flutter Engine
The Flutter Engine
third_party
skia
src
core
SkPathMeasurePriv.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 Google Inc.
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkPathMeasurePriv_DEFINED
9
#define SkPathMeasurePriv_DEFINED
10
11
#include "
include/core/SkPath.h
"
12
#include "
include/core/SkPoint.h
"
13
#include "
src/core/SkGeometry.h
"
14
15
// Used in the Segment struct defined in SkPathMeasure.h
16
// It is used as a 2-bit field so if you add to this
17
// you must increase the size of the bitfield there.
18
enum
SkSegType
{
19
kLine_SegType
,
20
kQuad_SegType
,
21
kCubic_SegType
,
22
kConic_SegType
,
23
};
24
25
26
void
SkPathMeasure_segTo
(
const
SkPoint
pts[],
unsigned
segType,
27
SkScalar
startT,
SkScalar
stopT,
SkPath
*
dst
);
28
29
// for testing
30
31
class
SkPathMeasure
;
32
33
class
SkPathMeasurePriv
{
34
public
:
35
static
size_t
CountSegments
(
const
SkPathMeasure
&);
36
};
37
38
#endif
// SkPathMeasurePriv_DEFINED
SkGeometry.h
SkSegType
SkSegType
Definition:
SkPathMeasurePriv.h:18
kConic_SegType
@ kConic_SegType
Definition:
SkPathMeasurePriv.h:22
kCubic_SegType
@ kCubic_SegType
Definition:
SkPathMeasurePriv.h:21
kLine_SegType
@ kLine_SegType
Definition:
SkPathMeasurePriv.h:19
kQuad_SegType
@ kQuad_SegType
Definition:
SkPathMeasurePriv.h:20
SkPathMeasure_segTo
void SkPathMeasure_segTo(const SkPoint pts[], unsigned segType, SkScalar startT, SkScalar stopT, SkPath *dst)
SkPath.h
SkPoint.h
SkPathMeasurePriv
Definition:
SkPathMeasurePriv.h:33
SkPathMeasurePriv::CountSegments
static size_t CountSegments(const SkPathMeasure &)
Definition:
SkPathMeasure.cpp:67
SkPathMeasure
Definition:
SkPathMeasure.h:21
SkPath
Definition:
SkPath.h:59
SkScalar
float SkScalar
Definition:
extension.cpp:12
gn.cp.dst
dst
Definition:
cp.py:12
SkPoint
Definition:
SkPoint_impl.h:163
Generated on Sun Jun 23 2024 21:56:13 for Flutter Engine by
1.9.4