[gtkada] Eeeeeeeeeeeeeek!
Op de Coul, Manuel
Manuel.op.de.Coul at eon.com
Tue Jul 9 16:16:15 CEST 2013
I don't see the function you're referring to on this webpage, only pango_layout_new.
Are you sure it's part of the interface?
I only use Create_Pango_Layout myself but it uses Gtk.
Manuel
-----Original Message-----
From: gtkada-bounces at lists.adacore.com [mailto:gtkada-bounces at lists.adacore.com] On Behalf Of Chris Sparks
Sent: dinsdag 9 juli 2013 15:58
To: gtkada
Subject: Re: [gtkada] Eeeeeeeeeeeeeek!
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
>
_______________________________________________
gtkada mailing list
gtkada at lists.adacore.com
http://lists.adacore.com/mailman/listinfo/gtkada
More information about the gtkada
mailing list