[gtk/function-annotations: 11/16] Annotate many rendernode getters as const




commit 593654ab3f2850bfb45f4a56a55d022b0cdd9d06
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Sep 14 13:12:02 2021 -0400

    Annotate many rendernode getters as const

 gsk/gskrendernode.h | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index c420633a91..ac1c368761 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -226,9 +226,9 @@ GskRenderNode *         gsk_linear_gradient_node_new                (const graph
                                                                      const GskColorStop       *color_stops,
                                                                      gsize                     
n_color_stops);
 GDK_AVAILABLE_IN_ALL
-const graphene_point_t * gsk_linear_gradient_node_get_start         (const GskRenderNode      *node) 
G_GNUC_PURE;
+const graphene_point_t * gsk_linear_gradient_node_get_start         (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const graphene_point_t * gsk_linear_gradient_node_get_end           (const GskRenderNode      *node) 
G_GNUC_PURE;
+const graphene_point_t * gsk_linear_gradient_node_get_end           (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 gsize                    gsk_linear_gradient_node_get_n_color_stops (const GskRenderNode      *node) 
G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
@@ -253,7 +253,7 @@ GskRenderNode *         gsk_conic_gradient_node_new                 (const graph
                                                                      const GskColorStop       *color_stops,
                                                                      gsize                     
n_color_stops);
 GDK_AVAILABLE_IN_ALL
-const graphene_point_t * gsk_conic_gradient_node_get_center         (const GskRenderNode      *node) 
G_GNUC_PURE;
+const graphene_point_t * gsk_conic_gradient_node_get_center         (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 float                    gsk_conic_gradient_node_get_rotation       (const GskRenderNode      *node) 
G_GNUC_PURE;
 GDK_AVAILABLE_IN_4_2
@@ -281,7 +281,7 @@ GDK_AVAILABLE_IN_ALL
 const GskColorStop *    gsk_radial_gradient_node_get_color_stops   (const GskRenderNode *node,
                                                                     gsize               *n_stops) 
G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
-const graphene_point_t *gsk_radial_gradient_node_get_center        (const GskRenderNode *node) G_GNUC_PURE;
+const graphene_point_t *gsk_radial_gradient_node_get_center        (const GskRenderNode *node) G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 float                   gsk_radial_gradient_node_get_hradius       (const GskRenderNode *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
@@ -310,11 +310,11 @@ GskRenderNode *         gsk_border_node_new                     (const GskRounde
                                                                  const float               border_width[4],
                                                                  const GdkRGBA             border_color[4]);
 GDK_AVAILABLE_IN_ALL
-const GskRoundedRect *  gsk_border_node_get_outline             (const GskRenderNode      *node) G_GNUC_PURE;
+const GskRoundedRect *  gsk_border_node_get_outline             (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const float *           gsk_border_node_get_widths              (const GskRenderNode      *node) G_GNUC_PURE;
+const float *           gsk_border_node_get_widths              (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const GdkRGBA *         gsk_border_node_get_colors              (const GskRenderNode      *node) G_GNUC_PURE;
+const GdkRGBA *         gsk_border_node_get_colors              (const GskRenderNode      *node) 
G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_ALL
 GType                   gsk_inset_shadow_node_get_type          (void) G_GNUC_CONST;
@@ -326,9 +326,9 @@ GskRenderNode *         gsk_inset_shadow_node_new               (const GskRounde
                                                                  float                     spread,
                                                                  float                     blur_radius);
 GDK_AVAILABLE_IN_ALL
-const GskRoundedRect *  gsk_inset_shadow_node_get_outline       (const GskRenderNode      *node) G_GNUC_PURE;
+const GskRoundedRect *  gsk_inset_shadow_node_get_outline       (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const GdkRGBA *         gsk_inset_shadow_node_get_color         (const GskRenderNode      *node) G_GNUC_PURE;
+const GdkRGBA *         gsk_inset_shadow_node_get_color         (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 float                   gsk_inset_shadow_node_get_dx            (const GskRenderNode      *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
@@ -348,9 +348,9 @@ GskRenderNode *         gsk_outset_shadow_node_new              (const GskRounde
                                                                  float                     spread,
                                                                  float                     blur_radius);
 GDK_AVAILABLE_IN_ALL
-const GskRoundedRect *  gsk_outset_shadow_node_get_outline      (const GskRenderNode      *node) G_GNUC_PURE;
+const GskRoundedRect *  gsk_outset_shadow_node_get_outline      (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const GdkRGBA *         gsk_outset_shadow_node_get_color        (const GskRenderNode      *node) G_GNUC_PURE;
+const GdkRGBA *         gsk_outset_shadow_node_get_color        (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
 float                   gsk_outset_shadow_node_get_dx           (const GskRenderNode      *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
@@ -410,9 +410,9 @@ GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_color_matrix_node_get_child         (const GskRenderNode      *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
 const graphene_matrix_t *
-                        gsk_color_matrix_node_get_color_matrix  (const GskRenderNode      *node) G_GNUC_PURE;
+                        gsk_color_matrix_node_get_color_matrix  (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const graphene_vec4_t * gsk_color_matrix_node_get_color_offset  (const GskRenderNode      *node) G_GNUC_PURE;
+const graphene_vec4_t * gsk_color_matrix_node_get_color_offset  (const GskRenderNode      *node) 
G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_ALL
 GType                   gsk_repeat_node_get_type                (void) G_GNUC_CONST;
@@ -423,7 +423,7 @@ GskRenderNode *         gsk_repeat_node_new                     (const graphene_
 GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_repeat_node_get_child               (const GskRenderNode      *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
-const graphene_rect_t * gsk_repeat_node_get_child_bounds        (const GskRenderNode      *node) G_GNUC_PURE;
+const graphene_rect_t * gsk_repeat_node_get_child_bounds        (const GskRenderNode      *node) 
G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_ALL
 GType                   gsk_clip_node_get_type                  (void) G_GNUC_CONST;
@@ -433,7 +433,7 @@ GskRenderNode *         gsk_clip_node_new                       (GskRenderNode
 GDK_AVAILABLE_IN_ALL
 GskRenderNode *         gsk_clip_node_get_child                 (const GskRenderNode      *node) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
-const graphene_rect_t * gsk_clip_node_get_clip                  (const GskRenderNode      *node) G_GNUC_PURE;
+const graphene_rect_t * gsk_clip_node_get_clip                  (const GskRenderNode      *node) 
G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_ALL
 GType                   gsk_rounded_clip_node_get_type          (void) G_GNUC_CONST;
@@ -502,9 +502,9 @@ GDK_AVAILABLE_IN_ALL
 const PangoGlyphInfo   *gsk_text_node_get_glyphs                (const GskRenderNode      *node,
                                                                  guint                    *n_glyphs) 
G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
-const GdkRGBA *         gsk_text_node_get_color                 (const GskRenderNode      *node) G_GNUC_PURE;
+const GdkRGBA *         gsk_text_node_get_color                 (const GskRenderNode      *node) 
G_GNUC_CONST;
 GDK_AVAILABLE_IN_ALL
-const graphene_point_t *gsk_text_node_get_offset                (const GskRenderNode      *node) G_GNUC_PURE;
+const graphene_point_t *gsk_text_node_get_offset                (const GskRenderNode      *node) 
G_GNUC_CONST;
 
 GDK_AVAILABLE_IN_ALL
 GType                   gsk_blur_node_get_type                  (void) G_GNUC_CONST;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]