#include <stdio.h>
#include <glib.h>
#include "cr-utils.h"
#include "cr-attr-sel.h"
#include "cr-pseudo.h"
#include "cr-additional-sel.h"
Go to the source code of this file.
Data Structures | |
union | CRAdditionalSelectorContent |
struct | _CRAdditionalSel |
CRAdditionalSel abstracts an additionnal selector. More... | |
Typedefs | |
typedef _CRAdditionalSel | CRAdditionalSel |
Enumerations | |
enum | AddSelectorType { NO_ADD_SELECTOR = 0, CLASS_ADD_SELECTOR = 1, PSEUDO_CLASS_ADD_SELECTOR = 1 << 1, ID_ADD_SELECTOR = 1 << 3, ATTRIBUTE_ADD_SELECTOR = 1 << 4 } |
Functions | |
CRAdditionalSel * | cr_additional_sel_new (void) |
Default constructor of CRAdditionalSel. | |
CRAdditionalSel * | cr_additional_sel_new_with_type (enum AddSelectorType a_sel_type) |
Constructor of CRAdditionalSel. | |
CRAdditionalSel * | cr_additional_sel_append (CRAdditionalSel *a_this, CRAdditionalSel *a_sel) |
Appends a new instance of #CRAdditional to the current list of #CRAdditional. | |
void | cr_additional_sel_set_class_name (CRAdditionalSel *a_this, CRString *a_class_name) |
Sets a new class name to a CLASS additional selector. | |
void | cr_additional_sel_set_id_name (CRAdditionalSel *a_this, CRString *a_id) |
Sets a new id name to an ID additional selector. | |
void | cr_additional_sel_set_pseudo (CRAdditionalSel *a_this, CRPseudo *a_pseudo) |
Sets a new pseudo to a PSEUDO additional selector. | |
void | cr_additional_sel_set_attr_sel (CRAdditionalSel *a_this, CRAttrSel *a_sel) |
Sets a new instance of CRAttrSel to a ATTRIBUTE additional selector. | |
CRAdditionalSel * | cr_additional_sel_prepend (CRAdditionalSel *a_this, CRAdditionalSel *a_sel) |
Preppends a new instance of #CRAdditional to the current list of #CRAdditional. | |
guchar * | cr_additional_sel_to_string (CRAdditionalSel *a_this) |
guchar * | cr_additional_sel_one_to_string (CRAdditionalSel *a_this) |
void | cr_additional_sel_dump (CRAdditionalSel *a_this, FILE *a_fp) |
Dumps the current instance of CRAdditionalSel to a file. | |
void | cr_additional_sel_destroy (CRAdditionalSel *a_this) |
Destroys an instance of #CRAdditional. |
Definition in file cr-additional-sel.h.
|
|
Definition at line 42 of file cr-additional-sel.h. |
|
Appends a new instance of #CRAdditional to the current list of #CRAdditional.
Definition at line 157 of file cr-additional-sel.c. References CRAdditionalSel, _CRAdditionalSel::next, and _CRAdditionalSel::prev. |
|
Destroys an instance of #CRAdditional.
Definition at line 434 of file cr-additional-sel.c. References CRAdditionalSelectorContent::attr_sel, ATTRIBUTE_ADD_SELECTOR, CLASS_ADD_SELECTOR, CRAdditionalSelectorContent::class_name, _CRAdditionalSel::content, cr_attr_sel_destroy(), cr_pseudo_destroy(), cr_string_destroy(), CRAdditionalSel, ID_ADD_SELECTOR, CRAdditionalSelectorContent::id_name, _CRAdditionalSel::next, CRAdditionalSelectorContent::pseudo, and PSEUDO_CLASS_ADD_SELECTOR. Referenced by cr_simple_sel_destroy(). |
|
Dumps the current instance of CRAdditionalSel to a file.
Definition at line 412 of file cr-additional-sel.c. References cr_additional_sel_to_string(), and CRAdditionalSel. |
|
Default constructor of CRAdditionalSel.
Definition at line 33 of file cr-additional-sel.c. References cr_utils_trace_debug, and CRAdditionalSel. Referenced by cr_additional_sel_new_with_type(). |
|
Constructor of CRAdditionalSel.
Definition at line 56 of file cr-additional-sel.c. References cr_additional_sel_new(), and CRAdditionalSel. |
|
|
Preppends a new instance of #CRAdditional to the current list of #CRAdditional.
Definition at line 190 of file cr-additional-sel.c. References CRAdditionalSel, _CRAdditionalSel::next, and _CRAdditionalSel::prev. |
|
Sets a new instance of CRAttrSel to a ATTRIBUTE additional selector.
Definition at line 137 of file cr-additional-sel.c. References CRAdditionalSelectorContent::attr_sel, ATTRIBUTE_ADD_SELECTOR, _CRAdditionalSel::content, cr_attr_sel_destroy(), CRAdditionalSel, and CRAttrSel. |
|
Sets a new class name to a CLASS additional selector.
Definition at line 78 of file cr-additional-sel.c. References CLASS_ADD_SELECTOR, CRAdditionalSelectorContent::class_name, _CRAdditionalSel::content, cr_string_destroy(), CRAdditionalSel, and CRString. |
|
Sets a new id name to an ID additional selector.
Definition at line 98 of file cr-additional-sel.c. References _CRAdditionalSel::content, cr_string_destroy(), CRAdditionalSel, CRString, ID_ADD_SELECTOR, and CRAdditionalSelectorContent::id_name. |
|
Sets a new pseudo to a PSEUDO additional selector.
Definition at line 117 of file cr-additional-sel.c. References _CRAdditionalSel::content, cr_pseudo_destroy(), CRAdditionalSel, CRPseudo, CRAdditionalSelectorContent::pseudo, and PSEUDO_CLASS_ADD_SELECTOR. |
|