sdljava.video

Class SDLPixelFormat

public class SDLPixelFormat extends 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

UNKNOWN: Finish SWIG integration

Field Summary
SDL_PixelFormatswigPixelFormat
Constructor Summary
protected SDLPixelFormat(SDL_PixelFormat f)
Creates a new SDLPixelFormat instance.
Method Summary
shortgetAlpha()
Gets the value of alpha
shortgetALoss()
Gets the value of aLoss
longgetAMask()
Gets the value of aMask
shortgetAShift()
Gets the value of aShift
shortgetBitsPerPixel()
Gets the value of bitsPerPixel
shortgetBLoss()
Gets the value of bLoss
longgetBMask()
Gets the value of bMask
shortgetBShift()
Gets the value of bShift
shortgetBytesPerPixel()
Gets the value of bytesPerPixel
longgetColorKey()
Gets the value of colorKey
shortgetGLoss()
Gets the value of gLoss
longgetGMask()
Gets the value of gMask
shortgetGShift()
Gets the value of gShift
ListgetPalette()
Gets the value of palette
shortgetRLoss()
Gets the value of rLoss
longgetRMask()
Gets the value of rMask
intgetRShift()
Gets the value of rShift
protected SDL_PixelFormatgetSwigPixelFormat()
voidsetAlpha(short argAlpha)
Sets the value of alpha
voidsetALoss(short argALoss)
Sets the value of aLoss
voidsetAMask(long argAMask)
Sets the value of aMask
voidsetAShift(short argAShift)
Sets the value of aShift
voidsetBitsPerPixel(short argBitsPerPixel)
Sets the value of bitsPerPixel
voidsetBLoss(short argBLoss)
Sets the value of bLoss
voidsetBMask(long argBMask)
Sets the value of bMask
voidsetBShift(short argBShift)
Sets the value of bShift
voidsetBytesPerPixel(short argBytesPerPixel)
Sets the value of bytesPerPixel
voidsetColorKey(long argColorKey)
Sets the value of colorKey
voidsetGLoss(short argGLoss)
Sets the value of gLoss
voidsetGMask(long argGMask)
Sets the value of gMask
voidsetGShift(short argGShift)
Sets the value of gShift
voidsetRLoss(short argRLoss)
Sets the value of rLoss
voidsetRMask(long argRMask)
Sets the value of rMask
voidsetRShift(short argRShift)
Sets the value of rShift
StringtoString()

Field Detail

swigPixelFormat

SDL_PixelFormat swigPixelFormat

Constructor Detail

SDLPixelFormat

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

Method Detail

getAlpha

public short getAlpha()
Gets the value of alpha

Returns: the value of alpha

getALoss

public short getALoss()
Gets the value of aLoss

Returns: the value of aLoss

getAMask

public long getAMask()
Gets the value of aMask

Returns: the value of aMask

getAShift

public short getAShift()
Gets the value of aShift

Returns: the value of aShift

getBitsPerPixel

public short getBitsPerPixel()
Gets the value of bitsPerPixel

Returns: the value of bitsPerPixel

getBLoss

public short getBLoss()
Gets the value of bLoss

Returns: the value of bLoss

getBMask

public long getBMask()
Gets the value of bMask

Returns: the value of bMask

getBShift

public short getBShift()
Gets the value of bShift

Returns: the value of bShift

getBytesPerPixel

public short getBytesPerPixel()
Gets the value of bytesPerPixel

Returns: the value of bytesPerPixel

getColorKey

public long getColorKey()
Gets the value of colorKey

Returns: the value of colorKey

getGLoss

public short getGLoss()
Gets the value of gLoss

Returns: the value of gLoss

getGMask

public long getGMask()
Gets the value of gMask

Returns: the value of gMask

getGShift

public short getGShift()
Gets the value of gShift

Returns: the value of gShift

getPalette

public List getPalette()
Gets the value of palette

Returns: the value of palette

getRLoss

public short getRLoss()
Gets the value of rLoss

Returns: the value of rLoss

getRMask

public long getRMask()
Gets the value of rMask

Returns: the value of rMask

getRShift

public int getRShift()
Gets the value of rShift

Returns: the value of rShift

getSwigPixelFormat

protected SDL_PixelFormat getSwigPixelFormat()

setAlpha

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

Parameters: argAlpha Value to assign to this.alpha

setALoss

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

Parameters: argALoss Value to assign to this.aLoss

setAMask

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

Parameters: argAMask Value to assign to this.aMask

setAShift

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

Parameters: argAShift Value to assign to this.aShift

setBitsPerPixel

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

Parameters: argBitsPerPixel Value to assign to this.bitsPerPixel

setBLoss

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

Parameters: argBLoss Value to assign to this.bLoss

setBMask

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

Parameters: argBMask Value to assign to this.bMask

setBShift

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

Parameters: argBShift Value to assign to this.bShift

setBytesPerPixel

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

Parameters: argBytesPerPixel Value to assign to this.bytesPerPixel

setColorKey

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

Parameters: argColorKey Value to assign to this.colorKey

setGLoss

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

Parameters: argGLoss Value to assign to this.gLoss

setGMask

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

Parameters: argGMask Value to assign to this.gMask

setGShift

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

Parameters: argGShift Value to assign to this.gShift

setRLoss

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

Parameters: argRLoss Value to assign to this.rLoss

setRMask

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

Parameters: argRMask Value to assign to this.rMask

setRShift

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

Parameters: argRShift Value to assign to this.rShift

toString

public String toString()

Returns: a String representation of myself