Libcroco
src
cr-pseudo.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
* See COPYRIGHTS file for copyright information
21
*/
22
23
#ifndef __CR_PSEUDO_H__
24
#define __CR_PSEUDO_H__
25
26
#include <stdio.h>
27
#include <glib.h>
28
#include "
cr-attr-sel.h
"
29
#include "
cr-parsing-location.h
"
30
31
G_BEGIN_DECLS
32
33
enum
CRPseudoType
34
{
35
IDENT_PSEUDO
= 0,
36
FUNCTION_PSEUDO
37
} ;
38
39
typedef
struct
_CRPseudo
CRPseudo
;
40
41
/**
42
*The CRPseudo Class.
43
*Abstract a "pseudo" as defined by the css2 spec
44
*in appendix D.1 .
45
*/
46
struct
_CRPseudo
47
{
48
enum
CRPseudoType
type
;
49
CRString
*
name
;
50
CRString
*
extra
;
51
CRParsingLocation
location
;
52
} ;
53
54
CRPseudo
*
cr_pseudo_new
(
void
) ;
55
56
guchar *
cr_pseudo_to_string
(
CRPseudo
const
*a_this) ;
57
58
void
cr_pseudo_dump
(
CRPseudo
const
*a_this, FILE *a_fp) ;
59
60
void
cr_pseudo_destroy
(
CRPseudo
*a_this) ;
61
62
G_END_DECLS
63
64
#endif
/*__CR_PSEUDO_H__*/
_CRPseudo
The CRPseudo Class.
Definition:
cr-pseudo.h:46
_CRPseudo::location
CRParsingLocation location
Definition:
cr-pseudo.h:51
_CRPseudo::type
enum CRPseudoType type
Definition:
cr-pseudo.h:48
FUNCTION_PSEUDO
@ FUNCTION_PSEUDO
Definition:
cr-pseudo.h:36
CRString
typedefG_BEGIN_DECLS struct _CRString CRString
Definition:
cr-string.h:37
cr_pseudo_dump
void cr_pseudo_dump(CRPseudo const *a_this, FILE *a_fp)
cr_pseudo_dump: @a_this: the current instance of pseudo @a_fp: the destination file pointer.
Definition:
cr-pseudo.c:131
_CRPseudo::name
CRString * name
Definition:
cr-pseudo.h:49
_CRParsingLocation
Definition:
cr-parsing-location.h:39
cr_pseudo_new
CRPseudo * cr_pseudo_new(void)
@CRPseudo: The definition of the CRPseudo class.
Definition:
cr-pseudo.c:38
cr_pseudo_destroy
void cr_pseudo_destroy(CRPseudo *a_this)
cr_pseudo_destroy: @a_this: the current instance to destroy.
Definition:
cr-pseudo.c:152
_CRPseudo::extra
CRString * extra
Definition:
cr-pseudo.h:50
cr-attr-sel.h
cr-parsing-location.h
IDENT_PSEUDO
@ IDENT_PSEUDO
Definition:
cr-pseudo.h:35
CRPseudoType
CRPseudoType
Definition:
cr-pseudo.h:33
cr_pseudo_to_string
guchar * cr_pseudo_to_string(CRPseudo const *a_this)
cr_pseudo_to_string: @a_this: the current instance of #CRPseud.
Definition:
cr-pseudo.c:55
Generated by
1.8.17