Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <gtkselectionmodel.h>
Data Fields | |
GTypeInterface | g_iface |
gboolean(* | is_selected )(GtkSelectionModel *model, guint position) |
GtkBitset *(* | get_selection_in_range )(GtkSelectionModel *model, guint position, guint n_items) |
gboolean(* | select_item )(GtkSelectionModel *model, guint position, gboolean unselect_rest) |
gboolean(* | unselect_item )(GtkSelectionModel *model, guint position) |
gboolean(* | select_range )(GtkSelectionModel *model, guint position, guint n_items, gboolean unselect_rest) |
gboolean(* | unselect_range )(GtkSelectionModel *model, guint position, guint n_items) |
gboolean(* | select_all )(GtkSelectionModel *model) |
gboolean(* | unselect_all )(GtkSelectionModel *model) |
gboolean(* | set_selection )(GtkSelectionModel *model, GtkBitset *selected, GtkBitset *mask) |
GtkSelectionModelInterface: @is_selected: Return if the item at the given position is selected. @get_selection_in_range: Return a bitset with all currently selected items in the given range. By default, this function will call GtkSelectionModel::is_selected()
on all items in the given range. @select_item: Select the item in the given position. If the operation is known to fail, return FALSE. @unselect_item: Unselect the item in the given position. If the operation is known to fail, return FALSE. @select_range: Select all items in the given range. If the operation is unsupported or known to fail for all items, return FALSE. @unselect_range: Unselect all items in the given range. If the operation is unsupported or known to fail for all items, return FALSE. @select_all: Select all items in the model. If the operation is unsupported or known to fail for all items, return FALSE. @unselect_all: Unselect all items in the model. If the operation is unsupported or known to fail for all items, return FALSE. @set_selection: Set selection state of all items in mask to selected. See gtk_selection_model_set_selection() for a detailed explanation of this function.
The list of virtual functions for the GtkSelectionModel
interface. No function must be implemented, but unless GtkSelectionModel::is_selected()
is implemented, it will not be possible to select items in the set.
The model does not need to implement any functions to support either selecting or unselecting items. Of course, if the model does not do that, it means that users cannot select or unselect items in a list widget using the model.
All selection functions fall back to GtkSelectionModel::set_selection()
so it is sufficient to implement just that function for full selection support.
Definition at line 71 of file gtkselectionmodel.h.
GTypeInterface _GtkSelectionModelInterface::g_iface |
Definition at line 74 of file gtkselectionmodel.h.
GtkBitset *(* _GtkSelectionModelInterface::get_selection_in_range) (GtkSelectionModel *model, guint position, guint n_items) |
Definition at line 79 of file gtkselectionmodel.h.
Definition at line 77 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::select_all) (GtkSelectionModel *model) |
Definition at line 95 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::select_item) (GtkSelectionModel *model, guint position, gboolean unselect_rest) |
Definition at line 83 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::select_range) (GtkSelectionModel *model, guint position, guint n_items, gboolean unselect_rest) |
Definition at line 88 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::set_selection) (GtkSelectionModel *model, GtkBitset *selected, GtkBitset *mask) |
Definition at line 97 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::unselect_all) (GtkSelectionModel *model) |
Definition at line 96 of file gtkselectionmodel.h.
Definition at line 86 of file gtkselectionmodel.h.
gboolean(* _GtkSelectionModelInterface::unselect_range) (GtkSelectionModel *model, guint position, guint n_items) |
Definition at line 92 of file gtkselectionmodel.h.