class UIView
Public Instance Methods
bottom=(bottom)
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 14 def bottom=(bottom) f = frame f.origin.y = bottom - f.size.height self.frame = f end
height=(height)
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 20 def height=(height) f = frame f.size.height = height self.frame = f end
move_origin_relative_to_superview(v)
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 42 def move_origin_relative_to_superview(v) pt = origin_relative_to_superview(v) self.left = pt.x self.top = pt.y end
origin_relative_to_superview(v)
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 26 def origin_relative_to_superview(v) sup = superview offset = CGPointZero #if ([sup isKindOfClass:[UIScrollView class]]) { #offset = ((UIScrollView*)sup).contentOffset #} if !sup || v == sup return CGPoint.new(left-offset.x, top-offset.y) else d = sup.origin_relative_to_superview(v) return CGPoint.new(left+d.x-offset.x, top+d.y-offset.y) end end
top=(y)
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 8 def top=(y) f = frame f.origin.y = y self.frame = f end
view_frame()
click to toggle source
# File lib/purplish-frame/ui/ios/ui_view.rb, line 4 def view_frame frame end