You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

125 lines
4.2 KiB

  1. /* GDK - The GIMP Drawing Kit
  2. * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. /*
  20. * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  21. * file for a list of people on the GTK+ Team. See the ChangeLog
  22. * files for a list of changes. These files are distributed with
  23. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  24. */
  25. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
  26. #error "Only <gdk/gdk.h> can be included directly."
  27. #endif
  28. #ifndef __GDK_PROPERTY_H__
  29. #define __GDK_PROPERTY_H__
  30. #include <gdk/gdktypes.h>
  31. G_BEGIN_DECLS
  32. typedef enum
  33. {
  34. GDK_PROP_MODE_REPLACE,
  35. GDK_PROP_MODE_PREPEND,
  36. GDK_PROP_MODE_APPEND
  37. } GdkPropMode;
  38. GdkAtom gdk_atom_intern (const gchar *atom_name,
  39. gboolean only_if_exists);
  40. GdkAtom gdk_atom_intern_static_string (const gchar *atom_name);
  41. gchar* gdk_atom_name (GdkAtom atom);
  42. gboolean gdk_property_get (GdkWindow *window,
  43. GdkAtom property,
  44. GdkAtom type,
  45. gulong offset,
  46. gulong length,
  47. gint pdelete,
  48. GdkAtom *actual_property_type,
  49. gint *actual_format,
  50. gint *actual_length,
  51. guchar **data);
  52. void gdk_property_change (GdkWindow *window,
  53. GdkAtom property,
  54. GdkAtom type,
  55. gint format,
  56. GdkPropMode mode,
  57. const guchar *data,
  58. gint nelements);
  59. void gdk_property_delete (GdkWindow *window,
  60. GdkAtom property);
  61. #ifndef GDK_MULTIHEAD_SAFE
  62. gint gdk_text_property_to_text_list (GdkAtom encoding,
  63. gint format,
  64. const guchar *text,
  65. gint length,
  66. gchar ***list);
  67. gint gdk_text_property_to_utf8_list (GdkAtom encoding,
  68. gint format,
  69. const guchar *text,
  70. gint length,
  71. gchar ***list);
  72. gboolean gdk_utf8_to_compound_text (const gchar *str,
  73. GdkAtom *encoding,
  74. gint *format,
  75. guchar **ctext,
  76. gint *length);
  77. gint gdk_string_to_compound_text (const gchar *str,
  78. GdkAtom *encoding,
  79. gint *format,
  80. guchar **ctext,
  81. gint *length);
  82. #endif
  83. gint gdk_text_property_to_text_list_for_display (GdkDisplay *display,
  84. GdkAtom encoding,
  85. gint format,
  86. const guchar *text,
  87. gint length,
  88. gchar ***list);
  89. gint gdk_text_property_to_utf8_list_for_display (GdkDisplay *display,
  90. GdkAtom encoding,
  91. gint format,
  92. const guchar *text,
  93. gint length,
  94. gchar ***list);
  95. gchar *gdk_utf8_to_string_target (const gchar *str);
  96. gint gdk_string_to_compound_text_for_display (GdkDisplay *display,
  97. const gchar *str,
  98. GdkAtom *encoding,
  99. gint *format,
  100. guchar **ctext,
  101. gint *length);
  102. gboolean gdk_utf8_to_compound_text_for_display (GdkDisplay *display,
  103. const gchar *str,
  104. GdkAtom *encoding,
  105. gint *format,
  106. guchar **ctext,
  107. gint *length);
  108. void gdk_free_text_list (gchar **list);
  109. void gdk_free_compound_text (guchar *ctext);
  110. G_END_DECLS
  111. #endif /* __GDK_PROPERTY_H__ */