gdk-Drawing-Primitives         package:RGtk2         R Documentation

_D_r_a_w_i_n_g _P_r_i_m_i_t_i_v_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Functions for drawing points, lines, arcs, and text

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gdkDrawableSetData(object, key, data)'
      'gdkDrawableGetData(object, key)'
      'gdkDrawableGetDisplay(object)'
      'gdkDrawableGetScreen(object)'
      'gdkDrawableGetVisual(object)'
      'gdkDrawableSetColormap(object, colormap)'
      'gdkDrawableGetColormap(object)'
      'gdkDrawableGetDepth(object)'
      'gdkDrawableGetSize(object)'
      'gdkDrawableGetClipRegion(object)'
      'gdkDrawableGetVisibleRegion(object)'
      'gdkDrawPoint(object, gc, x, y)'
      'gdkDrawPoints(object, gc, points)'
      'gdkDrawLine(object, gc, x1, y1, x2, y2)'
      'gdkDrawLines(object, gc, points)'
      'gdkDrawPixbuf(object, gc = NULL, pixbuf, src.x, src.y, dest.x,
     dest.y, width = -1, height = -1, dither = "GDK_RGB_DITHER_NORMAL",
     x.dither = 0, y.dither = 0)'
      'gdkDrawSegments(object, gc, segs)'
      'gdkDrawRectangle(object, gc, filled, x, y, width, height)'
      'gdkDrawArc(object, gc, filled, x, y, width, height, angle1,
     angle2)'
      'gdkDrawPolygon(object, gc, filled, points)'
      'gdkDrawTrapezoids(drawable, gc, trapezoids)'
      'gdkDrawGlyphs(object, gc, font, x, y, glyphs)'
      'gdkDrawGlyphsTransformed(drawable, gc, matrix, font, x, y,
     glyphs)'
      'gdkDrawLayoutLine(object, gc, x, y, line)'
      'gdkDrawLayoutLineWithColors(drawable, gc, x, y, line,
     foreground, background)'
      'gdkDrawLayout(object, gc, x, y, layout)'
      'gdkDrawLayoutWithColors(drawable, gc, x, y, layout, foreground,
     background)'
      'gdkDrawString(object, font, gc, x, y, string)'
      'gdkDrawText(object, font, gc, x, y, text, text.length)'
      'gdkDrawTextWc(object, font, gc, x, text)'
      'gdkDrawDrawable(object, gc, src, xsrc, ysrc, xdest, ydest,
     width, height)'
      'gdkDrawImage(object, gc, image, xsrc, ysrc, xdest, ydest, width,
     height)'
      'gdkDrawableGetImage(object, x, y, width, height)'
      'gdkDrawableCopyToImage(object, image = NULL, src.x, src.y,
     dest.x, dest.y, width, height)'

_H_i_e_r_a_r_c_h_y:

     GObject
        +----GdkDrawable
              +----GdkWindow
              +----GdkPixmap 

_D_e_t_a_i_l_e_d _D_e_s_c_r_i_p_t_i_o_n:

     These functions provide support for drawing points, lines, arcs
     and text onto what are called 'drawables'. Drawables, as the name
     suggests, are things which support drawing onto them, and are
     either 'GdkWindow' or 'GdkPixmap' objects.

     Many of the drawing operations take a 'GdkGC' argument, which
     represents a graphics context. This 'GdkGC' contains a number of
     drawing attributes such as foreground color, background color and
     line width, and is used to reduce the number of arguments needed
     for each drawing operation. See the Graphics Contexts section for
     more information.

     Some of the drawing operations take Pango data structures like
     'PangoContext', 'PangoLayout' or 'PangoLayoutLine' as arguments.
     If you're using GTK+, the ususal  way to obtain these structures
     is via 'gtkWidgetCreatePangoContext' or
     'gtkWidgetCreatePangoLayout'.

_S_t_r_u_c_t_u_r_e_s:


     '_G_d_k_D_r_a_w_a_b_l_e' An opaque structure representing an object that can
          be drawn onto. This can be a 'GdkPixmap', a 'GdkBitmap', or a
          'GdkWindow'.


     '_G_d_k_S_e_g_m_e_n_t' Specifies the start and end point of a line for use
          by the 'gdkDrawSegments' function. *'GdkSegment' is a
          transparent-type.*

          '_x_1' [integer] the x coordinate of the start point.

          '_y_1' [integer] the y coordinate of the start point.

          '_x_2' [integer] the x coordinate of the end point.

          '_y_2' [integer] the y coordinate of the end point.


     '_G_d_k_T_r_a_p_e_z_o_i_d' Specifies a trapezpoid for use by the
          'gdkDrawTrapezoids'. The trapezoids used here have parallel,
          horizontal top and  bottom edges.  *'GdkTrapezoid' is a
          transparent-type.*

          '_y_1' [numeric] the y coordinate of the start point.

          '_x_1_1' [numeric] the x coordinate of the top left corner

          '_x_2_1' [numeric] the x coordinate of the top right corner

          '_y_2' [numeric] the y coordinate of the end point.

          '_x_1_2' [numeric] the x coordinate of the bottom left corner

          '_x_2_2' [numeric] the x coordinate of the bottom right corner


_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://developer.gnome.org/doc/API/2.0/gdk/gdk-Drawing-Primitives.html>

