Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SkylineRectanglePacker (int w, int h) | |
~SkylineRectanglePacker () final | |
void | Reset () final |
Empty out all previously added rectangles. More... | |
bool | AddRect (int w, int h, IPoint16 *loc) final |
Attempt to add a rect without moving already placed rectangles. More... | |
Scalar | PercentFull () const final |
Returns how much area has been filled with rectangles. More... | |
Public Member Functions inherited from impeller::RectanglePacker | |
virtual | ~RectanglePacker () |
virtual bool | AddRect (int width, int height, IPoint16 *loc)=0 |
Attempt to add a rect without moving already placed rectangles. More... | |
virtual Scalar | PercentFull () const =0 |
Returns how much area has been filled with rectangles. More... | |
virtual void | Reset ()=0 |
Empty out all previously added rectangles. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::RectanglePacker | |
static std::shared_ptr< RectanglePacker > | Factory (int width, int height) |
Return an empty packer with area specified by width and height. More... | |
Protected Member Functions inherited from impeller::RectanglePacker | |
RectanglePacker (int width, int height) | |
int | width () const |
int | height () const |
Definition at line 18 of file rectangle_packer.cc.
Definition at line 20 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 61 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.