[CpmlPrimitive] Do not return anything from cpml_primitive_copy()
[adg.git] / adg / adg-toy-text.h
blobdb7675ee4c4b015c39b5eb8fd0c84fb442bf856d
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007,2008,2009 Nicola Fontana <ntd at entidi.it>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 #if !defined(__ADG_H__)
22 #error "Only <adg/adg.h> can be included directly."
23 #endif
26 #ifndef __ADG_TOY_TEXT_H__
27 #define __ADG_TOY_TEXT_H__
29 #include <adg/adg-entity.h>
30 #include <adg/adg-pair.h>
33 G_BEGIN_DECLS
35 #define ADG_TYPE_TOY_TEXT (adg_toy_text_get_type())
36 #define ADG_TOY_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADG_TYPE_TOY_TEXT, AdgToyText))
37 #define ADG_TOY_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADG_TYPE_TOY_TEXT, AdgToyTextClass))
38 #define ADG_IS_TOY_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADG_TYPE_TOY_TEXT))
39 #define ADG_IS_TOY_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADG_TYPE_TOY_TEXT))
40 #define ADG_TOY_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADG_TYPE_TOY_TEXT, AdgToyTextClass))
42 typedef struct _AdgToyText AdgToyText;
43 typedef struct _AdgToyTextClass AdgToyTextClass;
45 struct _AdgToyText {
46 /*< private >*/
47 AdgEntity parent;
48 gpointer data;
51 struct _AdgToyTextClass {
52 /*< private >*/
53 AdgEntityClass parent_class;
57 GType adg_toy_text_get_type (void) G_GNUC_CONST;
58 AdgToyText * adg_toy_text_new (const gchar *label);
59 void adg_toy_text_set_font_dress (AdgToyText *toy_text,
60 AdgDress dress);
61 AdgDress adg_toy_text_get_font_dress (AdgToyText *toy_text);
62 void adg_toy_text_set_label (AdgToyText *toy_text,
63 const gchar *label);
64 const gchar * adg_toy_text_get_label (AdgToyText *toy_text);
66 G_END_DECLS
69 #endif /* __ADG_TOY_TEXT_H__ */