Class: Fox::Canvas::ImageShape

Inherits:
Shape
  • Object
show all
Defined in:
lib/fox16/canvas.rb

Instance Attribute Summary (collapse)

Attributes inherited from Shape

#foreground, #selector, #target, #x, #y

Instance Method Summary (collapse)

Methods inherited from Shape

#bounds, #deselect, #disable, #draggable=, #draggable?, #drawOutline, #enable, #enabled?, #hide, #hit?, #makeControlPoints, #move, #position, #resize, #select, #selected?, #show, #visible?

Constructor Details

- (ImageShape) initialize(x, y, image)

Returns a new instance of ImageShape



295
296
297
# File 'lib/fox16/canvas.rb', line 295

def initialize(x, y, image)
	@image = image
end

Instance Attribute Details

- (Object) image

Returns the value of attribute image



293
294
295
# File 'lib/fox16/canvas.rb', line 293

def image
  @image
end

Instance Method Details

- (Object) draw(dc)



299
300
301
# File 'lib/fox16/canvas.rb', line 299

def draw(dc)
	dc.drawImage(image)
end