class NSRect
Public Instance Methods
bottom()
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 12 def bottom origin.y end
bottom=(bottom)
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 16 def bottom=(bottom) origin.y = bottom end
center_y()
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 20 def center_y bottom+size.height/2 end
center_y=(center_y)
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 24 def center_y=(center_y) self.bottom = center_y-size.height/2 end
height=(h)
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 28 def height=(h) size.height = h end
inset(dx, dy=dx)
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 32 def inset(dx, dy=dx) NSInsetRect(self, dx, dy) end
to_rect()
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_array.rb, line 2 def to_rect self end
top()
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 4 def top origin.y + size.height end
top=(y)
click to toggle source
# File lib/purplish-frame/non-ui/osx/ns_rect.rb, line 8 def top=(y) origin.y = y - size.height end