gtkicontheme.inc 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // included by gtk2.pas
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. {$IFDEF read_interface_types}
  5. type
  6. PGtkIconThemePrivate = pointer;
  7. PGtkIconInfo = pointer;
  8. PPGtkIconInfo = ^PGtkIconInfo;
  9. PGtkIconTheme = ^TGtkIconTheme;
  10. TGtkIconTheme = record
  11. parent_instance : TGObject;
  12. priv : PGtkIconThemePrivate;
  13. end;
  14. PGtkIconThemeClass = ^TGtkIconThemeClass;
  15. TGtkIconThemeClass = record
  16. parent_class : TGObjectClass;
  17. changed : procedure (icon_theme:PGtkIconTheme);cdecl;
  18. end;
  19. {
  20. GtkIconLookupFlags:
  21. @GTK_ICON_LOOKUP_NO_SVG: Never return SVG icons, even if gdk-pixbuf
  22. supports them. Cannot be used together with %GTK_ICON_LOOKUP_FORCE_SVG.
  23. @GTK_ICON_LOOKUP_FORCE_SVG: Return SVG icons, even if gdk-pixbuf
  24. doesn't support them.
  25. Cannot be used together with %GTK_ICON_LOOKUP_NO_SVG.
  26. @GTK_ICON_LOOKUP_USE_BUILTIN: When passed to
  27. gtk_icon_theme_lookup_icon() includes builtin icons
  28. as well as files. For a builtin icon, gdk_icon_info_get_filename()
  29. returns %NULL and you need to call gdk_icon_info_get_builtin_pixbuf().
  30. Used to specify options for gtk_icon_theme_lookup_icon()
  31. }
  32. PGtkIconLookupFlags = ^TGtkIconLookupFlags;
  33. TGtkIconLookupFlags = (GTK_ICON_LOOKUP_NO_SVG := 1 shl 0,
  34. GTK_ICON_LOOKUP_FORCE_SVG := 1 shl 1,
  35. GTK_ICON_LOOKUP_USE_BUILTIN := 1 shl 2);
  36. {
  37. GtkIconThemeError:
  38. @GTK_ICON_THEME_NOT_FOUND: The icon specified does not exist in the theme
  39. @GTK_ICON_THEME_FAILED: An unspecified error occurred.
  40. Error codes for GtkIconTheme operations.
  41. }
  42. type
  43. PGtkIconThemeError = ^TGtkIconThemeError;
  44. TGtkIconThemeError = (GTK_ICON_THEME_NOT_FOUND,
  45. GTK_ICON_THEME_FAILED);
  46. {$ENDIF read_interface_types}
  47. {$IFDEF read_interface_rest}
  48. function GTK_TYPE_ICON_INFO : GType;
  49. function GTK_TYPE_ICON_THEME : GType;
  50. function GTK_ICON_THEME(obj : pointer) : PGtkIconTheme;
  51. function GTK_ICON_THEME_CLASS(klass : pointer) : PGtkIconThemeClass;
  52. function GTK_IS_ICON_THEME(obj : pointer) : gboolean;
  53. function GTK_IS_ICON_THEME_CLASS(klass : pointer) : gboolean;
  54. function GTK_ICON_THEME_GET_CLASS(obj : pointer) : PGtkIconThemeClass;
  55. function GTK_ICON_THEME_ERROR: TGQuark;
  56. function gtk_icon_theme_error_quark:TGQuark;cdecl;external gtklib name 'gtk_icon_theme_error_quark';
  57. function gtk_icon_theme_get_type:GType;cdecl;external gtklib name 'gtk_icon_theme_get_type';
  58. function gtk_icon_theme_new:PGtkIconTheme;cdecl;external gtklib name 'gtk_icon_theme_new';
  59. function gtk_icon_theme_get_default:PGtkIconTheme;cdecl;external gtklib name 'gtk_icon_theme_get_default';
  60. function gtk_icon_theme_get_for_screen(screen:PGdkScreen):PGtkIconTheme;cdecl;external gtklib name 'gtk_icon_theme_get_for_screen';
  61. procedure gtk_icon_theme_set_screen(icon_theme:PGtkIconTheme; screen:PGdkScreen);cdecl;external gtklib name 'gtk_icon_theme_set_screen';
  62. procedure gtk_icon_theme_set_search_path(icon_theme:PGtkIconTheme; path:array of Pgchar; n_elements:gint);cdecl;external gtklib name 'gtk_icon_theme_set_search_path';
  63. procedure gtk_icon_theme_get_search_path(icon_theme:PGtkIconTheme; path:array of PPgchar; n_elements:Pgint);cdecl;external gtklib name 'gtk_icon_theme_get_search_path';
  64. procedure gtk_icon_theme_append_search_path(icon_theme:PGtkIconTheme; path:Pgchar);cdecl;external gtklib name 'gtk_icon_theme_append_search_path';
  65. procedure gtk_icon_theme_prepend_search_path(icon_theme:PGtkIconTheme; path:Pgchar);cdecl;external gtklib name 'gtk_icon_theme_prepend_search_path';
  66. procedure gtk_icon_theme_set_custom_theme(icon_theme:PGtkIconTheme; theme_name:Pgchar);cdecl;external gtklib name 'gtk_icon_theme_set_custom_theme';
  67. function gtk_icon_theme_has_icon(icon_theme:PGtkIconTheme; icon_name:Pgchar):gboolean;cdecl;external gtklib name 'gtk_icon_theme_has_icon';
  68. function gtk_icon_theme_lookup_icon(icon_theme:PGtkIconTheme; icon_name:Pgchar; size:gint; flags:TGtkIconLookupFlags):PGtkIconInfo;cdecl;external gtklib name 'gtk_icon_theme_lookup_icon';
  69. function gtk_icon_theme_load_icon(icon_theme:PGtkIconTheme; icon_name:Pgchar; size:gint; flags:TGtkIconLookupFlags; error:PPGError):PGdkPixbuf;cdecl;external gtklib name 'gtk_icon_theme_load_icon';
  70. function gtk_icon_theme_list_icons(icon_theme:PGtkIconTheme; context:Pgchar):PGList;cdecl;external gtklib name 'gtk_icon_theme_list_icons';
  71. function gtk_icon_theme_get_example_icon_name(icon_theme:PGtkIconTheme):Pchar;cdecl;external gtklib name 'gtk_icon_theme_get_example_icon_name';
  72. function gtk_icon_theme_rescan_if_needed(icon_theme:PGtkIconTheme):gboolean;cdecl;external gtklib name 'gtk_icon_theme_rescan_if_needed';
  73. procedure gtk_icon_theme_add_builtin_icon(icon_name:Pgchar; size:gint; pixbuf:PGdkPixbuf);cdecl;external gtklib name 'gtk_icon_theme_add_builtin_icon';
  74. function gtk_icon_info_get_type:GType;cdecl;external gtklib name 'gtk_icon_info_get_type';
  75. function gtk_icon_info_copy(icon_info:PGtkIconInfo):PGtkIconInfo;cdecl;external gtklib name 'gtk_icon_info_copy';
  76. procedure gtk_icon_info_free(icon_info:PGtkIconInfo);cdecl;external gtklib name 'gtk_icon_info_free';
  77. function gtk_icon_info_get_base_size(icon_info:PGtkIconInfo):gint;cdecl;external gtklib name 'gtk_icon_info_get_base_size';
  78. function gtk_icon_info_get_filename(icon_info:PGtkIconInfo):Pgchar;cdecl;external gtklib name 'gtk_icon_info_get_filename';
  79. function gtk_icon_info_get_builtin_pixbuf(icon_info:PGtkIconInfo):PGdkPixbuf;cdecl;external gtklib name 'gtk_icon_info_get_builtin_pixbuf';
  80. function gtk_icon_info_load_icon(icon_info:PGtkIconInfo; error:PPGError):PGdkPixbuf;cdecl;external gtklib name 'gtk_icon_info_load_icon';
  81. procedure gtk_icon_info_set_raw_coordinates(icon_info:PGtkIconInfo; raw_coordinates:gboolean);cdecl;external gtklib name 'gtk_icon_info_set_raw_coordinates';
  82. function gtk_icon_info_get_embedded_rect(icon_info:PGtkIconInfo; rectangle:PGdkRectangle):gboolean;cdecl;external gtklib name 'gtk_icon_info_get_embedded_rect';
  83. function gtk_icon_info_get_attach_points(icon_info:PGtkIconInfo; points:PPGdkPoint; n_points:Pgint):gboolean;cdecl;external gtklib name 'gtk_icon_info_get_attach_points';
  84. function gtk_icon_info_get_display_name(icon_info:PGtkIconInfo):Pgchar;cdecl;external gtklib name 'gtk_icon_info_get_display_name';
  85. {$ENDIF read_interface_rest}
  86. {$ifdef read_implementation}
  87. function GTK_TYPE_ICON_INFO : GType;
  88. begin
  89. GTK_TYPE_ICON_INFO:=gtk_icon_info_get_type;
  90. end;
  91. function GTK_TYPE_ICON_THEME : GType;
  92. begin
  93. GTK_TYPE_ICON_THEME:=gtk_icon_theme_get_type;
  94. end;
  95. function GTK_ICON_THEME(obj : pointer) : PGtkIconTheme;
  96. begin
  97. GTK_ICON_THEME:=PGtkIconTheme(G_TYPE_CHECK_INSTANCE_CAST(obj,GTK_TYPE_ICON_THEME));
  98. end;
  99. function GTK_ICON_THEME_CLASS(klass : pointer) : PGtkIconThemeClass;
  100. begin
  101. GTK_ICON_THEME_CLASS:=PGtkIconThemeClass(G_TYPE_CHECK_CLASS_CAST(klass,GTK_TYPE_ICON_THEME));
  102. end;
  103. function GTK_IS_ICON_THEME(obj : pointer) : gboolean;
  104. begin
  105. GTK_IS_ICON_THEME:=G_TYPE_CHECK_INSTANCE_TYPE(obj,GTK_TYPE_ICON_THEME);
  106. end;
  107. function GTK_IS_ICON_THEME_CLASS(klass : pointer) : gboolean;
  108. begin
  109. GTK_IS_ICON_THEME_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,GTK_TYPE_ICON_THEME);
  110. end;
  111. function GTK_ICON_THEME_GET_CLASS(obj : pointer) : PGtkIconThemeClass;
  112. begin
  113. GTK_ICON_THEME_GET_CLASS:=PGtkIconThemeClass(G_TYPE_INSTANCE_GET_CLASS(obj,GTK_TYPE_ICON_THEME));
  114. end;
  115. function GTK_ICON_THEME_ERROR: TGQuark;
  116. begin
  117. GTK_ICON_THEME_ERROR:=gtk_icon_theme_error_quark;
  118. end;
  119. {$endif read_implementation}