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

Public Member Functions

 Coordinates (int _length)
 
 ~Coordinates ()
 
SkIPointoperator[] (int i) const
 

Public Attributes

const int length
 
SkIPoint *const data
 

Detailed Description

Definition at line 47 of file BitmapCopyTest.cpp.

Constructor & Destructor Documentation

◆ Coordinates()

Coordinates::Coordinates ( int  _length)
inlineexplicit

Definition at line 52 of file BitmapCopyTest.cpp.

52 : length(_length)
53 , data(new SkIPoint[length]) { }
const int length
SkIPoint *const data

◆ ~Coordinates()

Coordinates::~Coordinates ( )
inline

Definition at line 55 of file BitmapCopyTest.cpp.

55 {
56 delete [] data;
57 }

Member Function Documentation

◆ operator[]()

SkIPoint * Coordinates::operator[] ( int  i) const
inline

Definition at line 59 of file BitmapCopyTest.cpp.

59 {
60 // Use with care, no bounds checking.
61 return data + i;
62 }

Member Data Documentation

◆ data

SkIPoint* const Coordinates::data

Definition at line 50 of file BitmapCopyTest.cpp.

◆ length

const int Coordinates::length

Definition at line 49 of file BitmapCopyTest.cpp.


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