diff options
author | Yury Benesh <ybxsoft@tut.by> | 2013-07-15 16:06:53 +0300 |
---|---|---|
committer | Yury Benesh <ybxsoft@tut.by> | 2013-07-15 16:06:53 +0300 |
commit | 02ca9e3b5931e557467dc4562cd51d90c0a1bfc5 (patch) | |
tree | 32a2e8eaab77b63c3d06942b7f32ea8b9a38c136 /lib/wrappers/cairo/cairoft.nim | |
parent | f54cb2e3232ad9a95393a2f6e2d4ab32021885da (diff) | |
download | Nim-02ca9e3b5931e557467dc4562cd51d90c0a1bfc5.tar.gz |
Moved complex pragmas for xlib and cairo into separate included files. Fixed xkb bindings.
Diffstat (limited to 'lib/wrappers/cairo/cairoft.nim')
-rw-r--r-- | lib/wrappers/cairo/cairoft.nim | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/wrappers/cairo/cairoft.nim b/lib/wrappers/cairo/cairoft.nim index 16a80e7f7..5f4e47662 100644 --- a/lib/wrappers/cairo/cairoft.nim +++ b/lib/wrappers/cairo/cairoft.nim @@ -7,6 +7,7 @@ import cairo, freetypeh +include "cairo_pragma.nim" #todo: properly define FcPattern: #It will require translate FontConfig header @@ -23,13 +24,13 @@ type FcPattern* = Pointer PFcPattern* = ptr FcPattern -proc ft_font_face_create_for_pattern*(pattern: PFcPattern): PFontFace{.cdecl, - importc: "cairo_ft_font_face_create_for_pattern", dynlib: LIB_CAIRO.} +proc ft_font_face_create_for_pattern*(pattern: PFcPattern): PFontFace{.libcairo, + importc: "cairo_ft_font_face_create_for_pattern".} proc ft_font_options_substitute*(options: PFontOptions, pattern: PFcPattern){. - cdecl, importc: "cairo_ft_font_options_substitute", dynlib: LIB_CAIRO.} -proc ft_font_face_create_for_ft_face*(face: TFT_Face, load_flags: int32): PFontFace{. - cdecl, importc: "cairo_ft_font_face_create_for_ft_face", dynlib: LIB_CAIRO.} -proc ft_scaled_font_lock_face*(scaled_font: PScaledFont): TFT_Face{.cdecl, - importc: "cairo_ft_scaled_font_lock_face", dynlib: LIB_CAIRO.} -proc ft_scaled_font_unlock_face*(scaled_font: PScaledFont){.cdecl, - importc: "cairo_ft_scaled_font_unlock_face", dynlib: LIB_CAIRO.} + libcairo, importc: "cairo_ft_font_options_substitute".} +proc ft_font_face_create_for_ft_face*(face: TFT_Face, load_flags: int32): PFontFace{.libcairo, + importc: "cairo_ft_font_face_create_for_ft_face".} +proc ft_scaled_font_lock_face*(scaled_font: PScaledFont): TFT_Face{.libcairo, + importc: "cairo_ft_scaled_font_lock_face".} +proc ft_scaled_font_unlock_face*(scaled_font: PScaledFont){.libcairo, + importc: "cairo_ft_scaled_font_unlock_face".} |