update freetype structs

db4
Joe Groff 2009-09-19 21:10:40 -05:00
parent 433c065729
commit 5d3452b3cf
1 changed files with 94 additions and 94 deletions

View File

@ -1,7 +1,7 @@
! Copyright (C) 2005, 2007 Slava Pestov. ! Copyright (C) 2005, 2007 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: alien alien.syntax kernel system combinators USING: alien alien.syntax kernel system combinators
alien.libraries ; alien.libraries classes.struct ;
IN: freetype IN: freetype
<< "freetype" { << "freetype" {
@ -41,130 +41,130 @@ FUNCTION: FT_Error FT_Init_FreeType ( void* library ) ;
TYPEDEF: void face TYPEDEF: void face
TYPEDEF: void glyph TYPEDEF: void glyph
C-STRUCT: glyph STRUCT: glyph
{ "void*" "library" } { library void* }
{ "face*" "face" } { face face* }
{ "glyph*" "next" } { next glyph* }
{ "FT_UInt" "reserved" } { reserved FT_UInt }
{ "void*" "generic" } { generic void* }
{ "void*" "generic" } { generic2 void* }
{ "FT_Pos" "width" } { width FT_Pos }
{ "FT_Pos" "height" } { height FT_Pos }
{ "FT_Pos" "hori-bearing-x" } { hori-bearing-x FT_Pos }
{ "FT_Pos" "hori-bearing-y" } { hori-bearing-y FT_Pos }
{ "FT_Pos" "hori-advance" } { hori-advance FT_Pos }
{ "FT_Pos" "vert-bearing-x" } { vert-bearing-x FT_Pos }
{ "FT_Pos" "vert-bearing-y" } { vert-bearing-y FT_Pos }
{ "FT_Pos" "vert-advance" } { vert-advance FT_Pos }
{ "FT_Fixed" "linear-hori-advance" } { linear-hori-advance FT_Fixed }
{ "FT_Fixed" "linear-vert-advance" } { linear-vert-advance FT_Fixed }
{ "FT_Pos" "advance-x" } { advance-x FT_Pos }
{ "FT_Pos" "advance-y" } { advance-y FT_Pos }
{ "intptr_t" "format" } { format intptr_t }
{ "int" "bitmap-rows" } { bitmap-rows int }
{ "int" "bitmap-width" } { bitmap-width int }
{ "int" "bitmap-pitch" } { bitmap-pitch int }
{ "void*" "bitmap-buffer" } { bitmap-buffer void* }
{ "short" "bitmap-num-grays" } { bitmap-num-grays short }
{ "char" "bitmap-pixel-mode" } { bitmap-pixel-mode char }
{ "char" "bitmap-palette-mode" } { bitmap-palette-mode char }
{ "void*" "bitmap-palette" } { bitmap-palette void* }
{ "FT_Int" "bitmap-left" } { bitmap-left FT_Int }
{ "FT_Int" "bitmap-top" } { bitmap-top FT_Int }
{ "short" "n-contours" } { n-contours short }
{ "short" "n-points" } { n-points short }
{ "void*" "points" } { points void* }
{ "char*" "tags" } { tags char* }
{ "short*" "contours" } { contours short* }
{ "int" "outline-flags" } { outline-flags int }
{ "FT_UInt" "num_subglyphs" } { num_subglyphs FT_UInt }
{ "void*" "subglyphs" } { subglyphs void* }
{ "void*" "control-data" } { control-data void* }
{ "long" "control-len" } { control-len long }
{ "FT_Pos" "lsb-delta" } { lsb-delta FT_Pos }
{ "FT_Pos" "rsb-delta" } { rsb-delta FT_Pos }
{ "void*" "other" } ; { other void* } ;
C-STRUCT: face-size STRUCT: face-size
{ "face*" "face" } { face face* }
{ "void*" "generic" } { generic void* }
{ "void*" "generic" } { generic2 void* }
{ "FT_UShort" "x-ppem" } { x-ppem FT_UShort }
{ "FT_UShort" "y-ppem" } { y-ppem FT_UShort }
{ "FT_Fixed" "x-scale" } { x-scale FT_Fixed }
{ "FT_Fixed" "y-scale" } { y-scale FT_Fixed }
{ "FT_Pos" "ascender" } { ascender FT_Pos }
{ "FT_Pos" "descender" } { descender FT_Pos }
{ "FT_Pos" "height" } { height FT_Pos }
{ "FT_Pos" "max-advance" } ; { max-advance FT_Pos } ;
C-STRUCT: face STRUCT: face
{ "FT_Long" "num-faces" } { num-faces FT_Long }
{ "FT_Long" "index" } { index FT_Long }
{ "FT_Long" "flags" } { flags FT_Long }
{ "FT_Long" "style-flags" } { style-flags FT_Long }
{ "FT_Long" "num-glyphs" } { num-glyphs FT_Long }
{ "FT_Char*" "family-name" } { family-name FT_Char* }
{ "FT_Char*" "style-name" } { style-name FT_Char* }
{ "FT_Int" "num-fixed-sizes" } { num-fixed-sizes FT_Int }
{ "void*" "available-sizes" } { available-sizes void* }
{ "FT_Int" "num-charmaps" } { num-charmaps FT_Int }
{ "void*" "charmaps" } { charmaps void* }
{ "void*" "generic" } { generic void* }
{ "void*" "generic" } { generic2 void* }
{ "FT_Pos" "x-min" } { x-min FT_Pos }
{ "FT_Pos" "y-min" } { y-min FT_Pos }
{ "FT_Pos" "x-max" } { x-max FT_Pos }
{ "FT_Pos" "y-max" } { y-max FT_Pos }
{ "FT_UShort" "units-per-em" } { units-per-em FT_UShort }
{ "FT_Short" "ascender" } { ascender FT_Short }
{ "FT_Short" "descender" } { descender FT_Short }
{ "FT_Short" "height" } { height FT_Short }
{ "FT_Short" "max-advance-width" } { max-advance-width FT_Short }
{ "FT_Short" "max-advance-height" } { max-advance-height FT_Short }
{ "FT_Short" "underline-position" } { underline-position FT_Short }
{ "FT_Short" "underline-thickness" } { underline-thickness FT_Short }
{ "glyph*" "glyph" } { glyph glyph* }
{ "face-size*" "size" } { size face-size* }
{ "void*" "charmap" } ; { charmap void* } ;
C-STRUCT: FT_Bitmap STRUCT: FT_Bitmap
{ "int" "rows" } { rows int }
{ "int" "width" } { width int }
{ "int" "pitch" } { pitch int }
{ "void*" "buffer" } { buffer void* }
{ "short" "num_grays" } { num_grays short }
{ "char" "pixel_mode" } { pixel_mode char }
{ "char" "palette_mode" } { palette_mode char }
{ "void*" "palette" } ; { palette void* } ;
FUNCTION: FT_Error FT_New_Face ( void* library, FT_Char* font, FT_Long index, face* face ) ; FUNCTION: FT_Error FT_New_Face ( void* library, FT_Char* font, FT_Long index, face* face ) ;