Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gdk.Drawable

Class Gdk.Drawable

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-2.0.gir
C documentation: GdkDrawable
Class : Drawable
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.bitmap_create_from_data (Drawable drawable, String data, Number width, Number height) : Gdk.Bitmap
Gdk
Method
Gdk.cairo_create (Drawable drawable) : cairo.Context
Creates a Cairo context for drawing to drawable.
Gdk
Method
Gdk.cairo_reset_clip (Context cr, Drawable drawable) : none
Resets the clip region for a Cairo context created by gdk_cairo_create().
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_get_from_drawable (Pixbuf dest, Drawable src, Colormap cmap, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height) : GdkPixbuf.Pixbuf
Transfers image data from a GdkDrawable and converts it to an RGB(A) representation inside a GdkPixbuf.
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.pixbuf_render_to_drawable_alpha (Pixbuf pixbuf, Drawable drawable, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height, PixbufAlphaMode alpha_mode, Number alpha_threshold, RgbDither dither, Number x_dither, Number y_dither) : none
Renders a rectangular portion of a pixbuf to a drawable.
Gdk.GC
Method
new Gdk.GC.c_new (Drawable drawable) : Gdk.GC
Create a new Gdk.GC
Gdk.GC
Method
new Gdk.GC.with_values (Drawable drawable, GCValues values, GCValuesMask values_mask) : Gdk.GC
Create a new Gdk.GC
Gdk.Image
Method
Gdk.Image.get (Drawable drawable, Number x, Number y, Number width, Number height) : Gdk.Image
This is a deprecated wrapper for gdk_drawable_get_image(); most cases gdk_pixbuf_get_from_drawable() is the most convenient choice.
Gdk.PangoRenderer
Method
set_drawable (Drawable drawable) : none
Sets the drawable the renderer draws to.
Gdk.Pixmap
Method
new Gdk.Pixmap.c_new (Drawable drawable, Number width, Number height, Number depth) : Gdk.Pixmap
Create a new Gdk.Pixmap
Gdk.Pixmap
Method
Gdk.Pixmap.create_from_data (Drawable drawable, String data, Number width, Number height, Number depth, Color fg, Color bg) : Gdk.Pixmap
Gdk.Pixmap
Method
Gdk.Pixmap.create_from_xpm (Drawable drawable, Object out_values, Color transparent_color, String filename) : Gdk.Pixmap
Create a pixmap from a XPM file.
Gdk.Pixmap
Method
Gdk.Pixmap.colormap_create_from_xpm (Drawable drawable, Colormap colormap, Bitmap mask, Color transparent_color, String filename) : Gdk.Pixmap
Create a pixmap from a XPM file using a particular colormap.
Gdk.Pixmap
Method
Gdk.Pixmap.create_from_xpm_d (Drawable drawable, Object out_values, Color transparent_color, Array data) : Gdk.Pixmap
Create a pixmap from data in XPM format.
Gdk.Pixmap
Method
Gdk.Pixmap.colormap_create_from_xpm_d (Drawable drawable, Colormap colormap, Bitmap mask, Color transparent_color, Array data) : Gdk.Pixmap
Create a pixmap from data in XPM format using a particular colormap.
Gdk.Window
Method
get_internal_paint_info () : Object
If you bypass the GDK layer and use windowing system primitives to draw directly onto a GdkWindow, then you need to deal with two system coordinates, and GDK may have redirected drawing to a offscreen pixmap as the result of a gdk_window_begin_paint_region() calls.
Gdk.Window
Method
redirect_to_drawable (Drawable drawable, Number src_x, Number src_y, Number dest_x, Number dest_y, Number width, Number height) : none
Redirects drawing into window so that drawing to the window in the rectangle specified by src_x, src_y, Only drawing between gdk_window_begin_paint_region() or gdk_window_begin_paint_rect() and gdk_window_end_paint() is redirected.
Gtk
Method
Gtk.draw_insertion_cursor (Widget widget, Drawable drawable, Rectangle area, Rectangle location, Boolean is_primary, TextDirection direction, Boolean draw_arrow) : none
Draws a text caret on drawable at location.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:33:23 GMT+0800 (HKT)