pango-attributes.inc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // included by pango.pp
  2. {$IFDEF read_interface_types}
  3. { PangoColor }
  4. PPangoColor = ^TPangoColor;
  5. TPangoColor = record
  6. red : guint16;
  7. green : guint16;
  8. blue : guint16;
  9. end;
  10. PPangoAttrType = ^TPangoAttrType;
  11. TPangoAttrType = longint;
  12. PPangoUnderline = ^TPangoUnderline;
  13. TPangoUnderline = longint;
  14. PPangoAttribute = ^TPangoAttribute;
  15. PPangoAttrClass = ^TPangoAttrClass;
  16. TPangoAttribute = record
  17. klass : PPangoAttrClass;
  18. start_index : guint;
  19. end_index : guint;
  20. end;
  21. TPangoAttrClass = record
  22. _type : TPangoAttrType;
  23. copy : function (attr:PPangoAttribute):PPangoAttribute; cdecl;
  24. destroy : procedure (attr:PPangoAttribute); cdecl;
  25. equal : function (attr1:PPangoAttribute; attr2:PPangoAttribute):gboolean; cdecl;
  26. end;
  27. PPangoAttrString = ^TPangoAttrString;
  28. TPangoAttrString = record
  29. attr : TPangoAttribute;
  30. value : Pchar;
  31. end;
  32. PPangoAttrLanguage = ^TPangoAttrLanguage;
  33. TPangoAttrLanguage = record
  34. attr : TPangoAttribute;
  35. value : PPangoLanguage;
  36. end;
  37. PPangoAttrInt = ^TPangoAttrInt;
  38. TPangoAttrInt = record
  39. attr : TPangoAttribute;
  40. value : longint;
  41. end;
  42. PPangoAttrFloat = ^TPangoAttrFloat;
  43. TPangoAttrFloat = record
  44. attr : TPangoAttribute;
  45. value : gdouble;
  46. end;
  47. PPangoAttrColor = ^TPangoAttrColor;
  48. TPangoAttrColor = record
  49. attr : TPangoAttribute;
  50. color : TPangoColor;
  51. end;
  52. PPangoAttrShape = ^TPangoAttrShape;
  53. TPangoAttrShape = record
  54. attr : TPangoAttribute;
  55. ink_rect : TPangoRectangle;
  56. logical_rect : TPangoRectangle;
  57. end;
  58. PPangoAttrFontDesc = ^TPangoAttrFontDesc;
  59. TPangoAttrFontDesc = record
  60. attr : TPangoAttribute;
  61. desc : PPangoFontDescription;
  62. end;
  63. {$ENDIF read_interface_types}
  64. //------------------------------------------------------------------------------
  65. {$IFDEF read_interface_functions}
  66. const
  67. PANGO_ATTR_INVALID = 0;
  68. PANGO_ATTR_LANGUAGE = 1;
  69. PANGO_ATTR_FAMILY = 2;
  70. PANGO_ATTR_STYLE = 3;
  71. PANGO_ATTR_WEIGHT = 4;
  72. PANGO_ATTR_VARIANT = 5;
  73. PANGO_ATTR_STRETCH = 6;
  74. PANGO_ATTR_SIZE = 7;
  75. PANGO_ATTR_FONT_DESC = 8;
  76. PANGO_ATTR_FOREGROUND = 9;
  77. PANGO_ATTR_BACKGROUND = 10;
  78. PANGO_ATTR_UNDERLINE = 11;
  79. PANGO_ATTR_STRIKETHROUGH = 12;
  80. PANGO_ATTR_RISE = 13;
  81. PANGO_ATTR_SHAPE = 14;
  82. PANGO_ATTR_SCALE = 15;
  83. PANGO_UNDERLINE_NONE = 0;
  84. PANGO_UNDERLINE_SINGLE = 1;
  85. PANGO_UNDERLINE_DOUBLE = 2;
  86. PANGO_UNDERLINE_LOW = 3;
  87. function PANGO_TYPE_COLOR : GType;
  88. function pango_color_get_type:GType; cdecl; external pangolib;
  89. function pango_color_copy(src:PPangoColor):PPangoColor; cdecl; external pangolib;
  90. procedure pango_color_free(color:PPangoColor); cdecl; external pangolib;
  91. function pango_color_parse(color:PPangoColor; spec:Pchar):gboolean; cdecl; external pangolib;
  92. { Attributes }
  93. function PANGO_TYPE_ATTR_LIST : GType;
  94. function pango_attr_type_register(name:Pgchar):TPangoAttrType; cdecl; external pangolib;
  95. function pango_attribute_copy(attr:PPangoAttribute):PPangoAttribute; cdecl; external pangolib;
  96. procedure pango_attribute_destroy(attr:PPangoAttribute); cdecl; external pangolib;
  97. function pango_attribute_equal(attr1:PPangoAttribute; attr2:PPangoAttribute):gboolean; cdecl; external pangolib;
  98. function pango_attr_language_new(language:PPangoLanguage):PPangoAttribute; cdecl; external pangolib;
  99. function pango_attr_family_new(family:Pchar):PPangoAttribute; cdecl; external pangolib;
  100. function pango_attr_foreground_new(red:guint16; green:guint16; blue:guint16):PPangoAttribute; cdecl; external pangolib;
  101. function pango_attr_background_new(red:guint16; green:guint16; blue:guint16):PPangoAttribute; cdecl; external pangolib;
  102. function pango_attr_size_new(size:longint):PPangoAttribute; cdecl; external pangolib;
  103. function pango_attr_style_new(style:TPangoStyle):PPangoAttribute; cdecl; external pangolib;
  104. function pango_attr_weight_new(weight:TPangoWeight):PPangoAttribute; cdecl; external pangolib;
  105. function pango_attr_variant_new(variant:TPangoVariant):PPangoAttribute; cdecl; external pangolib;
  106. function pango_attr_stretch_new(stretch:TPangoStretch):PPangoAttribute; cdecl; external pangolib;
  107. function pango_attr_font_desc_new(desc:PPangoFontDescription):PPangoAttribute; cdecl; external pangolib;
  108. function pango_attr_underline_new(underline:TPangoUnderline):PPangoAttribute; cdecl; external pangolib;
  109. function pango_attr_strikethrough_new(strikethrough:gboolean):PPangoAttribute; cdecl; external pangolib;
  110. function pango_attr_rise_new(rise:longint):PPangoAttribute; cdecl; external pangolib;
  111. function pango_attr_shape_new(ink_rect:PPangoRectangle; logical_rect:PPangoRectangle):PPangoAttribute; cdecl; external pangolib;
  112. function pango_attr_scale_new(scale_factor:gdouble):PPangoAttribute; cdecl; external pangolib;
  113. function pango_attr_list_get_type:GType; cdecl; external pangolib;
  114. function pango_attr_list_new:PPangoAttrList; cdecl; external pangolib;
  115. procedure pango_attr_list_ref(list:PPangoAttrList); cdecl; external pangolib;
  116. procedure pango_attr_list_unref(list:PPangoAttrList); cdecl; external pangolib;
  117. function pango_attr_list_copy(list:PPangoAttrList):PPangoAttrList; cdecl; external pangolib;
  118. procedure pango_attr_list_insert(list:PPangoAttrList; attr:PPangoAttribute); cdecl; external pangolib;
  119. procedure pango_attr_list_insert_before(list:PPangoAttrList; attr:PPangoAttribute); cdecl; external pangolib;
  120. procedure pango_attr_list_change(list:PPangoAttrList; attr:PPangoAttribute); cdecl; external pangolib;
  121. procedure pango_attr_list_splice(list:PPangoAttrList; other:PPangoAttrList; pos:gint; len:gint); cdecl; external pangolib;
  122. function pango_attr_list_get_iterator(list:PPangoAttrList):PPangoAttrIterator; cdecl; external pangolib;
  123. procedure pango_attr_iterator_range(iterator:PPangoAttrIterator; start:Pgint; theEnd:Pgint); cdecl; external pangolib;
  124. function pango_attr_iterator_next(iterator:PPangoAttrIterator):gboolean; cdecl; external pangolib;
  125. function pango_attr_iterator_copy(iterator:PPangoAttrIterator):PPangoAttrIterator; cdecl; external pangolib;
  126. procedure pango_attr_iterator_destroy(iterator:PPangoAttrIterator); cdecl; external pangolib;
  127. function pango_attr_iterator_get(iterator:PPangoAttrIterator; _type:TPangoAttrType):PPangoAttribute; cdecl; external pangolib;
  128. procedure pango_attr_iterator_get_font(iterator:PPangoAttrIterator; desc:PPangoFontDescription; var language:PPangoLanguage; extra_attrs:PPGSList); cdecl; external pangolib;
  129. function pango_parse_markup(markup_text:Pchar; length:longint; accel_marker:gunichar; var attr_list:PPangoAttrList; text:PPchar;
  130. accel_char:Pgunichar; error:PPGError):gboolean; cdecl; external pangolib;
  131. {$endif read_interface_functions}
  132. //------------------------------------------------------------------------------
  133. {$IFDEF read_implementation}
  134. function PANGO_TYPE_COLOR : GType;
  135. begin
  136. PANGO_TYPE_COLOR:=pango_color_get_type;
  137. end;
  138. function PANGO_TYPE_ATTR_LIST : GType;
  139. begin
  140. PANGO_TYPE_ATTR_LIST:=pango_attr_list_get_type;
  141. end;
  142. {$ENDIF read_implementation}