]> git.datanom.net - gtk_lensdatabase.git/blob - src/lensmaker.h
On the way
[gtk_lensdatabase.git] / src / lensmaker.h
1 /*
2 * lensmaker.h
3 *
4 * Copyright 2024 Michael Rasmussen <mir@datanom.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
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 GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19 * MA 02110-1301, USA.
20 *
21 *
22 */
23
24
25 #ifndef LENSMAKER_H_
26 #define LENSMAKER_H_ 1
27
28 #include <glib-object.h>
29 #include "lens.h"
30
31 G_BEGIN_DECLS
32
33
34 #define TYPE_LENS_MAKER (lens_maker_get_type ())
35 #define LENS_MAKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LENS_MAKER, LensMaker))
36 #define LENS_MAKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LENS_MAKER, LensMakerClass))
37 #define IS_LENS_MAKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LENS_MAKER))
38 #define IS_LENS_MAKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LENS_MAKER))
39 #define LENS_MAKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LENS_MAKER, LensMakerClass))
40
41 typedef struct _LensMaker LensMaker;
42 typedef struct _LensMakerClass LensMakerClass;
43
44 struct _LensMakerClass {
45 GObjectClass parent_class;
46 };
47
48
49 GType lens_maker_get_type (void);
50
51 LensMaker *lens_maker_new (gint id);
52 gint lens_maker_get_id(LensMaker* self);
53 void lens_maker_set_name(LensMaker* self, const gchar* name, GError** error);
54 void lens_maker_add_lens(LensMaker* self, const Lens* lens, GError** error);
55 void lens_maker_remove_lens(LensMaker* self, Lens* lens, GError** error);
56 LensMaker* lens_maker_get_copy(const LensMaker* self, GError** error);
57 /* TODO: Make deep copy */
58 Lens* lens_maker_get_lens(LensMaker* self, gint id, GError** error);
59
60 G_END_DECLS
61
62 #endif /* LENSMAKER_H_ */
This page took 0.594018 seconds and 6 git commands to generate.