clutter/pango: Follow coding style for function declarations

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4004>
This commit is contained in:
Bilal Elmoussaoui 2024-10-03 12:28:56 +02:00 committed by Marge Bot
parent 463c36880e
commit 54a7ffea81
4 changed files with 59 additions and 79 deletions

View File

@ -38,18 +38,14 @@ G_BEGIN_DECLS
typedef struct _ClutterPangoDisplayList ClutterPangoDisplayList; typedef struct _ClutterPangoDisplayList ClutterPangoDisplayList;
ClutterPangoDisplayList * ClutterPangoDisplayList * clutter_pango_display_list_new (ClutterPangoPipelineCache *pipeline_cache);
clutter_pango_display_list_new (ClutterPangoPipelineCache *pipeline_cache);
void void clutter_pango_display_list_set_color_override (ClutterPangoDisplayList *dl,
clutter_pango_display_list_set_color_override (ClutterPangoDisplayList *dl,
const CoglColor *color); const CoglColor *color);
void void clutter_pango_display_list_remove_color_override (ClutterPangoDisplayList *dl);
clutter_pango_display_list_remove_color_override (ClutterPangoDisplayList *dl);
void void clutter_pango_display_list_add_texture (ClutterPangoDisplayList *dl,
clutter_pango_display_list_add_texture (ClutterPangoDisplayList *dl,
CoglTexture *texture, CoglTexture *texture,
float x_1, float x_1,
float y_1, float y_1,
@ -60,15 +56,13 @@ clutter_pango_display_list_add_texture (ClutterPangoDisplayList *dl,
float tx_2, float tx_2,
float ty_2); float ty_2);
void void clutter_pango_display_list_add_rectangle (ClutterPangoDisplayList *dl,
clutter_pango_display_list_add_rectangle (ClutterPangoDisplayList *dl,
float x_1, float x_1,
float y_1, float y_1,
float x_2, float x_2,
float y_2); float y_2);
void void clutter_pango_display_list_add_trapezoid (ClutterPangoDisplayList *dl,
clutter_pango_display_list_add_trapezoid (ClutterPangoDisplayList *dl,
float y_1, float y_1,
float x_11, float x_11,
float x_21, float x_21,
@ -76,14 +70,12 @@ clutter_pango_display_list_add_trapezoid (ClutterPangoDisplayList *dl,
float x_12, float x_12,
float x_22); float x_22);
void void clutter_pango_display_list_render (CoglFramebuffer *framebuffer,
clutter_pango_display_list_render (CoglFramebuffer *framebuffer,
ClutterPangoDisplayList *dl, ClutterPangoDisplayList *dl,
ClutterColorState *color_state, ClutterColorState *color_state,
ClutterColorState *target_color_state, ClutterColorState *target_color_state,
const CoglColor *color); const CoglColor *color);
void void clutter_pango_display_list_free (ClutterPangoDisplayList *dl);
clutter_pango_display_list_free (ClutterPangoDisplayList *dl);
G_END_DECLS G_END_DECLS

View File

@ -61,30 +61,24 @@ typedef struct
guint has_color : 1; guint has_color : 1;
} PangoGlyphCacheValue; } PangoGlyphCacheValue;
ClutterPangoGlyphCache * ClutterPangoGlyphCache * clutter_pango_glyph_cache_new (CoglContext *ctx);
clutter_pango_glyph_cache_new (CoglContext *ctx);
void void clutter_pango_glyph_cache_free (ClutterPangoGlyphCache *cache);
clutter_pango_glyph_cache_free (ClutterPangoGlyphCache *cache);
PangoGlyphCacheValue * PangoGlyphCacheValue * clutter_pango_glyph_cache_lookup (ClutterPangoGlyphCache *cache,
clutter_pango_glyph_cache_lookup (ClutterPangoGlyphCache *cache,
CoglContext *context, CoglContext *context,
gboolean create, gboolean create,
PangoFont *font, PangoFont *font,
PangoGlyph glyph); PangoGlyph glyph);
void void clutter_pango_glyph_cache_add_reorganize_callback (ClutterPangoGlyphCache *cache,
clutter_pango_glyph_cache_add_reorganize_callback (ClutterPangoGlyphCache *cache,
GHookFunc func, GHookFunc func,
void *user_data); void *user_data);
void void clutter_pango_glyph_cache_remove_reorganize_callback (ClutterPangoGlyphCache *cache,
clutter_pango_glyph_cache_remove_reorganize_callback (ClutterPangoGlyphCache *cache,
GHookFunc func, GHookFunc func,
void *user_data); void *user_data);
void void clutter_pango_glyph_cache_set_dirty_glyphs (ClutterPangoGlyphCache *cache);
clutter_pango_glyph_cache_set_dirty_glyphs (ClutterPangoGlyphCache *cache);
G_END_DECLS G_END_DECLS

View File

@ -50,17 +50,14 @@ typedef struct
} ClutterPangoPipelineCache; } ClutterPangoPipelineCache;
ClutterPangoPipelineCache * ClutterPangoPipelineCache * clutter_pango_pipeline_cache_new (CoglContext *ctx);
clutter_pango_pipeline_cache_new (CoglContext *ctx);
/* Returns a pipeline that can be used to render glyphs in the given /* Returns a pipeline that can be used to render glyphs in the given
texture. The pipeline has a new reference so it is up to the caller texture. The pipeline has a new reference so it is up to the caller
to unref it */ to unref it */
CoglPipeline * CoglPipeline * clutter_pango_pipeline_cache_get (ClutterPangoPipelineCache *cache,
clutter_pango_pipeline_cache_get (ClutterPangoPipelineCache *cache,
CoglTexture *texture); CoglTexture *texture);
void void clutter_pango_pipeline_cache_free (ClutterPangoPipelineCache *cache);
clutter_pango_pipeline_cache_free (ClutterPangoPipelineCache *cache);
G_END_DECLS G_END_DECLS

View File

@ -42,8 +42,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
PangoRenderer * PangoRenderer * clutter_pango_renderer_new (CoglContext *context);
clutter_pango_renderer_new (CoglContext *context);
/** /**
* clutter_ensure_glyph_cache_for_layout: * clutter_ensure_glyph_cache_for_layout:
@ -55,8 +54,7 @@ clutter_pango_renderer_new (CoglContext *context);
* This api should be used to avoid mid-scene modifications of * This api should be used to avoid mid-scene modifications of
* glyph-cache textures which can lead to undefined rendering results. * glyph-cache textures which can lead to undefined rendering results.
*/ */
void void clutter_ensure_glyph_cache_for_layout (PangoLayout *layout);
clutter_ensure_glyph_cache_for_layout (PangoLayout *layout);
/** /**
* clutter_show_layout: (skip) * clutter_show_layout: (skip)
@ -69,8 +67,7 @@ clutter_ensure_glyph_cache_for_layout (PangoLayout *layout);
* Draws a solidly coloured @layout on the given @framebuffer at (@x, * Draws a solidly coloured @layout on the given @framebuffer at (@x,
* @y) within the `framebuffer`'s current model-view coordinate space. * @y) within the `framebuffer`'s current model-view coordinate space.
*/ */
void void clutter_show_layout (CoglFramebuffer *framebuffer,
clutter_show_layout (CoglFramebuffer *framebuffer,
PangoLayout *layout, PangoLayout *layout,
float x, float x,
float y, float y,