sdljava.video

Class SDLRect

public class SDLRect extends Object

Describe class SDLRect here.

Version: $Id: SDLRect.java,v 1.3 2005/01/19 03:09:14 ivan_ganza Exp $

Author: Ivan Z. Ganza

Field Summary
intheight
intwidth
intx
inty
Constructor Summary
SDLRect()
SDLRect(int x, int y)
SDLRect(int x, int y, int width, int height)
Method Summary
intgetHeight()
Gets the value of height
intgetWidth()
Gets the value of width
intgetX()
Gets the value of x
intgetY()
Gets the value of y
voidsetHeight(int argHeight)
Sets the value of height
voidsetLocation(int x, int y)
voidsetSize(int width, int height)
voidsetWidth(int argWidth)
Sets the value of width
voidsetX(int argX)
Sets the value of x
voidsetY(int argY)
Sets the value of y
StringtoString()
Return a string represenation of this object

Field Detail

height

public int height

width

public int width

x

public int x

y

public int y

Constructor Detail

SDLRect

public SDLRect()

SDLRect

public SDLRect(int x, int y)

SDLRect

public SDLRect(int x, int y, int width, int height)

Method Detail

getHeight

public int getHeight()
Gets the value of height

Returns: the value of height

getWidth

public int getWidth()
Gets the value of width

Returns: the value of width

getX

public int getX()
Gets the value of x

Returns: the value of x

getY

public int getY()
Gets the value of y

Returns: the value of y

setHeight

public void setHeight(int argHeight)
Sets the value of height

Parameters: argHeight Value to assign to this.height

setLocation

public void setLocation(int x, int y)

setSize

public void setSize(int width, int height)

setWidth

public void setWidth(int argWidth)
Sets the value of width

Parameters: argWidth Value to assign to this.width

setX

public void setX(int argX)
Sets the value of x

Parameters: argX Value to assign to this.x

setY

public void setY(int argY)
Sets the value of y

Parameters: argY Value to assign to this.y

toString

public String toString()
Return a string represenation of this object

Returns: a String represenation of this object