class CGRect
Public Instance Methods
bottom()
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 12 def bottom origin.y+size.height end
bottom=(bottom)
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 16 def bottom=(bottom) origin.y = bottom - size.height end
center_y()
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 20 def center_y top+size.height/2 end
center_y=(center_y)
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 24 def center_y=(center_y) self.top = center_y-size.height/2 end
height=(h)
click to toggle source
# File lib/purplish-frame/non-ui/cg_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/cg_rect.rb, line 32 def inset(dx, dy=dx) CGRectInset(self, dx, dy) end
to_rect()
click to toggle source
# File lib/purplish-frame/non-ui/ns_array.rb, line 28 def to_rect self end
top()
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 4 def top origin.y end
top=(y)
click to toggle source
# File lib/purplish-frame/non-ui/cg_rect.rb, line 8 def top=(y) origin.y = y end