_MetaDrawSpec Struct Reference
[The theme expression parser]

A computed expression in our simple vector drawing language. More...


Data Fields

int value
 If this spec is constant, this is the value of the constant; otherwise it is zero.
PosTokentokens
 A list of tokens in the expression.
int n_tokens
 How many tokens are in the tokens list.
gboolean constant: 1
 Does the expression contain any variables?


Detailed Description

A computed expression in our simple vector drawing language.

While it appears to take the form of a tree, this is actually merely a list; concerns such as precedence of operators are currently recomputed on every recalculation.

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?

Definition at line 396 of file theme.h.


Field Documentation

If this spec is constant, this is the value of the constant; otherwise it is zero.

Definition at line 402 of file theme.h.

Referenced by meta_draw_spec_new(), meta_parse_position_expression(), and meta_parse_size_expression().

A list of tokens in the expression.

Definition at line 405 of file theme.h.

Referenced by meta_draw_spec_free(), meta_draw_spec_new(), and pos_eval().

How many tokens are in the tokens list.

Definition at line 408 of file theme.h.

Referenced by meta_draw_spec_free(), meta_draw_spec_new(), and pos_eval().

Does the expression contain any variables?

Definition at line 411 of file theme.h.

Referenced by meta_draw_spec_new(), meta_parse_position_expression(), and meta_parse_size_expression().


The documentation for this struct was generated from the following file:

Generated on Sat Aug 23 22:04:24 2008 for metacity by  doxygen 1.5.5