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

ufo::UImage Class Reference

A abstract image representation. More...

#include <uimage.hpp>

Inheritance diagram for ufo::UImage:

ufo::UDrawable ufo::UVolatileData ufo::UObject ufo::UObject ufo::UCollectable ufo::UCollectable ufo::UGL_Image List of all members.

Public Member Functions

virtual UDimension getImageSize () const =0
virtual int getImageComponents () const =0
virtual void refresh ()
virtual void paintDrawable (UGraphics *g, const URectangle &rect)
virtual UDimension getDrawableSize () const
virtual void * peer () const
virtual unsigned long handle () const

Detailed Description

A abstract image representation.

Author:
Johannes Schmidt


Member Function Documentation

virtual UDimension ufo::UImage::getDrawableSize  )  const [virtual]
 

Returns:
The preferred size of the drawable.

Implements ufo::UDrawable.

virtual int ufo::UImage::getImageComponents  )  const [pure virtual]
 

Returns:
The number of bytes used for one pixel.

Implemented in ufo::UGL_Image.

virtual UDimension ufo::UImage::getImageSize  )  const [pure virtual]
 

Returns:
The size of the image.

Implemented in ufo::UGL_Image.

virtual unsigned long ufo::UImage::handle  )  const [inline, virtual]
 

Returns the system dependent image handle, if any. This may be the OpenGL index for OpenGL backends.

Returns:
The system dependent image handle or 0.

Reimplemented in ufo::UGL_Image.

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

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

Implements ufo::UDrawable.

virtual void* ufo::UImage::peer  )  const [inline, virtual]
 

Returns the system dependent image peer object, if any. This may be SDL surface for SDL 2D backends.

Returns:
The system dependent image object or NULL.

virtual void ufo::UImage::refresh  )  [virtual]
 

May be overriden for auto refreshing after context recreation.

Implements ufo::UVolatileData.

Reimplemented in ufo::UGL_Image.


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