CoreGTK  3.22.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
CGTKIconView.h
1 /*
2  * CGTKIconView.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2017 - Tyler Burton
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 /*
23  * Modified by the CoreGTK Team, 2017. See the AUTHORS file for a
24  * list of people on the CoreGTK Team.
25  * See the ChangeLog files for a list of changes.
26  *
27  */
28 
29 /*
30  * Objective-C imports
31  */
32 #import "CoreGTK/CGTKContainer.h"
33 
35 {
36 
37 }
38 
39 
43 -(id)init;
44 -(id)initWithArea:(GtkCellArea*) area;
45 -(id)initWithModel:(GtkTreeModel*) model;
46 
51 -(GtkIconView*)ICONVIEW;
52 
61 -(void)convertWidgetToBinWindowCoordsWithWx:(gint) wx andWy:(gint) wy andBx:(gint*) bx andBy:(gint*) by;
62 
69 -(cairo_surface_t*)createDragIcon:(GtkTreePath*) path;
70 
78 -(void)enableModelDragDestWithTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
79 
88 -(void)enableModelDragSourceWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
89 
96 
105 -(BOOL)getCellRectWithPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell andRect:(GdkRectangle*) rect;
106 
112 -(gint)getColumnSpacing;
113 
119 -(gint)getColumns;
120 
128 -(BOOL)getCursorWithPath:(GtkTreePath**) path andCell:(GtkCellRenderer**) cell;
129 
139 -(BOOL)getDestItemAtPosWithDragX:(gint) dragX andDragY:(gint) dragY andPath:(GtkTreePath**) path andPos:(GtkIconViewDropPosition*) pos;
140 
147 -(void)getDragDestItemWithPath:(GtkTreePath**) path andPos:(GtkIconViewDropPosition*) pos;
148 
158 -(BOOL)getItemAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andCell:(GtkCellRenderer**) cell;
159 
166 -(gint)getItemColumn:(GtkTreePath*) path;
167 
173 -(GtkOrientation)getItemOrientation;
174 
180 -(gint)getItemPadding;
181 
188 -(gint)getItemRow:(GtkTreePath*) path;
189 
195 -(gint)getItemWidth;
196 
202 -(gint)getMargin;
203 
209 -(gint)getMarkupColumn;
210 
216 -(GtkTreeModel*)getModel;
217 
225 -(GtkTreePath*)getPathAtPosWithX:(gint) x andY:(gint) y;
226 
232 -(gint)getPixbufColumn;
233 
239 -(BOOL)getReorderable;
240 
246 -(gint)getRowSpacing;
247 
253 -(GList*)getSelectedItems;
254 
260 -(GtkSelectionMode)getSelectionMode;
261 
267 -(gint)getSpacing;
268 
274 -(gint)getTextColumn;
275 
281 -(gint)getTooltipColumn;
282 
294 -(BOOL)getTooltipContextWithX:(gint*) x andY:(gint*) y andKeyboardTip:(BOOL) keyboardTip andModel:(GtkTreeModel**) model andPath:(GtkTreePath**) path andIter:(GtkTreeIter*) iter;
295 
303 -(BOOL)getVisibleRangeWithStartPath:(GtkTreePath**) startPath andEndPath:(GtkTreePath**) endPath;
304 
310 -(void)itemActivated:(GtkTreePath*) path;
311 
318 -(BOOL)pathIsSelected:(GtkTreePath*) path;
319 
328 -(void)scrollToPathWithPath:(GtkTreePath*) path andUseAlign:(BOOL) useAlign andRowAlign:(gfloat) rowAlign andColAlign:(gfloat) colAlign;
329 
334 -(void)selectAll;
335 
341 -(void)selectPath:(GtkTreePath*) path;
342 
349 -(void)selectedForeachWithFunc:(GtkIconViewForeachFunc) func andData:(gpointer) data;
350 
356 -(void)setActivateOnSingleClick:(BOOL) single;
357 
363 -(void)setColumnSpacing:(gint) columnSpacing;
364 
370 -(void)setColumns:(gint) columns;
371 
379 -(void)setCursorWithPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell andStartEditing:(BOOL) startEditing;
380 
387 -(void)setDragDestItemWithPath:(GtkTreePath*) path andPos:(GtkIconViewDropPosition) pos;
388 
394 -(void)setItemOrientation:(GtkOrientation) orientation;
395 
401 -(void)setItemPadding:(gint) itemPadding;
402 
408 -(void)setItemWidth:(gint) itemWidth;
409 
415 -(void)setMargin:(gint) margin;
416 
422 -(void)setMarkupColumn:(gint) column;
423 
429 -(void)setModel:(GtkTreeModel*) model;
430 
436 -(void)setPixbufColumn:(gint) column;
437 
443 -(void)setReorderable:(BOOL) reorderable;
444 
450 -(void)setRowSpacing:(gint) rowSpacing;
451 
457 -(void)setSelectionMode:(GtkSelectionMode) mode;
458 
464 -(void)setSpacing:(gint) spacing;
465 
471 -(void)setTextColumn:(gint) column;
472 
480 -(void)setTooltipCellWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path andCell:(GtkCellRenderer*) cell;
481 
487 -(void)setTooltipColumn:(gint) column;
488 
495 -(void)setTooltipItemWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path;
496 
501 -(void)unselectAll;
502 
508 -(void)unselectPath:(GtkTreePath*) path;
509 
514 -(void)unsetModelDragDest;
515 
520 -(void)unsetModelDragSource;
521 
522 @end
GtkTreeModel * getModel()
Definition: CGTKIconView.m:172
gint getItemPadding()
Definition: CGTKIconView.m:147
GtkSelectionMode getSelectionMode()
Definition: CGTKIconView.m:202
BOOL getActivateOnSingleClick()
Definition: CGTKIconView.m:97
gint getPixbufColumn()
Definition: CGTKIconView.m:182
gint getRowSpacing()
Definition: CGTKIconView.m:192
gint getMarkupColumn()
Definition: CGTKIconView.m:167
gint getColumnSpacing()
Definition: CGTKIconView.m:107
void unsetModelDragSource()
Definition: CGTKIconView.m:377
gint getTooltipColumn()
Definition: CGTKIconView.m:217
gint getItemWidth()
Definition: CGTKIconView.m:157
void unsetModelDragDest()
Definition: CGTKIconView.m:372
gint getTextColumn()
Definition: CGTKIconView.m:212
BOOL getReorderable()
Definition: CGTKIconView.m:187
GtkIconView * ICONVIEW()
Definition: CGTKIconView.m:72
GList * getSelectedItems()
Definition: CGTKIconView.m:197
GtkOrientation getItemOrientation()
Definition: CGTKIconView.m:142
void unselectAll()
Definition: CGTKIconView.m:362