Sha256: a6d10dc6cabc4a908cebdfe8d5a16130babab03d2f77c8cb8aa81403b214a726

Contents?: true

Size: 1.62 KB

Versions: 4

Compression:

Stored size: 1.62 KB

Contents

/* Lasem - SVG and Mathml library
 *
 * Copyright © 2009-2010  Emmanuel Pacaud
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1335, USA.
 *
 * Author:
 * 	Emmanuel Pacaud <emmanuel@gnome.org>
 */

#ifndef LSM_TRAITS_H
#define LSM_TRAITS_H

#include <lsmtypes.h>

G_BEGIN_DECLS

typedef void LsmTrait;

typedef struct {
	size_t		size;
	void 		(*init)			(LsmTrait *abstract_trait, const LsmTrait *trait_default);
	void 		(*finalize)		(LsmTrait *abstract_trait);
	gboolean	(*from_string)		(LsmTrait *abstract_trait, char *string);
	char * 		(*to_string)		(LsmTrait *abstract_trait);
} LsmTraitClass;

extern const LsmTraitClass lsm_null_trait_class;
extern const LsmTraitClass lsm_boolean_trait_class;
extern const LsmTraitClass lsm_integer_trait_class;
extern const LsmTraitClass lsm_double_trait_class;
extern const LsmTraitClass lsm_box_trait_class;

int 	lsm_enum_value_from_string 	(const char *string, const char **strings, unsigned int n_strings);

G_END_DECLS

#endif

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/lasem/src/lsmtraits.h
mathematical-1.6.18 ext/mathematical/lasem/src/lsmtraits.h
mathematical-1.6.14 ext/mathematical/lasem/src/lsmtraits.h
mathematical-1.6.13 ext/mathematical/lasem/src/lsmtraits.h