Libcroco
cr-additional-sel.h
Go to the documentation of this file.
1 /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
2 
3 /*
4  * This file is part of The Croco Library
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2.1 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA
19  *
20  * Author: Dodji Seketeli
21  * See the COPYRIGHTS file for copyright information.
22  */
23 
24 
25 #ifndef __CR_ADD_SEL_H__
26 #define __CR_ADD_SEL_H__
27 
28 #include <stdio.h>
29 #include <glib.h>
30 #include "cr-utils.h"
31 #include "cr-attr-sel.h"
32 #include "cr-pseudo.h"
33 #include "cr-additional-sel.h"
34 
35 G_BEGIN_DECLS
36 
38 {
42  ID_ADD_SELECTOR = 1 << 3,
44 } ;
45 
47 {
52 } ;
53 
55 
57 {
60 
64 } ;
65 
67 
69 
71  CRAdditionalSel *a_sel) ;
72 
74  CRString *a_class_name) ;
75 
77  CRString *a_id) ;
78 
80  CRPseudo *a_pseudo) ;
81 
83  CRAttrSel *a_sel) ;
84 
86  CRAdditionalSel *a_sel) ;
87 
88 guchar * cr_additional_sel_to_string (CRAdditionalSel const *a_this) ;
89 
90 guchar * cr_additional_sel_one_to_string (CRAdditionalSel const *a_this) ;
91 
92 void cr_additional_sel_dump (CRAdditionalSel const *a_this, FILE *a_fp) ;
93 
95 
96 G_END_DECLS
97 
98 #endif /*__CR_ADD_SEL_H*/
cr_additional_sel_set_pseudo
void cr_additional_sel_set_pseudo(CRAdditionalSel *a_this, CRPseudo *a_pseudo)
cr_additional_sel_set_pseudo: @a_this: the "this pointer" of the current instance of CRAdditionalSel ...
Definition: cr-additional-sel.c:137
cr_additional_sel_dump
void cr_additional_sel_dump(CRAdditionalSel const *a_this, FILE *a_fp)
cr_additional_sel_dump: @a_this: the "this pointer" of the current instance of CRAdditionalSel.
Definition: cr-additional-sel.c:442
cr_additional_sel_set_class_name
void cr_additional_sel_set_class_name(CRAdditionalSel *a_this, CRString *a_class_name)
cr_additional_sel_set_class_name: @a_this: the "this pointer" of the current instance of CRAdditional...
Definition: cr-additional-sel.c:94
cr_additional_sel_new
CRAdditionalSel * cr_additional_sel_new(void)
CRAdditionalSel:
Definition: cr-additional-sel.c:46
cr_additional_sel_set_attr_sel
void cr_additional_sel_set_attr_sel(CRAdditionalSel *a_this, CRAttrSel *a_sel)
cr_additional_sel_set_attr_sel: @a_this: the "this pointer" of the current instance of CRAdditionalSe...
Definition: cr-additional-sel.c:159
_CRAdditionalSel
Definition: cr-additional-sel.h:56
AddSelectorType
AddSelectorType
Definition: cr-additional-sel.h:37
CRAdditionalSelectorContent::class_name
CRString * class_name
Definition: cr-additional-sel.h:48
cr_additional_sel_one_to_string
guchar * cr_additional_sel_one_to_string(CRAdditionalSel const *a_this)
Definition: cr-additional-sel.c:335
PSEUDO_CLASS_ADD_SELECTOR
@ PSEUDO_CLASS_ADD_SELECTOR
Definition: cr-additional-sel.h:41
cr_additional_sel_append
CRAdditionalSel * cr_additional_sel_append(CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
cr_additional_sel_append: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
Definition: cr-additional-sel.c:182
CRAdditionalSelectorContent::attr_sel
CRAttrSel * attr_sel
Definition: cr-additional-sel.h:51
_CRPseudo
The CRPseudo Class.
Definition: cr-pseudo.h:46
cr_additional_sel_prepend
CRAdditionalSel * cr_additional_sel_prepend(CRAdditionalSel *a_this, CRAdditionalSel *a_sel)
cr_additional_sel_prepend: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
Definition: cr-additional-sel.c:218
cr_additional_sel_destroy
void cr_additional_sel_destroy(CRAdditionalSel *a_this)
cr_additional_sel_destroy: @a_this: the "this pointer" of the current instance of CRAdditionalSel .
Definition: cr-additional-sel.c:466
cr-pseudo.h
CRString
typedefG_BEGIN_DECLS struct _CRString CRString
Definition: cr-string.h:37
_CRAdditionalSel::prev
CRAdditionalSel * prev
Definition: cr-additional-sel.h:62
_CRAdditionalSel::content
union CRAdditionalSelectorContent content
Definition: cr-additional-sel.h:59
_CRAdditionalSel::location
CRParsingLocation location
Definition: cr-additional-sel.h:63
CLASS_ADD_SELECTOR
@ CLASS_ADD_SELECTOR
Definition: cr-additional-sel.h:40
cr_additional_sel_new_with_type
CRAdditionalSel * cr_additional_sel_new_with_type(enum AddSelectorType a_sel_type)
cr_additional_sel_new_with_type: @a_sel_type: the type of the newly built instance of CRAdditionalSel...
Definition: cr-additional-sel.c:71
cr-additional-sel.h
_CRParsingLocation
Definition: cr-parsing-location.h:39
CRAdditionalSelectorContent::id_name
CRString * id_name
Definition: cr-additional-sel.h:49
CRAdditionalSelectorContent
Definition: cr-additional-sel.h:46
CRAdditionalSelectorContent::pseudo
CRPseudo * pseudo
Definition: cr-additional-sel.h:50
NO_ADD_SELECTOR
@ NO_ADD_SELECTOR
Definition: cr-additional-sel.h:39
cr_additional_sel_set_id_name
void cr_additional_sel_set_id_name(CRAdditionalSel *a_this, CRString *a_id)
cr_additional_sel_set_id_name: @a_this: the "this pointer" of the current instance of CRAdditionalSel...
Definition: cr-additional-sel.c:116
cr-attr-sel.h
_CRAdditionalSel::next
CRAdditionalSel * next
Definition: cr-additional-sel.h:61
_CRAttrSel
Definition: cr-attr-sel.h:48
cr_additional_sel_to_string
guchar * cr_additional_sel_to_string(CRAdditionalSel const *a_this)
Definition: cr-additional-sel.c:233
ATTRIBUTE_ADD_SELECTOR
@ ATTRIBUTE_ADD_SELECTOR
Definition: cr-additional-sel.h:43
cr-utils.h
_CRAdditionalSel::type
enum AddSelectorType type
Definition: cr-additional-sel.h:58
ID_ADD_SELECTOR
@ ID_ADD_SELECTOR
Definition: cr-additional-sel.h:42