summaryrefslogtreecommitdiff
path: root/gsk/gskrendernode.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-12-01 14:01:02 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-12-01 15:51:52 +0000
commitc524b72d130cdc8578da72643ed1a36b5e9a0647 (patch)
tree99fabf7713e0d4ed843a45adcd5a496a90370885 /gsk/gskrendernode.h
parentb5313dbd4d91ea4dfcda319b9034793f9c157e2c (diff)
downloadgtk+-c524b72d130cdc8578da72643ed1a36b5e9a0647.tar.gz
docs: Annotate structure types used by GskRenderNodes
Diffstat (limited to 'gsk/gskrendernode.h')
-rw-r--r--gsk/gskrendernode.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index dba436afda..f55fd67a30 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -40,12 +40,28 @@ typedef struct _GskRenderNode GskRenderNode;
typedef struct _GskColorStop GskColorStop;
typedef struct _GskShadow GskShadow;
+/**
+ * GskColorStop:
+ * @offset: the offset of the color stop
+ * @color: the color at the given offset
+ *
+ * A color stop in a gradient node.
+ */
struct _GskColorStop
{
float offset;
GdkRGBA color;
};
+/**
+ * GskShadow:
+ * @color: the color of the shadow
+ * @dx: the horizontal offset of the shadow
+ * @dy: the vertical offset of the shadow
+ * @radius: the radius of the shadow
+ *
+ * The shadow parameters in a shadow node.
+ */
struct _GskShadow
{
GdkRGBA color;
@@ -56,6 +72,16 @@ struct _GskShadow
typedef struct _GskParseLocation GskParseLocation;
+/**
+ * GskParseLocation:
+ * @bytes: the offset of the location in the parse buffer, as bytes
+ * @chars: the offset of the location in the parse buffer, as characters
+ * @lines: the line of the location in the parse buffer
+ * @line_bytes: the position in the line, as bytes
+ * @line_chars: the position in the line, as characters
+ *
+ * A location in a parse buffer.
+ */
struct _GskParseLocation
{
gsize bytes;