cairoSurfaceSetDeviceOffset      package:RGtk2      R Documentation

_c_a_i_r_o_S_u_r_f_a_c_e_S_e_t_D_e_v_i_c_e_O_f_f_s_e_t

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

     Sets an offset that is added to the device coordinates determined
     by the CTM when drawing to 'surface'. One use case for this
     function is when we want to create a 'CairoSurface' that redirects
     drawing for a portion of an onscreen surface to an offscreen
     surface in a way that is completely invisible to the user of the
     cairo API. Setting a transformation via 'cairoTranslate' isn't
     sufficient to do this, since functions like 'cairoDeviceToUser'
     will expose the hidden offset.

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

     cairoSurfaceSetDeviceOffset(surface, x.offset, y.offset)

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

'surface': ['CairoSurface']  a 'CairoSurface'

'x.offset': [numeric]  the offset in the X direction, in device units

'y.offset': [numeric]  the offset in the Y direction, in device units

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

     Note that the offset affects drawing to the surface as well as
     using the surface in a source pattern.

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

     Derived by RGtkGen from GTK+ documentation

