Module: AttrRect

Includes:
GTK::Geometry
Included in:
AttrSprite
Defined in:
dragon/attr_sprite.rb

Instance Method Summary collapse

Methods included from GTK::Geometry

#anchor_rect, angle_between_lines, angle_from, #angle_from, #angle_given_point, angle_to, #angle_to, center_inside_rect, #center_inside_rect, center_inside_rect_x, #center_inside_rect_x, center_inside_rect_y, #center_inside_rect_y, contract_intersect_rect?, cubic_bezier, distance, #inside_rect?, inside_rect?, #intersect_rect?, intersect_rect?, #intersects_rect?, intersects_rect?, line_intersect, line_rect, line_rise_run, line_slope, line_y_intercept, #point_inside_circle?, point_inside_circle?, ray_test, #scale_rect, scale_rect, scale_rect_extended, #scale_rect_extended, shift_line, to_square

Instance Method Details

#bottomObject


17
18
19
# File 'dragon/attr_sprite.rb', line 17

def bottom
  (@y || self.y)
end

#leftObject


9
10
11
# File 'dragon/attr_sprite.rb', line 9

def left
  (@x || self.x)
end

#rightObject


13
14
15
# File 'dragon/attr_sprite.rb', line 13

def right
  (@x || self.x) + (@w || self.w)
end

#topObject


21
22
23
# File 'dragon/attr_sprite.rb', line 21

def top
  (@y || self.y) + (@h || self.h)
end

#x1Object


25
26
27
# File 'dragon/attr_sprite.rb', line 25

def x1
  (@x || self.x)
end

#y1Object


29
30
31
# File 'dragon/attr_sprite.rb', line 29

def y1
  (@y || self.y)
end