Libcroco
cr-cascade.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
8  * GNU Lesser General Public
9  * License as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the
17  * GNU Lesser General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  *
22  */
23 
24 /*
25  *$Id$
26  */
27 
28 #ifndef __CR_CASCADE_H__
29 #define __CR_CASCADE_H__
30 
31 #include "cr-stylesheet.h"
32 
33 /**
34  *@file
35  *the declaration of the #CRCascade class.
36  */
37 
38 G_BEGIN_DECLS
39 
40 
41 typedef struct _CRCascadePriv CRCascadePriv ;
42 
43 /**
44  *An abstraction of the "Cascade" defined
45  *in the css2 spec, chapter 6.4.
46  */
47 typedef struct _CRCascade CRCascade ;
48 
49 struct _CRCascade
50 {
52 };
53 
54 
55 CRCascade * cr_cascade_new (CRStyleSheet *a_author_sheet,
56  CRStyleSheet *a_user_sheet,
57  CRStyleSheet *a_ua_sheet) ;
58 
60  enum CRStyleOrigin a_origin) ;
61 
63  CRStyleSheet *a_sheet,
64  enum CRStyleOrigin a_origin) ;
65 
66 void cr_cascade_ref (CRCascade *a_this) ;
67 
68 void cr_cascade_unref (CRCascade *a_this) ;
69 
70 void cr_cascade_destroy (CRCascade *a_this) ;
71 
72 G_END_DECLS
73 
74 #endif /*__CR_CASCADE_H__*/
_CRStyleSheet
An abstraction of a css stylesheet as defined by the css2 spec in chapter 4.
Definition: cr-stylesheet.h:57
cr_cascade_unref
void cr_cascade_unref(CRCascade *a_this)
cr_cascade_unref: @a_this: the current instance of CRCascade.
Definition: cr-cascade.c:177
_CRCascade::priv
CRCascadePriv * priv
Definition: cr-cascade.h:51
CRCascadePriv
typedefG_BEGIN_DECLS struct _CRCascadePriv CRCascadePriv
Definition: cr-cascade.h:41
CRStyleOrigin
CRStyleOrigin
Definition: cr-stylesheet.h:38
cr-stylesheet.h
cr_cascade_set_sheet
enum CRStatus cr_cascade_set_sheet(CRCascade *a_this, CRStyleSheet *a_sheet, enum CRStyleOrigin a_origin)
cr_cascade_set_sheet: @a_this: the current instance of CRCascade.
Definition: cr-cascade.c:135
cr_cascade_ref
void cr_cascade_ref(CRCascade *a_this)
cr_cascade_ref: @a_this: the current instance of CRCascade
Definition: cr-cascade.c:159
_CRCascade
Definition: cr-cascade.h:49
cr_cascade_new
CRCascade * cr_cascade_new(CRStyleSheet *a_author_sheet, CRStyleSheet *a_user_sheet, CRStyleSheet *a_ua_sheet)
cr_cascade_new: @a_author_sheet: the author origin style sheet.
Definition: cr-cascade.c:64
CRStatus
CRStatus
The status type returned by the methods of the croco library.
Definition: cr-utils.h:43
cr_cascade_destroy
void cr_cascade_destroy(CRCascade *a_this)
cr_cascade_destroy: @a_this: the current instance of CRCascade
Definition: cr-cascade.c:195
_CRCascadePriv
Definition: cr-cascade.c:34
cr_cascade_get_sheet
CRStyleSheet * cr_cascade_get_sheet(CRCascade *a_this, enum CRStyleOrigin a_origin)
cr_cascade_get_sheet: @a_this: the current instance of CRCascade.
Definition: cr-cascade.c:114