org.gnu.gdk
public class Drawable extends GObject
Method Summary | |
---|---|
void | drawArc(GC gc, boolean filled, int x, int y, int width, int height, int angle1, int angle2)
Draws an arc or a filled 'pie slice'. |
void | drawArc(boolean filled, int x, int y, int width, int height, int angle1, int angle2)
Draws an arc or a filled 'pie slice'. |
void | drawDrawable(GC gc, Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
Copies the width x height region of the Drawable at coordinates
(xsrc,ysrc) to coordinates (xdest,ydest).
|
void | drawDrawable(Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
Convience method that copies the width x height region of the Drawable at
coordinates (xsrc,ysrc) to coordinates (xdest,ydest) using the default
GC.
|
void | drawGlyphs(GC gc, Font font, int x, int y, GlyphString glyphs)
This is a low-level function. |
void | drawGlyphs(Font font, int x, int y, GlyphString glyphs)
This is a low-level function. |
void | drawGrayImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawGrayImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawImage(GC gc, Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
Draw an Image onto this Drawable. |
void | drawImage(Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
Draw an Image onto this Drawable using the default GC. |
void | drawIndexedImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, RgbCmap cmap) |
void | drawIndexedImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, RgbCmap cmap) |
void | drawLayout(GC gc, int x, int y, Layout layout)
Render a Layout onto this Drawable.
|
void | drawLayout(int x, int y, Layout layout)
Render a Layout onto this Drawable using the default GC.
|
void | drawLayoutLine(GC gc, int x, int y, LayoutLine line)
Render a LayoutLine onto this Drawable.
|
void | drawLayoutLine(int x, int y, LayoutLine line)
Render a LayoutLine onto this Drawable using the default GC.
|
void | drawLayoutLineWithColors(GC gc, int x, int y, LayoutLine line, Color foreground, Color background)
Render a LayoutLne onto this Drawable overriding the layout's normal
colors with the provided forground and background.
|
void | drawLayoutLineWithColors(int x, int y, LayoutLine line, Color foreground, Color background)
Render a LayoutLne onto this Drawable overriding the layout's normal
colors with the provided forground and background and using the default
GC.
|
void | drawLayoutWithColors(GC gc, int x, int y, Layout layout, Color foreground, Color background)
Render a Layout onto this Drawable overriding the layout's normal colors
with the provided forground and background.
|
void | drawLayoutWithColors(int x, int y, Layout layout, Color foreground, Color background)
Render a Layout onto this Drawable overriding the layout's normal colors
with the provided forground and background using the default GC.
|
void | drawLine(GC gc, int x1, int y1, int x2, int y2)
Draw a line using the foreground color and other attributes of the GC.
|
void | drawLine(int x1, int y1, int x2, int y2)
Draw a line using the foreground color and other attributes of the
default GC.
|
void | drawLines(GC gc, Point[] points)
Draw a series of lines connecting the given points. |
void | drawLines(Point[] points)
Draw a series of lines connecting the given points. |
void | drawPixbuf(GC gc, Pixbuf pixbuf, int srcx, int srcy, int destx, int desty, int width, int height, RgbDither dither, int xdither, int ydither)
Render a rectangular portion of a Pixbuf to this Drawable.
|
void | drawPixbuf(Pixbuf pixbuf, int srcx, int srcy, int destx, int desty, int width, int height, RgbDither dither, int xdither, int ydither)
Render a rectangular portion of a Pixbuf to this Drawable.
|
void | drawPoint(GC gc, int x, int y)
Draw a point using the foreground color and other attributes of the GC.
|
void | drawPoint(int x, int y)
Draw a point using the foreground color and other attributes of the
default GC.
|
void | drawPoints(GC gc, Point[] points)
Draw a number of points using the forground color and other attributes of
the GC.
|
void | drawPoints(Point[] points)
Draw a number of points using the forground color and other attributes of
the default GC.
|
void | drawPolygon(GC gc, boolean filled, Point[] points)
Draws an outlined or filled polygon.
|
void | drawPolygon(boolean filled, Point[] points)
Convience method that draws an outlined or filled polygon using the
default GC.
|
void | drawRectangle(GC gc, boolean filled, int x, int y, int width, int height)
Draws a rectangle outlined or filled using the forground color and other
attributes of the GC.
|
void | drawRectangle(boolean filled, int x, int y, int width, int height)
Draws a rectangle outlined or filled using the forground color and other
attributes of the default GC.
|
void | drawRGB32Image(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawRGB32Image(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawRGB32ImageDitherAlign(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith) |
void | drawRGB32ImageDitherAlign(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith) |
void | drawRGBImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawRGBImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride) |
void | drawRGBImageDitherAlign(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith) |
void | drawRGBImageDitherAlign(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith) |
void | drawSegments(GC gc, Segment[] segments)
Draw a number of unconnected lines.
|
void | drawSegments(Segment[] segments)
Draw a number of unconnected lines using the default GC.
|
Region | getClipRegion()
Computes the Region of a Drawable that potentially can be written to by
drawing primitives. |
Colormap | getColormap()
Gets the Colormap for the Drawable if one is set; returns null otherwise. |
int | getDepth()
Obtains the bit depth of the Drawable, this is, the number of bits that
make up a pixel. |
Display | getDisplay()
Get the Display associated with the Drawable. |
int | getHeight()
Return the height of the Drawable. |
Image | getImage(int x, int y, int width, int height)
Obtains the pixels from a server-side Drawable as a client-side Image.
|
Screen | getScreen()
Get the Screen associated with the Drawable. |
Dimension | getSize()
Returns the size of the Drawable.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
Region | getVisibleRegion()
Computes the Region of a Drawable that is potentially visible. |
Visual | getVisual()
Gets the Visual describing the pixel format of this Drawable. |
int | getWidth()
Return the width of the Drawable |
void | setColormap(Colormap cmap)
Sets the Colormap associated with the Drawable. |
Parameters: gc filled x y width height angle1 angle2
Parameters: filled x y width height angle1 angle2
Parameters: gc src xsrc ysrc xdest ydest width height
Parameters: src xsrc ysrc xdest ydest width height
A glyph is a single image in a font. This method draws a sequence of glyphs.
Parameters: gc font x y glyphs
A glyph is a single image in a font. This method draws a sequence of glyphs.
Parameters: font x y glyphs
Parameters: gc image xsrc ysrc xdest ydest width height
Parameters: image xsrc ysrc xdest ydest width height
Parameters: gc x y layout
Parameters: x y layout
Parameters: gc x y line
Parameters: x y line
Parameters: gc x y line foreground background
Parameters: x y line foreground background
Parameters: gc x y layout foreground background
Parameters: x y layout foreground background
Parameters: gc x1 y1 x2 y2
Parameters: x1 y1 x2 y2
Parameters: gc points
Parameters: points
Parameters: gc pixbuf srcx srcy destx desty width height dither xdither ydither
Parameters: pixbuf srcx srcy destx desty width height dither xdither ydither
Parameters: gc x y
Parameters: x y
Parameters: gc points
Parameters: points
Parameters: gc filled points
Parameters: filled points
Parameters: gc filled x y width height
Parameters: filled x y width height
Parameters: gc segments
Parameters: segments
Parameters: x y width height
Deprecated: use getWidth and getHeight instead.
Returns the size of the Drawable.Parameters: cmap