NAME
SDLx::Widget::Drawable - abstract base class for drawable things
DESCRIPTION
This module is an abstract base class for drawable things (sprites, animations, etc). It is not meant to be used directly. Subclass it instead.
METHODS
This module is not used directly. Instead, the following documentation describes the intended purposes of the methods.
new
-
Return a new drawable object
draw
-
Draw the object
rect
-
Accessor. Set or return the drawable's rect. For an image-type object, the rect is the area of the image to copy to the screen. For an entity-type object, the rect is the (x, y) coordinates, width, and height of the object.
x
-
Accessor. Returns the x value of the object. See rect for context.
y
-
Accessor. Returns the y value of the object. See rect for context.
width
-
Accessor. Returns the width of the object. See rect for context.
height
-
Accessor. Returns the height of the object. See rect for context.
AUTHOR
Dustin Mays <dork.fish.wat@gmail.com>