Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
src
core
SkLineClipper.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011 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
#ifndef SkLineClipper_DEFINED
8
#define SkLineClipper_DEFINED
9
10
struct
SkPoint
;
11
struct
SkRect
;
12
13
class
SkLineClipper
{
14
public
:
15
enum
{
16
kMaxPoints
= 4,
17
kMaxClippedLineSegments
=
kMaxPoints
- 1
18
};
19
20
/* Clip the line pts[0]...pts[1] against clip, ignoring segments that
21
lie completely above or below the clip. For portions to the left or
22
right, turn those into vertical line segments that are aligned to the
23
edge of the clip.
24
25
Return the number of line segments that result, and store the end-points
26
of those segments sequentially in lines as follows:
27
1st segment: lines[0]..lines[1]
28
2nd segment: lines[1]..lines[2]
29
3rd segment: lines[2]..lines[3]
30
*/
31
static
int
ClipLine
(
const
SkPoint
pts[2],
const
SkRect
&
clip
,
32
SkPoint
lines
[
kMaxPoints
],
bool
canCullToTheRight);
33
34
/* Intersect the line segment against the rect. If there is a non-empty
35
resulting segment, return true and set dst[] to that segment. If not,
36
return false and ignore dst[].
37
38
ClipLine is specialized for scan-conversion, as it adds vertical
39
segments on the sides to show where the line extended beyond the
40
left or right sides. IntersectLine does not.
41
*/
42
static
bool
IntersectLine
(
const
SkPoint
src
[2],
const
SkRect
&
clip
,
SkPoint
dst
[2]);
43
};
44
45
#endif
clip
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition:
SkPath.cpp:3892
SkLineClipper
Definition:
SkLineClipper.h:13
SkLineClipper::kMaxPoints
@ kMaxPoints
Definition:
SkLineClipper.h:16
SkLineClipper::kMaxClippedLineSegments
@ kMaxClippedLineSegments
Definition:
SkLineClipper.h:17
SkLineClipper::IntersectLine
static bool IntersectLine(const SkPoint src[2], const SkRect &clip, SkPoint dst[2])
Definition:
SkLineClipper.cpp:96
SkLineClipper::ClipLine
static int ClipLine(const SkPoint pts[2], const SkRect &clip, SkPoint lines[kMaxPoints], bool canCullToTheRight)
Definition:
SkLineClipper.cpp:181
PathOpsCubicIntersectionTestData::lines
const CubicPts lines[]
Definition:
PathOpsCubicIntersectionTestData.cpp:116
gn.cp.dst
dst
Definition:
cp.py:12
mskp_parser.src
src
Definition:
mskp_parser.py:22
SkPoint
Definition:
SkPoint_impl.h:163
SkRect
Definition:
extension.cpp:13
Generated on Sun Jun 23 2024 21:56:12 for Flutter Engine by
1.9.4