2007-12-14 17:25:55 +00:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
|
|
* Neil Jagdish Patel <njp@o-hand.com>
|
|
|
|
* Emmanuele Bassi <ebassi@openedhand.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 OpenedHand
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2008-10-30 17:04:34 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2007-12-14 17:25:55 +00:00
|
|
|
*
|
|
|
|
* NB: Inspiration for column storage taken from GtkListStore
|
|
|
|
*/
|
|
|
|
|
2008-10-30 17:04:34 +00:00
|
|
|
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
|
|
|
|
#error "Only <clutter/clutter.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2008-01-09 14:34:24 +00:00
|
|
|
#ifndef __CLUTTER_LIST_MODEL_H__
|
|
|
|
#define __CLUTTER_LIST_MODEL_H__
|
2007-12-14 17:25:55 +00:00
|
|
|
|
2015-06-28 09:37:01 +00:00
|
|
|
#include <clutter/deprecated/clutter-model.h>
|
2007-12-14 17:25:55 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2009-02-14 11:31:00 +00:00
|
|
|
#define CLUTTER_TYPE_LIST_MODEL (clutter_list_model_get_type ())
|
|
|
|
#define CLUTTER_LIST_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_LIST_MODEL, ClutterListModel))
|
|
|
|
#define CLUTTER_IS_LIST_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_LIST_MODEL))
|
|
|
|
#define CLUTTER_LIST_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_LIST_MODEL, ClutterListModeClass))
|
|
|
|
#define CLUTTER_IS_LIST_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_LIST_MODEL))
|
|
|
|
#define CLUTTER_LIST_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_LIST_MODEL, ClutterListModeClass))
|
2007-12-14 17:25:55 +00:00
|
|
|
|
2009-02-14 11:31:00 +00:00
|
|
|
typedef struct _ClutterListModel ClutterListModel;
|
|
|
|
typedef struct _ClutterListModelPrivate ClutterListModelPrivate;
|
|
|
|
typedef struct _ClutterListModelClass ClutterListModelClass;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ClutterListModel:
|
|
|
|
*
|
|
|
|
* The #ClutterListModel struct contains only private data.
|
|
|
|
*
|
|
|
|
* Since: 0.6
|
2015-06-28 09:21:22 +00:00
|
|
|
*
|
|
|
|
* Deprecated: 1.24: Use #GListStore instead
|
2009-02-14 11:31:00 +00:00
|
|
|
*/
|
|
|
|
struct _ClutterListModel
|
|
|
|
{
|
|
|
|
/*< private >*/
|
|
|
|
ClutterModel parent_instance;
|
|
|
|
|
|
|
|
ClutterListModelPrivate *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ClutterListModelClass:
|
|
|
|
*
|
|
|
|
* The #ClutterListModelClass struct contains only private data.
|
|
|
|
*
|
|
|
|
* Since: 0.6
|
2015-06-28 09:21:22 +00:00
|
|
|
*
|
|
|
|
* Deprecated: 1.24: Use #GListStore instead
|
2009-02-14 11:31:00 +00:00
|
|
|
*/
|
|
|
|
struct _ClutterListModelClass
|
|
|
|
{
|
|
|
|
/*< private >*/
|
|
|
|
ClutterModelClass parent_class;
|
|
|
|
};
|
2007-12-14 17:25:55 +00:00
|
|
|
|
2015-06-28 09:21:22 +00:00
|
|
|
CLUTTER_DEPRECATED_IN_1_24_FOR(g_list_store_get_type)
|
2008-01-09 14:34:24 +00:00
|
|
|
GType clutter_list_model_get_type (void) G_GNUC_CONST;
|
2007-12-14 17:25:55 +00:00
|
|
|
|
2015-06-28 09:21:22 +00:00
|
|
|
CLUTTER_DEPRECATED_IN_1_24_FOR(g_list_store_new)
|
2008-01-09 14:34:24 +00:00
|
|
|
ClutterModel *clutter_list_model_new (guint n_columns,
|
2008-01-07 17:35:07 +00:00
|
|
|
...);
|
2015-06-28 09:21:22 +00:00
|
|
|
CLUTTER_DEPRECATED_IN_1_24_FOR(g_list_store_new)
|
2008-01-09 14:34:24 +00:00
|
|
|
ClutterModel *clutter_list_model_newv (guint n_columns,
|
|
|
|
GType *types,
|
|
|
|
const gchar * const names[]);
|
2007-12-14 17:25:55 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2008-01-09 14:34:24 +00:00
|
|
|
#endif /* __CLUTTER_LIST_MODEL_H__ */
|