4 * Copyright 2024 Michael Rasmussen <mir@datanom.net>
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.
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.
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,
26 #define LENSMAKER_H_ 1
28 #include <glib-object.h>
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))
41 typedef struct _LensMaker LensMaker
;
42 typedef struct _LensMakerClass LensMakerClass
;
44 struct _LensMakerClass
{
45 GObjectClass parent_class
;
49 GType
lens_maker_get_type (void);
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
);
62 #endif /* LENSMAKER_H_ */