Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
_CRTerm Struct Reference

An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* | TIME S* | FREQ S* | function ] | STRING S* | IDENT S* | URI S* | RGB S* | UNICODERANGE S* | hexcolor. More...

#include <cr-term.h>

Public Attributes

enum CRTermType type
 The type of the term.
 
enum UnaryOperator unary_op
 The unary operator associated to the current term.
 
enum Operator the_operator
 The operator associated to the current term.
 
union { 
 
   CRNum *   num 
 
   CRString *   str 
 
   CRRgb *   rgb 
 
content 
 The content of the term.
 
union { 
 
   CRTerm *   func_param 
 
ext_content 
 If the term is of type UNICODERANGE, this field holds the upper bound of the range.
 
gboolean n
 A flag to indicate if there is an n as in the nth child expression 'an+b'.
 
gpointer app_data
 A spare pointer, just in case.
 
glong ref_count
 
CRTermnext
 A pointer to the next term, just in case this term is part of an expression.
 
CRTermprev
 A pointer to the previous term.
 
CRParsingLocation location
 

Detailed Description

An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PERCENTAGE S* | LENGTH S* | EMS S* | EXS S* | ANGLE S* | TIME S* | FREQ S* | function ] | STRING S* | IDENT S* | URI S* | RGB S* | UNICODERANGE S* | hexcolor.

Definition at line 82 of file cr-term.h.

Member Data Documentation

◆ app_data

gpointer _CRTerm::app_data

A spare pointer, just in case.

Can be used by the application.

Definition at line 134 of file cr-term.h.

◆ [union]

union { ... } _CRTerm::content

The content of the term.

Depending of the type of the term, this holds either a number, a percentage ...

Referenced by end_font_face_cb().

◆ [union]

union { ... } _CRTerm::ext_content

If the term is of type UNICODERANGE, this field holds the upper bound of the range.

if the term is of type FUNCTION, this holds an instance of CRTerm that represents the expression which is the argument of the function.

◆ func_param

CRTerm* _CRTerm::func_param

Definition at line 122 of file cr-term.h.

◆ location

CRParsingLocation _CRTerm::location

Definition at line 150 of file cr-term.h.

◆ n

gboolean _CRTerm::n

A flag to indicate if there is an n as in the nth child expression 'an+b'.

Definition at line 128 of file cr-term.h.

◆ next

CRTerm* _CRTerm::next

A pointer to the next term, just in case this term is part of an expression.

Definition at line 143 of file cr-term.h.

◆ num

CRNum* _CRTerm::num

Definition at line 108 of file cr-term.h.

◆ prev

CRTerm* _CRTerm::prev

A pointer to the previous term.

Definition at line 149 of file cr-term.h.

◆ ref_count

glong _CRTerm::ref_count

Definition at line 136 of file cr-term.h.

◆ rgb

CRRgb* _CRTerm::rgb

Definition at line 110 of file cr-term.h.

◆ str

CRString* _CRTerm::str

Definition at line 109 of file cr-term.h.

Referenced by end_font_face_cb().

◆ the_operator

enum Operator _CRTerm::the_operator

The operator associated to the current term.

Definition at line 98 of file cr-term.h.

◆ type

enum CRTermType _CRTerm::type

The type of the term.

Definition at line 87 of file cr-term.h.

◆ unary_op

enum UnaryOperator _CRTerm::unary_op

The unary operator associated to the current term.

Definition at line 93 of file cr-term.h.


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