This file is indexed.

/usr/include/d/gtkd-3/gtk/TreeViewColumn.d is in libgtkd-3-dev 3.7.5-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
/*
 * This file is part of gtkD.
 *
 * gtkD is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version, with
 * some exceptions, please read the COPYING file.
 *
 * gtkD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with gtkD; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
 */

// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage


module gtk.TreeViewColumn;

private import glib.ConstructionException;
private import glib.Str;
private import gobject.ObjectG;
private import gobject.Signals;
private import gtk.BuildableIF;
private import gtk.BuildableT;
private import gtk.Button;
private import gtk.CellArea;
private import gtk.CellLayoutIF;
private import gtk.CellLayoutT;
private import gtk.CellRenderer;
private import gtk.TreeIter;
private import gtk.TreeModelIF;
private import gtk.TreeView;
private import gtk.Widget;
private import gtk.c.functions;
public  import gtk.c.types;
public  import gtkc.gtktypes;
private import std.algorithm;


/**
 * The GtkTreeViewColumn object represents a visible column in a #GtkTreeView widget.
 * It allows to set properties of the column header, and functions as a holding pen for
 * the cell renderers which determine how the data in the column is displayed.
 * 
 * Please refer to the [tree widget conceptual overview][TreeWidget]
 * for an overview of all the objects and data types related to the tree widget and how
 * they work together.
 */
public class TreeViewColumn : ObjectG, BuildableIF, CellLayoutIF
{
	/** the main Gtk struct */
	protected GtkTreeViewColumn* gtkTreeViewColumn;

	/** Get the main Gtk struct */
	public GtkTreeViewColumn* getTreeViewColumnStruct(bool transferOwnership = false)
	{
		if (transferOwnership)
			ownedRef = false;
		return gtkTreeViewColumn;
	}

	/** the main Gtk struct as a void* */
	protected override void* getStruct()
	{
		return cast(void*)gtkTreeViewColumn;
	}

	protected override void setStruct(GObject* obj)
	{
		gtkTreeViewColumn = cast(GtkTreeViewColumn*)obj;
		super.setStruct(obj);
	}

	/**
	 * Sets our main struct and passes it to the parent class.
	 */
	public this (GtkTreeViewColumn* gtkTreeViewColumn, bool ownedRef = false)
	{
		this.gtkTreeViewColumn = gtkTreeViewColumn;
		super(cast(GObject*)gtkTreeViewColumn, ownedRef);
	}

	// add the Buildable capabilities
	mixin BuildableT!(GtkTreeViewColumn);

	// add the CellLayout capabilities
	mixin CellLayoutT!(GtkTreeViewColumn);

	/**
	 * Creates a new Tree view column
	 * Params:
	 *  header = th column header text
	 *  renderer = the rederer for the column cells
	 *  type = the type of data to be displayed (shouldn't this be on the renderer?)
	 *  column = the column number
	 * Throws: ConstructionException GTK+ fails to create the object.
	 */
	this(string header, CellRenderer renderer, string type, int column)
	{
		auto p = gtk_tree_view_column_new_with_attributes(
			Str.toStringz(header),
			renderer.getCellRendererStruct(),
			Str.toStringz(type),
			column,
			null);

		if(p is null)
		{
			throw new ConstructionException("null returned by gtk_tree_view_column_new_with_attributes");
		}

		this(p);
	}

	/**
	 * Returns the button used in the treeview column header
	 * Returns: The button for the column header. [transfer none] Since 3.0
	 */
	public Button getButton()
	{
		// GtkWidget * gtk_tree_view_column_get_button (GtkTreeViewColumn *tree_column);
		auto p = gtk_tree_view_column_get_button(gtkTreeViewColumn);
		if(p is null)
		{
			return null;
		}
		return ObjectG.getDObject!(Button)(cast(GtkButton*) p);
	}

	/**
	 * Returns the GtkTreeView wherein tree_column has been inserted.
	 * If column is currently not inserted in any tree view, NULL is
	 * returned.
	 * Since 2.12
	 * Returns: The tree view wherein column has been inserted if any, NULL otherwise. [transfer none]
	 */
	public TreeView getTreeView()
	{
		// GtkWidget * gtk_tree_view_column_get_tree_view (GtkTreeViewColumn *tree_column);
		auto p = gtk_tree_view_column_get_tree_view(gtkTreeViewColumn);
		if(p is null)
		{
			return null;
		}
		return ObjectG.getDObject!(TreeView)(cast(GtkTreeView*) p);
	}

	/**
	 */

	/** */
	public static GType getType()
	{
		return gtk_tree_view_column_get_type();
	}

	/**
	 * Creates a new #GtkTreeViewColumn.
	 *
	 * Returns: A newly created #GtkTreeViewColumn.
	 *
	 * Throws: ConstructionException GTK+ fails to create the object.
	 */
	public this()
	{
		auto p = gtk_tree_view_column_new();

		if(p is null)
		{
			throw new ConstructionException("null returned by new");
		}

		this(cast(GtkTreeViewColumn*) p);
	}

	/**
	 * Creates a new #GtkTreeViewColumn using @area to render its cells.
	 *
	 * Params:
	 *     area = the #GtkCellArea that the newly created column should use to layout cells.
	 *
	 * Returns: A newly created #GtkTreeViewColumn.
	 *
	 * Since: 3.0
	 *
	 * Throws: ConstructionException GTK+ fails to create the object.
	 */
	public this(CellArea area)
	{
		auto p = gtk_tree_view_column_new_with_area((area is null) ? null : area.getCellAreaStruct());

		if(p is null)
		{
			throw new ConstructionException("null returned by new_with_area");
		}

		this(cast(GtkTreeViewColumn*) p);
	}

	/**
	 * Obtains the horizontal position and size of a cell in a column. If the
	 * cell is not found in the column, @start_pos and @width are not changed and
	 * %FALSE is returned.
	 *
	 * Params:
	 *     cellRenderer = a #GtkCellRenderer
	 *     xOffset = return location for the horizontal
	 *         position of @cell within @tree_column, may be %NULL
	 *     width = return location for the width of @cell,
	 *         may be %NULL
	 *
	 * Returns: %TRUE if @cell belongs to @tree_column.
	 */
	public bool cellGetPosition(CellRenderer cellRenderer, out int xOffset, out int width)
	{
		return gtk_tree_view_column_cell_get_position(gtkTreeViewColumn, (cellRenderer is null) ? null : cellRenderer.getCellRendererStruct(), &xOffset, &width) != 0;
	}

	/**
	 * Obtains the width and height needed to render the column.  This is used
	 * primarily by the #GtkTreeView.
	 *
	 * Params:
	 *     cellArea = The area a cell in the column will be allocated, or %NULL
	 *     xOffset = location to return x offset of a cell relative to @cell_area, or %NULL
	 *     yOffset = location to return y offset of a cell relative to @cell_area, or %NULL
	 *     width = location to return width needed to render a cell, or %NULL
	 *     height = location to return height needed to render a cell, or %NULL
	 */
	public void cellGetSize(GdkRectangle* cellArea, out int xOffset, out int yOffset, out int width, out int height)
	{
		gtk_tree_view_column_cell_get_size(gtkTreeViewColumn, cellArea, &xOffset, &yOffset, &width, &height);
	}

	/**
	 * Returns %TRUE if any of the cells packed into the @tree_column are visible.
	 * For this to be meaningful, you must first initialize the cells with
	 * gtk_tree_view_column_cell_set_cell_data()
	 *
	 * Returns: %TRUE, if any of the cells packed into the @tree_column are currently visible
	 */
	public bool cellIsVisible()
	{
		return gtk_tree_view_column_cell_is_visible(gtkTreeViewColumn) != 0;
	}

	/**
	 * Sets the cell renderer based on the @tree_model and @iter.  That is, for
	 * every attribute mapping in @tree_column, it will get a value from the set
	 * column on the @iter, and use that value to set the attribute on the cell
	 * renderer.  This is used primarily by the #GtkTreeView.
	 *
	 * Params:
	 *     treeModel = The #GtkTreeModel to to get the cell renderers attributes from.
	 *     iter = The #GtkTreeIter to to get the cell renderer’s attributes from.
	 *     isExpander = %TRUE, if the row has children
	 *     isExpanded = %TRUE, if the row has visible children
	 */
	public void cellSetCellData(TreeModelIF treeModel, TreeIter iter, bool isExpander, bool isExpanded)
	{
		gtk_tree_view_column_cell_set_cell_data(gtkTreeViewColumn, (treeModel is null) ? null : treeModel.getTreeModelStruct(), (iter is null) ? null : iter.getTreeIterStruct(), isExpander, isExpanded);
	}

	/**
	 * Emits the “clicked” signal on the column.  This function will only work if
	 * @tree_column is clickable.
	 */
	public void clicked()
	{
		gtk_tree_view_column_clicked(gtkTreeViewColumn);
	}

	/**
	 * Sets the current keyboard focus to be at @cell, if the column contains
	 * 2 or more editable and activatable cells.
	 *
	 * Params:
	 *     cell = A #GtkCellRenderer
	 *
	 * Since: 2.2
	 */
	public void focusCell(CellRenderer cell)
	{
		gtk_tree_view_column_focus_cell(gtkTreeViewColumn, (cell is null) ? null : cell.getCellRendererStruct());
	}

	/**
	 * Returns the current x alignment of @tree_column.  This value can range
	 * between 0.0 and 1.0.
	 *
	 * Returns: The current alignent of @tree_column.
	 */
	public float getAlignment()
	{
		return gtk_tree_view_column_get_alignment(gtkTreeViewColumn);
	}

	/**
	 * Returns %TRUE if the user can click on the header for the column.
	 *
	 * Returns: %TRUE if user can click the column header.
	 */
	public bool getClickable()
	{
		return gtk_tree_view_column_get_clickable(gtkTreeViewColumn) != 0;
	}

	/**
	 * Returns %TRUE if the column expands to fill available space.
	 *
	 * Returns: %TRUE if the column expands to fill available space.
	 *
	 * Since: 2.4
	 */
	public bool getExpand()
	{
		return gtk_tree_view_column_get_expand(gtkTreeViewColumn) != 0;
	}

	/**
	 * Gets the fixed width of the column.  This may not be the actual displayed
	 * width of the column; for that, use gtk_tree_view_column_get_width().
	 *
	 * Returns: The fixed width of the column.
	 */
	public int getFixedWidth()
	{
		return gtk_tree_view_column_get_fixed_width(gtkTreeViewColumn);
	}

	/**
	 * Returns the maximum width in pixels of the @tree_column, or -1 if no maximum
	 * width is set.
	 *
	 * Returns: The maximum width of the @tree_column.
	 */
	public int getMaxWidth()
	{
		return gtk_tree_view_column_get_max_width(gtkTreeViewColumn);
	}

	/**
	 * Returns the minimum width in pixels of the @tree_column, or -1 if no minimum
	 * width is set.
	 *
	 * Returns: The minimum width of the @tree_column.
	 */
	public int getMinWidth()
	{
		return gtk_tree_view_column_get_min_width(gtkTreeViewColumn);
	}

	/**
	 * Returns %TRUE if the @tree_column can be reordered by the user.
	 *
	 * Returns: %TRUE if the @tree_column can be reordered by the user.
	 */
	public bool getReorderable()
	{
		return gtk_tree_view_column_get_reorderable(gtkTreeViewColumn) != 0;
	}

	/**
	 * Returns %TRUE if the @tree_column can be resized by the end user.
	 *
	 * Returns: %TRUE, if the @tree_column can be resized.
	 */
	public bool getResizable()
	{
		return gtk_tree_view_column_get_resizable(gtkTreeViewColumn) != 0;
	}

	/**
	 * Returns the current type of @tree_column.
	 *
	 * Returns: The type of @tree_column.
	 */
	public GtkTreeViewColumnSizing getSizing()
	{
		return gtk_tree_view_column_get_sizing(gtkTreeViewColumn);
	}

	/**
	 * Gets the logical @sort_column_id that the model sorts on when this
	 * column is selected for sorting.
	 * See gtk_tree_view_column_set_sort_column_id().
	 *
	 * Returns: the current @sort_column_id for this column, or -1 if
	 *     this column can’t be used for sorting.
	 */
	public int getSortColumnId()
	{
		return gtk_tree_view_column_get_sort_column_id(gtkTreeViewColumn);
	}

	/**
	 * Gets the value set by gtk_tree_view_column_set_sort_indicator().
	 *
	 * Returns: whether the sort indicator arrow is displayed
	 */
	public bool getSortIndicator()
	{
		return gtk_tree_view_column_get_sort_indicator(gtkTreeViewColumn) != 0;
	}

	/**
	 * Gets the value set by gtk_tree_view_column_set_sort_order().
	 *
	 * Returns: the sort order the sort indicator is indicating
	 */
	public GtkSortType getSortOrder()
	{
		return gtk_tree_view_column_get_sort_order(gtkTreeViewColumn);
	}

	/**
	 * Returns the spacing of @tree_column.
	 *
	 * Returns: the spacing of @tree_column.
	 */
	public int getSpacing()
	{
		return gtk_tree_view_column_get_spacing(gtkTreeViewColumn);
	}

	/**
	 * Returns the title of the widget.
	 *
	 * Returns: the title of the column. This string should not be
	 *     modified or freed.
	 */
	public string getTitle()
	{
		return Str.toString(gtk_tree_view_column_get_title(gtkTreeViewColumn));
	}

	/**
	 * Returns %TRUE if @tree_column is visible.
	 *
	 * Returns: whether the column is visible or not.  If it is visible, then
	 *     the tree will show the column.
	 */
	public bool getVisible()
	{
		return gtk_tree_view_column_get_visible(gtkTreeViewColumn) != 0;
	}

	/**
	 * Returns the #GtkWidget in the button on the column header.
	 * If a custom widget has not been set then %NULL is returned.
	 *
	 * Returns: The #GtkWidget in the column
	 *     header, or %NULL
	 */
	public Widget getWidget()
	{
		auto p = gtk_tree_view_column_get_widget(gtkTreeViewColumn);

		if(p is null)
		{
			return null;
		}

		return ObjectG.getDObject!(Widget)(cast(GtkWidget*) p);
	}

	/**
	 * Returns the current size of @tree_column in pixels.
	 *
	 * Returns: The current width of @tree_column.
	 */
	public int getWidth()
	{
		return gtk_tree_view_column_get_width(gtkTreeViewColumn);
	}

	/**
	 * Returns the current X offset of @tree_column in pixels.
	 *
	 * Returns: The current X offset of @tree_column.
	 *
	 * Since: 3.2
	 */
	public int getXOffset()
	{
		return gtk_tree_view_column_get_x_offset(gtkTreeViewColumn);
	}

	/**
	 * Flags the column, and the cell renderers added to this column, to have
	 * their sizes renegotiated.
	 *
	 * Since: 2.8
	 */
	public void queueResize()
	{
		gtk_tree_view_column_queue_resize(gtkTreeViewColumn);
	}

	/**
	 * Sets the alignment of the title or custom widget inside the column header.
	 * The alignment determines its location inside the button -- 0.0 for left, 0.5
	 * for center, 1.0 for right.
	 *
	 * Params:
	 *     xalign = The alignment, which is between [0.0 and 1.0] inclusive.
	 */
	public void setAlignment(float xalign)
	{
		gtk_tree_view_column_set_alignment(gtkTreeViewColumn, xalign);
	}

	/**
	 * Sets the #GtkTreeCellDataFunc to use for the column.  This
	 * function is used instead of the standard attributes mapping for
	 * setting the column value, and should set the value of @tree_column's
	 * cell renderer as appropriate.  @func may be %NULL to remove an
	 * older one.
	 *
	 * Params:
	 *     cellRenderer = A #GtkCellRenderer
	 *     func = The #GtkTreeCellDataFunc to use.
	 *     funcData = The user data for @func.
	 *     destroy = The destroy notification for @func_data
	 */
	public void setCellDataFunc(CellRenderer cellRenderer, GtkTreeCellDataFunc func, void* funcData, GDestroyNotify destroy)
	{
		gtk_tree_view_column_set_cell_data_func(gtkTreeViewColumn, (cellRenderer is null) ? null : cellRenderer.getCellRendererStruct(), func, funcData, destroy);
	}

	/**
	 * Sets the header to be active if @clickable is %TRUE.  When the header is
	 * active, then it can take keyboard focus, and can be clicked.
	 *
	 * Params:
	 *     clickable = %TRUE if the header is active.
	 */
	public void setClickable(bool clickable)
	{
		gtk_tree_view_column_set_clickable(gtkTreeViewColumn, clickable);
	}

	/**
	 * Sets the column to take available extra space.  This space is shared equally
	 * amongst all columns that have the expand set to %TRUE.  If no column has this
	 * option set, then the last column gets all extra space.  By default, every
	 * column is created with this %FALSE.
	 *
	 * Along with “fixed-width”, the “expand” property changes when the column is
	 * resized by the user.
	 *
	 * Params:
	 *     expand = %TRUE if the column should expand to fill available space.
	 *
	 * Since: 2.4
	 */
	public void setExpand(bool expand)
	{
		gtk_tree_view_column_set_expand(gtkTreeViewColumn, expand);
	}

	/**
	 * If @fixed_width is not -1, sets the fixed width of @tree_column; otherwise
	 * unsets it.  The effective value of @fixed_width is clamped between the
	 * minimum and maximum width of the column; however, the value stored in the
	 * “fixed-width” property is not clamped.  If the column sizing is
	 * #GTK_TREE_VIEW_COLUMN_GROW_ONLY or #GTK_TREE_VIEW_COLUMN_AUTOSIZE, setting
	 * a fixed width overrides the automatically calculated width.  Note that
	 * @fixed_width is only a hint to GTK+; the width actually allocated to the
	 * column may be greater or less than requested.
	 *
	 * Along with “expand”, the “fixed-width” property changes when the column is
	 * resized by the user.
	 *
	 * Params:
	 *     fixedWidth = The new fixed width, in pixels, or -1.
	 */
	public void setFixedWidth(int fixedWidth)
	{
		gtk_tree_view_column_set_fixed_width(gtkTreeViewColumn, fixedWidth);
	}

	/**
	 * Sets the maximum width of the @tree_column.  If @max_width is -1, then the
	 * maximum width is unset.  Note, the column can actually be wider than max
	 * width if it’s the last column in a view.  In this case, the column expands to
	 * fill any extra space.
	 *
	 * Params:
	 *     maxWidth = The maximum width of the column in pixels, or -1.
	 */
	public void setMaxWidth(int maxWidth)
	{
		gtk_tree_view_column_set_max_width(gtkTreeViewColumn, maxWidth);
	}

	/**
	 * Sets the minimum width of the @tree_column.  If @min_width is -1, then the
	 * minimum width is unset.
	 *
	 * Params:
	 *     minWidth = The minimum width of the column in pixels, or -1.
	 */
	public void setMinWidth(int minWidth)
	{
		gtk_tree_view_column_set_min_width(gtkTreeViewColumn, minWidth);
	}

	/**
	 * If @reorderable is %TRUE, then the column can be reordered by the end user
	 * dragging the header.
	 *
	 * Params:
	 *     reorderable = %TRUE, if the column can be reordered.
	 */
	public void setReorderable(bool reorderable)
	{
		gtk_tree_view_column_set_reorderable(gtkTreeViewColumn, reorderable);
	}

	/**
	 * If @resizable is %TRUE, then the user can explicitly resize the column by
	 * grabbing the outer edge of the column button.  If resizable is %TRUE and
	 * sizing mode of the column is #GTK_TREE_VIEW_COLUMN_AUTOSIZE, then the sizing
	 * mode is changed to #GTK_TREE_VIEW_COLUMN_GROW_ONLY.
	 *
	 * Params:
	 *     resizable = %TRUE, if the column can be resized
	 */
	public void setResizable(bool resizable)
	{
		gtk_tree_view_column_set_resizable(gtkTreeViewColumn, resizable);
	}

	/**
	 * Sets the growth behavior of @tree_column to @type.
	 *
	 * Params:
	 *     type = The #GtkTreeViewColumnSizing.
	 */
	public void setSizing(GtkTreeViewColumnSizing type)
	{
		gtk_tree_view_column_set_sizing(gtkTreeViewColumn, type);
	}

	/**
	 * Sets the logical @sort_column_id that this column sorts on when this column
	 * is selected for sorting.  Doing so makes the column header clickable.
	 *
	 * Params:
	 *     sortColumnId = The @sort_column_id of the model to sort on.
	 */
	public void setSortColumnId(int sortColumnId)
	{
		gtk_tree_view_column_set_sort_column_id(gtkTreeViewColumn, sortColumnId);
	}

	/**
	 * Call this function with a @setting of %TRUE to display an arrow in
	 * the header button indicating the column is sorted. Call
	 * gtk_tree_view_column_set_sort_order() to change the direction of
	 * the arrow.
	 *
	 * Params:
	 *     setting = %TRUE to display an indicator that the column is sorted
	 */
	public void setSortIndicator(bool setting)
	{
		gtk_tree_view_column_set_sort_indicator(gtkTreeViewColumn, setting);
	}

	/**
	 * Changes the appearance of the sort indicator.
	 *
	 * This does not actually sort the model.  Use
	 * gtk_tree_view_column_set_sort_column_id() if you want automatic sorting
	 * support.  This function is primarily for custom sorting behavior, and should
	 * be used in conjunction with gtk_tree_sortable_set_sort_column_id() to do
	 * that. For custom models, the mechanism will vary.
	 *
	 * The sort indicator changes direction to indicate normal sort or reverse sort.
	 * Note that you must have the sort indicator enabled to see anything when
	 * calling this function; see gtk_tree_view_column_set_sort_indicator().
	 *
	 * Params:
	 *     order = sort order that the sort indicator should indicate
	 */
	public void setSortOrder(GtkSortType order)
	{
		gtk_tree_view_column_set_sort_order(gtkTreeViewColumn, order);
	}

	/**
	 * Sets the spacing field of @tree_column, which is the number of pixels to
	 * place between cell renderers packed into it.
	 *
	 * Params:
	 *     spacing = distance between cell renderers in pixels.
	 */
	public void setSpacing(int spacing)
	{
		gtk_tree_view_column_set_spacing(gtkTreeViewColumn, spacing);
	}

	/**
	 * Sets the title of the @tree_column.  If a custom widget has been set, then
	 * this value is ignored.
	 *
	 * Params:
	 *     title = The title of the @tree_column.
	 */
	public void setTitle(string title)
	{
		gtk_tree_view_column_set_title(gtkTreeViewColumn, Str.toStringz(title));
	}

	/**
	 * Sets the visibility of @tree_column.
	 *
	 * Params:
	 *     visible = %TRUE if the @tree_column is visible.
	 */
	public void setVisible(bool visible)
	{
		gtk_tree_view_column_set_visible(gtkTreeViewColumn, visible);
	}

	/**
	 * Sets the widget in the header to be @widget.  If widget is %NULL, then the
	 * header button is set with a #GtkLabel set to the title of @tree_column.
	 *
	 * Params:
	 *     widget = A child #GtkWidget, or %NULL.
	 */
	public void setWidget(Widget widget)
	{
		gtk_tree_view_column_set_widget(gtkTreeViewColumn, (widget is null) ? null : widget.getWidgetStruct());
	}

	protected class OnClickedDelegateWrapper
	{
		void delegate(TreeViewColumn) dlg;
		gulong handlerId;

		this(void delegate(TreeViewColumn) dlg)
		{
			this.dlg = dlg;
			onClickedListeners ~= this;
		}

		void remove(OnClickedDelegateWrapper source)
		{
			foreach(index, wrapper; onClickedListeners)
			{
				if (wrapper.handlerId == source.handlerId)
				{
					onClickedListeners[index] = null;
					onClickedListeners = std.algorithm.remove(onClickedListeners, index);
					break;
				}
			}
		}
	}
	OnClickedDelegateWrapper[] onClickedListeners;

	/** */
	gulong addOnClicked(void delegate(TreeViewColumn) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
	{
		auto wrapper = new OnClickedDelegateWrapper(dlg);
		wrapper.handlerId = Signals.connectData(
			this,
			"clicked",
			cast(GCallback)&callBackClicked,
			cast(void*)wrapper,
			cast(GClosureNotify)&callBackClickedDestroy,
			connectFlags);
		return wrapper.handlerId;
	}

	extern(C) static void callBackClicked(GtkTreeViewColumn* treeviewcolumnStruct, OnClickedDelegateWrapper wrapper)
	{
		wrapper.dlg(wrapper.outer);
	}

	extern(C) static void callBackClickedDestroy(OnClickedDelegateWrapper wrapper, GClosure* closure)
	{
		wrapper.remove(wrapper);
	}
}