org.gnu.gdk

Class Span


public class Span
extends MemStruct

Represents a horizontal line of pixels starting with the pixel at coordinates x,y and ending before x+width,y.

Constructor Summary

Span(int x, int y, int width)

Method Summary

int
getWidth()
Retrieve the width of the Span.
int
getX()
Retrieve the x coordinate.
int
getY()
Retrieve the y coordinate.
void
setWidth(int width)
Set the width of the Span.
void
setX(int x)
Set the x coordinate.
void
setY(int y)
Set the y coordinate.

Methods inherited from class org.gnu.glib.MemStruct

getMemStructFromHandle

Constructor Details

Span

public Span(int x,
            int y,
            int width)

Method Details

getWidth

public int getWidth()
Retrieve the width of the Span.

getX

public int getX()
Retrieve the x coordinate.

getY

public int getY()
Retrieve the y coordinate.

setWidth

public void setWidth(int width)
Set the width of the Span.
Parameters:
width -

setX

public void setX(int x)
Set the x coordinate.
Parameters:
x -

setY

public void setY(int y)
Set the y coordinate.
Parameters:
y -