CoreGTK  2.24.0
CoreGTK is an Objective-C language binding for the GTK+ widget toolkit
 All Classes Functions Variables
CGTKTreeView.h
1 /*
2  * CGTKTreeView.h
3  * This file is part of CoreGTK
4  *
5  * Copyright (C) 2014 - 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, 2014. 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 "CGTKContainer.h"
33 #import "CGTKEntry.h"
34 
36 {
37 
38 }
39 
43 -(GtkTreeView *)TREE_VIEW;
44 
49 -(id)init;
50 
55 -(id)initWithModel:(GtkTreeModel *)model;
56 
61 -(GtkTreeModel *)getModel;
62 
67 -(void)setModel:(GtkTreeModel *)model;
68 
73 -(GtkTreeSelection *)getSelection;
74 
79 -(GtkAdjustment *)getHadjustment;
80 
85 -(void)setHadjustment:(GtkAdjustment *)adjustment;
86 
91 -(GtkAdjustment *)getVadjustment;
92 
97 -(void)setVadjustment:(GtkAdjustment *)adjustment;
98 
103 -(BOOL)getHeadersVisible;
104 
109 -(void)setHeadersVisible:(BOOL)headersVisible;
110 
115 -(void)columnsAutosize;
116 
121 -(BOOL)getHeadersClickable;
122 
127 -(void)setHeadersClickable:(BOOL)setting;
128 
133 -(void)setRulesHint:(BOOL)setting;
134 
139 -(BOOL)getRulesHint;
140 
145 -(NSNumber *)appendColumn:(GtkTreeViewColumn *)column;
146 
151 -(NSNumber *)removeColumn:(GtkTreeViewColumn *)column;
152 
157 -(NSNumber *)insertColumnWithColumn:(GtkTreeViewColumn *)column andPosition:(NSNumber *)position;
158 
163 -(NSNumber *)insertColumnWithDataFuncWithPosition:(NSNumber *)position andTitle:(NSString *)title andCell:(GtkCellRenderer *)cell andFunc:(GtkTreeCellDataFunc)func andData:(gpointer)data andDnotify:(GDestroyNotify)dnotify;
164 
169 -(GtkTreeViewColumn *)getColumn:(NSNumber *)n;
170 
175 -(GList *)getColumns;
176 
181 -(void)moveColumnAfterWithColumn:(GtkTreeViewColumn *)column andBaseColumn:(GtkTreeViewColumn *)baseColumn;
182 
187 -(void)setExpanderColumn:(GtkTreeViewColumn *)column;
188 
193 -(GtkTreeViewColumn *)getExpanderColumn;
194 
199 -(void)setColumnDragFunctionWithFunc:(GtkTreeViewColumnDropFunc)func andUserData:(gpointer)userData andDestroy:(GDestroyNotify)destroy;
200 
205 -(void)scrollToPointWithTreeX:(NSNumber *)treeX andTreeY:(NSNumber *)treeY;
206 
211 -(void)scrollToCellWithPath:(GtkTreePath *)path andColumn:(GtkTreeViewColumn *)column andUseAlign:(BOOL)useAlign andRowAlign:(NSNumber *)rowAlign andColAlign:(NSNumber *)colAlign;
212 
217 -(void)rowActivatedWithPath:(GtkTreePath *)path andColumn:(GtkTreeViewColumn *)column;
218 
223 -(void)expandAll;
224 
229 -(void)collapseAll;
230 
235 -(void)expandToPath:(GtkTreePath *)path;
236 
241 -(BOOL)expandRowWithPath:(GtkTreePath *)path andOpenAll:(BOOL)openAll;
242 
247 -(BOOL)collapseRow:(GtkTreePath *)path;
248 
253 -(void)mapExpandedRowsWithFunc:(GtkTreeViewMappingFunc)func andData:(gpointer)data;
254 
259 -(BOOL)rowExpanded:(GtkTreePath *)path;
260 
265 -(void)setReorderable:(BOOL)reorderable;
266 
271 -(BOOL)getReorderable;
272 
277 -(void)setCursorWithPath:(GtkTreePath *)path andFocusColumn:(GtkTreeViewColumn *)focusColumn andStartEditing:(BOOL)startEditing;
278 
283 -(void)setCursorOnCellWithPath:(GtkTreePath *)path andFocusColumn:(GtkTreeViewColumn *)focusColumn andFocusCell:(GtkCellRenderer *)focusCell andStartEditing:(BOOL)startEditing;
284 
289 -(void)getCursorWithPath:(GtkTreePath **)path andFocusColumn:(GtkTreeViewColumn **)focusColumn;
290 
295 -(GdkWindow *)getBinWindow;
296 
301 -(BOOL)getPathAtPosWithX:(NSNumber *)x andY:(NSNumber *)y andPath:(GtkTreePath **)path andColumn:(GtkTreeViewColumn **)column andCellX:(NSNumber **)cellX andCellY:(NSNumber **)cellY;
302 
307 -(void)getCellAreaWithPath:(GtkTreePath *)path andColumn:(GtkTreeViewColumn *)column andRect:(GdkRectangle *)rect;
308 
313 -(void)getBackgroundAreaWithPath:(GtkTreePath *)path andColumn:(GtkTreeViewColumn *)column andRect:(GdkRectangle *)rect;
314 
319 -(void)getVisibleRect:(GdkRectangle *)visibleRect;
320 
325 -(void)treeToWidgetCoordsWithTx:(NSNumber *)tx andTy:(NSNumber *)ty andWx:(NSNumber **)wx andWy:(NSNumber **)wy;
326 
331 -(BOOL)getVisibleRangeWithStartPath:(GtkTreePath **)startPath andEndPath:(GtkTreePath **)endPath;
332 
337 -(void)enableModelDragSourceWithStartButtonMask:(GdkModifierType)startButtonMask andTargets:(const GtkTargetEntry *)targets andNTargets:(NSNumber *)nTargets andActions:(GdkDragAction)actions;
338 
343 -(void)enableModelDragDestWithTargets:(const GtkTargetEntry *)targets andNTargets:(NSNumber *)nTargets andActions:(GdkDragAction)actions;
344 
349 -(void)unsetRowsDragSource;
350 
355 -(void)unsetRowsDragDest;
356 
361 -(void)setDragDestRowWithPath:(GtkTreePath *)path andPos:(GtkTreeViewDropPosition)pos;
362 
367 -(void)getDragDestRowWithPath:(GtkTreePath **)path andPos:(GtkTreeViewDropPosition *)pos;
368 
373 -(BOOL)getDestRowAtPosWithDragX:(NSNumber *)dragX andDragY:(NSNumber *)dragY andPath:(GtkTreePath **)path andPos:(GtkTreeViewDropPosition *)pos;
374 
379 -(GdkPixmap*)createRowDragIcon:(GtkTreePath *)path;
380 
385 -(void)setEnableSearch:(BOOL)enableSearch;
386 
391 -(BOOL)getEnableSearch;
392 
397 -(NSNumber *)getSearchColumn;
398 
403 -(void)setSearchColumn:(NSNumber *)column;
404 
409 -(GtkTreeViewSearchEqualFunc)getSearchEqualFunc;
410 
415 -(void)setSearchEqualFuncWithSearchEqualFunc:(GtkTreeViewSearchEqualFunc)searchEqualFunc andSearchUserData:(gpointer)searchUserData andSearchDestroy:(GDestroyNotify)searchDestroy;
416 
421 -(CGTKEntry *)getSearchEntry;
422 
427 -(void)setSearchEntry:(CGTKEntry *)entry;
428 
433 -(GtkTreeViewSearchPositionFunc)getSearchPositionFunc;
434 
439 -(void)setSearchPositionFuncWithFunc:(GtkTreeViewSearchPositionFunc)func andData:(gpointer)data andDestroy:(GDestroyNotify)destroy;
440 
445 -(void)convertWidgetToTreeCoordsWithWx:(NSNumber *)wx andWy:(NSNumber *)wy andTx:(NSNumber **)tx andTy:(NSNumber **)ty;
446 
451 -(void)convertTreeToWidgetCoordsWithTx:(NSNumber *)tx andTy:(NSNumber *)ty andWx:(NSNumber **)wx andWy:(NSNumber **)wy;
452 
457 -(void)convertWidgetToBinWindowCoordsWithWx:(NSNumber *)wx andWy:(NSNumber *)wy andBx:(NSNumber **)bx andBy:(NSNumber **)by;
458 
463 -(void)convertBinWindowToWidgetCoordsWithBx:(NSNumber *)bx andBy:(NSNumber *)by andWx:(NSNumber **)wx andWy:(NSNumber **)wy;
464 
469 -(void)convertTreeToBinWindowCoordsWithTx:(NSNumber *)tx andTy:(NSNumber *)ty andBx:(NSNumber **)bx andBy:(NSNumber **)by;
470 
475 -(void)convertBinWindowToTreeCoordsWithBx:(NSNumber *)bx andBy:(NSNumber *)by andTx:(NSNumber **)tx andTy:(NSNumber **)ty;
476 
481 -(void)setDestroyCountFuncWithFunc:(GtkTreeDestroyCountFunc)func andData:(gpointer)data andDestroy:(GDestroyNotify)destroy;
482 
487 -(void)setFixedHeightMode:(BOOL)enable;
488 
493 -(BOOL)getFixedHeightMode;
494 
499 -(void)setHoverSelection:(BOOL)hover;
500 
505 -(BOOL)getHoverSelection;
506 
511 -(void)setHoverExpand:(BOOL)expand;
512 
517 -(BOOL)getHoverExpand;
518 
523 -(void)setRubberBanding:(BOOL)enable;
524 
529 -(BOOL)getRubberBanding;
530 
535 -(BOOL)isRubberBandingActive;
536 
541 -(GtkTreeViewRowSeparatorFunc)getRowSeparatorFunc;
542 
547 -(void)setRowSeparatorFuncWithFunc:(GtkTreeViewRowSeparatorFunc)func andData:(gpointer)data andDestroy:(GDestroyNotify)destroy;
548 
553 -(GtkTreeViewGridLines)getGridLines;
554 
559 -(void)setGridLines:(GtkTreeViewGridLines)gridLines;
560 
565 -(BOOL)getEnableTreeLines;
566 
571 -(void)setEnableTreeLines:(BOOL)enabled;
572 
577 -(void)setShowExpanders:(BOOL)enabled;
578 
583 -(BOOL)getShowExpanders;
584 
589 -(void)setLevelIndentation:(NSNumber *)indentation;
590 
595 -(NSNumber *)getLevelIndentation;
596 
601 -(void)setTooltipRowWithTooltip:(GtkTooltip *)tooltip andPath:(GtkTreePath *)path;
602 
607 -(void)setTooltipCellWithTooltip:(GtkTooltip *)tooltip andPath:(GtkTreePath *)path andColumn:(GtkTreeViewColumn *)column andCell:(GtkCellRenderer *)cell;
608 
613 -(BOOL)getTooltipContextWithX:(NSNumber **)x andY:(NSNumber **)y andKeyboardTip:(BOOL)keyboardTip andModel:(GtkTreeModel **)model andPath:(GtkTreePath **)path andIter:(GtkTreeIter *)iter;
614 
619 -(void)setTooltipColumn:(NSNumber *)column;
620 
625 -(NSNumber *)getTooltipColumn;
626 
627 @end
Definition: CGTKEntry.h:34
Definition: CGTKContainer.h:34
Definition: CGTKTreeView.h:35