* Source/GSThemeDrawing.m: Use new -[GSDrawTiles themeMargins]

to get the margins for draw tiles.
* Source/GSThemePrivate.h:
* Source/GSThemeTools.m: Get the 9-patch content rect support
working from end-to-end.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37191 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2013-10-03 22:24:57 +00:00
parent edfc7a3923
commit ddba9eefa8
4 changed files with 57 additions and 16 deletions

View file

@ -288,12 +288,7 @@
}
else
{
// FIXME: Move this code to a method in GSDrawTiles?
// FIXME: Not correct, need to get the content area of the draw tiles
margins.left = tiles->rects[TileCL].size.width;
margins.top = tiles->rects[TileTM].size.height;
margins.right = tiles->rects[TileCR].size.width;
margins.bottom = tiles->rects[TileBM].size.height;
margins = [tiles themeMargins];
return margins;
}
}
@ -370,8 +365,9 @@
{
// FIXME: We assume the button's top and right padding are the same as
// its bottom and left.
return NSMakeSize(tiles->contentRect.origin.x,
tiles->contentRect.origin.y);
GSThemeMargins margins = [tiles themeMargins];
return NSMakeSize(margins.left, margins.bottom);
}
}