cairoSetSourceSurface         package:RGtk2         R Documentation

_c_a_i_r_o_S_e_t_S_o_u_r_c_e_S_u_r_f_a_c_e

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

     This is a convenience function for creating a pattern from
     'surface' and setting it as the source in 'cr' with
     'cairoSetSource'.

_U_s_a_g_e:

     cairoSetSourceSurface(cr, surface, x, y)

_A_r_g_u_m_e_n_t_s:

    'cr': ['Cairo']  a cairo context

'surface': ['CairoSurface']  a surface to be used to set the source
          pattern

     'x': [numeric]  User-space X coordinate for surface origin

     'y': [numeric]  User-space Y coordinate for surface origin

_D_e_t_a_i_l_s:

     The 'x' and 'y' parameters give the user-space coordinate at which
     the surface origin should appear. (The surface origin is its
     upper-left corner before any transformation has been applied.) The
     'x' and 'y' patterns are negated and then set as translation
     values in the pattern matrix.

     Other than the initial translation pattern matrix, as described
     above, all other pattern attributes, (such as its extend mode),
     are set to the default values as in
     'cairoPatternCreateForSurface'. The resulting pattern can be
     queried with 'cairoGetSource' so that these attributes can be
     modified if desired, (eg. to create a repeating pattern with
     'cairoPatternSetExtend').

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

     Derived by RGtkGen from GTK+ documentation

