GObject.Object
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 | Defined By | |
---|---|---|
clip_x_origin : Number
read only
|
Gdk.GC | |
clip_y_origin : Number
read only
|
Gdk.GC | |
colormap : Gdk.Colormap
read only
|
Gdk.GC | |
parent_instance : GObject.Object
read only
|
Gdk.GC | |
ts_x_origin : Number
read only
|
Gdk.GC | |
ts_y_origin : Number
read only
|
Gdk.GC |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.GC
(Object properties)
Create a new Gdk.GC
Create a new Gdk.GC
|
||
Create a new Gdk.GC
Create a new Gdk.GC
|
||
Create a new Gdk.GC
Create a new Gdk.GC
|
||
copy
(GC src_gc)
:
none
Copy the set of values from one graphics context onto another graphics context.
Copy the set of values from one graphics context onto another graphics context.
|
Gdk.GC | |
get_colormap
()
:
Gdk.Colormap
Retrieves the colormap for a given GC, if it exists.
Retrieves the colormap for a given GC, if it exists. A GC will have a colormap if the drawable for which it was created has a colormap, or if a colormap was set explicitely with gdk_gc_set_colormap.
|
Gdk.GC | |
get_screen
()
:
Gdk.Screen
Gets the GdkScreen for which gc was created
Gets the GdkScreen for which gc was created
|
Gdk.GC | |
get_values
(GCValues values)
:
none
Retrieves the current values from a graphics context.
Retrieves the current values from a graphics context. Note that only the pixel values of the values->foreground and values->background are filled, use gdk_colormap_query_color() to obtain the rgb values if you need them.
|
Gdk.GC | |
Offset attributes such as the clip and tile-stipple origins of the GC so that drawing at x - x_offset, y - y_offset with the offset GC has the same effect as drawing at x, y with the original GC.
|
Gdk.GC | |
set_background
(Color color)
:
none
Sets the background color for a graphics context.
Sets the background color for a graphics context. Note that this function uses color->pixel, use gdk_gc_set_rgb_bg_color() to specify the background color as red, green, blue components.
|
Gdk.GC | |
set_clip_mask
(Bitmap mask)
:
none
Sets the clip mask for a graphics context from a bitmap.
Sets the clip mask for a graphics context from a bitmap. The clip mask is interpreted relative to the clip origin. (See gdk_gc_set_clip_origin()).
|
Gdk.GC | |
Gdk.GC | ||
set_clip_rectangle
(Rectangle rectangle)
:
none
Sets the clip mask for a graphics context from a rectangle.
Sets the clip mask for a graphics context from a rectangle. The clip mask is interpreted relative to the clip origin. (See gdk_gc_set_clip_origin()).
|
Gdk.GC | |
set_clip_region
(Region region)
:
none
Sets the clip mask for a graphics context from a region structure.
Sets the clip mask for a graphics context from a region structure. The clip mask is interpreted relative to the clip origin. (See gdk_gc_set_clip_origin()).
|
Gdk.GC | |
set_colormap
(Colormap colormap)
:
none
Sets the colormap for the GC to the given colormap.
Sets the colormap for the GC to the given colormap. The depth of the colormap's visual must match the depth of the drawable for which the GC was created.
|
Gdk.GC | |
Sets the way dashed-lines are drawn.
Sets the way dashed-lines are drawn. Lines will be drawn with alternating on and off segments of the lengths specified in dash_list. The manner in which the on and off segments are drawn is determined by the line_style value of the GC. (This can be changed with gdk_gc_set_line_attributes().) The dash_offset defines the phase of the pattern, specifying how many pixels into the dash-list the pattern should actually begin.
|
Gdk.GC | |
set_exposures
(Boolean exposures)
:
none
Sets whether copying non-visible portions of a drawable using this graphics context generate exposure events for the corresponding regions of the destination drawable.
Sets whether copying non-visible portions of a drawable using this graphics context generate exposure events for the corresponding regions of the destination drawable. (See gdk_draw_drawable()).
|
Gdk.GC | |
set_fill
(Fill fill)
:
none
Set the fill mode for a graphics context.
Set the fill mode for a graphics context.
|
Gdk.GC | |
set_font
(Font font)
:
none
Sets the font for a graphics context.
Sets the font for a graphics context. (Note that all text-drawing functions in GDK take a font argument; the value set here is used when that argument is NULL.)
|
Gdk.GC | |
set_foreground
(Color color)
:
none
Sets the foreground color for a graphics context.
Sets the foreground color for a graphics context. Note that this function uses color->pixel, use gdk_gc_set_rgb_fg_color() to specify the foreground color as red, green, blue components.
|
Gdk.GC | |
set_function
(Function function)
:
none
Determines how the current pixel values and the pixel values being drawn are combined to produce the final pixel values.
Determines how the current pixel values and the pixel values being drawn are combined to produce the final pixel values.
|
Gdk.GC | |
set_line_attributes
(Number line_width, LineStyle line_style, CapStyle cap_style, JoinStyle join_style)
:
none
Sets various attributes of how lines are drawn.
Sets various attributes of how lines are drawn. See the corresponding members of GdkGCValues for full explanations of the arguments.
|
Gdk.GC | |
set_rgb_bg_color
(Color color)
:
none
Set the background color of a GC using an unallocated color.
Set the background color of a GC using an unallocated color. The pixel value for the color will be determined using GdkRGB. If the colormap for the GC has not previously been initialized for GdkRGB, then for pseudo-color colormaps (colormaps with a small modifiable number of colors), a colorcube will be allocated in the colormap. Calling this function for a GC without a colormap is an error.
|
Gdk.GC | |
set_rgb_fg_color
(Color color)
:
none
Set the foreground color of a GC using an unallocated color.
Set the foreground color of a GC using an unallocated color. The pixel value for the color will be determined using GdkRGB. If the colormap for the GC has not previously been initialized for GdkRGB, then for pseudo-color colormaps (colormaps with a small modifiable number of colors), a colorcube will be allocated in the colormap. Calling this function for a GC without a colormap is an error.
|
Gdk.GC | |
set_stipple
(Pixmap stipple)
:
none
Set the stipple bitmap for a graphics context.
Set the stipple bitmap for a graphics context. The stipple will only be used if the fill mode is GDK_STIPPLED or GDK_OPAQUE_STIPPLED.
|
Gdk.GC | |
set_subwindow
(SubwindowMode mode)
:
none
Sets how drawing with this GC on a window will affect child windows of that window.
Sets how drawing with this GC on a window will affect child windows of that window.
|
Gdk.GC | |
set_tile
(Pixmap tile)
:
none
Set a tile pixmap for a graphics context.
Set a tile pixmap for a graphics context. This will only be used if the fill mode is GDK_TILED.
|
Gdk.GC | |
Set the origin when using tiles or stipples with the GC.
|
Gdk.GC | |
set_values
(GCValues values, GCValuesMask values_mask)
:
none
Sets attributes of a graphics context in bulk.
Sets attributes of a graphics context in bulk. For each flag set in set as the new value for gc. If you're only setting a few values on gc, calling individual "setter" functions is likely more convenient.
|
Gdk.GC |
None |
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 |
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 |
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 |
Draws a line, using the foreground color and other attributes of the GdkGC.
|
Gdk
Method |
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 |
Draws a point, using the foreground color and other attributes of the GdkGC.
|
Gdk
Method |
Draws a number of points, using the foreground color and other attributes of the GdkGC.
|
Gdk
Method |
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 |
Draws a number of unconnected lines.
|
Gdk
Method |
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 |
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
Method |
|
Gdk.PangoRenderer
Method |
set_gc
(GC gc)
:
none
Sets the GC the renderer draws with.
|
Gtk
Method |
|
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
|