On Sep 6, 2012, at 7:29 AM, Parth Kanungo <[email protected]> wrote:

> Hello all,
>  
>  
> We know that PangoCairoShapeRendererFunc is a function pointer.
>  
> The function pango_cairo_context_set_shape_renderer in pangocairo-context.h 
> assigns a PangoCairoShapeRendererFunc func its value.
>  
> I want to know what all are the possible functions that can be assigned to 
> PangoCairoShapeRendererFunc func ??
>  
> (My purpose is to understand the working of pango_cairo_renderer_draw_shape() 
> function in pangocairo-renderer.h)
>  
> Any help/suggestion would be appreciated.
> Thanks in advance

You write a callback function that matches the signature of 
PangoCairoShapeRendererFunc [1] and use 
pango_cairo_context_set_shape_renderer() to set it as the callback on your 
PangoContext. When the context needs to render a shape, it calls your callback 
function.

This is another standard GObject programming construct. You'll find it much 
easier to understand Pango -- and most of the other libraries in the Gtk stack 
-- if you start by studying GObject. Since the documentation is written at a 
rather high level, you'll find a good grounding in OO programming helpful.

Regards,
John Ralls

[1] 
http://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html#PangoCairoShapeRendererFunc
_______________________________________________
gtk-i18n-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Reply via email to