GObject.InitiallyUnowned
GObject.Object
Gtk.Object
Gtk.TreeViewColumn
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkTreeViewColumn |
Class : | TreeViewColumn |
Implements: | Gtk.Buildable, Gtk.CellLayout |
Extends: | Gtk.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
alignment : Number
|
Gtk.TreeViewColumn | |
alignment : Gtk.Widget
read only
|
Gtk.TreeViewColumn | |
arrow : Gtk.Widget
read only
|
Gtk.TreeViewColumn | |
button : Gtk.Widget
read only
|
Gtk.TreeViewColumn | |
button_request : Number
read only
|
Gtk.TreeViewColumn | |
cell_list : Array
read only
|
Gtk.TreeViewColumn | |
child : Gtk.Widget
read only
|
Gtk.TreeViewColumn | |
clickable : Boolean
|
Gtk.TreeViewColumn | |
clickable : Number
read only
|
Gtk.TreeViewColumn | |
column_type : Gtk.TreeViewColumnSizing
read only
|
Gtk.TreeViewColumn | |
dirty : Number
read only
|
Gtk.TreeViewColumn | |
drag_x : Number
read only
|
Gtk.TreeViewColumn | |
drag_y : Number
read only
|
Gtk.TreeViewColumn | |
editable_widget : Gtk.CellEditable
read only
|
Gtk.TreeViewColumn | |
expand : Boolean
|
Gtk.TreeViewColumn | |
expand : Number
read only
|
Gtk.TreeViewColumn | |
fixed_width : Number
|
Gtk.TreeViewColumn | |
fixed_width : Number
read only
|
Gtk.TreeViewColumn | |
flags : Number
read only
|
Gtk.Object | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
max_width : Number
|
Gtk.TreeViewColumn | |
max_width : Number
read only
|
Gtk.TreeViewColumn | |
maybe_reordered : Number
read only
|
Gtk.TreeViewColumn | |
min_width : Number
|
Gtk.TreeViewColumn | |
min_width : Number
read only
|
Gtk.TreeViewColumn | |
parent : Gtk.Object
read only
|
Gtk.TreeViewColumn | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.Object | |
property_changed_signal : Number
read only
|
Gtk.TreeViewColumn | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
GObject.InitiallyUnowned | |
reorderable : Boolean
|
Gtk.TreeViewColumn | |
reorderable : Number
read only
|
Gtk.TreeViewColumn | |
requested_width : Number
read only
|
Gtk.TreeViewColumn | |
resizable : Boolean
|
Gtk.TreeViewColumn | |
resizable : Number
read only
|
Gtk.TreeViewColumn | |
resized_width : Number
read only
|
Gtk.TreeViewColumn | |
show_sort_indicator : Number
read only
|
Gtk.TreeViewColumn | |
sizing : Gtk.TreeViewColumnSizing
|
Gtk.TreeViewColumn | |
sort_clicked_signal : Number
read only
|
Gtk.TreeViewColumn | |
sort_column_changed_signal : Number
read only
|
Gtk.TreeViewColumn | |
sort_column_id : Number
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_column_id : Number
read only
|
Gtk.TreeViewColumn | |
sort_indicator : Boolean
|
Gtk.TreeViewColumn | |
sort_order : Gtk.SortType
|
Gtk.TreeViewColumn | |
sort_order : Gtk.SortType
read only
|
Gtk.TreeViewColumn | |
spacing : Number
|
Gtk.TreeViewColumn | |
spacing : Number
read only
|
Gtk.TreeViewColumn | |
title : String
|
Gtk.TreeViewColumn | |
title : String
read only
|
Gtk.TreeViewColumn | |
tree_view : Gtk.Widget
read only
|
Gtk.TreeViewColumn | |
use_resized_width : Number
read only
|
Gtk.TreeViewColumn | |
user_data : void*
|
Gtk.Object | |
visible : Boolean
|
Gtk.TreeViewColumn | |
visible : Number
read only
|
Gtk.TreeViewColumn | |
widget : Gtk.Widget
|
Gtk.TreeViewColumn | |
width : Number
read only
|
Gtk.TreeViewColumn | |
width : Number
read only
|
Gtk.TreeViewColumn | |
window : Gdk.Window
read only
|
Gtk.TreeViewColumn | |
xalign : Number
read only
|
Gtk.TreeViewColumn |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TreeViewColumn
(Object properties)
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 | |
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
()
:
Boolean
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, Boolean is_expander, Boolean 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 | |
custom_tag_start
(Builder builder, Object child, String tagname, MarkupParser parser, void* data)
:
Boolean
This is called for each unknown element under <child>.
This is called for each unknown element under <child>. if it doesn't.
|
Gtk.Buildable | |
destroy
()
:
none
|
Gtk.Object | |
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
()
:
Number
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_cells
()
:
Array
Returns the cell renderers which have been added to cell_layout.
Returns the cell renderers which have been added to cell_layout. renderers has been newly allocated and should be freed with g_list_free() when no longer needed.
|
Gtk.CellLayout | |
get_clickable
()
:
Boolean
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 | |
Gtk.Object | ||
Gtk.Object | ||
get_expand
()
:
Boolean
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
()
:
Number
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
()
:
Number
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
()
:
Number
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
()
:
Boolean
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
()
:
Boolean
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
()
:
Number
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
()
:
Boolean
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
()
:
Number
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 returned. NULL otherwise.
|
Gtk.TreeViewColumn | |
get_user_data
()
:
void*
|
Gtk.Object | |
get_visible
()
:
Boolean
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.
|
Gtk.TreeViewColumn | |
get_width
()
:
Number
Returns the current size of tree_column in pixels.
Returns the current size of tree_column in pixels.
|
Gtk.TreeViewColumn | |
pack_end
(CellRenderer cell, Boolean 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, Boolean 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 | |
remove_data
(String key)
:
none
|
Gtk.Object | |
remove_data_by_id
(Number data_id)
:
none
|
Gtk.Object | |
remove_no_notify
(String key)
:
none
|
Gtk.Object | |
remove_no_notify_by_id
(Number key_id)
:
none
|
Gtk.Object | |
reorder
(CellRenderer cell, Number 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
(Number 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
(Boolean 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 | |
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
Gtk.Object | ||
set_expand
(Boolean 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
(Number 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
(Number 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
(Number 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
(Boolean 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
(Boolean 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
(Number 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
(Boolean 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.TreeViewColumn | |
set_spacing
(Number 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_user_data
(void* data)
:
none
|
Gtk.Object | |
set_visible
(Boolean 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 | |
sink
()
:
none
|
Gtk.Object |
Event | Defined By | |
---|---|---|
clicked (TreeViewColumn self)
:
none
|
Gtk.TreeViewColumn | |
destroy (Object self)
:
none
|
Gtk.Object |
Class / Namespace | Method / Signal / Properties |
---|---|
Gladeui.SignalEditor
Property |
handler_column : Gtk.TreeViewColumn
|
Gladeui.SignalEditor
Property |
userdata_column : Gtk.TreeViewColumn
|
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)
:
Number
Appends column to the list of columns.
|
Gtk.TreeView
Method |
remove_column
(TreeViewColumn column)
:
Number
Removes column from tree_view.
|
Gtk.TreeView
Method |
This inserts the column into the tree_view at position.
|
Gtk.TreeView
Method |
get_column
(Number n)
:
Gtk.TreeViewColumn
Gets the GtkTreeViewColumn at the given position in the tree_view.
|
Gtk.TreeView
Method |
move_column_after
(TreeViewColumn column, TreeViewColumn base_column)
:
none
Moves column to be after to base_column.
|
Gtk.TreeView
Method |
set_expander_column
(TreeViewColumn column)
:
none
Sets the column to draw the expander arrow at.
|
Gtk.TreeView
Method |
get_expander_column
()
:
Gtk.TreeViewColumn
Returns the column that is the current expander column.
|
Gtk.TreeView
Method |
scroll_to_cell
(TreePath path, TreeViewColumn column, Boolean use_align, Number row_align, Number 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 |
row_activated
(TreePath path, TreeViewColumn column)
:
none
Activates the cell determined by path and column.
|
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, Boolean start_editing)
:
none
Sets the current keyboard focus to be at path, and selects it.
|
Gtk.TreeView
Method |
get_cursor
()
:
Object
Fills in path and focus_column with the current path and focus 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 |
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 |
Sets the tip area of tooltip to the area path, column and cell have in common.
|