sdljavax.gui
public class Widget extends Object implements SDLEventListener
Version: $Id: Widget.java,v 1.2 2005/01/30 22:02:07 ivan_ganza Exp $
| Field Summary | |
|---|---|
| protected Texture | backgroundTexture |
| protected int | border |
| protected Container | container |
| protected static FTFont | defaultFont |
| protected boolean | drawBorder |
| protected int | height |
| protected String | name |
| protected boolean | visible |
| protected int | width |
| protected int | xPos |
| protected int | yPos |
| Constructor Summary | |
|---|---|
| Widget(GL gl, String name, SDLRect dimensions, String backgroundTexturePath) | |
| Method Summary | |
|---|---|
| boolean | contains(SDLRect rect)
Describe contains method here.
|
| boolean | contains(int x, int y)
x and y absolute
|
| void | draw(GL gl)
Describe draw method here.
|
| void | draw(GL gl, int x, int y)
Draw myself at the given co-ordinates
|
| Texture | getBackgroundTexture()
Gets the value of backgroundTexture
|
| int | getHeight()
Gets the value of height
|
| String | getName()
Gets the value of name
|
| int | getWidth()
Gets the value of width
|
| int | getX()
Gets the value of x
|
| int | getY()
Gets the value of y
|
| void | handleEvent(SDLEvent event)
Describe handleEvent method here.
|
| void | hide()
Describe hide method here.
|
| boolean | isVisible()
Describe isVisible method here.
|
| void | mouseEntered() |
| void | mouseExit() |
| void | setBackgroundTexture(Texture argBackgroundTexture)
Sets the value of backgroundTexture
|
| void | setHeight(int argHeight)
Sets the value of height
|
| void | setName(String argName)
Sets the value of name
|
| void | setWidth(int argWidth)
Sets the value of width
|
| void | setX(int argX)
Sets the value of x
|
| void | setY(int argY)
Sets the value of y
|
| void | show()
Describe show method here.
|
contains method here.
Parameters: rect a SDLRect value
Returns: a boolean value
draw method here.
Parameters: gl a GL value
Parameters: gl a GL value x an int value y an int value
Returns: the value of backgroundTexture
Returns: the value of height
Returns: the value of name
Returns: the value of width
Returns: the value of x
Returns: the value of y
handleEvent method here.
Parameters: event a SDLEvent value
hide method here.
isVisible method here.
Returns: a boolean value
Parameters: argBackgroundTexture Value to assign to this.backgroundTexture
Parameters: argHeight Value to assign to this.height
Parameters: argName Value to assign to this.name
Parameters: argWidth Value to assign to this.width
Parameters: argX Value to assign to this.x
Parameters: argY Value to assign to this.y
show method here.