marco 1.29.1
Window manager
Loading...
Searching...
No Matches
_MetaDrawSpec Struct Reference

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

#include <src/ui/theme.h>

Collaboration diagram for _MetaDrawSpec:
[legend]

Data Fields

int value
 If this spec is constant, this is the value of the constant; otherwise it is zero.
 
PosToken * tokens
 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?

Field Documentation

◆ constant

gboolean _MetaDrawSpec::constant

Does the expression contain any variables?

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

◆ n_tokens

int _MetaDrawSpec::n_tokens

How many tokens are in the tokens list.

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

◆ tokens

PosToken* _MetaDrawSpec::tokens

A list of tokens in the expression.

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

◆ value

int _MetaDrawSpec::value

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

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: