Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
glistmodel.h
Go to the documentation of this file.
1/*
2 * Copyright 2015 Lars Uebernickel
3 * Copyright 2015 Ryan Lortie
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Authors:
21 * Lars Uebernickel <lars@uebernic.de>
22 * Ryan Lortie <desrt@desrt.ca>
23 */
24
25#ifndef __G_LIST_MODEL_H__
26#define __G_LIST_MODEL_H__
27
28#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
29#error "Only <gio/gio.h> can be included directly."
30#endif
31
32#include <gio/giotypes.h>
33
35
36#define G_TYPE_LIST_MODEL g_list_model_get_type ()
38G_DECLARE_INTERFACE(GListModel, g_list_model, G, LIST_MODEL, GObject)
39
41{
43
44 GType (* get_item_type) (GListModel *list);
45
46 guint (* get_n_items) (GListModel *list);
47
48 gpointer (* get_item) (GListModel *list,
49 guint position);
50};
51
54
57
60 guint position);
61
63GObject * g_list_model_get_object (GListModel *list,
64 guint position);
65
67void g_list_model_items_changed (GListModel *list,
68 guint position,
69 guint removed,
70 guint added);
71
73
74#endif /* __G_LIST_MODEL_H__ */
#define GIO_AVAILABLE_IN_2_44
GIO_AVAILABLE_IN_2_44 GObject * g_list_model_get_object(GListModel *list, guint position)
GIO_AVAILABLE_IN_2_44 void g_list_model_items_changed(GListModel *list, guint position, guint removed, guint added)
GIO_AVAILABLE_IN_2_44 guint g_list_model_get_n_items(GListModel *list)
GIO_AVAILABLE_IN_2_44 gpointer g_list_model_get_item(GListModel *list, guint position)
GIO_AVAILABLE_IN_2_44 GType g_list_model_get_item_type(GListModel *list)
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_DECLARE_INTERFACE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, PrerequisiteName)
Definition gtype.h:1797
gsize GType
Definition gtype.h:427
void * gpointer
Definition gtypes.h:109
unsigned int guint
Definition gtypes.h:61
#define G(L)
GTypeInterface g_iface
Definition glistmodel.h:42