Method: Fox::Canvas::Shape#drawOutline

Defined in:
lib/fox16/canvas.rb

#drawOutline(dc, x, y, w, h) ⇒ Object

Draws outline



123
124
125
126
127
128
129
130
131
# File 'lib/fox16/canvas.rb', line 123

def drawOutline(dc, x, y, w, h)
  points = []
  points << FXPoint.new(x - 0.5*w, y - 0.5*h)
  points << FXPoint.new(x + 0.5*w, y)
  points << FXPoint.new(x + 0.5*w, y + 0.5*h)
  points << FXPoint.new(x - 0.5*w, y + 0.5*h)
  points << points[0]
  dc.drawLines(points)
end