cairoCreate              package:RGtk2              R Documentation

_c_a_i_r_o_C_r_e_a_t_e

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

     Creates a new 'Cairo' with all graphics state parameters set to
     default values and with 'target' as a target surface. The target
     surface should be constructed with a backend-specific function
     such as 'cairoImageSurfaceCreate' (or any other
     cairo__backend__surface_create variant).

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

     cairoCreate(target)

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

'target': ['CairoSurface']  target surface for the context

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

     This function references 'target', so you can immediately call
     'cairoSurfaceDestroy' on it if you don't need to maintain a
     separate reference to it.

_V_a_l_u_e:

     ['Cairo']  a newly allocated 'Cairo' with a reference count of 1.
     This function never returns 'NULL'. If memory cannot be allocated,
     a special 'Cairo' object will be returned on which 'cairoStatus'
     returns 'CAIRO_STATUS_NO_MEMORY'. You can use this object
     normally, but no drawing will be done.

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

     Derived by RGtkGen from GTK+ documentation

