32 #import "CoreGTK/CGTKListBox.h"
50 return GTK_LIST_BOX([
self GOBJECT]);
53 -(void)dragHighlightRow:(GtkListBoxRow*) row
55 gtk_list_box_drag_highlight_row(GTK_LIST_BOX([
self GOBJECT]), row);
60 gtk_list_box_drag_unhighlight_row(GTK_LIST_BOX([
self GOBJECT]));
65 return (gtk_list_box_get_activate_on_single_click(GTK_LIST_BOX([
self GOBJECT])) ? YES : NO);
70 return gtk_list_box_get_adjustment(GTK_LIST_BOX([
self GOBJECT]));
73 -(GtkListBoxRow*)getRowAtIndex:(gint) index
75 return gtk_list_box_get_row_at_index(GTK_LIST_BOX([
self GOBJECT]), index);
78 -(GtkListBoxRow*)getRowAtY:(gint) y
80 return gtk_list_box_get_row_at_y(GTK_LIST_BOX([
self GOBJECT]), y);
85 return gtk_list_box_get_selected_row(GTK_LIST_BOX([
self GOBJECT]));
90 return gtk_list_box_get_selection_mode(GTK_LIST_BOX([
self GOBJECT]));
93 -(void)insertWithChild:(
CGTKWidget*) child andPosition:(gint) position
95 gtk_list_box_insert(GTK_LIST_BOX([
self GOBJECT]), [child
WIDGET], position);
100 gtk_list_box_invalidate_filter(GTK_LIST_BOX([
self GOBJECT]));
105 gtk_list_box_invalidate_headers(GTK_LIST_BOX([
self GOBJECT]));
110 gtk_list_box_invalidate_sort(GTK_LIST_BOX([
self GOBJECT]));
115 gtk_list_box_prepend(GTK_LIST_BOX([
self GOBJECT]), [child
WIDGET]);
118 -(void)selectRow:(GtkListBoxRow*) row
120 gtk_list_box_select_row(GTK_LIST_BOX([
self GOBJECT]), row);
123 -(void)setActivateOnSingleClick:(BOOL) single
125 gtk_list_box_set_activate_on_single_click(GTK_LIST_BOX([
self GOBJECT]), (single ? TRUE : FALSE));
128 -(void)setAdjustment:(GtkAdjustment*) adjustment
130 gtk_list_box_set_adjustment(GTK_LIST_BOX([
self GOBJECT]), adjustment);
133 -(void)setFilterFuncWithFilterFunc:(GtkListBoxFilterFunc) filterFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
135 gtk_list_box_set_filter_func(GTK_LIST_BOX([
self GOBJECT]), filterFunc, userData,
destroy);
138 -(void)setHeaderFuncWithUpdateHeader:(GtkListBoxUpdateHeaderFunc) updateHeader andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
140 gtk_list_box_set_header_func(GTK_LIST_BOX([
self GOBJECT]), updateHeader, userData,
destroy);
145 gtk_list_box_set_placeholder(GTK_LIST_BOX([
self GOBJECT]), [placeholder
WIDGET]);
148 -(void)setSelectionMode:(GtkSelectionMode) mode
150 gtk_list_box_set_selection_mode(GTK_LIST_BOX([
self GOBJECT]), mode);
153 -(void)setSortFuncWithSortFunc:(GtkListBoxSortFunc) sortFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
155 gtk_list_box_set_sort_func(GTK_LIST_BOX([
self GOBJECT]), sortFunc, userData,
destroy);
BOOL getActivateOnSingleClick()
id initWithGObject:(GObject *obj)
void dragUnhighlightRow()
GtkSelectionMode getSelectionMode()
GtkAdjustment * getAdjustment()
GtkListBoxRow * getSelectedRow()