Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkylineRectanglePacker (int w, int h) | |
~SkylineRectanglePacker () final | |
void | reset () final |
Empty out all previously added rectangles. | |
bool | addRect (int w, int h, IPoint16 *loc) final |
Attempt to add a rect without moving already placed rectangles. | |
float | percentFull () const final |
Returns how much area has been filled with rectangles. | |
Public Member Functions inherited from impeller::RectanglePacker | |
virtual | ~RectanglePacker () |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::RectanglePacker | |
static std::unique_ptr< RectanglePacker > | Factory (int width, int height) |
Return an empty packer with area specified by width and height. | |
Protected Member Functions inherited from impeller::RectanglePacker | |
RectanglePacker (int width, int height) | |
int | width () const |
int | height () const |
Definition at line 16 of file rectangle_packer.cc.
Definition at line 18 of file rectangle_packer.cc.
|
inlinefinal |
Definition at line 22 of file rectangle_packer.cc.
|
finalvirtual |
Attempt to add a rect without moving already placed rectangles.
[in] | width | The width of the rectangle to add. |
[in] | height | The height of the rectangle to add. |
[out] | loc | If successful, will be set to the position of the upper-left corner of the rectangle. |
Implements impeller::RectanglePacker.
Definition at line 57 of file rectangle_packer.cc.
|
inlinefinalvirtual |
Returns how much area has been filled with rectangles.
Implements impeller::RectanglePacker.
Definition at line 32 of file rectangle_packer.cc.
|
inlinefinalvirtual |
Empty out all previously added rectangles.
Implements impeller::RectanglePacker.
Definition at line 24 of file rectangle_packer.cc.