2010-09-29 05:08:31 -04:00
|
|
|
! Copyright (C) 2010 Anton Gorenko.
|
2010-05-26 14:17:14 -04:00
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: alien alien.c-types alien.destructors alien.libraries
|
2011-02-27 17:36:01 -05:00
|
|
|
alien.syntax combinators kernel gobject-introspection
|
2011-11-02 14:23:41 -04:00
|
|
|
gobject-introspection.standard-types system vocabs ;
|
2010-05-26 14:17:14 -04:00
|
|
|
IN: pango.ffi
|
|
|
|
|
2010-09-29 05:08:31 -04:00
|
|
|
<<
|
|
|
|
"gobject.ffi" require
|
|
|
|
>>
|
|
|
|
|
|
|
|
LIBRARY: pango
|
|
|
|
|
2010-05-26 14:17:14 -04:00
|
|
|
<<
|
|
|
|
"pango" {
|
2011-09-18 21:25:06 -04:00
|
|
|
{ [ os windows? ] [ "libpango-1.0-0.dll" cdecl add-library ] }
|
2013-06-03 20:23:20 -04:00
|
|
|
{ [ os macosx? ] [ drop ] }
|
|
|
|
{ [ os unix? ] [ "libpango-1.0.so" cdecl add-library ] }
|
|
|
|
} cond
|
2010-05-26 14:17:14 -04:00
|
|
|
>>
|
|
|
|
|
|
|
|
IMPLEMENT-STRUCTS: PangoRectangle ;
|
|
|
|
|
|
|
|
GIR: vocab:pango/Pango-1.0.gir
|
|
|
|
|
|
|
|
DESTRUCTOR: pango_font_description_free
|
|
|
|
DESTRUCTOR: pango_layout_iter_free
|
|
|
|
|
2010-09-29 05:08:31 -04:00
|
|
|
! <workaround
|
|
|
|
|
|
|
|
FORGET: pango_layout_line_index_to_x
|
|
|
|
FUNCTION: void
|
|
|
|
pango_layout_line_index_to_x ( PangoLayoutLine* line, gint index_, gboolean trailing, gint* x_pos ) ;
|
|
|
|
|
|
|
|
FORGET: pango_layout_line_x_to_index
|
|
|
|
FUNCTION: gboolean
|
|
|
|
pango_layout_line_x_to_index ( PangoLayoutLine* line, gint x_pos, gint* index_, gint* trailing ) ;
|
|
|
|
|
|
|
|
! workaround>
|