Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

_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 operator
 The operator associated to the current term.

union {
   CRNum *   num
   GString *   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.

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.


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 84 of file cr-term.h.


Field Documentation

gpointer _CRTerm::app_data
 

A spare pointer, just in case.

Can be used by the application.

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

union { ... } _CRTerm::content
 

The content of the term.

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

Referenced by cr_term_set_function(), cr_term_set_hash(), cr_term_set_ident(), cr_term_set_number(), cr_term_set_rgb(), cr_term_set_string(), cr_term_set_uri(), and cr_term_to_string().

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.

Referenced by cr_term_set_function().

CRTerm* _CRTerm::func_param
 

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

CRTerm* _CRTerm::next
 

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

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

Referenced by cr_term_append_term(), cr_term_destroy(), and cr_term_to_string().

CRNum* _CRTerm::num
 

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

enum Operator _CRTerm::operator
 

The operator associated to the current term.

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

Referenced by cr_parser_parse_expr(), and cr_term_to_string().

CRTerm* _CRTerm::prev
 

A pointer to the previous term.

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

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

glong _CRTerm::ref_count
 

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

Referenced by cr_term_ref(), and cr_term_unref().

CRRgb* _CRTerm::rgb
 

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

GString* _CRTerm::str
 

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

enum CRTermType _CRTerm::type
 

The type of the term.

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

Referenced by cr_term_set_function(), cr_term_set_hash(), cr_term_set_ident(), cr_term_set_number(), cr_term_set_rgb(), cr_term_set_string(), cr_term_set_uri(), and cr_term_to_string().

enum UnaryOperator _CRTerm::unary_op
 

The unary operator associated to the current term.

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

Referenced by cr_term_to_string().


The documentation for this struct was generated from the following file:
Generated on Wed Oct 1 01:36:54 2003 for Libcroco by doxygen 1.3.3