Module: PurplishFrame::CocoaTouchView

Includes:
View
Included in:
UIScreen, UIView
Defined in:
lib/purplish-frame/ui/ios/cocoa_touch_view.rb

Instance Method Summary collapse

Methods included from View

#center_x, #center_x=, #center_y, #center_y=, #height, #inset!, #left, #left=, #right, #right=, #size_height_to_fit, #size_height_to_fit_align_bottom, #size_height_to_fit_max, #size_height_to_fit_min, #size_width_to_fit, #size_width_to_fit_align_right, #size_width_to_fit_max, #size_width_to_fit_min, #width, #width=

Instance Method Details

#bottomObject



9
10
11
# File 'lib/purplish-frame/ui/ios/cocoa_touch_view.rb', line 9

def bottom
  view_frame.origin.y + view_frame.size.height
end

#topObject



5
6
7
# File 'lib/purplish-frame/ui/ios/cocoa_touch_view.rb', line 5

def top
  view_frame.origin.y
end