_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>


Data Fields

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
union {
   CRTerm *   func_param
ext_content
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.


Field Documentation

The unary operator associated to the current term.

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

Referenced by cr_parser_parse_term(), cr_term_one_to_string(), and cr_term_to_string().

The operator associated to the current term.

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

Referenced by cr_term_one_to_string(), and cr_term_to_string().

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

Referenced by cr_term_one_to_string(), cr_term_set_number(), and cr_term_to_string().

union { ... } _CRTerm::content

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

Referenced by cr_term_one_to_string(), cr_term_set_function(), and cr_term_to_string().

union { ... } _CRTerm::ext_content

A spare pointer, just in case.

Can be used by the application.

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

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

Referenced by cr_term_ref(), and cr_term_unref().

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

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

Referenced by cr_term_append_term(), cr_term_destroy(), cr_term_get_from_list(), cr_term_nr_values(), cr_term_prepend_term(), and cr_term_to_string().

A pointer to the previous term.

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

Referenced by cr_term_append_term(), cr_term_one_to_string(), cr_term_prepend_term(), and cr_term_to_string().

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

Referenced by cr_parser_parse_term().


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

Generated on Wed Feb 4 16:36:55 2009 for Libcroco by  doxygen 1.5.5