diff --git a/cogl/cogl-path.h b/cogl/cogl-path.h index aa8bfd2ed..a0440f226 100644 --- a/cogl/cogl-path.h +++ b/cogl/cogl-path.h @@ -53,6 +53,18 @@ G_BEGIN_DECLS typedef struct _CoglPath CoglPath; +/** + * cogl_is_path: + * @handle: A CoglHandle + * + * Gets whether the given handle references an existing path object. + * + * Return value: %TRUE if the handle references a #CoglPath, + * %FALSE otherwise + */ +gboolean +cogl_is_path (CoglHandle handle); + /** * cogl_path_fill: * diff --git a/doc/reference/cogl/cogl-sections.txt b/doc/reference/cogl/cogl-sections.txt index 755a5827a..362ac66b8 100644 --- a/doc/reference/cogl/cogl-sections.txt +++ b/doc/reference/cogl/cogl-sections.txt @@ -154,6 +154,7 @@ cogl_rectangle_with_multitexture_coords cogl_polygon +cogl_is_path cogl_path_new cogl_get_path cogl_set_path