...master 2026-11-10 (4e7201cfc+unstaged)

fitz/css.h

Index

typedef

struct

macro

function

Css

macro FZ_MAX_CSS_PROPS

#define FZ_MAX_CSS_PROPS 68

typedef fz_css_style

typedef struct fz_css_style fz_css_style

struct fz_css

struct fz_css
{
        fz_pool *pool;
        fz_css_rule *rule;
}

struct fz_css_rule

struct fz_css_rule
{
        fz_css_selector *selector;
        fz_css_property *declaration;
        fz_css_rule *next;
        int loaded;
}

struct fz_css_selector

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

struct fz_css_condition
{
        int type;
        char *key;
        char *val;
        fz_css_condition *next;
}

struct fz_css_property

struct fz_css_property
{
        int name;
        fz_css_value *value;
        short spec;
        short important;
        fz_css_property *next;
}

struct fz_css_value

struct fz_css_value
{
        int type;
        char *data;
        fz_css_value *args; /* function arguments */
        fz_css_value *next;
}

struct fz_css_match

struct fz_css_match
{
        fz_css_match *up;
        short spec[FZ_MAX_CSS_PROPS];
        fz_css_value *value[FZ_MAX_CSS_PROPS];
}

function fz_new_css

fz_css *
fz_new_css (
        fz_context *ctx
)

function fz_parse_css

void
fz_parse_css (
        fz_context *ctx,
        fz_css *css,
        const char *source,
        const char *file
)

function fz_parse_css_in_svg

void
fz_parse_css_in_svg (
        fz_context *ctx,
        fz_css *css,
        const char *source,
        const char *file
)

function fz_parse_css_properties

fz_css_property *
fz_parse_css_properties (
        fz_context *ctx,
        fz_pool *pool,
        const char *source
)

function fz_parse_css_properties_in_svg

fz_css_property *
fz_parse_css_properties_in_svg (
        fz_context *ctx,
        fz_pool *pool,
        const char *source
)

function fz_drop_css

void
fz_drop_css (
        fz_context *ctx,
        fz_css *css
)

function fz_debug_css

void
fz_debug_css (
        fz_context *ctx,
        fz_css *css
)

function fz_debug_css_in_svg

void
fz_debug_css_in_svg (
        fz_context *ctx,
        fz_css *css
)

function fz_css_property_name

const char *
fz_css_property_name (
        int name
)

function fz_css_property_name_in_svg

const char *
fz_css_property_name_in_svg (
        int name
)

function fz_match_css

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
)

function fz_match_css_in_svg

void
fz_match_css_in_svg (
        fz_context *ctx,
        fz_css_match *match,
        fz_css_match *up,
        fz_css *css,
        fz_xml *node
)

function fz_string_from_css_value

char *
fz_string_from_css_value (
        fz_context *ctx,
        char *buf,
        int size,
        fz_css_value *value
)