ELinks 0.16.1.1
property.h File Reference
#include "document/format.h"
#include "document/html/parser.h"
#include "util/align.h"
#include "util/color.h"
#include "util/lists.h"
Include dependency graph for property.h:
This graph shows which files directly or indirectly include this file:

Data Structures

union  css_property_value
struct  css_property
 The struct css_property describes one CSS declaration in a rule, therefore being basically a parsed instance of struct css_property_info. More...
struct  css_property_info
 The struct css_property_info describes what values the properties can have and what internal type they have. More...

Typedefs

typedef int(* css_property_value_parser_T) (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)

Enumerations

enum  css_property_type {
  CSS_PT_NONE , CSS_PT_BACKGROUND , CSS_PT_BACKGROUND_COLOR , CSS_PT_COLOR ,
  CSS_PT_DISPLAY , CSS_PT_FONT_STYLE , CSS_PT_FONT_WEIGHT , CSS_PT_LIST_STYLE ,
  CSS_PT_LIST_STYLE_TYPE , CSS_PT_TEXT_ALIGN , CSS_PT_TEXT_DECORATION , CSS_PT_WHITE_SPACE ,
  CSS_PT_LAST
}
enum  css_property_value_type {
  CSS_VT_NONE , CSS_VT_COLOR , CSS_VT_DISPLAY , CSS_VT_FONT_ATTRIBUTE ,
  CSS_VT_LIST_STYLE , CSS_VT_TEXT_ALIGN , CSS_VT_LAST
}
enum  css_display { CSS_DISP_INLINE , CSS_DISP_BLOCK , CSS_DISP_NONE }
enum  css_list_style {
  CSS_LIST_NONE , CSS_LIST_DISC , CSS_LIST_CIRCLE , CSS_LIST_SQUARE ,
  CSS_LIST_ORDINAL , CSS_LIST_DECIMAL , CSS_LIST_DECIMAL_LEADING_ZERO , CSS_LIST_LOWER_ROMAN ,
  CSS_LIST_UPPER_ROMAN , CSS_LIST_LOWER_ALPHA , CSS_LIST_UPPER_ALPHA , CSS_LIST_LOWER_GREEK ,
  CSS_LIST_LOWER_LATIN , CSS_LIST_UPPER_LATIN , CSS_LIST_HEBREW , CSS_LIST_ARMENIAN ,
  CSS_LIST_GEORGIAN , CSS_LIST_CJK_IDEOGRAPHIC , CSS_LIST_HIRAGANA , CSS_LIST_KATAKANA ,
  CSS_LIST_HIRAGANA_IROHA , CSS_LIST_KATAKANA_IROHA
}

Variables

struct css_property_info css_property_info []
 This table contains info about all the known CSS properties.

Typedef Documentation

◆ css_property_value_parser_T

typedef int(* css_property_value_parser_T) (struct css_property_info *propinfo, union css_property_value *value, struct scanner *scanner)

Enumeration Type Documentation

◆ css_display

Enumerator
CSS_DISP_INLINE 
CSS_DISP_BLOCK 
CSS_DISP_NONE 

◆ css_list_style

Enumerator
CSS_LIST_NONE 
CSS_LIST_DISC 
CSS_LIST_CIRCLE 
CSS_LIST_SQUARE 
CSS_LIST_ORDINAL 
CSS_LIST_DECIMAL 
CSS_LIST_DECIMAL_LEADING_ZERO 
CSS_LIST_LOWER_ROMAN 
CSS_LIST_UPPER_ROMAN 
CSS_LIST_LOWER_ALPHA 
CSS_LIST_UPPER_ALPHA 
CSS_LIST_LOWER_GREEK 
CSS_LIST_LOWER_LATIN 
CSS_LIST_UPPER_LATIN 
CSS_LIST_HEBREW 
CSS_LIST_ARMENIAN 
CSS_LIST_GEORGIAN 
CSS_LIST_CJK_IDEOGRAPHIC 
CSS_LIST_HIRAGANA 
CSS_LIST_KATAKANA 
CSS_LIST_HIRAGANA_IROHA 
CSS_LIST_KATAKANA_IROHA 

◆ css_property_type

Enumerator
CSS_PT_NONE 
CSS_PT_BACKGROUND 
CSS_PT_BACKGROUND_COLOR 
CSS_PT_COLOR 
CSS_PT_DISPLAY 
CSS_PT_FONT_STYLE 
CSS_PT_FONT_WEIGHT 
CSS_PT_LIST_STYLE 
CSS_PT_LIST_STYLE_TYPE 
CSS_PT_TEXT_ALIGN 
CSS_PT_TEXT_DECORATION 
CSS_PT_WHITE_SPACE 
CSS_PT_LAST 

◆ css_property_value_type

Enumerator
CSS_VT_NONE 
CSS_VT_COLOR 
CSS_VT_DISPLAY 
CSS_VT_FONT_ATTRIBUTE 
CSS_VT_LIST_STYLE 
CSS_VT_TEXT_ALIGN 
CSS_VT_LAST 

Variable Documentation

◆ css_property_info

struct css_property_info css_property_info[]
extern

This table contains info about all the known CSS properties.

Todo
TODO: Use fastfind when we get a lot of properties. XXX: But only WHEN we get A LOT of properties, zas! ;-) –pasky