CoreGTK 3.22.0 CoreGTK is an Objective-C language binding for the GTK+ widget toolkit

CGTKTreeView.h
1 /*
2 * CGTKTreeView.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
34 @interface CGTKTreeView : CGTKContainer
35 {
36
37 }
38
39
43 -(id)init;
44 -(id)initWithModel:(GtkTreeModel*) model;
45
50 -(GtkTreeView*)TREEVIEW;
51
58 -(gint)appendColumn:(GtkTreeViewColumn*) column;
59
64 -(void)collapseAll;
65
72 -(BOOL)collapseRow:(GtkTreePath*) path;
73
78 -(void)columnsAutosize;
79
88 -(void)convertBinWindowToTreeCoordsWithBx:(gint) bx andBy:(gint) by andTx:(gint*) tx andTy:(gint*) ty;
89
98 -(void)convertBinWindowToWidgetCoordsWithBx:(gint) bx andBy:(gint) by andWx:(gint*) wx andWy:(gint*) wy;
99
108 -(void)convertTreeToBinWindowCoordsWithTx:(gint) tx andTy:(gint) ty andBx:(gint*) bx andBy:(gint*) by;
109
118 -(void)convertTreeToWidgetCoordsWithTx:(gint) tx andTy:(gint) ty andWx:(gint*) wx andWy:(gint*) wy;
119
128 -(void)convertWidgetToBinWindowCoordsWithWx:(gint) wx andWy:(gint) wy andBx:(gint*) bx andBy:(gint*) by;
129
138 -(void)convertWidgetToTreeCoordsWithWx:(gint) wx andWy:(gint) wy andTx:(gint*) tx andTy:(gint*) ty;
139
146 -(cairo_surface_t*)createRowDragIcon:(GtkTreePath*) path;
147
155 -(void)enableModelDragDestWithTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
156
165 -(void)enableModelDragSourceWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions;
166
171 -(void)expandAll;
172
180 -(BOOL)expandRowWithPath:(GtkTreePath*) path andOpenAll:(BOOL) openAll;
181
187 -(void)expandToPath:(GtkTreePath*) path;
188
194 -(BOOL)getActivateOnSingleClick;
195
203 -(void)getBackgroundAreaWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andRect:(GdkRectangle*) rect;
204
210 -(GdkWindow*)getBinWindow;
211
219 -(void)getCellAreaWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andRect:(GdkRectangle*) rect;
220
227 -(GtkTreeViewColumn*)getColumn:(gint) n;
228
234 -(GList*)getColumns;
235
242 -(void)getCursorWithPath:(GtkTreePath**) path andFocusColumn:(GtkTreeViewColumn**) focusColumn;
243
253 -(BOOL)getDestRowAtPosWithDragX:(gint) dragX andDragY:(gint) dragY andPath:(GtkTreePath**) path andPos:(GtkTreeViewDropPosition*) pos;
254
261 -(void)getDragDestRowWithPath:(GtkTreePath**) path andPos:(GtkTreeViewDropPosition*) pos;
262
268 -(BOOL)getEnableSearch;
269
275 -(BOOL)getEnableTreeLines;
276
282 -(GtkTreeViewColumn*)getExpanderColumn;
283
289 -(BOOL)getFixedHeightMode;
290
296 -(GtkTreeViewGridLines)getGridLines;
297
303 -(GtkAdjustment*)getHadjustment;
304
310 -(BOOL)getHeadersClickable;
311
317 -(BOOL)getHeadersVisible;
318
324 -(BOOL)getHoverExpand;
325
331 -(BOOL)getHoverSelection;
332
338 -(gint)getLevelIndentation;
339
345 -(GtkTreeModel*)getModel;
346
352 -(guint)getNcolumns;
353
365 -(BOOL)getPathAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andColumn:(GtkTreeViewColumn**) column andCellX:(gint*) cellX andCellY:(gint*) cellY;
366
372 -(BOOL)getReorderable;
373
379 -(GtkTreeViewRowSeparatorFunc)getRowSeparatorFunc;
380
386 -(BOOL)getRubberBanding;
387
393 -(BOOL)getRulesHint;
394
400 -(gint)getSearchColumn;
401
407 -(GtkEntry*)getSearchEntry;
408
414 -(GtkTreeViewSearchEqualFunc)getSearchEqualFunc;
415
421 -(GtkTreeViewSearchPositionFunc)getSearchPositionFunc;
422
428 -(GtkTreeSelection*)getSelection;
429
435 -(BOOL)getShowExpanders;
436
442 -(gint)getTooltipColumn;
443
455 -(BOOL)getTooltipContextWithX:(gint*) x andY:(gint*) y andKeyboardTip:(BOOL) keyboardTip andModel:(GtkTreeModel**) model andPath:(GtkTreePath**) path andIter:(GtkTreeIter*) iter;
456
462 -(GtkAdjustment*)getVadjustment;
463
471 -(BOOL)getVisibleRangeWithStartPath:(GtkTreePath**) startPath andEndPath:(GtkTreePath**) endPath;
472
478 -(void)getVisibleRect:(GdkRectangle*) visibleRect;
479
487 -(gint)insertColumnWithColumn:(GtkTreeViewColumn*) column andPosition:(gint) position;
488
500 -(gint)insertColumnWithDataFuncWithPosition:(gint) position andTitle:(NSString*) title andCell:(GtkCellRenderer*) cell andFunc:(GtkTreeCellDataFunc) func andData:(gpointer) data andDnotify:(GDestroyNotify) dnotify;
501
513 -(BOOL)isBlankAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andColumn:(GtkTreeViewColumn**) column andCellX:(gint*) cellX andCellY:(gint*) cellY;
514
520 -(BOOL)isRubberBandingActive;
521
528 -(void)mapExpandedRowsWithFunc:(GtkTreeViewMappingFunc) func andData:(gpointer) data;
529
536 -(void)moveColumnAfterWithColumn:(GtkTreeViewColumn*) column andBaseColumn:(GtkTreeViewColumn*) baseColumn;
537
544 -(gint)removeColumn:(GtkTreeViewColumn*) column;
545
552 -(void)rowActivatedWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column;
553
560 -(BOOL)rowExpanded:(GtkTreePath*) path;
561
571 -(void)scrollToCellWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andUseAlign:(BOOL) useAlign andRowAlign:(gfloat) rowAlign andColAlign:(gfloat) colAlign;
572
579 -(void)scrollToPointWithTreeX:(gint) treeX andTreeY:(gint) treeY;
580
586 -(void)setActivateOnSingleClick:(BOOL) single;
587
595 -(void)setColumnDragFunctionWithFunc:(GtkTreeViewColumnDropFunc) func andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy;
596
604 -(void)setCursorWithPath:(GtkTreePath*) path andFocusColumn:(GtkTreeViewColumn*) focusColumn andStartEditing:(BOOL) startEditing;
605
614 -(void)setCursorOnCellWithPath:(GtkTreePath*) path andFocusColumn:(GtkTreeViewColumn*) focusColumn andFocusCell:(GtkCellRenderer*) focusCell andStartEditing:(BOOL) startEditing;
615
623 -(void)setDestroyCountFuncWithFunc:(GtkTreeDestroyCountFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy;
624
631 -(void)setDragDestRowWithPath:(GtkTreePath*) path andPos:(GtkTreeViewDropPosition) pos;
632
638 -(void)setEnableSearch:(BOOL) enableSearch;
639
645 -(void)setEnableTreeLines:(BOOL) enabled;
646
652 -(void)setExpanderColumn:(GtkTreeViewColumn*) column;
653
659 -(void)setFixedHeightMode:(BOOL) enable;
660
666 -(void)setGridLines:(GtkTreeViewGridLines) gridLines;
667
673 -(void)setHadjustment:(GtkAdjustment*) adjustment;
674
680 -(void)setHeadersClickable:(BOOL) setting;
681
687 -(void)setHeadersVisible:(BOOL) headersVisible;
688
694 -(void)setHoverExpand:(BOOL) expand;
695
701 -(void)setHoverSelection:(BOOL) hover;
702
708 -(void)setLevelIndentation:(gint) indentation;
709
715 -(void)setModel:(GtkTreeModel*) model;
716
722 -(void)setReorderable:(BOOL) reorderable;
723
731 -(void)setRowSeparatorFuncWithFunc:(GtkTreeViewRowSeparatorFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy;
732
738 -(void)setRubberBanding:(BOOL) enable;
739
745 -(void)setRulesHint:(BOOL) setting;
746
752 -(void)setSearchColumn:(gint) column;
753
759 -(void)setSearchEntry:(GtkEntry*) entry;
760
768 -(void)setSearchEqualFuncWithSearchEqualFunc:(GtkTreeViewSearchEqualFunc) searchEqualFunc andSearchUserData:(gpointer) searchUserData andSearchDestroy:(GDestroyNotify) searchDestroy;
769
777 -(void)setSearchPositionFuncWithFunc:(GtkTreeViewSearchPositionFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy;
778
784 -(void)setShowExpanders:(BOOL) enabled;
785
794 -(void)setTooltipCellWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andCell:(GtkCellRenderer*) cell;
795
801 -(void)setTooltipColumn:(gint) column;
802
809 -(void)setTooltipRowWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path;
810
816 -(void)setVadjustment:(GtkAdjustment*) adjustment;
817
822 -(void)unsetRowsDragDest;
823
828 -(void)unsetRowsDragSource;
829
830 @end
-[CGTKTreeView getRowSeparatorFunc]
GtkTreeViewRowSeparatorFunc getRowSeparatorFunc()
Definition: CGTKTreeView.m:265
-[CGTKTreeView getVadjustment]
GtkAdjustment * getVadjustment()
Definition: CGTKTreeView.m:320
-[CGTKTreeView getSelection]
GtkTreeSelection * getSelection()
Definition: CGTKTreeView.m:300
-[CGTKTreeView getEnableSearch]
BOOL getEnableSearch()
Definition: CGTKTreeView.m:190
-[CGTKTreeView TREEVIEW]
GtkTreeView * TREEVIEW()
Definition: CGTKTreeView.m:60
-[CGTKTreeView getHoverExpand]
BOOL getHoverExpand()
Definition: CGTKTreeView.m:230
-[CGTKTreeView collapseAll]
void collapseAll()
Definition: CGTKTreeView.m:70
-[CGTKTreeView getFixedHeightMode]
BOOL getFixedHeightMode()
Definition: CGTKTreeView.m:205
-[CGTKTreeView getExpanderColumn]
GtkTreeViewColumn * getExpanderColumn()
Definition: CGTKTreeView.m:200
-[CGTKTreeView unsetRowsDragSource]
void unsetRowsDragSource()
Definition: CGTKTreeView.m:550
-[CGTKWidget destroy]
void destroy()
Definition: CGTKWidget.m:131
-[CGTKTreeView getHeadersClickable]
BOOL getHeadersClickable()
Definition: CGTKTreeView.m:220
-[CGTKTreeView getHoverSelection]
BOOL getHoverSelection()
Definition: CGTKTreeView.m:235
-[CGTKTreeView getTooltipColumn]
gint getTooltipColumn()
Definition: CGTKTreeView.m:310
-[CGTKTreeView getActivateOnSingleClick]
BOOL getActivateOnSingleClick()
Definition: CGTKTreeView.m:145
-[CGTKTreeView getRubberBanding]
BOOL getRubberBanding()
Definition: CGTKTreeView.m:270
-[CGTKTreeView getSearchPositionFunc]
GtkTreeViewSearchPositionFunc getSearchPositionFunc()
Definition: CGTKTreeView.m:295
-[CGTKTreeView getShowExpanders]
BOOL getShowExpanders()
Definition: CGTKTreeView.m:305
CGTKTreeView
Definition: CGTKTreeView.h:34
-[CGTKTreeView getSearchColumn]
gint getSearchColumn()
Definition: CGTKTreeView.m:280
-[CGTKTreeView getNcolumns]
guint getNcolumns()
Definition: CGTKTreeView.m:250
-[CGTKTreeView getGridLines]
GtkTreeViewGridLines getGridLines()
Definition: CGTKTreeView.m:210
CGTKContainer
Definition: CGTKContainer.h:34
-[CGTKTreeView getLevelIndentation]
gint getLevelIndentation()
Definition: CGTKTreeView.m:240
-[CGTKTreeView getSearchEntry]
GtkEntry * getSearchEntry()
Definition: CGTKTreeView.m:285
-[CGTKTreeView isRubberBandingActive]
BOOL isRubberBandingActive()
Definition: CGTKTreeView.m:350
-[CGTKTreeView unsetRowsDragDest]
void unsetRowsDragDest()
Definition: CGTKTreeView.m:545
-[CGTKTreeView getSearchEqualFunc]
GtkTreeViewSearchEqualFunc getSearchEqualFunc()
Definition: CGTKTreeView.m:290
-[CGTKTreeView getHeadersVisible]
BOOL getHeadersVisible()
Definition: CGTKTreeView.m:225
-[CGTKTreeView init]
id init()
Definition: CGTKTreeView.m:36
-[CGTKTreeView getBinWindow]
GdkWindow * getBinWindow()
Definition: CGTKTreeView.m:155
-[CGTKTreeView getRulesHint]
BOOL getRulesHint()
Definition: CGTKTreeView.m:275
-[CGTKTreeView getHadjustment]
GtkAdjustment * getHadjustment()
Definition: CGTKTreeView.m:215
-[CGTKTreeView getEnableTreeLines]
BOOL getEnableTreeLines()
Definition: CGTKTreeView.m:195
-[CGTKTreeView getReorderable]
BOOL getReorderable()
Definition: CGTKTreeView.m:260
-[CGTKTreeView columnsAutosize]
void columnsAutosize()
Definition: CGTKTreeView.m:80
-[CGTKTreeView expandAll]
void expandAll()
Definition: CGTKTreeView.m:130
-[CGTKTreeView getModel]
GtkTreeModel * getModel()
Definition: CGTKTreeView.m:245
-[CGTKTreeView getColumns]
GList * getColumns()
Definition: CGTKTreeView.m:170