/* * lensmaker.h * * Copyright 2024 Michael Rasmussen * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * */ #ifndef LENSMAKER_H_ #define LENSMAKER_H_ 1 #include #include "lens.h" G_BEGIN_DECLS #define TYPE_LENS_MAKER (lens_maker_get_type ()) #define LENS_MAKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LENS_MAKER, LensMaker)) #define LENS_MAKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LENS_MAKER, LensMakerClass)) #define IS_LENS_MAKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LENS_MAKER)) #define IS_LENS_MAKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LENS_MAKER)) #define LENS_MAKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LENS_MAKER, LensMakerClass)) typedef struct _LensMaker LensMaker; typedef struct _LensMakerClass LensMakerClass; struct _LensMakerClass { GObjectClass parent_class; }; GType lens_maker_get_type (void); LensMaker *lens_maker_new (gint id); gint lens_maker_get_id(LensMaker* self); void lens_maker_set_name(LensMaker* self, const gchar* name, GError** error); void lens_maker_add_lens(LensMaker* self, const Lens* lens, GError** error); void lens_maker_remove_lens(LensMaker* self, Lens* lens, GError** error); LensMaker* lens_maker_get_copy(const LensMaker* self, GError** error); /* TODO: Make deep copy */ Lens* lens_maker_get_lens(LensMaker* self, gint id, GError** error); G_END_DECLS #endif /* LENSMAKER_H_ */