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

- Main Page
- Classes
- Files

- File List

All Classes Functions Variables
CGTKTreeView.m
1 /*
2 * CGTKTreeView.m
3 * This file is part of CoreGTK
4 *
5 * Copyright (C) 2015 - 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, 2015. 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/CGTKTreeView.h"
33
34 @implementation CGTKTreeView
35
36 -(id)init
37 {
38 self = [super initWithGObject:(GObject *)gtk_tree_view_new()];
39
40 if(self)
41 {
42 //Do nothing
43 }
44
45 return self;
46 }
47
48 -(id)initWithModel:(GtkTreeModel*) model
49 {
50 self = [super initWithGObject:(GObject *)gtk_tree_view_new_with_model(model)];
51
52 if(self)
53 {
54 //Do nothing
55 }
56
57 return self;
58 }
59
60 -(GtkTreeView*)TREEVIEW
61 {
62 return GTK_TREE_VIEW([self GOBJECT]);
63 }
64
65 -(gint)appendColumn:(GtkTreeViewColumn*) column
66 {
67 return gtk_tree_view_append_column(GTK_TREE_VIEW([self GOBJECT]), column);
68 }
69
70 -(void)collapseAll
71 {
72 gtk_tree_view_collapse_all(GTK_TREE_VIEW([self GOBJECT]));
73 }
74
75 -(BOOL)collapseRow:(GtkTreePath*) path
76 {
77 return (gtk_tree_view_collapse_row(GTK_TREE_VIEW([self GOBJECT]), path) ? YES : NO);
78 }
79
80 -(void)columnsAutosize
81 {
82 gtk_tree_view_columns_autosize(GTK_TREE_VIEW([self GOBJECT]));
83 }
84
85 -(void)convertBinWindowToTreeCoordsWithBx:(gint) bx andBy:(gint) by andTx:(gint*) tx andTy:(gint*) ty
86 {
87 gtk_tree_view_convert_bin_window_to_tree_coords(GTK_TREE_VIEW([self GOBJECT]), bx, by, tx, ty);
88 }
89
90 -(void)convertBinWindowToWidgetCoordsWithBx:(gint) bx andBy:(gint) by andWx:(gint*) wx andWy:(gint*) wy
91 {
92 gtk_tree_view_convert_bin_window_to_widget_coords(GTK_TREE_VIEW([self GOBJECT]), bx, by, wx, wy);
93 }
94
95 -(void)convertTreeToBinWindowCoordsWithTx:(gint) tx andTy:(gint) ty andBx:(gint*) bx andBy:(gint*) by
96 {
97 gtk_tree_view_convert_tree_to_bin_window_coords(GTK_TREE_VIEW([self GOBJECT]), tx, ty, bx, by);
98 }
99
100 -(void)convertTreeToWidgetCoordsWithTx:(gint) tx andTy:(gint) ty andWx:(gint*) wx andWy:(gint*) wy
101 {
102 gtk_tree_view_convert_tree_to_widget_coords(GTK_TREE_VIEW([self GOBJECT]), tx, ty, wx, wy);
103 }
104
105 -(void)convertWidgetToBinWindowCoordsWithWx:(gint) wx andWy:(gint) wy andBx:(gint*) bx andBy:(gint*) by
106 {
107 gtk_tree_view_convert_widget_to_bin_window_coords(GTK_TREE_VIEW([self GOBJECT]), wx, wy, bx, by);
108 }
109
110 -(void)convertWidgetToTreeCoordsWithWx:(gint) wx andWy:(gint) wy andTx:(gint*) tx andTy:(gint*) ty
111 {
112 gtk_tree_view_convert_widget_to_tree_coords(GTK_TREE_VIEW([self GOBJECT]), wx, wy, tx, ty);
113 }
114
115 -(cairo_surface_t*)createRowDragIcon:(GtkTreePath*) path
116 {
117 return gtk_tree_view_create_row_drag_icon(GTK_TREE_VIEW([self GOBJECT]), path);
118 }
119
120 -(void)enableModelDragDestWithTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
121 {
122 gtk_tree_view_enable_model_drag_dest(GTK_TREE_VIEW([self GOBJECT]), targets, ntargets, actions);
123 }
124
125 -(void)enableModelDragSourceWithStartButtonMask:(GdkModifierType) startButtonMask andTargets:(GtkTargetEntry*) targets andNtargets:(gint) ntargets andActions:(GdkDragAction) actions
126 {
127 gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW([self GOBJECT]), startButtonMask, targets, ntargets, actions);
128 }
129
130 -(void)expandAll
131 {
132 gtk_tree_view_expand_all(GTK_TREE_VIEW([self GOBJECT]));
133 }
134
135 -(BOOL)expandRowWithPath:(GtkTreePath*) path andOpenAll:(BOOL) openAll
136 {
137 return (gtk_tree_view_expand_row(GTK_TREE_VIEW([self GOBJECT]), path, (openAll ? TRUE : FALSE)) ? YES : NO);
138 }
139
140 -(void)expandToPath:(GtkTreePath*) path
141 {
142 gtk_tree_view_expand_to_path(GTK_TREE_VIEW([self GOBJECT]), path);
143 }
144
145 -(BOOL)getActivateOnSingleClick
146 {
147 return (gtk_tree_view_get_activate_on_single_click(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
148 }
149
150 -(void)getBackgroundAreaWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andRect:(GdkRectangle*) rect
151 {
152 gtk_tree_view_get_background_area(GTK_TREE_VIEW([self GOBJECT]), path, column, rect);
153 }
154
155 -(GdkWindow*)getBinWindow
156 {
157 return gtk_tree_view_get_bin_window(GTK_TREE_VIEW([self GOBJECT]));
158 }
159
160 -(void)getCellAreaWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andRect:(GdkRectangle*) rect
161 {
162 gtk_tree_view_get_cell_area(GTK_TREE_VIEW([self GOBJECT]), path, column, rect);
163 }
164
165 -(GtkTreeViewColumn*)getColumn:(gint) n
166 {
167 return gtk_tree_view_get_column(GTK_TREE_VIEW([self GOBJECT]), n);
168 }
169
170 -(GList*)getColumns
171 {
172 return gtk_tree_view_get_columns(GTK_TREE_VIEW([self GOBJECT]));
173 }
174
175 -(void)getCursorWithPath:(GtkTreePath**) path andFocusColumn:(GtkTreeViewColumn**) focusColumn
176 {
177 gtk_tree_view_get_cursor(GTK_TREE_VIEW([self GOBJECT]), path, focusColumn);
178 }
179
180 -(BOOL)getDestRowAtPosWithDragX:(gint) dragX andDragY:(gint) dragY andPath:(GtkTreePath**) path andPos:(GtkTreeViewDropPosition*) pos
181 {
182 return (gtk_tree_view_get_dest_row_at_pos(GTK_TREE_VIEW([self GOBJECT]), dragX, dragY, path, pos) ? YES : NO);
183 }
184
185 -(void)getDragDestRowWithPath:(GtkTreePath**) path andPos:(GtkTreeViewDropPosition*) pos
186 {
187 gtk_tree_view_get_drag_dest_row(GTK_TREE_VIEW([self GOBJECT]), path, pos);
188 }
189
190 -(BOOL)getEnableSearch
191 {
192 return (gtk_tree_view_get_enable_search(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
193 }
194
195 -(BOOL)getEnableTreeLines
196 {
197 return (gtk_tree_view_get_enable_tree_lines(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
198 }
199
200 -(GtkTreeViewColumn*)getExpanderColumn
201 {
202 return gtk_tree_view_get_expander_column(GTK_TREE_VIEW([self GOBJECT]));
203 }
204
205 -(BOOL)getFixedHeightMode
206 {
207 return (gtk_tree_view_get_fixed_height_mode(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
208 }
209
210 -(GtkTreeViewGridLines)getGridLines
211 {
212 return gtk_tree_view_get_grid_lines(GTK_TREE_VIEW([self GOBJECT]));
213 }
214
215 -(GtkAdjustment*)getHadjustment
216 {
217 return gtk_tree_view_get_hadjustment(GTK_TREE_VIEW([self GOBJECT]));
218 }
219
220 -(BOOL)getHeadersClickable
221 {
222 return (gtk_tree_view_get_headers_clickable(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
223 }
224
225 -(BOOL)getHeadersVisible
226 {
227 return (gtk_tree_view_get_headers_visible(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
228 }
229
230 -(BOOL)getHoverExpand
231 {
232 return (gtk_tree_view_get_hover_expand(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
233 }
234
235 -(BOOL)getHoverSelection
236 {
237 return (gtk_tree_view_get_hover_selection(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
238 }
239
240 -(gint)getLevelIndentation
241 {
242 return gtk_tree_view_get_level_indentation(GTK_TREE_VIEW([self GOBJECT]));
243 }
244
245 -(GtkTreeModel*)getModel
246 {
247 return gtk_tree_view_get_model(GTK_TREE_VIEW([self GOBJECT]));
248 }
249
250 -(guint)getNcolumns
251 {
252 return gtk_tree_view_get_n_columns(GTK_TREE_VIEW([self GOBJECT]));
253 }
254
255 -(BOOL)getPathAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andColumn:(GtkTreeViewColumn**) column andCellX:(gint*) cellX andCellY:(gint*) cellY
256 {
257 return (gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW([self GOBJECT]), x, y, path, column, cellX, cellY) ? YES : NO);
258 }
259
260 -(BOOL)getReorderable
261 {
262 return (gtk_tree_view_get_reorderable(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
263 }
264
265 -(GtkTreeViewRowSeparatorFunc)getRowSeparatorFunc
266 {
267 return gtk_tree_view_get_row_separator_func(GTK_TREE_VIEW([self GOBJECT]));
268 }
269
270 -(BOOL)getRubberBanding
271 {
272 return (gtk_tree_view_get_rubber_banding(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
273 }
274
275 -(BOOL)getRulesHint
276 {
277 return (gtk_tree_view_get_rules_hint(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
278 }
279
280 -(gint)getSearchColumn
281 {
282 return gtk_tree_view_get_search_column(GTK_TREE_VIEW([self GOBJECT]));
283 }
284
285 -(GtkEntry*)getSearchEntry
286 {
287 return gtk_tree_view_get_search_entry(GTK_TREE_VIEW([self GOBJECT]));
288 }
289
290 -(GtkTreeViewSearchEqualFunc)getSearchEqualFunc
291 {
292 return gtk_tree_view_get_search_equal_func(GTK_TREE_VIEW([self GOBJECT]));
293 }
294
295 -(GtkTreeViewSearchPositionFunc)getSearchPositionFunc
296 {
297 return gtk_tree_view_get_search_position_func(GTK_TREE_VIEW([self GOBJECT]));
298 }
299
300 -(GtkTreeSelection*)getSelection
301 {
302 return gtk_tree_view_get_selection(GTK_TREE_VIEW([self GOBJECT]));
303 }
304
305 -(BOOL)getShowExpanders
306 {
307 return (gtk_tree_view_get_show_expanders(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
308 }
309
310 -(gint)getTooltipColumn
311 {
312 return gtk_tree_view_get_tooltip_column(GTK_TREE_VIEW([self GOBJECT]));
313 }
314
315 -(BOOL)getTooltipContextWithX:(gint*) x andY:(gint*) y andKeyboardTip:(BOOL) keyboardTip andModel:(GtkTreeModel**) model andPath:(GtkTreePath**) path andIter:(GtkTreeIter*) iter
316 {
317 return (gtk_tree_view_get_tooltip_context(GTK_TREE_VIEW([self GOBJECT]), x, y, (keyboardTip ? TRUE : FALSE), model, path, iter) ? YES : NO);
318 }
319
320 -(GtkAdjustment*)getVadjustment
321 {
322 return gtk_tree_view_get_vadjustment(GTK_TREE_VIEW([self GOBJECT]));
323 }
324
325 -(BOOL)getVisibleRangeWithStartPath:(GtkTreePath**) startPath andEndPath:(GtkTreePath**) endPath
326 {
327 return (gtk_tree_view_get_visible_range(GTK_TREE_VIEW([self GOBJECT]), startPath, endPath) ? YES : NO);
328 }
329
330 -(void)getVisibleRect:(GdkRectangle*) visibleRect
331 {
332 gtk_tree_view_get_visible_rect(GTK_TREE_VIEW([self GOBJECT]), visibleRect);
333 }
334
335 -(gint)insertColumnWithColumn:(GtkTreeViewColumn*) column andPosition:(gint) position
336 {
337 return gtk_tree_view_insert_column(GTK_TREE_VIEW([self GOBJECT]), column, position);
338 }
339
340 -(gint)insertColumnWithDataFuncWithPosition:(gint) position andTitle:(NSString*) title andCell:(GtkCellRenderer*) cell andFunc:(GtkTreeCellDataFunc) func andData:(gpointer) data andDnotify:(GDestroyNotify) dnotify
341 {
342 return gtk_tree_view_insert_column_with_data_func(GTK_TREE_VIEW([self GOBJECT]), position, [title UTF8String], cell, func, data, dnotify);
343 }
344
345 -(BOOL)isBlankAtPosWithX:(gint) x andY:(gint) y andPath:(GtkTreePath**) path andColumn:(GtkTreeViewColumn**) column andCellX:(gint*) cellX andCellY:(gint*) cellY
346 {
347 return (gtk_tree_view_is_blank_at_pos(GTK_TREE_VIEW([self GOBJECT]), x, y, path, column, cellX, cellY) ? YES : NO);
348 }
349
350 -(BOOL)isRubberBandingActive
351 {
352 return (gtk_tree_view_is_rubber_banding_active(GTK_TREE_VIEW([self GOBJECT])) ? YES : NO);
353 }
354
355 -(void)mapExpandedRowsWithFunc:(GtkTreeViewMappingFunc) func andData:(gpointer) data
356 {
357 gtk_tree_view_map_expanded_rows(GTK_TREE_VIEW([self GOBJECT]), func, data);
358 }
359
360 -(void)moveColumnAfterWithColumn:(GtkTreeViewColumn*) column andBaseColumn:(GtkTreeViewColumn*) baseColumn
361 {
362 gtk_tree_view_move_column_after(GTK_TREE_VIEW([self GOBJECT]), column, baseColumn);
363 }
364
365 -(gint)removeColumn:(GtkTreeViewColumn*) column
366 {
367 return gtk_tree_view_remove_column(GTK_TREE_VIEW([self GOBJECT]), column);
368 }
369
370 -(void)rowActivatedWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column
371 {
372 gtk_tree_view_row_activated(GTK_TREE_VIEW([self GOBJECT]), path, column);
373 }
374
375 -(BOOL)rowExpanded:(GtkTreePath*) path
376 {
377 return (gtk_tree_view_row_expanded(GTK_TREE_VIEW([self GOBJECT]), path) ? YES : NO);
378 }
379
380 -(void)scrollToCellWithPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andUseAlign:(BOOL) useAlign andRowAlign:(gfloat) rowAlign andColAlign:(gfloat) colAlign
381 {
382 gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW([self GOBJECT]), path, column, (useAlign ? TRUE : FALSE), rowAlign, colAlign);
383 }
384
385 -(void)scrollToPointWithTreeX:(gint) treeX andTreeY:(gint) treeY
386 {
387 gtk_tree_view_scroll_to_point(GTK_TREE_VIEW([self GOBJECT]), treeX, treeY);
388 }
389
390 -(void)setActivateOnSingleClick:(BOOL) single
391 {
392 gtk_tree_view_set_activate_on_single_click(GTK_TREE_VIEW([self GOBJECT]), (single ? TRUE : FALSE));
393 }
394
395 -(void)setColumnDragFunctionWithFunc:(GtkTreeViewColumnDropFunc) func andUserData:(gpointer) userData andDestroy:(GDestroyNotify) destroy
396 {
397 gtk_tree_view_set_column_drag_function(GTK_TREE_VIEW([self GOBJECT]), func, userData, destroy);
398 }
399
400 -(void)setCursorWithPath:(GtkTreePath*) path andFocusColumn:(GtkTreeViewColumn*) focusColumn andStartEditing:(BOOL) startEditing
401 {
402 gtk_tree_view_set_cursor(GTK_TREE_VIEW([self GOBJECT]), path, focusColumn, (startEditing ? TRUE : FALSE));
403 }
404
405 -(void)setCursorOnCellWithPath:(GtkTreePath*) path andFocusColumn:(GtkTreeViewColumn*) focusColumn andFocusCell:(GtkCellRenderer*) focusCell andStartEditing:(BOOL) startEditing
406 {
407 gtk_tree_view_set_cursor_on_cell(GTK_TREE_VIEW([self GOBJECT]), path, focusColumn, focusCell, (startEditing ? TRUE : FALSE));
408 }
409
410 -(void)setDestroyCountFuncWithFunc:(GtkTreeDestroyCountFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy
411 {
412 gtk_tree_view_set_destroy_count_func(GTK_TREE_VIEW([self GOBJECT]), func, data, destroy);
413 }
414
415 -(void)setDragDestRowWithPath:(GtkTreePath*) path andPos:(GtkTreeViewDropPosition) pos
416 {
417 gtk_tree_view_set_drag_dest_row(GTK_TREE_VIEW([self GOBJECT]), path, pos);
418 }
419
420 -(void)setEnableSearch:(BOOL) enableSearch
421 {
422 gtk_tree_view_set_enable_search(GTK_TREE_VIEW([self GOBJECT]), (enableSearch ? TRUE : FALSE));
423 }
424
425 -(void)setEnableTreeLines:(BOOL) enabled
426 {
427 gtk_tree_view_set_enable_tree_lines(GTK_TREE_VIEW([self GOBJECT]), (enabled ? TRUE : FALSE));
428 }
429
430 -(void)setExpanderColumn:(GtkTreeViewColumn*) column
431 {
432 gtk_tree_view_set_expander_column(GTK_TREE_VIEW([self GOBJECT]), column);
433 }
434
435 -(void)setFixedHeightMode:(BOOL) enable
436 {
437 gtk_tree_view_set_fixed_height_mode(GTK_TREE_VIEW([self GOBJECT]), (enable ? TRUE : FALSE));
438 }
439
440 -(void)setGridLines:(GtkTreeViewGridLines) gridLines
441 {
442 gtk_tree_view_set_grid_lines(GTK_TREE_VIEW([self GOBJECT]), gridLines);
443 }
444
445 -(void)setHadjustment:(GtkAdjustment*) adjustment
446 {
447 gtk_tree_view_set_hadjustment(GTK_TREE_VIEW([self GOBJECT]), adjustment);
448 }
449
450 -(void)setHeadersClickable:(BOOL) setting
451 {
452 gtk_tree_view_set_headers_clickable(GTK_TREE_VIEW([self GOBJECT]), (setting ? TRUE : FALSE));
453 }
454
455 -(void)setHeadersVisible:(BOOL) headersVisible
456 {
457 gtk_tree_view_set_headers_visible(GTK_TREE_VIEW([self GOBJECT]), (headersVisible ? TRUE : FALSE));
458 }
459
460 -(void)setHoverExpand:(BOOL) expand
461 {
462 gtk_tree_view_set_hover_expand(GTK_TREE_VIEW([self GOBJECT]), (expand ? TRUE : FALSE));
463 }
464
465 -(void)setHoverSelection:(BOOL) hover
466 {
467 gtk_tree_view_set_hover_selection(GTK_TREE_VIEW([self GOBJECT]), (hover ? TRUE : FALSE));
468 }
469
470 -(void)setLevelIndentation:(gint) indentation
471 {
472 gtk_tree_view_set_level_indentation(GTK_TREE_VIEW([self GOBJECT]), indentation);
473 }
474
475 -(void)setModel:(GtkTreeModel*) model
476 {
477 gtk_tree_view_set_model(GTK_TREE_VIEW([self GOBJECT]), model);
478 }
479
480 -(void)setReorderable:(BOOL) reorderable
481 {
482 gtk_tree_view_set_reorderable(GTK_TREE_VIEW([self GOBJECT]), (reorderable ? TRUE : FALSE));
483 }
484
485 -(void)setRowSeparatorFuncWithFunc:(GtkTreeViewRowSeparatorFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy
486 {
487 gtk_tree_view_set_row_separator_func(GTK_TREE_VIEW([self GOBJECT]), func, data, destroy);
488 }
489
490 -(void)setRubberBanding:(BOOL) enable
491 {
492 gtk_tree_view_set_rubber_banding(GTK_TREE_VIEW([self GOBJECT]), (enable ? TRUE : FALSE));
493 }
494
495 -(void)setRulesHint:(BOOL) setting
496 {
497 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW([self GOBJECT]), (setting ? TRUE : FALSE));
498 }
499
500 -(void)setSearchColumn:(gint) column
501 {
502 gtk_tree_view_set_search_column(GTK_TREE_VIEW([self GOBJECT]), column);
503 }
504
505 -(void)setSearchEntry:(GtkEntry*) entry
506 {
507 gtk_tree_view_set_search_entry(GTK_TREE_VIEW([self GOBJECT]), entry);
508 }
509
510 -(void)setSearchEqualFuncWithSearchEqualFunc:(GtkTreeViewSearchEqualFunc) searchEqualFunc andSearchUserData:(gpointer) searchUserData andSearchDestroy:(GDestroyNotify) searchDestroy
511 {
512 gtk_tree_view_set_search_equal_func(GTK_TREE_VIEW([self GOBJECT]), searchEqualFunc, searchUserData, searchDestroy);
513 }
514
515 -(void)setSearchPositionFuncWithFunc:(GtkTreeViewSearchPositionFunc) func andData:(gpointer) data andDestroy:(GDestroyNotify) destroy
516 {
517 gtk_tree_view_set_search_position_func(GTK_TREE_VIEW([self GOBJECT]), func, data, destroy);
518 }
519
520 -(void)setShowExpanders:(BOOL) enabled
521 {
522 gtk_tree_view_set_show_expanders(GTK_TREE_VIEW([self GOBJECT]), (enabled ? TRUE : FALSE));
523 }
524
525 -(void)setTooltipCellWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path andColumn:(GtkTreeViewColumn*) column andCell:(GtkCellRenderer*) cell
526 {
527 gtk_tree_view_set_tooltip_cell(GTK_TREE_VIEW([self GOBJECT]), tooltip, path, column, cell);
528 }
529
530 -(void)setTooltipColumn:(gint) column
531 {
532 gtk_tree_view_set_tooltip_column(GTK_TREE_VIEW([self GOBJECT]), column);
533 }
534
535 -(void)setTooltipRowWithTooltip:(GtkTooltip*) tooltip andPath:(GtkTreePath*) path
536 {
537 gtk_tree_view_set_tooltip_row(GTK_TREE_VIEW([self GOBJECT]), tooltip, path);
538 }
539
540 -(void)setVadjustment:(GtkAdjustment*) adjustment
541 {
542 gtk_tree_view_set_vadjustment(GTK_TREE_VIEW([self GOBJECT]), adjustment);
543 }
544
545 -(void)unsetRowsDragDest
546 {
547 gtk_tree_view_unset_rows_drag_dest(GTK_TREE_VIEW([self GOBJECT]));
548 }
549
550 -(void)unsetRowsDragSource
551 {
552 gtk_tree_view_unset_rows_drag_source(GTK_TREE_VIEW([self GOBJECT]));
553 }
554
555
556 @end
-[CGTKBase GOBJECT]
GObject * GOBJECT()
Definition: CGTKBase.m:82
-[CGTKTreeView getRowSeparatorFunc]
GtkTreeViewRowSeparatorFunc getRowSeparatorFunc()
Definition: CGTKTreeView.m:265
-[CGTKTreeView getVadjustment]
GtkAdjustment * getVadjustment()
Definition: CGTKTreeView.m:320
-[CGTKTreeView getSelection]
GtkTreeSelection * getSelection()
Definition: CGTKTreeView.m:300
-[CGTKBase initWithGObject:]
id initWithGObject:(GObject *obj)
Definition: CGTKBase.m:48
-[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
-[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