Sha256: b5cfb34e6b326908091f3df7c31ac0c34d3e74afc527090f8cd177749777e716
Contents?: true
Size: 449 Bytes
Versions: 7
Compression:
Stored size: 449 Bytes
Contents
class NSRect include PurplishFrame::Rect def top origin.y + size.height end def top=(y) origin.y = y - size.height end def bottom origin.y end def bottom=(bottom) origin.y = bottom end def center_y bottom+size.height/2 end def center_y=(center_y) self.bottom = center_y-size.height/2 end def height=(h) size.height = h end def inset(dx, dy) NSInsetRect(self, dx, dy) end end
Version data entries
7 entries across 7 versions & 1 rubygems