32 #import "CoreGTK/CGTKListBox.h" 50 return GTK_LIST_BOX([
self GOBJECT]);
53 -(void)bindModelWithModel:(GListModel*) model andCreateWidgetFunc:(GtkListBoxCreateWidgetFunc) createWidgetFunc andUserData:(gpointer) userData andUserDataFreeFunc:(GDestroyNotify) userDataFreeFunc
55 gtk_list_box_bind_model(GTK_LIST_BOX([
self GOBJECT]), model, createWidgetFunc, userData, userDataFreeFunc);
58 -(void)dragHighlightRow:(GtkListBoxRow*) row
60 gtk_list_box_drag_highlight_row(GTK_LIST_BOX([
self GOBJECT]), row);
65 gtk_list_box_drag_unhighlight_row(GTK_LIST_BOX([
self GOBJECT]));
70 return (gtk_list_box_get_activate_on_single_click(GTK_LIST_BOX([
self GOBJECT])) ? YES : NO);
75 return gtk_list_box_get_adjustment(GTK_LIST_BOX([
self GOBJECT]));
78 -(GtkListBoxRow*)getRowAtIndex:(gint) index
80 return gtk_list_box_get_row_at_index(GTK_LIST_BOX([
self GOBJECT]), index);
83 -(GtkListBoxRow*)getRowAtY:(gint) y
85 return gtk_list_box_get_row_at_y(GTK_LIST_BOX([
self GOBJECT]), y);
90 return gtk_list_box_get_selected_row(GTK_LIST_BOX([
self GOBJECT]));
95 return gtk_list_box_get_selected_rows(GTK_LIST_BOX([
self GOBJECT]));
100 return gtk_list_box_get_selection_mode(GTK_LIST_BOX([
self GOBJECT]));
103 -(void)insertWithChild:(
CGTKWidget*) child andPosition:(gint) position
105 gtk_list_box_insert(GTK_LIST_BOX([
self GOBJECT]), [child
WIDGET], position);
110 gtk_list_box_invalidate_filter(GTK_LIST_BOX([
self GOBJECT]));
115 gtk_list_box_invalidate_headers(GTK_LIST_BOX([
self GOBJECT]));
120 gtk_list_box_invalidate_sort(GTK_LIST_BOX([
self GOBJECT]));
125 gtk_list_box_prepend(GTK_LIST_BOX([
self GOBJECT]), [child
WIDGET]);
130 gtk_list_box_select_all(GTK_LIST_BOX([
self GOBJECT]));
133 -(void)selectRow:(GtkListBoxRow*) row
135 gtk_list_box_select_row(GTK_LIST_BOX([
self GOBJECT]), row);
138 -(void)selectedForeachWithFunc:(GtkListBoxForeachFunc) func andData:(gpointer) data
140 gtk_list_box_selected_foreach(GTK_LIST_BOX([
self GOBJECT]), func, data);
143 -(void)setActivateOnSingleClick:(BOOL) single
145 gtk_list_box_set_activate_on_single_click(GTK_LIST_BOX([
self GOBJECT]), (single ? TRUE : FALSE));
148 -(void)setAdjustment:(GtkAdjustment*) adjustment
150 gtk_list_box_set_adjustment(GTK_LIST_BOX([
self GOBJECT]), adjustment);
153 -(void)setFilterFuncWithFilterFunc:(GtkListBoxFilterFunc) filterFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
155 gtk_list_box_set_filter_func(GTK_LIST_BOX([
self GOBJECT]), filterFunc, userData,
destroy);
158 -(void)setHeaderFuncWithUpdateHeader:(GtkListBoxUpdateHeaderFunc) updateHeader andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
160 gtk_list_box_set_header_func(GTK_LIST_BOX([
self GOBJECT]), updateHeader, userData,
destroy);
165 gtk_list_box_set_placeholder(GTK_LIST_BOX([
self GOBJECT]), [placeholder
WIDGET]);
168 -(void)setSelectionMode:(GtkSelectionMode) mode
170 gtk_list_box_set_selection_mode(GTK_LIST_BOX([
self GOBJECT]), mode);
173 -(void)setSortFuncWithSortFunc:(GtkListBoxSortFunc) sortFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
175 gtk_list_box_set_sort_func(GTK_LIST_BOX([
self GOBJECT]), sortFunc, userData,
destroy);
180 gtk_list_box_unselect_all(GTK_LIST_BOX([
self GOBJECT]));
183 -(void)unselectRow:(GtkListBoxRow*) row
185 gtk_list_box_unselect_row(GTK_LIST_BOX([
self GOBJECT]), row);
BOOL getActivateOnSingleClick()
id initWithGObject:(GObject *obj)
void dragUnhighlightRow()
GList * getSelectedRows()
GtkSelectionMode getSelectionMode()
GtkAdjustment * getAdjustment()
GtkListBoxRow * getSelectedRow()