fitz/css.h
Index
typedef
struct
macro
function
Css
#define FZ_MAX_CSS_PROPS 68
typedef struct fz_css_style fz_css_style
struct fz_css
{
fz_pool *pool;
fz_css_rule *rule;
}
struct fz_css_rule
{
fz_css_selector *selector;
fz_css_property *declaration;
fz_css_rule *next;
int loaded;
}
struct fz_css_selector
{
char *name;
int combine;
fz_css_condition *cond;
fz_css_selector *left;
fz_css_selector *right;
fz_css_selector *next;
}
struct fz_css_condition
{
int type;
char *key;
char *val;
fz_css_condition *next;
}
struct fz_css_property
{
int name;
fz_css_value *value;
short spec;
short important;
fz_css_property *next;
}
struct fz_css_value
{
int type;
char *data;
fz_css_value *args; /* function arguments */
fz_css_value *next;
}
struct fz_css_match
{
fz_css_match *up;
short spec[FZ_MAX_CSS_PROPS];
fz_css_value *value[FZ_MAX_CSS_PROPS];
}
fz_css *
fz_new_css (
fz_context *ctx
)
void
fz_parse_css (
fz_context *ctx,
fz_css *css,
const char *source,
const char *file
)
void
fz_parse_css_in_svg (
fz_context *ctx,
fz_css *css,
const char *source,
const char *file
)
fz_css_property *
fz_parse_css_properties (
fz_context *ctx,
fz_pool *pool,
const char *source
)
fz_css_property *
fz_parse_css_properties_in_svg (
fz_context *ctx,
fz_pool *pool,
const char *source
)
void
fz_drop_css (
fz_context *ctx,
fz_css *css
)
void
fz_debug_css (
fz_context *ctx,
fz_css *css
)
void
fz_debug_css_in_svg (
fz_context *ctx,
fz_css *css
)
const char *
fz_css_property_name (
int name
)
const char *
fz_css_property_name_in_svg (
int name
)
void
fz_match_css (
fz_context *ctx,
fz_css_match *match,
fz_css_match *up,
fz_css *css,
fz_xml *node,
int pseudo,
int publisher_css
)
void
fz_match_css_in_svg (
fz_context *ctx,
fz_css_match *match,
fz_css_match *up,
fz_css *css,
fz_xml *node
)
char *
fz_string_from_css_value (
fz_context *ctx,
char *buf,
int size,
fz_css_value *value
)