examples/lib use the new wrappers
This commit is contained in:
parent
ddb7185482
commit
b559285b78
133 changed files with 17038 additions and 151734 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,36 +0,0 @@
|
|||
#
|
||||
# Translation of cairo-ft.h
|
||||
# by Jeffrey Pohlmeyer
|
||||
# updated to version 1.4 by Luiz Américo Pereira Câmara 2007
|
||||
#
|
||||
|
||||
import cairo, freetypeh
|
||||
|
||||
#todo: properly define FcPattern:
|
||||
#It will require translate FontConfig header
|
||||
|
||||
#*
|
||||
#typedef struct _XftPattern {
|
||||
# int num;
|
||||
# int size;
|
||||
# XftPatternElt *elts;
|
||||
# } XftPattern;
|
||||
# typedef FcPattern XftPattern;
|
||||
#
|
||||
|
||||
type
|
||||
FcPattern* = Pointer
|
||||
PFcPattern* = ptr FcPattern
|
||||
|
||||
proc cairo_ft_font_face_create_for_pattern*(pattern: PFcPattern): PCairoFontFace{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_ft_font_options_substitute*(options: PCairoFontOptions,
|
||||
pattern: PFcPattern){.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_ft_font_face_create_for_ft_face*(face: TFT_Face,
|
||||
load_flags: int32): PCairoFontFace {.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_ft_scaled_font_lock_face*(
|
||||
scaled_font: PCairoScaledFont): TFT_Face{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_ft_scaled_font_unlock_face*(
|
||||
scaled_font: PCairoScaledFont){.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
|
||||
#
|
||||
# Translation of cairo-win32.h version 1.4
|
||||
# by Luiz Américo Pereira Câmara 2007
|
||||
#
|
||||
|
||||
import
|
||||
Cairo, windows
|
||||
|
||||
proc cairo_win32_surface_create*(hdc: HDC): PCairoSurface{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_surface_create_with_ddb*(hdc: HDC, format: TCairoFormat,
|
||||
width, height: int32): PCairoSurface{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_surface_create_with_dib*(format: TCairoFormat,
|
||||
width, height: int32): PCairoSurface{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_surface_get_dc*(surface: PCairoSurface): HDC{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_surface_get_image*(surface: PCairoSurface): PCairoSurface{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_font_face_create_for_logfontw*(logfont: pLOGFONTW): PCairoFontFace{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_font_face_create_for_hfont*(font: HFONT): PCairoFontFace{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_scaled_font_select_font*(scaled_font: PCairoScaledFont,
|
||||
hdc: HDC): TCairoStatus{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_scaled_font_done_font*(scaled_font: PCairoScaledFont){.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_scaled_font_get_metrics_factor*(
|
||||
scaled_font: PCairoScaledFont): float64{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_scaled_font_get_logical_to_device*(
|
||||
scaled_font: PCairoScaledFont, logical_to_device: PCairoMatrix){.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_win32_scaled_font_get_device_to_logical*(
|
||||
scaled_font: PCairoScaledFont, device_to_logical: PCairoMatrix){.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
# implementation
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
|
||||
#
|
||||
# Translation of cairo-xlib.h version 1.4
|
||||
# by Jeffrey Pohlmeyer
|
||||
# updated to version 1.4 by Luiz Américo Pereira Câmara 2007
|
||||
#
|
||||
|
||||
import
|
||||
Cairo, x, xlib, xrender
|
||||
|
||||
proc cairo_xlib_surface_create*(dpy: PDisplay, drawable: TDrawable,
|
||||
visual: PVisual, width, height: int32): PCairoSurface{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_create_for_bitmap*(dpy: PDisplay, bitmap: TPixmap,
|
||||
screen: PScreen, width, height: int32): PCairoSurface{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_create_with_xrender_format*(dpy: PDisplay,
|
||||
drawable: TDrawable, screen: PScreen, format: PXRenderPictFormat,
|
||||
width, height: int32): PCairoSurface{.cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_depth*(surface: PCairoSurface): int32{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_display*(surface: PCairoSurface): PDisplay{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_drawable*(surface: PCairoSurface): TDrawable{.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_height*(surface: PCairoSurface): int32{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_screen*(surface: PCairoSurface): PScreen{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_visual*(surface: PCairoSurface): PVisual{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_get_width*(surface: PCairoSurface): int32{.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_set_size*(surface: PCairoSurface,
|
||||
width, height: int32){.cdecl, importc,
|
||||
dynlib: LIB_CAIRO.}
|
||||
proc cairo_xlib_surface_set_drawable*(surface: PCairoSurface,
|
||||
drawable: TDrawable, width, height: int32){.
|
||||
cdecl, importc, dynlib: LIB_CAIRO.}
|
||||
# implementation
|
||||
Loading…
Add table
Add a link
Reference in a new issue