~ubuntu-branches/ubuntu/precise/gnome-games/precise-proposed

« back to all changes in this revision

Viewing changes to libgames-support/games-preimage.c

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-05-30 13:32:04 UTC
  • mfrom: (1.3.4)
  • mto: (163.1.3 precise)
  • mto: This revision was merged to the branch mainline in revision 143.
  • Revision ID: package-import@ubuntu.com-20110530133204-celaq1v1dsxc48q1
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
 
86
86
/**
87
87
 * games_preimage_render:
88
 
 * @preimage:
 
88
 * @preimage: the image to render
89
89
 * @width: the desired width
90
90
 * @height: the desired height
91
91
 *
92
92
 * Creates a #GdkPixbuf from @preimage's image at the specified
93
93
 * @width and @height.
94
94
 *
95
 
 * Returns: a new #GdkPixbuf
96
 
*/
 
95
 * Returns: (transfer full): the new #GdkPixbuf
 
96
 **/
97
97
GdkPixbuf *
98
98
games_preimage_render (GamesPreimage * preimage, gint width, gint height)
99
99
{
133
133
 *
134
134
 * Renders from @preimage's image at the specified
135
135
 * @width and @height to @cr.
136
 
*/
 
136
 **/
137
137
void
138
138
games_preimage_render_cairo (GamesPreimage * preimage,
139
139
                             cairo_t *cr,
230
230
 *
231
231
 * Returns: %TRUE, of %FALSE if there was an error or @preimage
232
232
 * isn't a scalable SVG image
233
 
 */
 
233
 **/
234
234
void
235
235
games_preimage_render_cairo_sub (GamesPreimage * preimage,
236
236
                                 cairo_t *cr,
279
279
 * clipped to @width and @height.
280
280
 * If @node is NULL, the whole image is rendered into tha clip region.
281
281
 *
282
 
 * Returns: a new #GdkPixbuf, or %NULL if there was an error or @preimage
 
282
 * Returns: (transfer full) (allow-none): a new #GdkPixbuf, or %NULL if there was an error or @preimage
283
283
 * isn't a scalable SVG image
284
284
 */
285
285
GdkPixbuf *
336
336
 *
337
337
 * Creates a new #GamesPreimage from the image in @filename.
338
338
 *
339
 
 * Returns: a new #GamesPreimage, or %NULL if there was an error
 
339
 * Returns: (allow-none): a new #GamesPreimage, or %NULL if there was an error
340
340
 */
341
341
GamesPreimage *
342
342
games_preimage_new_from_file (const gchar * filename, GError ** error)
468
468
 *
469
469
 * Renders @preimage onto a new #GdkPixbuf at its natural size
470
470
 *
471
 
 * Returns: a reference to a #GdkPixbuf possibly owned by @images which
 
471
 * Returns: (transfer full) (allow-none): a reference to a #GdkPixbuf possibly owned by @images which
472
472
 * you must not modify; or %NULL if there was an error
473
473
 */
474
474
GdkPixbuf *