summaryrefslogtreecommitdiff
path: root/src/ui/theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/theme.h')
-rw-r--r--src/ui/theme.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/ui/theme.h b/src/ui/theme.h
index d04892b..24927ea 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -373,14 +373,29 @@ typedef struct
} d;
} PosToken;
+/**
+ *
+ * Created by meta_draw_spec_new(), destroyed by meta_draw_spec_free().
+ * pos_eval() fills this with ...FIXME. Are tokens a tree or a list?
+ * \bug FIXME finish filling this in
+ * \ingroup tokenizer
+ */
typedef struct _MetaDrawSpec
{
+ /**
+ * If this spec is constant, this is the value of the constant;
+ * otherwise it is zero.
+ */
int value;
+ /** A list of tokens in the expression. */
PosToken *tokens;
+
+ /** How many tokens are in the tokens list. */
int n_tokens;
- gboolean constant : 1; /* Does the expression contain any variables? */
+ /** Does the expression contain any variables? */
+ gboolean constant : 1;
} MetaDrawSpec;
struct _MetaDrawOp