From 5bca96ed4ae12439979fa7200f2123c972731e43 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 10 Feb 2009 01:01:06 +0000 Subject: Enumerate pseudo classes and elements svn path=/trunk/libcss/; revision=6407 --- include/libcss/select.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include') diff --git a/include/libcss/select.h b/include/libcss/select.h index 1226480..fa9a7c2 100644 --- a/include/libcss/select.h +++ b/include/libcss/select.h @@ -12,6 +12,26 @@ #include #include +enum css_pseudo_class { + CSS_PSEUDO_CLASS_FIRST_CHILD = (1<<0), + CSS_PSEUDO_CLASS_LINK = (1<<1), + CSS_PSEUDO_CLASS_VISITED = (1<<2), + CSS_PSEUDO_CLASS_HOVER = (1<<3), + CSS_PSEUDO_CLASS_ACTIVE = (1<<4), + CSS_PSEUDO_CLASS_FOCUS = (1<<5), + /** \todo CSS_PSEUDO_CLASS_LANG = (1<<6), */ + CSS_PSEUDO_CLASS_LEFT = (1<<7), + CSS_PSEUDO_CLASS_RIGHT = (1<<8), + CSS_PSEUDO_CLASS_FIRST = (1<<9) +}; + +enum css_pseudo_element { + CSS_PSEUDO_ELEMENT_FIRST_LINE = (1<<0), + CSS_PSEUDO_ELEMENT_FIRST_LETTER = (1<<1), + CSS_PSEUDO_ELEMENT_BEFORE = (1<<2), + CSS_PSEUDO_ELEMENT_AFTER = (1<<3) +}; + typedef struct css_select_handler { css_error (*node_name)(void *pw, void *node, const uint8_t **name, size_t *len); -- cgit v1.2.3