2a8c48be4f
generating replacement includes exposed errors mostly dealing with globals like SkAlphaType and members. Rewrite finding and resolving links to hopefully make this area more robust. TBR=caryclark@google.com Docs-Preview: https://skia.org/?cl=107160 Bug: skia:6898 Change-Id: I9b8025160203d204286f3f6ca0cebd70da6253b4 Reviewed-on: https://skia-review.googlesource.com/107160 Commit-Queue: Cary Clark <caryclark@skia.org> Reviewed-by: Cary Clark <caryclark@skia.org>
5.1 KiB
5.1 KiB
SkIPoint16 Reference
IPoint16
Overview
Overview Subtopic
name | description |
---|---|
Constructor | functions that construct SkIPoint16 |
Member Function | static functions and member methods |
Member | member values |
Related Function | similar methods grouped together |
Struct SkIPoint16
SkIPoint16 holds two 16 bit integer coordinates.
Related Function
name | description |
---|---|
Property | member values |
Set | replaces all values |
Member Function
name | description |
---|---|
Make | constructs from integer inputs |
set | sets to integer input |
x | returns fX |
y | returns fY |
Member
name | description |
---|---|
fX | x-axis value |
fY | y-axis value |
x-axis value used by IPoint16
y-axis value used by IPoint16
Constructor
name | description |
---|---|
Make | constructs from integer inputs |
Make
static constexpr SkIPoint16 Make(int x, int y)
Sets fX to x, fY to y. If SK_DEBUG is defined, asserts if x or y does not fit in 16 bits.
Parameters
x | integer x-axis value of constructed IPoint |
y | integer y-axis value of constructed IPoint |
Return Value
IPoint16 (x, y)
Example
Example Output
pt1.fX == pt2.fX
pt1.fY == pt2.fY
See Also
set SkPoint::iset()[2] SkIPoint::Make
Property
name | description |
---|---|
x | returns fX |
y | returns fY |
x
int16_t x() const
Returns x-axis value of IPoint16.
Return Value
Example
Example Output
pt1.fX == pt1.x()
See Also
y
int16_t y() const
Returns y-axis value of IPoint.
Return Value
Example
Example Output
pt1.fY == pt1.y()
See Also
Set
name | description |
---|---|
set | sets to integer input |
set
void set(int x, int y)
Parameters
x | new value for fX |
y | new value for fY |
Example
Example Output
pt1.fX == pt2.fX
pt1.fY == pt2.fY