30 #ifndef __CR_STATEMENT_H__ 31 #define __CR_STATEMENT_H__
enum CRStatus cr_statement_ruleset_append_decl(CRStatement *a_this, CRDeclaration *a_decl)
cr_statement_ruleset_append_decl:
gchar * cr_statement_to_string(CRStatement const *a_this, gulong a_indent)
cr_statement_to_string:
CRSelector * sel_list
A list of instances of #CRSimpeSel.
CRStatement * parent_media_rule
The parent media rule, or NULL if no parent media rule exists.
CRDeclaration * decl_list
A list of instances of CRDeclaration.
CRAtMediaRule * media_rule
union _CRStatement::@1 kind
CRStatement * cr_statement_new_at_charset_rule(CRStyleSheet *a_sheet, CRString *a_charset)
cr_statement_new_at_charset_rule:
void cr_statement_dump_page(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_page:
enum CRStatus cr_statement_at_page_rule_set_sel(CRStatement *a_this, CRSelector *a_sel)
CRAtFontFaceRule * font_face_rule
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:
enum CRStatus cr_statement_at_import_rule_get_imported_sheet(CRStatement *a_this, CRStyleSheet **a_sheet)
cr_statement_at_import_rule_get_imported_sheet:
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_font_face_rule_set_decls(CRStatement *a_this, CRDeclaration *a_decls)
cr_statement_at_font_face_rule_set_decls:
enum CRStatus cr_statement_get_parent_sheet(CRStatement *a_this, CRStyleSheet **a_sheet)
cr_statement_get_parent_sheet:
enum CRStatus cr_statement_ruleset_set_sel_list(CRStatement *a_this, CRSelector *a_sel_list)
cr_statement_ruleset_set_sel_list:
CRStatement * cr_statement_new_at_media_rule(CRStyleSheet *a_sheet, CRStatement *a_ruleset, GList *a_media)
cr_statement_new_at_media_rule:
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:
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
The Croco library basic types definitions And global definitions.
enum CRStatus cr_statement_at_import_rule_set_imported_sheet(CRStatement *a_this, CRStyleSheet *a_sheet)
cr_statement_at_import_rule_set_imported_sheet:
The declaration file of the CRSelector file.
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_font_face_rule_add_decl(CRStatement *a_this, CRString *a_prop, CRTerm *a_value)
cr_statement_at_font_face_rule_add_decl:
CRStatement * cr_statement_append(CRStatement *a_this, CRStatement *a_new)
cr_statement_append:
CREncoding
Encoding values.
CRDeclaration * decl_list
typedefG_BEGIN_DECLS struct _CRSelector CRSelector
CRStatus
The status type returned by the methods of the croco library.
enum CRStatementType type
The type of the statement.
CRStatement * cr_statement_get_from_list(CRStatement *a_this, int itemnr)
cr_statement_get_from_list:
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_ruleset_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
cr_statement_ruleset_get_declarations:
gpointer app_data
a custom pointer useable by applications that use libcroco.
CRAtCharsetRule * charset_rule
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:
The abstraction of css statement as defined in the chapter 4 and appendix D.1 of the css2 spec.
CRStatementType
The possible types of css2 statements.
CRStatement * cr_statement_new_ruleset(CRStyleSheet *a_sheet, CRSelector *a_sel_list, CRDeclaration *a_decl_list, CRStatement *a_media_rule)
cr_statement_new_ruleset:
void cr_statement_dump_charset(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_charset:
void cr_statement_dump_import_rule(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_import_rule:
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:
The declaration of the CRDeclaration class.
CRStatement * cr_statement_unlink(CRStatement *a_stmt)
cr_statement_unlink:
A generic css at-rule each unknown at-rule will be of this type.
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:
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:
typedefG_BEGIN_DECLS struct _CRString CRString
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:
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:
enum CRStatus cr_statement_ruleset_set_decl_list(CRStatement *a_this, CRDeclaration *a_list)
cr_statement_ruleset_set_decl_list:
CRStyleSheet * sheet
the stylesheet fetched from the url, if any.
void cr_statement_dump(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump:
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:
void cr_statement_destroy(CRStatement *a_this)
cr_statement_destroy:
void cr_statement_dump_ruleset(CRStatement const *a_this, FILE *a_fp, glong a_indent)
cr_statement_dump_ruleset:
enum CRStatus cr_statement_at_import_rule_get_url(CRStatement const *a_this, CRString **a_url)
cr_statement_at_import_rule_get_url:
The abstraction of a css ruleset.
An abstraction of a css2 term as defined in the CSS2 spec in appendix D.1: term ::= [ NUMBER S* | PER...
CRStatement * cr_statement_new_at_font_face_rule(CRStyleSheet *a_sheet, CRDeclaration *a_font_decls)
cr_statement_new_at_font_face_rule:
CRAtImportRule * import_rule
gpointer croco_data
a custom pointer used by the upper layers of libcroco.
CRParsingLocation location
CRString * url
the url of the import rule
CRStyleSheet * parent_sheet
gint cr_statement_nr_rules(CRStatement const *a_this)
cr_statement_nr_rules:
Declaration of the #CRTem class.
void cr_statement_dump_media_rule(CRStatement const *a_this, FILE *a_fp, gulong a_indent)
cr_statement_dump_media_rule:
void cr_statement_dump_font_face_rule(CRStatement const *a_this, FILE *a_fp, glong a_indent)
cr_statement_dump_font_face_rule:
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.
enum CRStatus cr_statement_at_charset_rule_set_charset(CRStatement *a_this, CRString *a_charset)
cr_statement_at_charset_rule_set_charset:
enum CRStatus cr_statement_at_page_rule_get_declarations(CRStatement *a_this, CRDeclaration **a_decl_list)
cr_statement_at_page_rule_get_declarations:
enum CRStatus cr_statement_ruleset_get_sel_list(CRStatement const *a_this, CRSelector **a_list)
cr_statement_ruleset_get_sel_list:
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_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:
gint cr_statement_at_media_nr_rules(CRStatement const *a_this)
cr_statement_at_media_nr_rules: