- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UDrawable Class Reference

A simple interface for some drawable things (e.g. textures). More...

#include <udrawable.hpp>

Inheritance diagram for ufo::UDrawable:

ufo::UObject ufo::UCollectable ufo::UImage ufo::UGL_Image List of all members.

Public Member Functions

virtual void paintDrawable (UGraphics *g, const URectangle &rect)=0
void paintDrawable (UGraphics *g, int x, int y, int w, int h)
virtual UDimension getDrawableSize () const =0

Detailed Description

A simple interface for some drawable things (e.g. textures).

Author:
Johannes Schmidt


Member Function Documentation

virtual UDimension ufo::UDrawable::getDrawableSize  )  const [pure virtual]
 

Returns:
The preferred size of the drawable.

Implemented in ufo::UImage.

void ufo::UDrawable::paintDrawable UGraphics g,
int  x,
int  y,
int  w,
int  h
[inline]
 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

virtual void ufo::UDrawable::paintDrawable UGraphics g,
const URectangle rect
[pure virtual]
 

Draw to the given rectangle. Possibly scale to the given size.

Implemented in ufo::UImage.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt