Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkQuadConstruct Struct Reference

Public Member Functions

bool init (SkScalar start, SkScalar end)
 
bool initWithStart (SkQuadConstruct *parent)
 
bool initWithEnd (SkQuadConstruct *parent)
 

Public Attributes

SkPoint fQuad [3]
 
SkPoint fTangentStart
 
SkPoint fTangentEnd
 
SkScalar fStartT
 
SkScalar fMidT
 
SkScalar fEndT
 
bool fStartSet
 
bool fEndSet
 
bool fOppositeTangents
 

Detailed Description

Definition at line 126 of file SkStroke.cpp.

Member Function Documentation

◆ init()

bool SkQuadConstruct::init ( SkScalar  start,
SkScalar  end 
)
inline

Definition at line 138 of file SkStroke.cpp.

138 {
139 fStartT = start;
141 fEndT = end;
142 fStartSet = fEndSet = false;
143 return fStartT < fMidT && fMidT < fEndT;
144 }
#define SK_ScalarHalf
Definition: SkScalar.h:19
glong glong end
SkScalar fEndT
Definition: SkStroke.cpp:132
SkScalar fMidT
Definition: SkStroke.cpp:131
SkScalar fStartT
Definition: SkStroke.cpp:130

◆ initWithEnd()

bool SkQuadConstruct::initWithEnd ( SkQuadConstruct parent)
inline

Definition at line 156 of file SkStroke.cpp.

156 {
157 if (!init(parent->fMidT, parent->fEndT)) {
158 return false;
159 }
160 fQuad[2] = parent->fQuad[2];
161 fTangentEnd = parent->fTangentEnd;
162 fEndSet = true;
163 return true;
164 }
SkPoint fTangentEnd
Definition: SkStroke.cpp:129
SkPoint fQuad[3]
Definition: SkStroke.cpp:127
bool init(SkScalar start, SkScalar end)
Definition: SkStroke.cpp:138

◆ initWithStart()

bool SkQuadConstruct::initWithStart ( SkQuadConstruct parent)
inline

Definition at line 146 of file SkStroke.cpp.

146 {
147 if (!init(parent->fStartT, parent->fMidT)) {
148 return false;
149 }
150 fQuad[0] = parent->fQuad[0];
152 fStartSet = true;
153 return true;
154 }
SkPoint fTangentStart
Definition: SkStroke.cpp:128

Member Data Documentation

◆ fEndSet

bool SkQuadConstruct::fEndSet

Definition at line 134 of file SkStroke.cpp.

◆ fEndT

SkScalar SkQuadConstruct::fEndT

Definition at line 132 of file SkStroke.cpp.

◆ fMidT

SkScalar SkQuadConstruct::fMidT

Definition at line 131 of file SkStroke.cpp.

◆ fOppositeTangents

bool SkQuadConstruct::fOppositeTangents

Definition at line 135 of file SkStroke.cpp.

◆ fQuad

SkPoint SkQuadConstruct::fQuad[3]

Definition at line 127 of file SkStroke.cpp.

◆ fStartSet

bool SkQuadConstruct::fStartSet

Definition at line 133 of file SkStroke.cpp.

◆ fStartT

SkScalar SkQuadConstruct::fStartT

Definition at line 130 of file SkStroke.cpp.

◆ fTangentEnd

SkPoint SkQuadConstruct::fTangentEnd

Definition at line 129 of file SkStroke.cpp.

◆ fTangentStart

SkPoint SkQuadConstruct::fTangentStart

Definition at line 128 of file SkStroke.cpp.


The documentation for this struct was generated from the following file: