sdljava.video
Class SDLPixelFormat

java.lang.Object
  extended by sdljava.video.SDLPixelFormat

public class SDLPixelFormat
extends java.lang.Object

Stores surface format information

Also see the documentation here: SDL_PixelFormat

Version:
$Id: SDLPixelFormat.java,v 1.12 2005/01/19 03:09:14 ivan_ganza Exp $
Author:
Ivan Z. Ganza
todo
Finish SWIG integration

Field Summary
(package private)  SDL_PixelFormat swigPixelFormat
           
 
Constructor Summary
protected SDLPixelFormat(SDL_PixelFormat f)
          Creates a new SDLPixelFormat instance.
 
Method Summary
 short getALoss()
          Gets the value of aLoss
 short getAlpha()
          Gets the value of alpha
 long getAMask()
          Gets the value of aMask
 short getAShift()
          Gets the value of aShift
 short getBitsPerPixel()
          Gets the value of bitsPerPixel
 short getBLoss()
          Gets the value of bLoss
 long getBMask()
          Gets the value of bMask
 short getBShift()
          Gets the value of bShift
 short getBytesPerPixel()
          Gets the value of bytesPerPixel
 long getColorKey()
          Gets the value of colorKey
 short getGLoss()
          Gets the value of gLoss
 long getGMask()
          Gets the value of gMask
 short getGShift()
          Gets the value of gShift
 java.util.List getPalette()
          Gets the value of palette
 short getRLoss()
          Gets the value of rLoss
 long getRMask()
          Gets the value of rMask
 int getRShift()
          Gets the value of rShift
protected  SDL_PixelFormat getSwigPixelFormat()
           
 void setALoss(short argALoss)
          Sets the value of aLoss
 void setAlpha(short argAlpha)
          Sets the value of alpha
 void setAMask(long argAMask)
          Sets the value of aMask
 void setAShift(short argAShift)
          Sets the value of aShift
 void setBitsPerPixel(short argBitsPerPixel)
          Sets the value of bitsPerPixel
 void setBLoss(short argBLoss)
          Sets the value of bLoss
 void setBMask(long argBMask)
          Sets the value of bMask
 void setBShift(short argBShift)
          Sets the value of bShift
 void setBytesPerPixel(short argBytesPerPixel)
          Sets the value of bytesPerPixel
 void setColorKey(long argColorKey)
          Sets the value of colorKey
 void setGLoss(short argGLoss)
          Sets the value of gLoss
 void setGMask(long argGMask)
          Sets the value of gMask
 void setGShift(short argGShift)
          Sets the value of gShift
 void setRLoss(short argRLoss)
          Sets the value of rLoss
 void setRMask(long argRMask)
          Sets the value of rMask
 void setRShift(short argRShift)
          Sets the value of rShift
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

swigPixelFormat

SDL_PixelFormat swigPixelFormat
Constructor Detail

SDLPixelFormat

protected SDLPixelFormat(SDL_PixelFormat f)
Creates a new SDLPixelFormat instance.

Method Detail

getSwigPixelFormat

protected SDL_PixelFormat getSwigPixelFormat()

getPalette

public java.util.List getPalette()
Gets the value of palette

Returns:
the value of palette

getBitsPerPixel

public short getBitsPerPixel()
Gets the value of bitsPerPixel

Returns:
the value of bitsPerPixel

setBitsPerPixel

public void setBitsPerPixel(short argBitsPerPixel)
Sets the value of bitsPerPixel

Parameters:
argBitsPerPixel - Value to assign to this.bitsPerPixel

getBytesPerPixel

public short getBytesPerPixel()
Gets the value of bytesPerPixel

Returns:
the value of bytesPerPixel

setBytesPerPixel

public void setBytesPerPixel(short argBytesPerPixel)
Sets the value of bytesPerPixel

Parameters:
argBytesPerPixel - Value to assign to this.bytesPerPixel

getRLoss

public short getRLoss()
Gets the value of rLoss

Returns:
the value of rLoss

setRLoss

public void setRLoss(short argRLoss)
Sets the value of rLoss

Parameters:
argRLoss - Value to assign to this.rLoss

getGLoss

public short getGLoss()
Gets the value of gLoss

Returns:
the value of gLoss

setGLoss

public void setGLoss(short argGLoss)
Sets the value of gLoss

Parameters:
argGLoss - Value to assign to this.gLoss

getALoss

public short getALoss()
Gets the value of aLoss

Returns:
the value of aLoss

setALoss

public void setALoss(short argALoss)
Sets the value of aLoss

Parameters:
argALoss - Value to assign to this.aLoss

getRShift

public int getRShift()
Gets the value of rShift

Returns:
the value of rShift

setRShift

public void setRShift(short argRShift)
Sets the value of rShift

Parameters:
argRShift - Value to assign to this.rShift

getGShift

public short getGShift()
Gets the value of gShift

Returns:
the value of gShift

setGShift

public void setGShift(short argGShift)
Sets the value of gShift

Parameters:
argGShift - Value to assign to this.gShift

getBShift

public short getBShift()
Gets the value of bShift

Returns:
the value of bShift

setBShift

public void setBShift(short argBShift)
Sets the value of bShift

Parameters:
argBShift - Value to assign to this.bShift

getAShift

public short getAShift()
Gets the value of aShift

Returns:
the value of aShift

setAShift

public void setAShift(short argAShift)
Sets the value of aShift

Parameters:
argAShift - Value to assign to this.aShift

getRMask

public long getRMask()
Gets the value of rMask

Returns:
the value of rMask

setRMask

public void setRMask(long argRMask)
Sets the value of rMask

Parameters:
argRMask - Value to assign to this.rMask

getGMask

public long getGMask()
Gets the value of gMask

Returns:
the value of gMask

setGMask

public void setGMask(long argGMask)
Sets the value of gMask

Parameters:
argGMask - Value to assign to this.gMask

getBMask

public long getBMask()
Gets the value of bMask

Returns:
the value of bMask

setBMask

public void setBMask(long argBMask)
Sets the value of bMask

Parameters:
argBMask - Value to assign to this.bMask

getAMask

public long getAMask()
Gets the value of aMask

Returns:
the value of aMask

setAMask

public void setAMask(long argAMask)
Sets the value of aMask

Parameters:
argAMask - Value to assign to this.aMask

getColorKey

public long getColorKey()
Gets the value of colorKey

Returns:
the value of colorKey

setColorKey

public void setColorKey(long argColorKey)
Sets the value of colorKey

Parameters:
argColorKey - Value to assign to this.colorKey

getAlpha

public short getAlpha()
Gets the value of alpha

Returns:
the value of alpha

setAlpha

public void setAlpha(short argAlpha)
Sets the value of alpha

Parameters:
argAlpha - Value to assign to this.alpha

getBLoss

public short getBLoss()
Gets the value of bLoss

Returns:
the value of bLoss

setBLoss

public void setBLoss(short argBLoss)
Sets the value of bLoss

Parameters:
argBLoss - Value to assign to this.bLoss

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a String representation of myself