{ This is an autogenerated unit using gobject introspection (gir2pascal). Do not Edit. }
unit PangoCairo1;

{$MODE OBJFPC}{$H+}

{$PACKRECORDS C}
{$MODESWITCH DUPLICATELOCALS+}

{$ifdef Unix}
{$LINKLIB libpangocairo-1.0.so.0}
{$endif}
{$WARN 3031 off : Values in enumeration types have to be ascending}
interface
uses
  CTypes, GObject2, Pango1, cairo1, GLib2;

const
  {$ifdef MsWindows}
  PangoCairo1_library = 'libpangocairo-1.0.so.dll';
  {$else}
  PangoCairo1_library = 'libpangocairo-1.0.so.0';
  {$endif}

type


  { TPangoCairoFont }
  PPPangoCairoFont = ^PPangoCairoFont;
  PPangoCairoFont = ^TPangoCairoFont;
  TPangoCairoFont = object
    function get_scaled_font: Pcairo_scaled_font_t; cdecl; inline;
  end;


  { TPangoCairoFontMap }
  PPPangoCairoFontMap = ^PPangoCairoFontMap;
  PPangoCairoFontMap = ^TPangoCairoFontMap;
  TPangoCairoFontMap = object
    function get_default: PPangoFontMap; cdecl; inline; static;
    function new: PPangoFontMap; cdecl; inline; static;
    function new_for_font_type(fonttype: Tcairo_font_type_t): PPangoFontMap; cdecl; inline; static;
    function create_context: PPangoContext; cdecl; inline; deprecated 'Use pango_font_map_create_context() instead.';
    function get_font_type: Tcairo_font_type_t; cdecl; inline;
    function get_resolution: gdouble; cdecl; inline;
    procedure set_default; cdecl; inline;
    procedure set_resolution(dpi: gdouble); cdecl; inline;
  end;
  TPangoCairoShapeRendererFunc = procedure(cr: Pcairo_t; attr: PPangoAttrShape; do_path: gboolean; data: gpointer); cdecl;

function pango_cairo_context_get_font_options(context: PPangoContext): Pcairo_font_options_t; cdecl; external PangoCairo1_library name 'pango_cairo_context_get_font_options';
function pango_cairo_context_get_resolution(context: PPangoContext): gdouble; cdecl; external PangoCairo1_library name 'pango_cairo_context_get_resolution';
function pango_cairo_context_get_shape_renderer(context: PPangoContext; data: Pgpointer): TPangoCairoShapeRendererFunc; cdecl; external PangoCairo1_library name 'pango_cairo_context_get_shape_renderer';
function pango_cairo_create_context(cr: Pcairo_t): PPangoContext; cdecl; external PangoCairo1_library name 'pango_cairo_create_context';
function pango_cairo_create_layout(cr: Pcairo_t): PPangoLayout; cdecl; external PangoCairo1_library name 'pango_cairo_create_layout';
function pango_cairo_font_get_scaled_font(font: PPangoCairoFont): Pcairo_scaled_font_t; cdecl; external PangoCairo1_library name 'pango_cairo_font_get_scaled_font';
function pango_cairo_font_get_type: TGType; cdecl; external PangoCairo1_library name 'pango_cairo_font_get_type';
function pango_cairo_font_map_create_context(fontmap: PPangoCairoFontMap): PPangoContext; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_create_context'; deprecated 'Use pango_font_map_create_context() instead.';
function pango_cairo_font_map_get_default: PPangoFontMap; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_get_default';
function pango_cairo_font_map_get_font_type(fontmap: PPangoCairoFontMap): Tcairo_font_type_t; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_get_font_type';
function pango_cairo_font_map_get_resolution(fontmap: PPangoCairoFontMap): gdouble; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_get_resolution';
function pango_cairo_font_map_get_type: TGType; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_get_type';
function pango_cairo_font_map_new: PPangoFontMap; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_new';
function pango_cairo_font_map_new_for_font_type(fonttype: Tcairo_font_type_t): PPangoFontMap; cdecl; external PangoCairo1_library name 'pango_cairo_font_map_new_for_font_type';
procedure pango_cairo_context_set_font_options(context: PPangoContext; options: Pcairo_font_options_t); cdecl; external PangoCairo1_library name 'pango_cairo_context_set_font_options';
procedure pango_cairo_context_set_resolution(context: PPangoContext; dpi: gdouble); cdecl; external PangoCairo1_library name 'pango_cairo_context_set_resolution';
procedure pango_cairo_context_set_shape_renderer(context: PPangoContext; func: TPangoCairoShapeRendererFunc; data: gpointer; dnotify: TGDestroyNotify); cdecl; external PangoCairo1_library name 'pango_cairo_context_set_shape_renderer';
procedure pango_cairo_error_underline_path(cr: Pcairo_t; x: gdouble; y: gdouble; width: gdouble; height: gdouble); cdecl; external PangoCairo1_library name 'pango_cairo_error_underline_path';
procedure pango_cairo_font_map_set_default(fontmap: PPangoCairoFontMap); cdecl; external PangoCairo1_library name 'pango_cairo_font_map_set_default';
procedure pango_cairo_font_map_set_resolution(fontmap: PPangoCairoFontMap; dpi: gdouble); cdecl; external PangoCairo1_library name 'pango_cairo_font_map_set_resolution';
procedure pango_cairo_glyph_string_path(cr: Pcairo_t; font: PPangoFont; glyphs: PPangoGlyphString); cdecl; external PangoCairo1_library name 'pango_cairo_glyph_string_path';
procedure pango_cairo_layout_line_path(cr: Pcairo_t; line: PPangoLayoutLine); cdecl; external PangoCairo1_library name 'pango_cairo_layout_line_path';
procedure pango_cairo_layout_path(cr: Pcairo_t; layout: PPangoLayout); cdecl; external PangoCairo1_library name 'pango_cairo_layout_path';
procedure pango_cairo_show_error_underline(cr: Pcairo_t; x: gdouble; y: gdouble; width: gdouble; height: gdouble); cdecl; external PangoCairo1_library name 'pango_cairo_show_error_underline';
procedure pango_cairo_show_glyph_item(cr: Pcairo_t; text: Pgchar; glyph_item: PPangoGlyphItem); cdecl; external PangoCairo1_library name 'pango_cairo_show_glyph_item';
procedure pango_cairo_show_glyph_string(cr: Pcairo_t; font: PPangoFont; glyphs: PPangoGlyphString); cdecl; external PangoCairo1_library name 'pango_cairo_show_glyph_string';
procedure pango_cairo_show_layout(cr: Pcairo_t; layout: PPangoLayout); cdecl; external PangoCairo1_library name 'pango_cairo_show_layout';
procedure pango_cairo_show_layout_line(cr: Pcairo_t; line: PPangoLayoutLine); cdecl; external PangoCairo1_library name 'pango_cairo_show_layout_line';
procedure pango_cairo_update_context(cr: Pcairo_t; context: PPangoContext); cdecl; external PangoCairo1_library name 'pango_cairo_update_context';
procedure pango_cairo_update_layout(cr: Pcairo_t; layout: PPangoLayout); cdecl; external PangoCairo1_library name 'pango_cairo_update_layout';
implementation
function TPangoCairoFont.get_scaled_font: Pcairo_scaled_font_t; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_get_scaled_font(@self);
end;

function TPangoCairoFontMap.get_default: PPangoFontMap; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_get_default();
end;

function TPangoCairoFontMap.new: PPangoFontMap; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_new();
end;

function TPangoCairoFontMap.new_for_font_type(fonttype: Tcairo_font_type_t): PPangoFontMap; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_new_for_font_type(fonttype);
end;

function TPangoCairoFontMap.create_context: PPangoContext; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_create_context(@self);
end;

function TPangoCairoFontMap.get_font_type: Tcairo_font_type_t; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_get_font_type(@self);
end;

function TPangoCairoFontMap.get_resolution: gdouble; cdecl;
begin
  Result := PangoCairo1.pango_cairo_font_map_get_resolution(@self);
end;

procedure TPangoCairoFontMap.set_default; cdecl;
begin
  PangoCairo1.pango_cairo_font_map_set_default(@self);
end;

procedure TPangoCairoFontMap.set_resolution(dpi: gdouble); cdecl;
begin
  PangoCairo1.pango_cairo_font_map_set_resolution(@self, dpi);
end;

end.
