32 #import "CoreGTK/CGTKIconView.h" 48 -(id)initWithArea:(GtkCellArea*) area
50 self = [
super initWithGObject:(GObject *)gtk_icon_view_new_with_area(area)];
60 -(id)initWithModel:(GtkTreeModel*) model
62 self = [
super initWithGObject:(GObject *)gtk_icon_view_new_with_model(model)];
74 return GTK_ICON_VIEW([
self GOBJECT]);
77 -(void)convertWidgetToBinWindowCoordsWithWx:(gint) wx andWy:(gint) wy andBx:(gint*) bx andBy:(gint*) by
79 gtk_icon_view_convert_widget_to_bin_window_coords(GTK_ICON_VIEW([
self GOBJECT]), wx, wy, bx, by);
82 -(cairo_surface_t*)createDragIcon:(GtkTreePath*) path
84 return gtk_icon_view_create_drag_icon(GTK_ICON_VIEW([
self GOBJECT]), path);
87 -(void)enableModelDragDestWithTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
89 gtk_icon_view_enable_model_drag_dest(GTK_ICON_VIEW([
self GOBJECT]), targets, ntargets, actions);
92 -(void)enableModelDragSourceWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
94 gtk_icon_view_enable_model_drag_source(GTK_ICON_VIEW([
self GOBJECT]), startButtonMask, targets, ntargets, actions);
99 return (gtk_icon_view_get_activate_on_single_click(GTK_ICON_VIEW([
self GOBJECT])) ? YES : NO);
102 -(BOOL)getCellRectWithPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell andRect:(GdkRectangle*) rect
104 return (gtk_icon_view_get_cell_rect(GTK_ICON_VIEW([
self GOBJECT]), path, cell, rect) ? YES : NO);
109 return gtk_icon_view_get_column_spacing(GTK_ICON_VIEW([
self GOBJECT]));
114 return gtk_icon_view_get_columns(GTK_ICON_VIEW([
self GOBJECT]));
117 -(BOOL)getCursorWithPath:(GtkTreePath**) path andCell:(GtkCellRenderer**) cell
119 return (gtk_icon_view_get_cursor(GTK_ICON_VIEW([
self GOBJECT]), path, cell) ? YES : NO);
122 -(BOOL)getDestItemAtPosWithDragX:(gint) dragX andDragY:(gint) dragY andPath:(GtkTreePath**) path andPos:(GtkIconViewDropPosition*) pos
124 return (gtk_icon_view_get_dest_item_at_pos(GTK_ICON_VIEW([
self GOBJECT]), dragX, dragY, path, pos) ? YES : NO);
127 -(void)getDragDestItemWithPath:(GtkTreePath**) path andPos:(GtkIconViewDropPosition*) pos
129 gtk_icon_view_get_drag_dest_item(GTK_ICON_VIEW([
self GOBJECT]), path, pos);
132 -(BOOL)getItemAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andCell:(GtkCellRenderer**) cell
134 return (gtk_icon_view_get_item_at_pos(GTK_ICON_VIEW([
self GOBJECT]), x, y, path, cell) ? YES : NO);
137 -(gint)getItemColumn:(GtkTreePath*) path
139 return gtk_icon_view_get_item_column(GTK_ICON_VIEW([
self GOBJECT]), path);
144 return gtk_icon_view_get_item_orientation(GTK_ICON_VIEW([
self GOBJECT]));
149 return gtk_icon_view_get_item_padding(GTK_ICON_VIEW([
self GOBJECT]));
152 -(gint)getItemRow:(GtkTreePath*) path
154 return gtk_icon_view_get_item_row(GTK_ICON_VIEW([
self GOBJECT]), path);
159 return gtk_icon_view_get_item_width(GTK_ICON_VIEW([
self GOBJECT]));
164 return gtk_icon_view_get_margin(GTK_ICON_VIEW([
self GOBJECT]));
169 return gtk_icon_view_get_markup_column(GTK_ICON_VIEW([
self GOBJECT]));
174 return gtk_icon_view_get_model(GTK_ICON_VIEW([
self GOBJECT]));
177 -(GtkTreePath*)getPathAtPosWithX:(gint) x andY:(gint) y
179 return gtk_icon_view_get_path_at_pos(GTK_ICON_VIEW([
self GOBJECT]), x, y);
184 return gtk_icon_view_get_pixbuf_column(GTK_ICON_VIEW([
self GOBJECT]));
189 return (gtk_icon_view_get_reorderable(GTK_ICON_VIEW([
self GOBJECT])) ? YES : NO);
194 return gtk_icon_view_get_row_spacing(GTK_ICON_VIEW([
self GOBJECT]));
199 return gtk_icon_view_get_selected_items(GTK_ICON_VIEW([
self GOBJECT]));
204 return gtk_icon_view_get_selection_mode(GTK_ICON_VIEW([
self GOBJECT]));
209 return gtk_icon_view_get_spacing(GTK_ICON_VIEW([
self GOBJECT]));
214 return gtk_icon_view_get_text_column(GTK_ICON_VIEW([
self GOBJECT]));
219 return gtk_icon_view_get_tooltip_column(GTK_ICON_VIEW([
self GOBJECT]));
222 -(BOOL)getTooltipContextWithX:(gint*) x andY:(gint*) y andKeyboardTip:(BOOL) keyboardTip andModel:(GtkTreeModel**) model andPath:(GtkTreePath**) path andIter:(GtkTreeIter*) iter
224 return (gtk_icon_view_get_tooltip_context(GTK_ICON_VIEW([
self GOBJECT]), x, y, (keyboardTip ? TRUE : FALSE), model, path, iter) ? YES : NO);
227 -(BOOL)getVisibleRangeWithStartPath:(GtkTreePath**) startPath andEndPath:(GtkTreePath**) endPath
229 return (gtk_icon_view_get_visible_range(GTK_ICON_VIEW([
self GOBJECT]), startPath, endPath) ? YES : NO);
232 -(void)itemActivated:(GtkTreePath*) path
234 gtk_icon_view_item_activated(GTK_ICON_VIEW([
self GOBJECT]), path);
237 -(BOOL)pathIsSelected:(GtkTreePath*) path
239 return (gtk_icon_view_path_is_selected(GTK_ICON_VIEW([
self GOBJECT]), path) ? YES : NO);
242 -(void)scrollToPathWithPath:(GtkTreePath*) path andUseAlign:(BOOL) useAlign andRowAlign:(gfloat) rowAlign andColAlign:(gfloat) colAlign
244 gtk_icon_view_scroll_to_path(GTK_ICON_VIEW([
self GOBJECT]), path, (useAlign ? TRUE : FALSE), rowAlign, colAlign);
249 gtk_icon_view_select_all(GTK_ICON_VIEW([
self GOBJECT]));
252 -(void)selectPath:(GtkTreePath*) path
254 gtk_icon_view_select_path(GTK_ICON_VIEW([
self GOBJECT]), path);
257 -(void)selectedForeachWithFunc:(GtkIconViewForeachFunc) func andData:(gpointer) data
259 gtk_icon_view_selected_foreach(GTK_ICON_VIEW([
self GOBJECT]), func, data);
262 -(void)setActivateOnSingleClick:(BOOL) single
264 gtk_icon_view_set_activate_on_single_click(GTK_ICON_VIEW([
self GOBJECT]), (single ? TRUE : FALSE));
267 -(void)setColumnSpacing:(gint) columnSpacing
269 gtk_icon_view_set_column_spacing(GTK_ICON_VIEW([
self GOBJECT]), columnSpacing);
272 -(void)setColumns:(gint) columns
274 gtk_icon_view_set_columns(GTK_ICON_VIEW([
self GOBJECT]), columns);
277 -(void)setCursorWithPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell andStartEditing:(BOOL) startEditing
279 gtk_icon_view_set_cursor(GTK_ICON_VIEW([
self GOBJECT]), path, cell, (startEditing ? TRUE : FALSE));
282 -(void)setDragDestItemWithPath:(GtkTreePath*) path andPos:(GtkIconViewDropPosition) pos
284 gtk_icon_view_set_drag_dest_item(GTK_ICON_VIEW([
self GOBJECT]), path, pos);
287 -(void)setItemOrientation:(GtkOrientation) orientation
289 gtk_icon_view_set_item_orientation(GTK_ICON_VIEW([
self GOBJECT]), orientation);
292 -(void)setItemPadding:(gint) itemPadding
294 gtk_icon_view_set_item_padding(GTK_ICON_VIEW([
self GOBJECT]), itemPadding);
297 -(void)setItemWidth:(gint) itemWidth
299 gtk_icon_view_set_item_width(GTK_ICON_VIEW([
self GOBJECT]), itemWidth);
302 -(void)setMargin:(gint) margin
304 gtk_icon_view_set_margin(GTK_ICON_VIEW([
self GOBJECT]), margin);
307 -(void)setMarkupColumn:(gint) column
309 gtk_icon_view_set_markup_column(GTK_ICON_VIEW([
self GOBJECT]), column);
312 -(void)setModel:(GtkTreeModel*) model
314 gtk_icon_view_set_model(GTK_ICON_VIEW([
self GOBJECT]), model);
317 -(void)setPixbufColumn:(gint) column
319 gtk_icon_view_set_pixbuf_column(GTK_ICON_VIEW([
self GOBJECT]), column);
322 -(void)setReorderable:(BOOL) reorderable
324 gtk_icon_view_set_reorderable(GTK_ICON_VIEW([
self GOBJECT]), (reorderable ? TRUE : FALSE));
327 -(void)setRowSpacing:(gint) rowSpacing
329 gtk_icon_view_set_row_spacing(GTK_ICON_VIEW([
self GOBJECT]), rowSpacing);
332 -(void)setSelectionMode:(GtkSelectionMode) mode
334 gtk_icon_view_set_selection_mode(GTK_ICON_VIEW([
self GOBJECT]), mode);
337 -(void)setSpacing:(gint) spacing
339 gtk_icon_view_set_spacing(GTK_ICON_VIEW([
self GOBJECT]), spacing);
342 -(void)setTextColumn:(gint) column
344 gtk_icon_view_set_text_column(GTK_ICON_VIEW([
self GOBJECT]), column);
347 -(void)setTooltipCellWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell
349 gtk_icon_view_set_tooltip_cell(GTK_ICON_VIEW([
self GOBJECT]), tooltip, path, cell);
352 -(void)setTooltipColumn:(gint) column
354 gtk_icon_view_set_tooltip_column(GTK_ICON_VIEW([
self GOBJECT]), column);
357 -(void)setTooltipItemWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path
359 gtk_icon_view_set_tooltip_item(GTK_ICON_VIEW([
self GOBJECT]), tooltip, path);
364 gtk_icon_view_unselect_all(GTK_ICON_VIEW([
self GOBJECT]));
367 -(void)unselectPath:(GtkTreePath*) path
369 gtk_icon_view_unselect_path(GTK_ICON_VIEW([
self GOBJECT]), path);
374 gtk_icon_view_unset_model_drag_dest(GTK_ICON_VIEW([
self GOBJECT]));
379 gtk_icon_view_unset_model_drag_source(GTK_ICON_VIEW([
self GOBJECT]));
GtkTreeModel * getModel()
id initWithGObject:(GObject *obj)
GtkSelectionMode getSelectionMode()
BOOL getActivateOnSingleClick()
void unsetModelDragSource()
void unsetModelDragDest()
GList * getSelectedItems()
GtkOrientation getItemOrientation()