32 #import "CoreGTK/CGTKFlowBox.h" 50 return GTK_FLOW_BOX([
self GOBJECT]);
53 -(void)bindModelWithModel:(GListModel*) model andCreateWidgetFunc:(GtkFlowBoxCreateWidgetFunc) createWidgetFunc andUserData:(gpointer) userData andUserDataFreeFunc:(GDestroyNotify) userDataFreeFunc
55 gtk_flow_box_bind_model(GTK_FLOW_BOX([
self GOBJECT]), model, createWidgetFunc, userData, userDataFreeFunc);
60 return (gtk_flow_box_get_activate_on_single_click(GTK_FLOW_BOX([
self GOBJECT])) ? YES : NO);
63 -(GtkFlowBoxChild*)getChildAtIndex:(gint) idx
65 return gtk_flow_box_get_child_at_index(GTK_FLOW_BOX([
self GOBJECT]), idx);
68 -(GtkFlowBoxChild*)getChildAtPosWithX:(gint) x andY:(gint) y
70 return gtk_flow_box_get_child_at_pos(GTK_FLOW_BOX([
self GOBJECT]), x, y);
75 return gtk_flow_box_get_column_spacing(GTK_FLOW_BOX([
self GOBJECT]));
80 return (gtk_flow_box_get_homogeneous(GTK_FLOW_BOX([
self GOBJECT])) ? YES : NO);
85 return gtk_flow_box_get_max_children_per_line(GTK_FLOW_BOX([
self GOBJECT]));
90 return gtk_flow_box_get_min_children_per_line(GTK_FLOW_BOX([
self GOBJECT]));
95 return gtk_flow_box_get_row_spacing(GTK_FLOW_BOX([
self GOBJECT]));
100 return gtk_flow_box_get_selected_children(GTK_FLOW_BOX([
self GOBJECT]));
105 return gtk_flow_box_get_selection_mode(GTK_FLOW_BOX([
self GOBJECT]));
108 -(void)insertWithWidget:(
CGTKWidget*) widget andPosition:(gint) position
110 gtk_flow_box_insert(GTK_FLOW_BOX([
self GOBJECT]), [widget
WIDGET], position);
115 gtk_flow_box_invalidate_filter(GTK_FLOW_BOX([
self GOBJECT]));
120 gtk_flow_box_invalidate_sort(GTK_FLOW_BOX([
self GOBJECT]));
125 gtk_flow_box_select_all(GTK_FLOW_BOX([
self GOBJECT]));
128 -(void)selectChild:(GtkFlowBoxChild*) child
130 gtk_flow_box_select_child(GTK_FLOW_BOX([
self GOBJECT]), child);
133 -(void)selectedForeachWithFunc:(GtkFlowBoxForeachFunc) func andData:(gpointer) data
135 gtk_flow_box_selected_foreach(GTK_FLOW_BOX([
self GOBJECT]), func, data);
138 -(void)setActivateOnSingleClick:(BOOL) single
140 gtk_flow_box_set_activate_on_single_click(GTK_FLOW_BOX([
self GOBJECT]), (single ? TRUE : FALSE));
143 -(void)setColumnSpacing:(guint) spacing
145 gtk_flow_box_set_column_spacing(GTK_FLOW_BOX([
self GOBJECT]), spacing);
148 -(void)setFilterFuncWithFilterFunc:(GtkFlowBoxFilterFunc) filterFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
150 gtk_flow_box_set_filter_func(GTK_FLOW_BOX([
self GOBJECT]), filterFunc, userData,
destroy);
153 -(void)setHadjustment:(GtkAdjustment*) adjustment
155 gtk_flow_box_set_hadjustment(GTK_FLOW_BOX([
self GOBJECT]), adjustment);
158 -(void)setHomogeneous:(BOOL) homogeneous
160 gtk_flow_box_set_homogeneous(GTK_FLOW_BOX([
self GOBJECT]), (homogeneous ? TRUE : FALSE));
163 -(void)setMaxChildrenPerLine:(guint) nchildren
165 gtk_flow_box_set_max_children_per_line(GTK_FLOW_BOX([
self GOBJECT]), nchildren);
168 -(void)setMinChildrenPerLine:(guint) nchildren
170 gtk_flow_box_set_min_children_per_line(GTK_FLOW_BOX([
self GOBJECT]), nchildren);
173 -(void)setRowSpacing:(guint) spacing
175 gtk_flow_box_set_row_spacing(GTK_FLOW_BOX([
self GOBJECT]), spacing);
178 -(void)setSelectionMode:(GtkSelectionMode) mode
180 gtk_flow_box_set_selection_mode(GTK_FLOW_BOX([
self GOBJECT]), mode);
183 -(void)setSortFuncWithSortFunc:(GtkFlowBoxSortFunc) sortFunc andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
185 gtk_flow_box_set_sort_func(GTK_FLOW_BOX([
self GOBJECT]), sortFunc, userData,
destroy);
188 -(void)setVadjustment:(GtkAdjustment*) adjustment
190 gtk_flow_box_set_vadjustment(GTK_FLOW_BOX([
self GOBJECT]), adjustment);
195 gtk_flow_box_unselect_all(GTK_FLOW_BOX([
self GOBJECT]));
198 -(void)unselectChild:(GtkFlowBoxChild*) child
200 gtk_flow_box_unselect_child(GTK_FLOW_BOX([
self GOBJECT]), child);
guint getMinChildrenPerLine()
id initWithGObject:(GObject *obj)
BOOL getActivateOnSingleClick()
GtkSelectionMode getSelectionMode()
GList * getSelectedChildren()
guint getMaxChildrenPerLine()