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

_CRSimpleSel Struct Reference

The abstraction of a css2 simple selection list as defined by the right part of the "selector" production in the appendix D.1 of the css2 spec. More...

#include <cr-simple-sel.h>


Data Fields

gboolean is_case_sentive
CRStringname
CRAdditionalSeladd_sel
 The additional selector list of the current simple selector.
gulong specificity
CRSimpleSelnext
CRSimpleSelprev
CRParsingLocation location


Detailed Description

The abstraction of a css2 simple selection list as defined by the right part of the "selector" production in the appendix D.1 of the css2 spec.

It is basically a list of simple selector, each simple selector being separated by a combinator.

In the libcroco's implementation, each simple selector is made of at most two parts:

1/An element name or 'type selector' (which can hold a '*' and then been called 'universal selector')

2/An additional selector that "specializes" the preceding type or universal selector. The additionnal selector can be either an id selector, or a class selector, or an attribute selector.

Definition at line 74 of file cr-simple-sel.h.


Field Documentation

CRAdditionalSel* _CRSimpleSel::add_sel
 

The additional selector list of the current simple selector.

An additional selector may be a class selector, an id selector, or an attribute selector. Note that this field is a linked list.

Definition at line 94 of file cr-simple-sel.h.

Referenced by cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_one_to_string(), and cr_simple_sel_to_string().

gboolean _CRSimpleSel::is_case_sentive
 

Definition at line 77 of file cr-simple-sel.h.

CRParsingLocation _CRSimpleSel::location
 

Definition at line 104 of file cr-simple-sel.h.

CRString* _CRSimpleSel::name
 

Definition at line 78 of file cr-simple-sel.h.

Referenced by cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_one_to_string(), and cr_simple_sel_to_string().

CRSimpleSel* _CRSimpleSel::next
 

Definition at line 102 of file cr-simple-sel.h.

Referenced by cr_selector_destroy(), cr_simple_sel_append_simple_sel(), cr_simple_sel_compute_specificity(), cr_simple_sel_destroy(), cr_simple_sel_prepend_simple_sel(), and cr_simple_sel_to_string().

CRSimpleSel* _CRSimpleSel::prev
 

Definition at line 103 of file cr-simple-sel.h.

Referenced by cr_simple_sel_append_simple_sel(), and cr_simple_sel_prepend_simple_sel().

gulong _CRSimpleSel::specificity
 

Definition at line 100 of file cr-simple-sel.h.

Referenced by cr_simple_sel_compute_specificity().


The documentation for this struct was generated from the following file:
Generated on Fri Oct 29 08:29:14 2004 for Libcroco by  doxygen 1.3.9.1