summaryrefslogtreecommitdiff
path: root/atspi/atspi-text.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:44:48 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:13 -0600
commitb10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch)
treed560f8449f3ae75fea343887dcb6d5f4df7b434c /atspi/atspi-text.h
parentbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff)
downloadat-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
Diffstat (limited to 'atspi/atspi-text.h')
-rw-r--r--atspi/atspi-text.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/atspi/atspi-text.h b/atspi/atspi-text.h
index 994d12b2..61375b18 100644
--- a/atspi/atspi-text.h
+++ b/atspi/atspi-text.h
@@ -5,7 +5,7 @@
* Copyright 2002 Ximian, Inc.
* 2002 Sun Microsystems Inc.
* Copyright 2010, 2011 Novell, Inc.
- *
+ *
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -43,10 +43,10 @@ struct _AtspiRange
/**
* ATSPI_TYPE_RANGE:
- *
+ *
* The #GType for a boxed type holding a range within a text bock.
*/
-#define ATSPI_TYPE_RANGE atspi_range_get_type ()
+#define ATSPI_TYPE_RANGE atspi_range_get_type ()
GType atspi_range_get_type ();
@@ -63,15 +63,15 @@ struct _AtspiTextRange
/**
* ATSPI_TYPE_TEXT_RANGE:
- *
+ *
* The #GType for a boxed type holding a range within a text bock.
*/
-#define ATSPI_TYPE_TEXT_RANGE atspi_text_range_get_type ()
+#define ATSPI_TYPE_TEXT_RANGE atspi_text_range_get_type ()
-#define ATSPI_TYPE_TEXT (atspi_text_get_type ())
-#define ATSPI_IS_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_TEXT)
-#define ATSPI_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_TEXT, AtspiText)
-#define ATSPI_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATSPI_TYPE_TEXT, AtspiText))
+#define ATSPI_TYPE_TEXT (atspi_text_get_type ())
+#define ATSPI_IS_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATSPI_TYPE_TEXT)
+#define ATSPI_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATSPI_TYPE_TEXT, AtspiText)
+#define ATSPI_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATSPI_TYPE_TEXT, AtspiText))
GType atspi_text_get_type ();
@@ -80,12 +80,11 @@ struct _AtspiText
GTypeInterface parent;
};
-
GType atspi_text_range_get_type ();
gint atspi_text_get_character_count (AtspiText *obj, GError **error);
-gchar * atspi_text_get_text (AtspiText *obj, gint start_offset, gint end_offset, GError **error);
+gchar *atspi_text_get_text (AtspiText *obj, gint start_offset, gint end_offset, GError **error);
gint atspi_text_get_caret_offset (AtspiText *obj, GError **error);
@@ -98,38 +97,38 @@ GHashTable *atspi_text_get_text_attributes (AtspiText *obj, gint offset, gint *s
GHashTable *atspi_text_get_attribute_run (AtspiText *obj, gint offset, gboolean include_defaults, gint *start_offset, gint *end_offset, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
-gchar * atspi_text_get_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error);
+gchar *atspi_text_get_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error);
#endif
-gchar * atspi_text_get_text_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error);
+gchar *atspi_text_get_text_attribute_value (AtspiText *obj, gint offset, gchar *attribute_name, GError **error);
-GHashTable * atspi_text_get_default_attributes (AtspiText *obj, GError **error);
+GHashTable *atspi_text_get_default_attributes (AtspiText *obj, GError **error);
gboolean atspi_text_set_caret_offset (AtspiText *obj, gint new_offset, GError **error);
#ifndef ATSPI_DISABLE_DEPRECATED
-AtspiTextRange * atspi_text_get_text_before_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
+AtspiTextRange *atspi_text_get_text_before_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
-AtspiTextRange * atspi_text_get_text_at_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
+AtspiTextRange *atspi_text_get_text_at_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
-AtspiTextRange * atspi_text_get_text_after_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
+AtspiTextRange *atspi_text_get_text_after_offset (AtspiText *obj, gint offset, AtspiTextBoundaryType type, GError **error);
#endif
-AtspiTextRange * atspi_text_get_string_at_offset (AtspiText *obj, gint offset, AtspiTextGranularity granularity, GError **error);
+AtspiTextRange *atspi_text_get_string_at_offset (AtspiText *obj, gint offset, AtspiTextGranularity granularity, GError **error);
guint atspi_text_get_character_at_offset (AtspiText *obj, gint offset, GError **error);
-AtspiRect * atspi_text_get_character_extents (AtspiText *obj, gint offset, AtspiCoordType type, GError **error);
+AtspiRect *atspi_text_get_character_extents (AtspiText *obj, gint offset, AtspiCoordType type, GError **error);
gint atspi_text_get_offset_at_point (AtspiText *obj, gint x, gint y, AtspiCoordType type, GError **error);
-AtspiRect * atspi_text_get_range_extents (AtspiText *obj, gint start_offset, gint end_offset, AtspiCoordType type, GError **error);
+AtspiRect *atspi_text_get_range_extents (AtspiText *obj, gint start_offset, gint end_offset, AtspiCoordType type, GError **error);
-GArray * atspi_text_get_bounded_ranges (AtspiText *obj, gint x, gint y, gint width, gint height, AtspiCoordType type, AtspiTextClipType clipTypeX, AtspiTextClipType clipTypeY, GError **error);
+GArray *atspi_text_get_bounded_ranges (AtspiText *obj, gint x, gint y, gint width, gint height, AtspiCoordType type, AtspiTextClipType clipTypeX, AtspiTextClipType clipTypeY, GError **error);
gint atspi_text_get_n_selections (AtspiText *obj, GError **error);
-AtspiRange * atspi_text_get_selection (AtspiText *obj, gint selection_num, GError **error);
+AtspiRange *atspi_text_get_selection (AtspiText *obj, gint selection_num, GError **error);
gboolean atspi_text_add_selection (AtspiText *obj, gint start_offset, gint end_offset, GError **error);
@@ -142,4 +141,4 @@ gboolean atspi_text_scroll_substring_to (AtspiText *obj, gint start_offset, gint
gboolean atspi_text_scroll_substring_to_point (AtspiText *obj, gint start_offset, gint end_offset, AtspiCoordType coords, gint x, gint y, GError **error);
G_END_DECLS
-#endif /* _ATSPI_TEXT_H_ */
+#endif /* _ATSPI_TEXT_H_ */