Go to the documentation of this file.
30 #ifndef __CR_STATEMENT_H__
31 #define __CR_STATEMENT_H__
void cr_statement_dump_ruleset(CRStatement const *a_this, FILE *a_fp, glong a_indent)
cr_statement_dump_ruleset:
enum CRStatus cr_statement_at_font_face_rule_set_decls(CRStatement *a_this, CRDeclaration *a_decls)
cr_statement_at_font_face_rule_set_decls:
@ AT_PAGE_RULE_STMT
A css2 page rule.
enum CRStatus cr_statement_ruleset_get_sel_list(CRStatement const *a_this, CRSelector **a_list)
cr_statement_ruleset_get_sel_list:
CRStatement * cr_statement_get_from_list(CRStatement *a_this, int itemnr)
cr_statement_get_from_list:
gint cr_statement_at_media_nr_rules(CRStatement const *a_this)
cr_statement_at_media_nr_rules:
enum CRStatus cr_statement_at_import_rule_set_imported_sheet(CRStatement *a_this, CRStyleSheet *a_sheet)
cr_statement_at_import_rule_set_imported_sheet:
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
union _CRStatement::@1 kind
enum CRStatus cr_statement_get_parent_sheet(CRStatement *a_this, CRStyleSheet **a_sheet)
cr_statement_get_parent_sheet:
gint cr_statement_nr_rules(CRStatement const *a_this)
cr_statement_nr_rules:
CRStatement * cr_statement_at_charset_rule_parse_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_at_charset_rule_parse_from_buf:
CRSelector * sel_list
A list of instances of #CRSimpeSel.
void cr_statement_dump_charset(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_charset:
void cr_statement_dump_page(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_page:
void cr_statement_dump_media_rule(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_media_rule:
CRStatement * cr_statement_at_media_get_from_list(CRStatement *a_this, int itemnr)
cr_statement_at_media_get_from_list:
enum CRStatus cr_statement_at_font_face_rule_get_decls(CRStatement *a_this, CRDeclaration **a_decls)
cr_statement_at_font_face_rule_get_decls:
CRStatement * cr_statement_font_face_rule_parse_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_font_face_rule_parse_from_buf:
enum CRStatus cr_statement_at_page_rule_set_declarations(CRStatement *a_this, CRDeclaration *a_decl_list)
cr_statement_at_page_rule_set_declarations:
enum CRStatus cr_statement_at_font_face_rule_add_decl(CRStatement *a_this, CRString *a_prop, CRTerm *a_value)
cr_statement_at_font_face_rule_add_decl:
enum CRStatementType type
The type of the statement.
enum CRStatus cr_statement_at_charset_rule_set_charset(CRStatement *a_this, CRString *a_charset)
cr_statement_at_charset_rule_set_charset:
CRDeclaration * decl_list
A list of instances of CRDeclaration.
CRStatement * cr_statement_unlink(CRStatement *a_stmt)
cr_statement_unlink:
CRStatementType
The possible types of css2 statements.
CRStyleSheet * parent_sheet
@ AT_IMPORT_RULE_STMT
A css2 import rule.
CRStatement * cr_statement_new_ruleset(CRStyleSheet *a_sheet, CRSelector *a_sel_list, CRDeclaration *a_decl_list, CRStatement *a_media_rule)
cr_statement_new_ruleset:
enum CRStatus cr_statement_at_page_rule_set_sel(CRStatement *a_this, CRSelector *a_sel)
typedefG_BEGIN_DECLS struct _CRString CRString
void cr_statement_dump(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump:
void cr_statement_destroy(CRStatement *a_this)
cr_statement_destroy:
CRStatement * cr_statement_new_at_charset_rule(CRStyleSheet *a_sheet, CRString *a_charset)
cr_statement_new_at_charset_rule:
enum CRStatus cr_statement_set_parent_sheet(CRStatement *a_this, CRStyleSheet *a_sheet)
cr_statement_set_parent_sheet:
CRStatement * cr_statement_parse_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_parse_from_buf:
gpointer app_data
a custom pointer useable by applications that use libcroco.
CRDeclaration * decl_list
CRAtFontFaceRule * font_face_rule
enum CRStatus cr_statement_ruleset_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
cr_statement_ruleset_get_declarations:
enum CRStatus cr_statement_ruleset_set_sel_list(CRStatement *a_this, CRSelector *a_sel_list)
cr_statement_ruleset_set_sel_list:
void cr_statement_dump_import_rule(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_import_rule:
gpointer croco_data
a custom pointer used by the upper layers of libcroco.
CRStatement * cr_statement_at_import_rule_parse_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_at_import_rule_parse_from_buf:
CRAtMediaRule * media_rule
@ AT_CHARSET_RULE_STMT
A css2 charset rule.
CRStatement * cr_statement_new_at_font_face_rule(CRStyleSheet *a_sheet, CRDeclaration *a_font_decls)
cr_statement_new_at_font_face_rule:
CRStatement * cr_statement_at_page_rule_parse_from_buf(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_at_page_rule_parse_from_buf:
CRStatement * cr_statement_at_media_rule_parse_from_buf(const guchar *a_buf, enum CREncoding a_enc)
cr_statement_at_media_rule_parse_from_buf:
The abstraction of a css ruleset.
void cr_statement_dump_font_face_rule(CRStatement const *a_this, FILE *a_fp, glong a_indent)
cr_statement_dump_font_face_rule:
CRStatement * cr_statement_new_at_media_rule(CRStyleSheet *a_sheet, CRStatement *a_ruleset, GList *a_media)
cr_statement_new_at_media_rule:
CRStatement * cr_statement_append(CRStatement *a_this, CRStatement *a_new)
cr_statement_append:
The abstraction of css statement as defined in the chapter 4 and appendix D.1 of the css2 spec.
CRStyleSheet * sheet
the stylesheet fetched from the url, if any.
enum CRStatus cr_statement_at_page_rule_get_sel(CRStatement const *a_this, CRSelector **a_sel)
CRStatement * cr_statement_prepend(CRStatement *a_this, CRStatement *a_new)
cr_statement_prepend:
enum CRStatus cr_statement_at_import_rule_set_url(CRStatement *a_this, CRString *a_url)
cr_statement_at_import_rule_set_url:
CRAtImportRule * import_rule
gboolean cr_statement_does_buf_parses_against_core(const guchar *a_buf, enum CREncoding a_encoding)
cr_statement_does_buf_parses_against_core:
enum CRStatus cr_statement_at_import_rule_get_url(CRStatement const *a_this, CRString **a_url)
cr_statement_at_import_rule_get_url:
@ AT_MEDIA_RULE_STMT
A css2 media rule.
enum CRStatus cr_statement_ruleset_set_decl_list(CRStatement *a_this, CRDeclaration *a_list)
cr_statement_ruleset_set_decl_list:
enum CRStatus cr_statement_at_page_rule_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
cr_statement_at_page_rule_get_declarations:
CRParsingLocation location
@ AT_FONT_FACE_RULE_STMT
A css2 font face rule.
enum CRStatus cr_statement_ruleset_append_decl(CRStatement *a_this, CRDeclaration *a_decl)
cr_statement_ruleset_append_decl:
CREncoding
Encoding values.
enum CRStatus cr_statement_ruleset_append_decl2(CRStatement *a_this, CRString *a_prop, CRTerm *a_value)
cr_statement_ruleset_append_decl2:
enum CRStatus cr_statement_at_charset_rule_get_charset(CRStatement const *a_this, CRString **a_charset)
cr_statement_at_charset_rule_get_charset: @a_this: the current @charset rule statement.
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...
CRStatus
The status type returned by the methods of the croco library.
CRString * url
the url of the import rule
typedefG_BEGIN_DECLS struct _CRSelector CRSelector
CRStatement * cr_statement_new_at_page_rule(CRStyleSheet *a_sheet, CRDeclaration *a_decl_list, CRString *a_name, CRString *a_pseudo)
cr_statement_new_at_page_rule:
CRAtCharsetRule * charset_rule
@ AT_RULE_STMT
A generic css at-rule each unknown at-rule will be of this type.
CRStatement * parent_media_rule
The parent media rule, or NULL if no parent media rule exists.
gchar * cr_statement_list_to_string(CRStatement const *a_this, gulong a_indent)
CRStatement * cr_statement_ruleset_parse_from_buf(const guchar *a_buf, enum CREncoding a_enc)
cr_statement_ruleset_parse_from_buf:
CRStatement * cr_statement_new_at_import_rule(CRStyleSheet *a_container_sheet, CRString *a_url, GList *a_media_list, CRStyleSheet *a_imported_sheet)
cr_statement_new_at_import_rule:
enum CRStatus cr_statement_at_import_rule_get_imported_sheet(CRStatement *a_this, CRStyleSheet **a_sheet)
cr_statement_at_import_rule_get_imported_sheet:
gchar * cr_statement_to_string(CRStatement const *a_this, gulong a_indent)
cr_statement_to_string: