18 #ifndef ION_IMAGE_NINEPATCH_H_
19 #define ION_IMAGE_NINEPATCH_H_
21 #include "base/integral_types.h"
22 #include "base/macros.h"
25 #include "ion/external/gtest/gunit_prod.h"
67 const math::Vector2ui GetMinimumSize()
const;
72 const math::Range2ui GetPaddingBox(uint32 width, uint32 height)
const;
77 const math::Vector2ui GetSizeToFitContent(
78 uint32 content_width, uint32 content_height)
const;
114 #endif // ION_IMAGE_NINEPATCH_H_
Represents a nine-patch image as described in the Android SDK reference.
Thread-safe abstract base class.
const Grid & image
The original monochrome image data, as doubles (0 - 1).
base::ReferentPtr< NinePatch >::Type NinePatchPtr
Convenience typedef.
void SetBuildWipeable(bool wipable)
Sets whether images returned by BuildImage() are wipeable (see base::DataContainer) or not...
Range< 2, uint32 > Range2ui
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
This class can be used in place of std::vector to allow an Ion Allocator to be used for memory alloca...