org.gnu.pango
Class Rectangle
public class Rectangle
extends MemStruct
The PangoRectangle structure represents a rectangle. It is frequently used to
represent the logical or ink extents of a single glyph or section of text.
Rectangle() - Create a new rectangle with x=y=width=height=0.
|
Rectangle(int x, int y, int width, int height) - Create a new rectangle with the given x, y, width and height parameters.
|
int | getHeight() - Returns height of the rectangle.
|
int | getWidth() - Returns width of the rectangle.
|
int | getX() - Returns X coordinate of the left side of the rectangle.
|
int | getY() - Returns Y coordinate of the the top side of the rectangle.
|
Rectangle
public Rectangle()
Create a new rectangle with x=y=width=height=0.
Rectangle
public Rectangle(int x,
int y,
int width,
int height)
Create a new rectangle with the given x, y, width and height parameters.
getHeight
public int getHeight()
Returns height of the rectangle.
getWidth
public int getWidth()
Returns width of the rectangle.
getX
public int getX()
Returns X coordinate of the left side of the rectangle.
getY
public int getY()
Returns Y coordinate of the the top side of the rectangle.