Module: MSK::FrameHelpers

Included in:
SKNode
Defined in:
lib/project/helpers/frame_helpers.rb

Instance Method Summary collapse

Instance Method Details

#bottomObject



25
26
27
# File 'lib/project/helpers/frame_helpers.rb', line 25

def bottom
  CGRectGetMinY(self.frame)
end

#heightObject



13
14
15
# File 'lib/project/helpers/frame_helpers.rb', line 13

def height
  CGRectGetHeight(self.frame)
end

#leftObject



29
30
31
# File 'lib/project/helpers/frame_helpers.rb', line 29

def left
  CGRectGetMinX(self.frame)
end

#mid_xObject



5
6
7
# File 'lib/project/helpers/frame_helpers.rb', line 5

def mid_x
  CGRectGetMidX(self.frame)
end

#mid_yObject



9
10
11
# File 'lib/project/helpers/frame_helpers.rb', line 9

def mid_y
  CGRectGetMidY(self.frame)
end

#rightObject



33
34
35
# File 'lib/project/helpers/frame_helpers.rb', line 33

def right
  CGRectGetMaxX(self.frame)
end

#topObject



21
22
23
# File 'lib/project/helpers/frame_helpers.rb', line 21

def top
  CGRectGetMaxY(self.frame)
end

#widthObject



17
18
19
# File 'lib/project/helpers/frame_helpers.rb', line 17

def width
  CGRectGetWidth(self.frame)
end