Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
cr-selector.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 *
21 * Author: Dodji Seketeli
22 * See COPYRIGHTS file for copyright information.
23 */
24
25#ifndef __CR_SELECTOR_H__
26#define __CR_SELECTOR_H__
27
28#include <stdio.h>
29#include "cr-utils.h"
30#include "cr-simple-sel.h"
31#include "cr-parsing-location.h"
32
38G_BEGIN_DECLS
39
40typedef struct _CRSelector CRSelector ;
41
70
72
73CRSelector * cr_selector_parse_from_buf (const guchar * a_char_buf,
74 enum CREncoding a_enc) ;
75
77
79 CRSimpleSel *a_simple_sel) ;
80
82
83guchar * cr_selector_to_string (CRSelector const *a_this) ;
84
85void cr_selector_dump (CRSelector const *a_this, FILE *a_fp) ;
86
88
89gboolean cr_selector_unref (CRSelector *a_this) ;
90
92
93G_END_DECLS
94
95#endif /*__CR_SELECTOR_H__*/
The declaration of the CRParsingLocation object.
CRSelector * cr_selector_append_simple_sel(CRSelector *a_this, CRSimpleSel *a_simple_sel)
gboolean cr_selector_unref(CRSelector *a_this)
CRSelector * cr_selector_append(CRSelector *a_this, CRSelector *a_new)
guchar * cr_selector_to_string(CRSelector const *a_this)
typedefG_BEGIN_DECLS struct _CRSelector CRSelector
Definition cr-selector.h:40
void cr_selector_dump(CRSelector const *a_this, FILE *a_fp)
CRSelector * cr_selector_new(CRSimpleSel *a_sel_expr)
CRSelector * cr_selector_prepend(CRSelector *a_this, CRSelector *a_new)
void cr_selector_ref(CRSelector *a_this)
CRSelector * cr_selector_parse_from_buf(const guchar *a_char_buf, enum CREncoding a_enc)
void cr_selector_destroy(CRSelector *a_this)
the declaration of the CRSimpleSel class.
The Croco library basic types definitions And global definitions.
CREncoding
Encoding values.
Definition cr-utils.h:84
Abstracts a CSS2 selector as defined in the right part of the 'ruleset' production in the appendix D....
Definition cr-selector.h:54
CRSelector * next
The next selector list element.
Definition cr-selector.h:65
CRSimpleSel * simple_sel
A Selection expression.
Definition cr-selector.h:62
CRSelector * prev
Definition cr-selector.h:66
CRParsingLocation location
Definition cr-selector.h:67
glong ref_count
Definition cr-selector.h:68
The abstraction of a css2 simple selection list as defined by the right part of the "selector" produc...