pango-engine.inc 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // included by pango.pp
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF}
  4. {$IFDEF read_interface_types}
  5. PPangoEngineRange = ^TPangoEngineRange;
  6. TPangoEngineRange = record
  7. start : guint32;
  8. theEnd : guint32;
  9. langs : Pgchar;
  10. end;
  11. PPangoEngineInfo = ^TPangoEngineInfo;
  12. TPangoEngineInfo = record
  13. id : Pgchar;
  14. engine_type : Pgchar;
  15. render_type : Pgchar;
  16. ranges : PPangoEngineRange;
  17. n_ranges : gint;
  18. end;
  19. PPangoEngine = ^TPangoEngine;
  20. TPangoEngine = record
  21. id : Pgchar;
  22. _type : Pgchar;
  23. length : gint;
  24. end;
  25. TPangoEngineLangScriptBreak =
  26. procedure (text:Pchar; len:longint; analysis:PPangoAnalysis;
  27. attrs:PPangoLogAttr; attrs_len:longint); cdecl;
  28. PPangoEngineLang = ^TPangoEngineLang;
  29. TPangoEngineLang = record
  30. engine : TPangoEngine;
  31. script_break : TPangoEngineLangScriptBreak;
  32. end;
  33. TPangoEngineShapeScript =
  34. procedure (font:PPangoFont; text:Pchar; length:longint;
  35. analysis:PPangoAnalysis; glyphs:PPangoGlyphString); cdecl;
  36. TPangoEngineShapeGetCoverage =
  37. function (font:PPangoFont; language:PPangoLanguage):PPangoCoverage; cdecl;
  38. PPangoEngineShape = ^TPangoEngineShape;
  39. TPangoEngineShape = record
  40. engine : TPangoEngine;
  41. script_shape : TPangoEngineShapeScript;
  42. get_coverage : TPangoEngineShapeGetCoverage
  43. end;
  44. {$ENDIF read_interface_types}
  45. //------------------------------------------------------------------------------
  46. {$IFDEF read_interface_functions}
  47. {$ifdef PANGO_ENABLE_ENGINE}
  48. { Module API }
  49. const
  50. PANGO_ENGINE_TYPE_LANG = 'PangoEngineLang';
  51. PANGO_ENGINE_TYPE_SHAPE = 'PangoEngineShape';
  52. PANGO_RENDER_TYPE_NONE = 'PangoRenderNone';
  53. { A module should export the following functions }
  54. procedure script_engine_list(var engines:PPangoEngineInfo; n_engines:Plongint); cdecl; external pangolib;
  55. function script_engine_load(id:Pchar):PPangoEngine; cdecl; external pangolib;
  56. procedure script_engine_unload(engine:PPangoEngine); cdecl; external pangolib;
  57. {$endif}
  58. { PANGO_ENABLE_ENGINE }
  59. {$endif read_interface_functions}