Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Class Gdk.GC

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-2.0.gir
C documentation: GdkGC
Class : GC
Extends: GObject.Object
  Show / Hide Inherited methods, properties and signals
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.draw_arc (Drawable drawable, GC gc, Boolean filled, Number x, Number y, Number width, Number height, Number angle1, Number angle2) : none
Draws an arc or a filled 'pie slice'.
Gdk
Method
Gdk.draw_drawable (Drawable drawable, GC gc, Drawable src, Number xsrc, Number ysrc, Number xdest, Number ydest, Number width, Number height) : none
Copies the width x height region of src at coordinates (xsrc, Most fields in gc are not used for this operation, but notably the clip mask or clip region will be honored.
Gdk
Method
Gdk.draw_glyphs (Drawable drawable, GC gc, Font font, Number x, Number y, GlyphString glyphs) : none
This is a low-level function; 99% of text rendering should be done using gdk_draw_layout() instead.
Gdk
Method
Gdk.draw_glyphs_transformed (Drawable drawable, GC gc, Matrix matrix, Font font, Number x, Number y, GlyphString glyphs) : none
Renders a PangoGlyphString onto a drawable, possibly transforming the layed-out coordinates through a transformation matrix.
Gdk
Method
Gdk.draw_gray_image (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String buf, Number rowstride) : none
Gdk
Method
Gdk.draw_image (Drawable drawable, GC gc, Image image, Number xsrc, Number ysrc, Number xdest, Number ydest, Number width, Number height) : none
Draws a GdkImage onto a drawable.
Gdk
Method
Gdk.draw_indexed_image (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String buf, Number rowstride, RgbCmap cmap) : none
Gdk
Method
Gdk.draw_layout (Drawable drawable, GC gc, Number x, Number y, Layout layout) : none
Render a PangoLayout onto a GDK drawable If the layout's PangoContext has a transformation matrix set, then bounding box (in device space) of the transformed layout.
Gdk
Method
Gdk.draw_layout_line (Drawable drawable, GC gc, Number x, Number y, LayoutLine line) : none
Render a PangoLayoutLine onto an GDK drawable If the layout's PangoContext has a transformation matrix set, then (left is in before-tranform user coordinates) in after-transform device coordinates.
Gdk
Method
Gdk.draw_layout_line_with_colors (Drawable drawable, GC gc, Number x, Number y, LayoutLine line, Color foreground, Color background) : none
Render a PangoLayoutLine onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background.
Gdk
Method
Gdk.draw_layout_with_colors (Drawable drawable, GC gc, Number x, Number y, Layout layout, Color foreground, Color background) : none
Render a PangoLayout onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background.
Gdk
Method
Gdk.draw_line (Drawable drawable, GC gc, Number x1_, Number y1_, Number x2_, Number y2_) : none
Draws a line, using the foreground color and other attributes of the GdkGC.
Gdk
Method
Gdk.draw_lines (Drawable drawable, GC gc, Point points, Number n_points) : none
Draws a series of lines connecting the given points.
Gdk
Method
Gdk.draw_pixbuf (Drawable drawable, GC gc, Pixbuf pixbuf, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height, RgbDither dither, Number x_dither, Number y_dither) : none
Renders a rectangular portion of a pixbuf to a drawable.
Gdk
Method
Gdk.draw_point (Drawable drawable, GC gc, Number x, Number y) : none
Draws a point, using the foreground color and other attributes of the GdkGC.
Gdk
Method
Gdk.draw_points (Drawable drawable, GC gc, Point points, Number n_points) : none
Draws a number of points, using the foreground color and other attributes of the GdkGC.
Gdk
Method
Gdk.draw_polygon (Drawable drawable, GC gc, Boolean filled, Point points, Number n_points) : none
Draws an outlined or filled polygon.
Gdk
Method
Gdk.draw_rectangle (Drawable drawable, GC gc, Boolean filled, Number x, Number y, Number width, Number height) : none
Draws a rectangular outline or filled rectangle, using the foreground color and other attributes of the GdkGC.
Gdk
Method
Gdk.draw_rgb_32_image (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String buf, Number rowstride) : none
Gdk
Method
Gdk.draw_rgb_32_image_dithalign (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String buf, Number rowstride, Number xdith, Number ydith) : none
Like gdk_draw_rgb_32_image(), but allows you to specify the dither offsets.
Gdk
Method
Gdk.draw_rgb_image (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String rgb_buf, Number rowstride) : none
Gdk
Method
Gdk.draw_rgb_image_dithalign (Drawable drawable, GC gc, Number x, Number y, Number width, Number height, RgbDither dith, String rgb_buf, Number rowstride, Number xdith, Number ydith) : none
Gdk
Method
Gdk.draw_segments (Drawable drawable, GC gc, Segment segs, Number n_segs) : none
Draws a number of unconnected lines.
Gdk
Method
Gdk.draw_string (Drawable drawable, Font font, GC gc, Number x, Number y, String string) : none
Draws a string of characters in the given font or fontset.
Gdk
Method
Gdk.draw_text (Drawable drawable, Font font, GC gc, Number x, Number y, String text, Number text_length) : none
Draws a number of characters in the given font or fontset.
Gdk
Method
Gdk.draw_text_wc (Drawable drawable, Font font, GC gc, Number x, Number y, Number text, Number text_length) : none
Draws a number of wide characters using the given font of fontset.
Gdk
Method
Gdk.draw_trapezoids (Drawable drawable, GC gc, Trapezoid trapezoids, Number n_trapezoids) : none
Draws a set of anti-aliased trapezoids.
Gdk
Method
Gdk.pixbuf_render_to_drawable (Pixbuf pixbuf, Drawable drawable, GC gc, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height, RgbDither dither, Number x_dither, Number y_dither) : none
Renders a rectangular portion of a pixbuf to a drawable while using the specified GC.
Gdk
Method
Gdk.rgb_gc_set_background (GC gc, Number rgb) : none
Gdk
Method
Gdk.rgb_gc_set_foreground (GC gc, Number rgb) : none
Gdk.PangoRenderer
Method
set_gc (GC gc) : none
Sets the GC the renderer draws with.
Gtk
Method
Gtk.gc_get (Number depth, Colormap colormap, GCValues values, GCValuesMask values_mask) : Gdk.GC
Gtk
Method
Gtk.gc_release (GC gc) : none
Gtk.Preview
Method
put (Window window, GC gc, Number srcx, Number srcy, Number destx, Number desty, Number width, Number height) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:33:23 GMT+0800 (HKT)