lib/sugarcube/uiimage.rb in sugarcube-0.13.5 vs lib/sugarcube/uiimage.rb in sugarcube-0.13.7
- old
+ new
@@ -188,6 +188,13 @@
# not necessary, since we don't modify/examine the insets
# insets = SugarCube::CoreGraphics::EdgeInsets(insets)
resizableImageWithCapInsets(insets, resizingMode:UIImageResizingModeStretch)
end
+ ##|
+ ##| imageWithAlignmentRectInsets
+ ##|
+ def alignment_rect(insets=UIEdgeInsetsZero)
+ imageWithAlignmentRectInsets(insets)
+ end
+
end