Module image

Types

PImage = ref TImage
TImage = object of TObject
  x*, y*: int16
  surface*: PSurface
  visible*: bool
  deleteEntity*: bool

Procs

proc init(obj: PImage; filename: cstring; x: int = 0; y: int = 0)
proc init(obj: PImage; surface: PSurface; x: int = 0; y: int = 0)
proc newImage(filename: cstring; x: int = 0; 
              y: int = 0): PImage
filename: image file to load from. x, y: draw offset.
proc newImage(surface: PSurface; x: int = 0; 
              y: int = 0): PImage

Methods

method free(obj: PImage)
method blit(obj: PImage; x: int16 = 0'i16; y: int16 = 0'i16)
method blit(obj: PImage; dstSurface: PSurface; x: int16 = 0'i16; 
            y: int16 = 0'i16)
method blit(obj: PImage; dstSurface: PSurface; x: int = 0; y: int = 0) {.inline.}
method update(obj: PImage) {.inline.}
method getRect(obj: PImage): TRect
method centerOffset(obj: PImage) {.inline.}
method centerOffsetX(obj: PImage) {.inline.}
method centerOffsetY(obj: PImage) {.inline.}
method show(obj: PImage) {.inline.}
method hide(obj: PImage) {.inline.}
Generated: 2012-11-11 20:09:27 UTC