Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

187 rader
6.1 KiB

  1. /* cairo - a vector graphics library with display and print output
  2. *
  3. * Copyright © 2010 Red Hat Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it either under the terms of the GNU Lesser General Public
  7. * License version 2.1 as published by the Free Software Foundation
  8. * (the "LGPL") or, at your option, under the terms of the Mozilla
  9. * Public License Version 1.1 (the "MPL"). If you do not alter this
  10. * notice, a recipient may use your version of this file under either
  11. * the MPL or the LGPL.
  12. *
  13. * You should have received a copy of the LGPL along with this library
  14. * in the file COPYING-LGPL-2.1; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
  16. * You should have received a copy of the MPL along with this library
  17. * in the file COPYING-MPL-1.1
  18. *
  19. * The contents of this file are subject to the Mozilla Public License
  20. * Version 1.1 (the "License"); you may not use this file except in
  21. * compliance with the License. You may obtain a copy of the License at
  22. * http://www.mozilla.org/MPL/
  23. *
  24. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
  25. * OF ANY KIND, either express or implied. See the LGPL or the MPL for
  26. * the specific language governing rights and limitations.
  27. *
  28. * The Original Code is the cairo graphics library.
  29. *
  30. * The Initial Developer of the Original Code is University of Southern
  31. * California.
  32. *
  33. * Contributor(s):
  34. * Benjamin Otte <otte@redhat.com>
  35. */
  36. #ifndef CAIRO_GOBJECT_H
  37. #define CAIRO_GOBJECT_H
  38. #include <cairo.h>
  39. #if CAIRO_HAS_GOBJECT_FUNCTIONS
  40. #include <glib-object.h>
  41. CAIRO_BEGIN_DECLS
  42. /* structs */
  43. #define CAIRO_GOBJECT_TYPE_CONTEXT cairo_gobject_context_get_type ()
  44. cairo_public GType
  45. cairo_gobject_context_get_type (void);
  46. #define CAIRO_GOBJECT_TYPE_DEVICE cairo_gobject_device_get_type ()
  47. cairo_public GType
  48. cairo_gobject_device_get_type (void);
  49. #define CAIRO_GOBJECT_TYPE_PATTERN cairo_gobject_pattern_get_type ()
  50. cairo_public GType
  51. cairo_gobject_pattern_get_type (void);
  52. #define CAIRO_GOBJECT_TYPE_SURFACE cairo_gobject_surface_get_type ()
  53. cairo_public GType
  54. cairo_gobject_surface_get_type (void);
  55. #define CAIRO_GOBJECT_TYPE_RECTANGLE cairo_gobject_rectangle_get_type ()
  56. cairo_public GType
  57. cairo_gobject_rectangle_get_type (void);
  58. #define CAIRO_GOBJECT_TYPE_SCALED_FONT cairo_gobject_scaled_font_get_type ()
  59. cairo_public GType
  60. cairo_gobject_scaled_font_get_type (void);
  61. #define CAIRO_GOBJECT_TYPE_FONT_FACE cairo_gobject_font_face_get_type ()
  62. cairo_public GType
  63. cairo_gobject_font_face_get_type (void);
  64. #define CAIRO_GOBJECT_TYPE_FONT_OPTIONS cairo_gobject_font_options_get_type ()
  65. cairo_public GType
  66. cairo_gobject_font_options_get_type (void);
  67. #define CAIRO_GOBJECT_TYPE_RECTANGLE_INT cairo_gobject_rectangle_int_get_type ()
  68. cairo_public GType
  69. cairo_gobject_rectangle_int_get_type (void);
  70. #define CAIRO_GOBJECT_TYPE_REGION cairo_gobject_region_get_type ()
  71. cairo_public GType
  72. cairo_gobject_region_get_type (void);
  73. /* enums */
  74. #define CAIRO_GOBJECT_TYPE_STATUS cairo_gobject_status_get_type ()
  75. cairo_public GType
  76. cairo_gobject_status_get_type (void);
  77. #define CAIRO_GOBJECT_TYPE_CONTENT cairo_gobject_content_get_type ()
  78. cairo_public GType
  79. cairo_gobject_content_get_type (void);
  80. #define CAIRO_GOBJECT_TYPE_OPERATOR cairo_gobject_operator_get_type ()
  81. cairo_public GType
  82. cairo_gobject_operator_get_type (void);
  83. #define CAIRO_GOBJECT_TYPE_ANTIALIAS cairo_gobject_antialias_get_type ()
  84. cairo_public GType
  85. cairo_gobject_antialias_get_type (void);
  86. #define CAIRO_GOBJECT_TYPE_FILL_RULE cairo_gobject_fill_rule_get_type ()
  87. cairo_public GType
  88. cairo_gobject_fill_rule_get_type (void);
  89. #define CAIRO_GOBJECT_TYPE_LINE_CAP cairo_gobject_line_cap_get_type ()
  90. cairo_public GType
  91. cairo_gobject_line_cap_get_type (void);
  92. #define CAIRO_GOBJECT_TYPE_LINE_JOIN cairo_gobject_line_join_get_type ()
  93. cairo_public GType
  94. cairo_gobject_line_join_get_type (void);
  95. #define CAIRO_GOBJECT_TYPE_CLUSTER_FLAGS cairo_gobject_cluster_flags_get_type ()
  96. cairo_public GType
  97. cairo_gobject_text_cluster_flags_get_type (void);
  98. #define CAIRO_GOBJECT_TYPE_FONT_SLANT cairo_gobject_font_slant_get_type ()
  99. cairo_public GType
  100. cairo_gobject_font_slant_get_type (void);
  101. #define CAIRO_GOBJECT_TYPE_FONT_WEIGHT cairo_gobject_font_weight_get_type ()
  102. cairo_public GType
  103. cairo_gobject_font_weight_get_type (void);
  104. #define CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER cairo_gobject_subpixel_order_get_type ()
  105. cairo_public GType
  106. cairo_gobject_subpixel_order_get_type (void);
  107. #define CAIRO_GOBJECT_TYPE_HINT_STYLE cairo_gobject_hint_style_get_type ()
  108. cairo_public GType
  109. cairo_gobject_hint_style_get_type (void);
  110. #define CAIRO_GOBJECT_TYPE_HNT_METRICS cairo_gobject_hint_metrics_get_type ()
  111. cairo_public GType
  112. cairo_gobject_hint_metrics_get_type (void);
  113. #define CAIRO_GOBJECT_TYPE_FONT_TYPE cairo_gobject_font_type_get_type ()
  114. cairo_public GType
  115. cairo_gobject_font_type_get_type (void);
  116. #define CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE cairo_gobject_path_data_type_get_type ()
  117. cairo_public GType
  118. cairo_gobject_path_data_type_get_type (void);
  119. #define CAIRO_GOBJECT_TYPE_DEVICE_TYPE cairo_gobject_device_type_get_type ()
  120. cairo_public GType
  121. cairo_gobject_device_type_get_type (void);
  122. #define CAIRO_GOBJECT_TYPE_SURFACE_TYPE cairo_gobject_surface_type_get_type ()
  123. cairo_public GType
  124. cairo_gobject_surface_type_get_type (void);
  125. #define CAIRO_GOBJECT_TYPE_FORMAT cairo_gobject_format_get_type ()
  126. cairo_public GType
  127. cairo_gobject_format_get_type (void);
  128. #define CAIRO_GOBJECT_TYPE_PATTERN_TYPE cairo_gobject_pattern_type_get_type ()
  129. cairo_public GType
  130. cairo_gobject_pattern_type_get_type (void);
  131. #define CAIRO_GOBJECT_TYPE_EXTEND cairo_gobject_extend_get_type ()
  132. cairo_public GType
  133. cairo_gobject_extend_get_type (void);
  134. #define CAIRO_GOBJECT_TYPE_FILTER cairo_gobject_filter_get_type ()
  135. cairo_public GType
  136. cairo_gobject_filter_get_type (void);
  137. #define CAIRO_GOBJECT_TYPE_REGION_OVERLAP cairo_gobject_region_overlap_get_type ()
  138. cairo_public GType
  139. cairo_gobject_region_overlap_get_type (void);
  140. CAIRO_END_DECLS
  141. #else /* CAIRO_HAS_GOBJECT_FUNCTIONS */
  142. # error Cairo was not compiled with support for GObject
  143. #endif /* CAIRO_HAS_GOBJECT_FUNCTIONS */
  144. #endif /* CAIRO_GOBJECT_H */