This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
hedera/vn/vn-set.h

60 lines
1.7 KiB
C
Raw Normal View History

2013-10-11 23:07:35 +00:00
/*
* Copyright (C) 2012 - Juan Ferrer Toribio
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
2014-07-11 13:01:22 +00:00
#ifndef VN_SET_H
#define VN_SET_H
2013-10-11 23:07:35 +00:00
#include <db/db.h>
#include <gtk/gtk.h>
2014-07-11 13:01:22 +00:00
#define VN_TYPE_SET (vn_set_get_type ())
#define VN_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, VN_TYPE_SET, VnSet))
#define VN_IS_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, VN_TYPE_SET))
#define VN_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST (klass, VN_TYPE_SET, VnSetClass))
#define VN_IS_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE (klass, VN_TYPE_SET))
#define VN_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS (obj, VN_TYPE_SET, VnSetClass))
2013-10-11 23:07:35 +00:00
2014-07-11 13:01:22 +00:00
typedef struct _VnSet VnSet;
typedef struct _VnSetClass VnSetClass;
2013-10-11 23:07:35 +00:00
2013-10-14 12:08:06 +00:00
/**
2014-07-11 13:01:22 +00:00
* VnSet:
2013-10-14 12:08:06 +00:00
* @objects: (element-type GObject):
**/
2014-07-11 13:01:22 +00:00
struct _VnSet
2013-10-11 23:07:35 +00:00
{
GObject parent;
GList * objects;
2013-10-14 12:08:06 +00:00
guint count;
2013-10-11 23:07:35 +00:00
};
2014-07-11 13:01:22 +00:00
struct _VnSetClass
2013-10-11 23:07:35 +00:00
{
GObjectClass parent;
};
2014-07-11 13:01:22 +00:00
GType vn_set_get_type ();
2013-10-11 23:07:35 +00:00
2014-07-11 13:01:22 +00:00
void vn_set_add (VnSet * obj
2013-10-14 12:08:06 +00:00
,GObject * child);
2014-07-11 13:01:22 +00:00
void vn_set_remove (VnSet * obj
2013-10-14 12:08:06 +00:00
,GObject * child);
2014-07-11 13:01:22 +00:00
const GList * vn_set_get_objects (VnSet * obj);
GList * vn_set_get_objects_list (VnSet * obj);
guint vn_set_get_length (VnSet * obj);
2013-10-11 23:07:35 +00:00
#endif