Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkmaplistmodel.h File Reference
#include <gio/gio.h>
#include <gtk/gtkwidget.h>

Go to the source code of this file.

Macros

#define GTK_TYPE_MAP_LIST_MODEL   (gtk_map_list_model_get_type ())
 

Functions

GDK_AVAILABLE_IN_ALL GtkMapListModel * gtk_map_list_model_new (GListModel *model, GtkMapListModelMapFunc map_func, gpointer user_data, GDestroyNotify user_destroy)
 
GDK_AVAILABLE_IN_ALL void gtk_map_list_model_set_map_func (GtkMapListModel *self, GtkMapListModelMapFunc map_func, gpointer user_data, GDestroyNotify user_destroy)
 
GDK_AVAILABLE_IN_ALL void gtk_map_list_model_set_model (GtkMapListModel *self, GListModel *model)
 
GDK_AVAILABLE_IN_ALL GListModel * gtk_map_list_model_get_model (GtkMapListModel *self)
 
GDK_AVAILABLE_IN_ALL gboolean gtk_map_list_model_has_map (GtkMapListModel *self)
 

Variables

GDK_AVAILABLE_IN_ALL typedef gpointer(* GtkMapListModelMapFunc )(gpointer item, gpointer user_data)
 

Macro Definition Documentation

◆ GTK_TYPE_MAP_LIST_MODEL

#define GTK_TYPE_MAP_LIST_MODEL   (gtk_map_list_model_get_type ())

Definition at line 33 of file gtkmaplistmodel.h.

Function Documentation

◆ gtk_map_list_model_get_model()

GDK_AVAILABLE_IN_ALL GListModel * gtk_map_list_model_get_model ( GtkMapListModel * self)

◆ gtk_map_list_model_has_map()

GDK_AVAILABLE_IN_ALL gboolean gtk_map_list_model_has_map ( GtkMapListModel * self)

◆ gtk_map_list_model_new()

GDK_AVAILABLE_IN_ALL GtkMapListModel * gtk_map_list_model_new ( GListModel * model,
GtkMapListModelMapFunc map_func,
gpointer user_data,
GDestroyNotify user_destroy )

◆ gtk_map_list_model_set_map_func()

GDK_AVAILABLE_IN_ALL void gtk_map_list_model_set_map_func ( GtkMapListModel * self,
GtkMapListModelMapFunc map_func,
gpointer user_data,
GDestroyNotify user_destroy )

◆ gtk_map_list_model_set_model()

GDK_AVAILABLE_IN_ALL void gtk_map_list_model_set_model ( GtkMapListModel * self,
GListModel * model )

Variable Documentation

◆ GtkMapListModelMapFunc

GDK_AVAILABLE_IN_ALL typedef gpointer(* GtkMapListModelMapFunc) (gpointer item, gpointer user_data) ( gpointer item,
gpointer user_data )

GtkMapListModelMapFunc: @item: (type GObject) (transfer full): The item to map @user_data: user data

User function that is called to map an @item of the original model to an item expected by the map model.

The returned items must conform to the item type of the model they are used with.

Returns: (type GObject) (transfer full): The item to map to

Definition at line 51 of file gtkmaplistmodel.h.