[gtkada] Eeeeeeeeeeeeeek!
Chris Sparks
mr_ada at cox.net
Tue Jul 9 15:58:02 CEST 2013
Hi Manuel,
I tried that method. I got a seg fault. I am using Windows XP 64 so
maybe that is the issue?
Also the c code requires a Cairo_t which I believe is
Cairo.Cairo_Context type. The Gdk_New with
its Pango.Context.Pango_Context_Record'Class is incompatible.
Chris Sparks
> Chris wrote:
>
>> I noticed that our binding to pango is incomplete. What I noticed missing was:
>> PangoLayout <https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoLayout> * >pango_cairo_create_layout (/|cairo_t *cr|/);
> This looks like the one you need: Pango.Layout.Gdk_New
>
> -----------------------
> -- Creating a layout --
> -----------------------
> -- A layout can be created in two ways: either from a widget
> -- (Gtk.Widget.Create_Pango_Layout), from which it will inherit the font
> -- and various other attributes, or directly from a Pango_Context.
>
> procedure Gdk_New
> (Layout : out Pango_Layout;
> Context : access Pango.Context.Pango_Context_Record'Class);
> -- Create a new layout, based on context.
>
> Manuel
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
>
More information about the gtkada
mailing list