Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields

sdl4gcj::video::Surface Class Reference

Inheritance diagram for sdl4gcj::video::Surface:

Inheritance graph
[legend]
Collaboration diagram for sdl4gcj::video::Surface:

Collaboration graph
[legend]

Public Member Functions

 Surface ()
 Surface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask)
native int getFlags ()
native int getW ()
native int getH ()
native int getPitch ()
native void saveBMP (String filePath)
void saveBMP (File file)
native int blitSurface (Surface surface, int sx, int sy, int sw, int sh, int dx, int dy)
native int blitSurface (Surface surface, int dx, int dy)
native int blitSurface (Surface surface)
int repeatSurface (Surface surface)
native void fillRect (int sx, int sy, int sw, int sh, int color)
native void fillRect (int color)
void fillRect (Rect rect, int color)
native void setColorKey (int flags, int colorkey)
native void setColorKey (int flags)
void setColorKey ()
native boolean setClipRect (int x, int y, int w, int h)
native boolean setClipRect ()
native int[] getClipRect ()
native int setAlpha (int flags, int alpha)
native void displayFormat ()
native void displayForamtAlpha ()
native void convertSurface (PixelFormat format, int flags)
native Surface cloneSurface ()
native PixelFormat getPixelFormat ()
native void setPalette (Color[] palette)
native void setPalette (Palette palette)
Palette getPalette ()
int mapRGB (Color color)
int mapRGB (int red, int green, int blue)
int mapRGBA (Color color)
int mapRGBA (int red, int green, int blue, int alpha)
int[] getRGB (int pixel)
int[] getRGBA (int pixel)
native byte[] getPixels ()
native void setPixels (byte[] pixels)
native void freeSurface ()

Static Public Member Functions

native String getVideoDriverName ()
native Surface loadBMP (String filePath)
Surface loadBMP (File file)
native Surface loadBMP (byte[] bytes, int offset, int length)
Surface loadBMP (byte[] bytes)
 same as loadBMP(bytes, 0, bytes.length);

Surface loadBMP (InputStream inputStream)
Surface createRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask)

Protected Member Functions

void finalize () throws Throwable

Protected Attributes

gnu.gcj.RawData implementation = null
PixelFormat format = null
byte[] pixelArray = null

Private Member Functions

native void initWithRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask)

Constructor & Destructor Documentation

sdl4gcj::video::Surface::Surface  )  [inline]
 

sdl4gcj::video::Surface::Surface int  flags,
int  width,
int  height,
int  bpp,
int  rmask,
int  gmask,
int  bmask,
int  amask
[inline]
 


Member Function Documentation

native int sdl4gcj::video::Surface::blitSurface Surface  surface  ) 
 

native int sdl4gcj::video::Surface::blitSurface Surface  surface,
int  dx,
int  dy
 

native int sdl4gcj::video::Surface::blitSurface Surface  surface,
int  sx,
int  sy,
int  sw,
int  sh,
int  dx,
int  dy
 

native Surface sdl4gcj::video::Surface::cloneSurface  ) 
 

native void sdl4gcj::video::Surface::convertSurface PixelFormat  format,
int  flags
 

Reimplemented in sdl4gcj::video::Screen.

Surface sdl4gcj::video::Surface::createRGBSurface int  flags,
int  width,
int  height,
int  bpp,
int  rmask,
int  gmask,
int  bmask,
int  amask
[inline, static]
 

native void sdl4gcj::video::Surface::displayForamtAlpha  ) 
 

native void sdl4gcj::video::Surface::displayFormat  ) 
 

void sdl4gcj::video::Surface::fillRect Rect  rect,
int  color
[inline]
 

native void sdl4gcj::video::Surface::fillRect int  color  ) 
 

native void sdl4gcj::video::Surface::fillRect int  sx,
int  sy,
int  sw,
int  sh,
int  color
 

void sdl4gcj::video::Surface::finalize  )  throws Throwable [inline, protected]
 

native void sdl4gcj::video::Surface::freeSurface  ) 
 

Reimplemented in sdl4gcj::video::Screen.

native int [] sdl4gcj::video::Surface::getClipRect  ) 
 

native int sdl4gcj::video::Surface::getFlags  ) 
 

native int sdl4gcj::video::Surface::getH  ) 
 

Palette sdl4gcj::video::Surface::getPalette  )  [inline]
 

native int sdl4gcj::video::Surface::getPitch  ) 
 

native PixelFormat sdl4gcj::video::Surface::getPixelFormat  ) 
 

native byte [] sdl4gcj::video::Surface::getPixels  ) 
 

int [] sdl4gcj::video::Surface::getRGB int  pixel  )  [inline]
 

int [] sdl4gcj::video::Surface::getRGBA int  pixel  )  [inline]
 

native String sdl4gcj::video::Surface::getVideoDriverName  )  [static]
 

native int sdl4gcj::video::Surface::getW  ) 
 

native void sdl4gcj::video::Surface::initWithRGBSurface int  flags,
int  width,
int  height,
int  bpp,
int  rmask,
int  gmask,
int  bmask,
int  amask
[private]
 

Surface sdl4gcj::video::Surface::loadBMP InputStream  inputStream  )  [inline, static]
 

Surface sdl4gcj::video::Surface::loadBMP byte[]  bytes  )  [inline, static]
 

same as loadBMP(bytes, 0, bytes.length);

native Surface sdl4gcj::video::Surface::loadBMP byte[]  bytes,
int  offset,
int  length
[static]
 

Surface sdl4gcj::video::Surface::loadBMP File  file  )  [inline, static]
 

native Surface sdl4gcj::video::Surface::loadBMP String  filePath  )  [static]
 

int sdl4gcj::video::Surface::mapRGB int  red,
int  green,
int  blue
[inline]
 

int sdl4gcj::video::Surface::mapRGB Color  color  )  [inline]
 

int sdl4gcj::video::Surface::mapRGBA int  red,
int  green,
int  blue,
int  alpha
[inline]
 

int sdl4gcj::video::Surface::mapRGBA Color  color  )  [inline]
 

int sdl4gcj::video::Surface::repeatSurface Surface  surface  )  [inline]
 

void sdl4gcj::video::Surface::saveBMP File  file  )  [inline]
 

native void sdl4gcj::video::Surface::saveBMP String  filePath  ) 
 

native int sdl4gcj::video::Surface::setAlpha int  flags,
int  alpha
 

native boolean sdl4gcj::video::Surface::setClipRect  ) 
 

native boolean sdl4gcj::video::Surface::setClipRect int  x,
int  y,
int  w,
int  h
 

void sdl4gcj::video::Surface::setColorKey  )  [inline]
 

native void sdl4gcj::video::Surface::setColorKey int  flags  ) 
 

native void sdl4gcj::video::Surface::setColorKey int  flags,
int  colorkey
 

native void sdl4gcj::video::Surface::setPalette Palette  palette  ) 
 

native void sdl4gcj::video::Surface::setPalette Color[]  palette  ) 
 

native void sdl4gcj::video::Surface::setPixels byte[]  pixels  ) 
 


Field Documentation

PixelFormat sdl4gcj::video::Surface::format = null [protected]
 

gnu.gcj.RawData sdl4gcj::video::Surface::implementation = null [protected]
 

byte [] sdl4gcj::video::Surface::pixelArray = null [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Feb 6 01:36:35 2005 for sdl4gcj by doxygen 1.3.7