45 #ifndef GRAPHICS_NINE_PATCH_H 46 #define GRAPHICS_NINE_PATCH_H 48 #include "common/array.h" 49 #include "common/rect.h" 50 #include "common/hashmap.h" 55 class MacWindowManager;
73 bool init(
Graphics::ManagedSurface *bmp,
bool vertical, uint32 black, uint32 white,
int titlePos = 0,
int *titleIndex =
nullptr);
75 void calcOffsets(
int len,
int titleIndex = 0,
int titleWidth = 0);
84 int _cached_dw, _cached_dh;
85 int _titleIndex, _titleWidth, _titlePos;
92 void modifyTitleWidth(
int titleWidth);
94 int getWidth() {
return _width; }
95 int getHeight() {
return _height; }
96 int getMinWidth() {
return _h._fix; }
97 int getMinHeight() {
return _v._fix; }
98 int getTitleWidth() {
return _titleWidth; }
100 int getTitleOffset();
111 #endif // GRAPHICS_NINE_PATCH_H Definition: managed_surface.h:51
void clear()
Definition: array.h:320
Definition: nine_patch.h:78
Definition: nine_patch.h:65
Definition: macwindowmanager.h:149
Definition: nine_patch.h:57
Definition: formatinfo.h:28