Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.libsdl.video
Class SDLRect  view SDLRect download SDLRect.java

java.lang.Object
  extended byorg.libsdl.video.SDLRect

public class SDLRect
extends java.lang.Object

The SDLRect class does not directly represent an SDL_rect C structure. Instead, it is a pure Java object that must be converted to a native representation on the fly when needed.

Version:
$revision$

Field Summary
private  int h
           
private  int w
           
private  int x
           
private  int y
           
 
Constructor Summary
SDLRect(int x, int y, int w, int h)
          Constructs a new SDLRect with the given x, y, width, and height values.
 
Method Summary
 int getHeight()
          Get the height
 int getWidth()
          Get the width
 int getX()
          Get the x value
 int getY()
          Get the y value
 void setHeight(int h)
          Set the height
 void setWidth(int w)
          Set the width
 void setX(int x)
          Set the x value
 void setY(int y)
          Set the y value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

private int x

y

private int y

w

private int w

h

private int h
Constructor Detail

SDLRect

public SDLRect(int x,
               int y,
               int w,
               int h)
Constructs a new SDLRect with the given x, y, width, and height values.

Method Detail

getX

public int getX()
Get the x value


getY

public int getY()
Get the y value


getWidth

public int getWidth()
Get the width


getHeight

public int getHeight()
Get the height


setX

public void setX(int x)
Set the x value


setY

public void setY(int y)
Set the y value


setWidth

public void setWidth(int w)
Set the width


setHeight

public void setHeight(int h)
Set the height