GObject.Object
GObject.InitiallyUnowned
Gtk.TreeViewColumn
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkTreeViewColumn |
Class : | TreeViewColumn |
Implements: | Gtk.Buildable, Gtk.CellLayout |
Extends: | GObject.InitiallyUnowned |
Properties | Defined By | |
---|---|---|
alignment : gfloat
|
Gtk.TreeViewColumn | |
cell_area : Gtk.CellArea
The GtkCellArea used to layout cell renderers for this column.
The GtkCellArea used to layout cell renderers for this column.
If no area is specified when creating the tree view column with gtk_tree_view_column_new_with_area() a horizontally oriented GtkCellAreaBox will be used. |
Gtk.TreeViewColumn | |
clickable : gboolean
|
Gtk.TreeViewColumn | |
expand : gboolean
|
Gtk.TreeViewColumn | |
fixed_width : gint32
|
Gtk.TreeViewColumn | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
max_width : gint32
|
Gtk.TreeViewColumn | |
min_width : gint32
|
Gtk.TreeViewColumn | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.TreeViewColumn | |
priv : Gtk.TreeViewColumnPrivate
read only
|
Gtk.TreeViewColumn | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned | |
reorderable : gboolean
|
Gtk.TreeViewColumn | |
resizable : gboolean
|
Gtk.TreeViewColumn | |
sizing : Gtk.TreeViewColumnSizing
|
Gtk.TreeViewColumn | |
sort_column_id : gint32
Logical sort column ID this column sorts on when selected for sorting.
Logical sort column ID this column sorts on when selected for sorting. Setting the sort column ID makes the column header
clickable. Set to %-1 to make the column unsortable. |
Gtk.TreeViewColumn | |
sort_indicator : gboolean
|
Gtk.TreeViewColumn | |
sort_order : Gtk.SortType
|
Gtk.TreeViewColumn | |
spacing : gint32
|
Gtk.TreeViewColumn | |
title : String
|
Gtk.TreeViewColumn | |
visible : gboolean
|
Gtk.TreeViewColumn | |
widget : Gtk.Widget
|
Gtk.TreeViewColumn | |
width : gint32
read only
|
Gtk.TreeViewColumn |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TreeViewColumn
(Object properties)
Create a new Gtk.TreeViewColumn
Create a new Gtk.TreeViewColumn
|
||
Create a new Gtk.TreeViewColumn
Create a new Gtk.TreeViewColumn
|
||
Adds an attribute mapping to the list in tree_column.
Adds an attribute mapping to the list in tree_column. The column is the
column of the model to get a value from, and the attribute is the parameter on cell_renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a GtkCellRendererText get its values from column 2.
|
Gtk.TreeViewColumn | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string
describing how the child should be added.
|
Gtk.Buildable | |
Obtains the horizontal position and size of a cell in a column.
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.
|
Gtk.TreeViewColumn | |
cell_get_size
(RectangleInt cell_area)
:
Object
Obtains the width and height needed to render the column.
Obtains the width and height needed to render the column. This is used
primarily by the GtkTreeView.
|
Gtk.TreeViewColumn | |
cell_is_visible
()
:
gboolean
Returns TRUE if any of the cells packed into the tree_column are visible.
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()
|
Gtk.TreeViewColumn | |
cell_set_cell_data
(TreeModel tree_model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
Sets the cell renderer based on the tree_model and iter.
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.
|
Gtk.TreeViewColumn | |
clear
()
:
none
Unsets all the mappings on all renderers on the tree_column.
Unsets all the mappings on all renderers on the tree_column.
|
Gtk.TreeViewColumn | |
clear_attributes
(CellRenderer cell_renderer)
:
none
Clears all existing attributes previously set with
gtk_tree_view_column_set_attributes().
Clears all existing attributes previously set with
gtk_tree_view_column_set_attributes().
|
Gtk.TreeViewColumn | |
clicked
()
:
none
Emits the "clicked" signal on the column.
Emits the "clicked" signal on the column. This function will only work if
|
Gtk.TreeViewColumn | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name.
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by
the buildable.
This is called at the end of each custom element handled by
the buildable.
|
Gtk.Buildable | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
focus_cell
(CellRenderer cell)
:
none
Sets the current keyboard focus to be at cell, if the column contains
2 or more editable and activatable cells.
Sets the current keyboard focus to be at cell, if the column contains
2 or more editable and activatable cells.
|
Gtk.TreeViewColumn | |
get_alignment
()
:
gfloat
Returns the current x alignment of tree_column.
Returns the current x alignment of tree_column. This value can range
between 0.0 and 1.0.
|
Gtk.TreeViewColumn | |
get_area
()
:
Gtk.CellArea
Returns the underlying GtkCellArea which might be cell_layout
if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout.
Returns the underlying GtkCellArea which might be cell_layout
if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout.
|
Gtk.CellLayout | |
get_button
()
:
Gtk.Widget
Returns the button used in the treeview column header
Returns the button used in the treeview column header
|
Gtk.TreeViewColumn | |
get_cells
()
:
Array
Returns the cell renderers which have been added to cell_layout.
Returns the cell renderers which have been added to cell_layout.
a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with g_list_free() when no longer needed.
|
Gtk.CellLayout | |
get_clickable
()
:
gboolean
Returns TRUE if the user can click on the header for the column.
Returns TRUE if the user can click on the header for the column.
|
Gtk.TreeViewColumn | |
get_expand
()
:
gboolean
Return TRUE if the column expands to take any available space.
Return TRUE if the column expands to take any available space.
|
Gtk.TreeViewColumn | |
get_fixed_width
()
:
gint32
Gets the fixed width of the column.
Gets the fixed width of the column. This value is only meaning may not be
the actual width of the column on the screen, just what is requested.
|
Gtk.TreeViewColumn | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_max_width
()
:
gint32
Returns the maximum width in pixels of the tree_column, or -1 if no maximum
width is set.
Returns the maximum width in pixels of the tree_column, or -1 if no maximum
width is set.
|
Gtk.TreeViewColumn | |
get_min_width
()
:
gint32
Returns the minimum width in pixels of the tree_column, or -1 if no minimum
width is set.
Returns the minimum width in pixels of the tree_column, or -1 if no minimum
width is set.
|
Gtk.TreeViewColumn | |
get_name
()
:
String
Gets the name of the buildable object.
Gets the name of the buildable object.
GtkBuilder sets the name based on the the GtkBuilder UI definition used to construct the buildable.
|
Gtk.Buildable | |
get_reorderable
()
:
gboolean
Returns TRUE if the tree_column can be reordered by the user.
Returns TRUE if the tree_column can be reordered by the user.
|
Gtk.TreeViewColumn | |
get_resizable
()
:
gboolean
Returns TRUE if the tree_column can be resized by the end user.
Returns TRUE if the tree_column can be resized by the end user.
|
Gtk.TreeViewColumn | |
get_sizing
()
:
Gtk.TreeViewColumnSizing
Returns the current type of tree_column.
Returns the current type of tree_column.
|
Gtk.TreeViewColumn | |
get_sort_column_id
()
:
gint32
Gets the logical sort_column_id that the model sorts on when this
column is selected for sorting.
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(). this column can't be used for sorting.
|
Gtk.TreeViewColumn | |
get_sort_indicator
()
:
gboolean
Gets the value set by gtk_tree_view_column_set_sort_indicator().
Gets the value set by gtk_tree_view_column_set_sort_indicator().
|
Gtk.TreeViewColumn | |
get_sort_order
()
:
Gtk.SortType
Gets the value set by gtk_tree_view_column_set_sort_order().
Gets the value set by gtk_tree_view_column_set_sort_order().
|
Gtk.TreeViewColumn | |
get_spacing
()
:
gint32
Returns the spacing of tree_column.
Returns the spacing of tree_column.
|
Gtk.TreeViewColumn | |
get_title
()
:
String
Returns the title of the widget.
Returns the title of the widget.
modified or freed.
|
Gtk.TreeViewColumn | |
get_tree_view
()
:
Gtk.Widget
Returns the GtkTreeView wherein tree_column has been inserted.
Returns the GtkTreeView wherein tree_column has been inserted.
If column is currently not inserted in any tree view, NULL is returned. been inserted if any, NULL otherwise.
|
Gtk.TreeViewColumn | |
get_visible
()
:
gboolean
Returns TRUE if tree_column is visible.
Returns TRUE if tree_column is visible.
the tree will show the column.
|
Gtk.TreeViewColumn | |
get_widget
()
:
Gtk.Widget
Returns the GtkWidget in the button on the column header.
Returns the GtkWidget in the button on the column header.
If a custom widget has not been set then NULL is returned. header, or NULL
|
Gtk.TreeViewColumn | |
get_width
()
:
gint32
Returns the current size of tree_column in pixels.
Returns the current size of tree_column in pixels.
|
Gtk.TreeViewColumn | |
pack_end
(CellRenderer cell, gboolean expand)
:
none
Adds the cell to end of the column.
Adds the cell to end of the column. If expand is FALSE, then the cell
is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.
|
Gtk.TreeViewColumn | |
pack_start
(CellRenderer cell, gboolean expand)
:
none
Packs the cell into the beginning of the column.
Packs the cell into the beginning of the column. If expand is FALSE, then
the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE.
|
Gtk.TreeViewColumn | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition.
Called when the builder finishes the parsing of a
GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
queue_resize
()
:
none
Flags the column, and the cell renderers added to this column, to have
their sizes renegotiated.
Flags the column, and the cell renderers added to this column, to have
their sizes renegotiated.
|
Gtk.TreeViewColumn | |
reorder
(CellRenderer cell, gint32 position)
:
none
Re-inserts cell at position.
Re-inserts cell at position.
Note that cell has already to be packed into cell_layout for this to function properly.
|
Gtk.CellLayout | |
set_alignment
(gfloat xalign)
:
none
Sets the alignment of the title or custom widget inside the column header.
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.
|
Gtk.TreeViewColumn | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
set_cell_data_func
(CellRenderer cell_renderer, Function func, void* func_data, Function destroy)
:
none
Sets the GtkTreeViewColumnFunc to use for the column.
Sets the GtkTreeViewColumnFunc 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.
|
Gtk.TreeViewColumn | |
set_clickable
(gboolean clickable)
:
none
Sets the header to be active if active is TRUE.
Sets the header to be active if active is TRUE. When the header is active,
then it can take keyboard focus, and can be clicked.
|
Gtk.TreeViewColumn | |
set_expand
(gboolean expand)
:
none
Sets the column to take available extra space.
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.
|
Gtk.TreeViewColumn | |
set_fixed_width
(gint32 fixed_width)
:
none
Sets the size of the column in pixels.
Sets the size of the column in pixels. This is meaningful only if the sizing
type is GTK_TREE_VIEW_COLUMN_FIXED. The size of the column is clamped to the min/max width for the column. Please note that the min/max width of the column doesn't actually affect the "fixed_width" property of the widget, just the actual size when displayed.
|
Gtk.TreeViewColumn | |
set_max_width
(gint32 max_width)
:
none
Sets the maximum width of the tree_column.
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.
|
Gtk.TreeViewColumn | |
set_min_width
(gint32 min_width)
:
none
Sets the minimum width of the tree_column.
Sets the minimum width of the tree_column. If min_width is -1, then the
minimum width is unset.
|
Gtk.TreeViewColumn | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
set_reorderable
(gboolean reorderable)
:
none
If reorderable is TRUE, then the column can be reordered by the end user
dragging the header.
If reorderable is TRUE, then the column can be reordered by the end user
dragging the header.
|
Gtk.TreeViewColumn | |
set_resizable
(gboolean resizable)
:
none
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, 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.
|
Gtk.TreeViewColumn | |
set_sizing
(TreeViewColumnSizing type)
:
none
Sets the growth behavior of tree_column to type.
Sets the growth behavior of tree_column to type.
|
Gtk.TreeViewColumn | |
set_sort_column_id
(gint32 sort_column_id)
:
none
Sets the logical sort_column_id that this column sorts on when this column
is selected for sorting.
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.
|
Gtk.TreeViewColumn | |
set_sort_indicator
(gboolean setting)
:
none
Call this function with a setting of TRUE to display an arrow in
the header button indicating the column is sorted.
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.
|
Gtk.TreeViewColumn | |
set_sort_order
(SortType order)
:
none
Changes the appearance of the sort indicator.
Changes the appearance of the sort indicator.
This 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() 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().
|
Gtk.TreeViewColumn | |
set_spacing
(gint32 spacing)
:
none
Sets the spacing field of tree_column, which is the number of pixels to
place between cell renderers packed into it.
Sets the spacing field of tree_column, which is the number of pixels to
place between cell renderers packed into it.
|
Gtk.TreeViewColumn | |
set_title
(String title)
:
none
Sets the title of the tree_column.
Sets the title of the tree_column. If a custom widget has been set, then
this value is ignored.
|
Gtk.TreeViewColumn | |
set_visible
(gboolean visible)
:
none
Sets the visibility of tree_column.
Sets the visibility of tree_column.
|
Gtk.TreeViewColumn | |
set_widget
(Widget widget)
:
none
Sets the widget in the header to be widget.
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.
|
Gtk.TreeViewColumn |
Event | Defined By | |
---|---|---|
clicked (TreeViewColumn self)
:
none
|
Gtk.TreeViewColumn |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.TreeView
Property |
expander_column : Gtk.TreeViewColumn
|
Gtk.TreeView
Signal |
The "row-activated" signal is emitted when the method
gtk_tree_view_row_activated() is called or the user double clicks a treeview row. |
Gtk.TreeView
Method |
append_column
(TreeViewColumn column)
:
gint32
Appends column to the list of columns.
|
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the
row specified by path and the column specified by column. |
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the
row specified by path and the column specified by column. |
Gtk.TreeView
Method |
get_column
(gint32 n)
:
Gtk.TreeViewColumn
Gets the GtkTreeViewColumn at the given position in the tree_view.
|
Gtk.TreeView
Method |
get_cursor
()
:
Object
Fills in path and focus_column with the current path and focus column.
|
Gtk.TreeView
Method |
get_expander_column
()
:
Gtk.TreeViewColumn
Returns the column that is the current expander column.
|
Gtk.TreeView
Method |
This inserts the column into the tree_view at position.
|
Gtk.TreeView
Method |
move_column_after
(TreeViewColumn column, TreeViewColumn base_column)
:
none
Moves column to be after to base_column.
|
Gtk.TreeView
Method |
remove_column
(TreeViewColumn column)
:
gint32
Removes column from tree_view.
|
Gtk.TreeView
Method |
row_activated
(TreePath path, TreeViewColumn column)
:
none
Activates the cell determined by path and column.
|
Gtk.TreeView
Method |
scroll_to_cell
(TreePath path, TreeViewColumn column, gboolean use_align, gfloat row_align, gfloat col_align)
:
none
Moves the alignments of tree_view to the position specified by column and
if path is NULL no vertical scrolling occurs. |
Gtk.TreeView
Method |
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
set_cursor_on_cell
(TreePath path, TreeViewColumn focus_column, CellRenderer focus_cell, gboolean start_editing)
:
none
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
set_expander_column
(TreeViewColumn column)
:
none
Sets the column to draw the expander arrow at.
|
Gtk.TreeView
Method |
Sets the tip area of tooltip to the area path, column and cell have
in common. |