cvs: php-gtk-doc /manual/en/reference/gtk gtkenum.xml gtktreeviewcolumn.xml
| From: | Christian Weiske | Date: | Tue, 08 Aug 2006 19:34:19 +0000 |
| Subject: | cvs: php-gtk-doc /manual/en/reference/gtk gtkenum.xml gtktreeviewcolumn.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-2771@lists.php.net to get a copy of this message | ||
cweiske Tue Aug 8 19:34:19 2006 UTC
Modified files:
/php-gtk-doc/manual/en/reference/gtk gtkenum.xml
gtktreeviewcolumn.xml
Log:
GtkTreeViewColumn docs
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkenum.xml?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.18 php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.19 --- php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.18 Mon Jul 10 20:30:57 2006 +++ php-gtk-doc/manual/en/reference/gtk/gtkenum.xml Tue Aug 8 19:34:19 2006 @@ -4245,6 +4245,41 @@ </enum> + <enum id="gtk.enum.treeviewcolumnsizing"> + <enumname>GtkTreeViewColumnSizing</enumname> + <desc> + <simpara> + Used by <classname>GtkTreeViewColumn</classname> + <function class="GtkTreeViewColumn">set_sizing</function>. + </simpara> + </desc> + + <enumoption> + <value>0</value> + <optionname>Gtk::GtkTreeViewColumnSizing</optionname> + <shortdesc> + Columns only get bigger in reaction to changes in the model. + </shortdesc> + </enumoption> + + <enumoption> + <value>1</value> + <optionname>Gtk::TREE_VIEW_COLUMN_AUTOSIZE</optionname> + <shortdesc> + Columns resize to be the optimal size everytime the model changes. + </shortdesc> + </enumoption> + + <enumoption> + <value>2</value> + <optionname>Gtk::TREE_VIEW_COLUMN_FIXED</optionname> + <shortdesc> + Columns are a fixed numbers of pixels wide. + </shortdesc> + </enumoption> + </enum> + + <enum id="gtk.enum.treeviewmode"> <enumname>GtkTreeViewMode</enumname> <desc> http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml?r1=1.9&r2=1.10&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.9 php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.10 --- php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.9 Wed May 17 20:09:18 2006 +++ php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml Tue Aug 8 19:34:19 2006 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkTreeViewColumn</classtitle> <classparent>GtkObject</classparent> + <implements>GtkCellLayout</implements> <shortdesc> A visible column in a GtkTreeView. </shortdesc> @@ -15,7 +16,6 @@ </classmeta> <constructors> - <constructor id="gtk.gtktreeviewcolumn.constructor"> <funcsynopsis> <funcprototype> @@ -75,55 +75,49 @@ </example> </desc> </constructor> - </constructors> - <methods> - - <method id="gtk.gtktreeviewcolumn.method.add_attribute"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>add_attribute</function></funcdef> - <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> - <paramdef>string <parameter>attribute</parameter></paramdef> - <paramdef>int <parameter>column</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> + <methods> <method id="gtk.gtktreeviewcolumn.method.cell_get_position"> <funcsynopsis> <funcprototype> - <funcdef>void <function>cell_get_position</function></funcdef> - <paramdef>void</paramdef> + <funcdef>array <function>cell_get_position</function></funcdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns horizontal position and size of a cell in the column. </shortdesc> <desc> - + <para> + Returns the horizontal position and the size of the given cell + in the column. If the cell is not found in the column, + <literal>false</literal> is returned. + </para> </desc> </method> <method id="gtk.gtktreeviewcolumn.method.cell_get_size"> <funcsynopsis> <funcprototype> - <funcdef>void <function>cell_get_size</function></funcdef> - <paramdef>void</paramdef> + <funcdef>array <function>cell_get_size</function></funcdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the size and offset of the cell. </shortdesc> <desc> - + <para> + Returns the width and height needed to render the column. + This is used primarily by the <classname>GtkTreeView</classname>. + </para> + <para> + The array consists of the following values: + <literal><classname>GdkRectangle</classname> cell_area, + int x_offset, int y_offset, int width, int height</literal> + </para> </desc> </method> @@ -135,10 +129,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If any of the cells in the column is visible. </shortdesc> <desc> - + <para> + Returns <literal>true</literal> if any of the cells packed into the + column are visible. For this to be meaningful, you must first initialize + the cells with + <function class="GtkTreeViewColumn">cell_set_cell_data</function>. + </para> </desc> </method> @@ -146,48 +145,24 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>cell_set_cell_data</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.clear"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.clear_attributes"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_attributes</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell_renderer</parameter></paramdef> + <paramdef><classname>GtkTreeModel</classname> <parameter>tree_model</parameter></paramdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> + <paramdef>bool <parameter>is_expander</parameter></paramdef> + <paramdef>bool <parameter>is_expanded</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets some cell data like model, iter, expander and expanded. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">set_attributes</function> + Sets the cell renderer based on the <parameter>tree_model</parameter> and + <parameter>iter</parameter>. That is, for every attribute mapping in + <parameter>tree_column</parameter>, it will get a value from the set column + on the <parameter>iter</parameter>, and use that value to set the + attribute on the cell renderer. This is used primarily by the + <classname>GtkTreeView</classname>. </para> - </desc> </method> @@ -199,10 +174,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - - </shortdesc> + Emits the "clicked" signal on the column. + </shortdesc> <desc> - + <para> + Emits the "clicked" signal on the column. + This function will only work if the column is clickable. + </para> </desc> </method> @@ -210,14 +188,17 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>focus_cell</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current keyboard focus to be at the given cell. </shortdesc> <desc> - + <para> + Sets the current keyboard focus to be at cell, if the column contains + 2 or more editable and activatable cells. + </para> </desc> </method> @@ -229,29 +210,36 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current x alignment of the column. </shortdesc> <desc> <para> - See also: + Returns the current x alignment of the column. + This value can range between <literal>0.0</literal> + and <literal>1.0</literal>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_alignment</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_cell_renderers"> <funcsynopsis> <funcprototype> - <funcdef> <function>get_cell_renderers</function></funcdef> + <funcdef>array <function>get_cell_renderers</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns an arry of all the cell renderers in the column. </shortdesc> <desc> - + <para> + Returns an arry of all the cell renderers in the column, + in no particular order. + </para> </desc> </method> @@ -263,14 +251,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns if the user can click on the header for the column. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the user can click on the + header for the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_clickable</function> </para> - </desc> </method> @@ -282,14 +273,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Return if the column expands to take any available space. </shortdesc> <desc> <para> - See also: + Return <literal>true</literal> if the column expands to take any + available space. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_expand</function> </para> - </desc> </method> @@ -301,14 +295,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the fixed width of the column. </shortdesc> <desc> <para> - See also: + 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. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_fixed_width</function> </para> - </desc> </method> @@ -320,14 +318,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the maximum width in pixels. </shortdesc> <desc> <para> - See also: + Returns the maximum width in pixels of the column, or + <literal>-1</literal> if no maximum width is set. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_max_width</function> </para> - </desc> </method> @@ -339,14 +340,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the minimum width in pixels. </shortdesc> <desc> <para> - See also: + Returns the minimum width in pixels of the tree_column, + or <literal>-1</literal> if no minimum width is set. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_min_width</function> </para> - </desc> </method> @@ -358,14 +362,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column can be reordered by the user. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column can be reordered + by the user. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_reorderable</function> </para> - </desc> </method> @@ -377,33 +384,38 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column can be resized by the user. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column can be resized + by the end user. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_resizable</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_sizing"> <funcsynopsis> <funcprototype> - <funcdef>int <function>get_sizing</function></funcdef> + <funcdef><enumname>GtkTreeViewColumnSizing</enumname> <function>get_sizing</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current sizing policy. </shortdesc> <desc> <para> - See also: + Returns the current sizing policy. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sizing</function> </para> - </desc> </method> @@ -415,14 +427,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the column id that the model sorts on. </shortdesc> <desc> <para> - See also: + Gets the logical <literal>sort_column_id</literal> that the model sorts + on when this column is selected for sorting. Returns <literal>-1</literal> + if this column can't be used for sorting. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sort_column_id</function> </para> - </desc> </method> @@ -434,33 +450,39 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the sort indicator is visible. </shortdesc> <desc> <para> - See also: + Returns if the sort indicator (arrow) is visible. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sort_indicator</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_sort_order"> <funcsynopsis> <funcprototype> - <funcdef>GtkSortType <function>get_sort_order</function></funcdef> + <funcdef><enumname>GtkSortType</enumname> <function>get_sort_order</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the sort indicator direction. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">set_sort_order</function> + Returns the direction of the sort indicator. + </para> + <para> + See also: + <function class="GtkTreeViewColumn">set_sort_order</function>, + <function class="GtkTreeViewColumn">set_sort_indicator</function>, + <function class="GtkTreeViewColumn">get_sort_indicator</function> </para> - </desc> </method> @@ -472,14 +494,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the number of pixels between cell renderers. </shortdesc> <desc> <para> - See also: + Returns the spacing of the column, which is the number + of pixels placed between cell renderers packed into it. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_spacing</function> </para> - </desc> </method> @@ -491,14 +516,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the title of the widget. </shortdesc> <desc> <para> - See also: + Returns the title of the widget. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_title</function> </para> - </desc> </method> @@ -510,33 +537,39 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column is visible. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column is visible. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_visible</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_widget"> <funcsynopsis> <funcprototype> - <funcdef>GtkWidget <function>get_widget</function></funcdef> + <funcdef><classname>GtkWidget</classname> <function>get_widget</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the widget in the column header. </shortdesc> <desc> <para> - See also: + Returns the <classname>GtkWidget</classname> in the button on the + column header. If a custom widget has <emphasis>not</emphasis> been + set then <literal>null</literal> is returned. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_widget</function> </para> - </desc> </method> @@ -548,42 +581,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.pack_end"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>pack_end</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> - <paramdef>bool <parameter><optional>expand = true</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.pack_start"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>pack_start</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> - <paramdef>bool <parameter><optional>expand = true</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - + Returns the current size in pixels. </shortdesc> <desc> - + <para> + Returns the current size of the column in pixels. + </para> </desc> </method> @@ -595,48 +598,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the alignment of the title. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">get_alignment</function> + Sets the alignment of the title or custom widget inside the column + header. The alignment determines its location inside the button + - <literal>0.0</literal> for left, <literal>0.5</literal> for + center, <literal>1.0</literal> for right. </para> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.set_attributes"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>set_attributes</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> <para> - See also: - <function class="GtkTreeViewColumn">clear_attributes</function> + See also: + <function class="GtkTreeViewColumn">get_alignment</function> </para> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.set_cell_data_func"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>set_cell_data_func</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - </desc> </method> @@ -648,14 +622,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the header to be active. </shortdesc> <desc> <para> - See also: + Sets the header to be active if active is <literal>true</literal>. + When the header is active, then it can take keyboard focus, + and can be clicked. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_clickable</function> </para> - </desc> </method> @@ -667,14 +645,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the column to take available extra space. </shortdesc> <desc> <para> - See also: + Sets the column to take available extra space. This space is + shared equally amongst all columns that have the expand set to + <literal>true</literal>. If no column has this option set, then + the last column gets all extra space. By default, every column is + created with this <literal>false</literal>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_expand</function> </para> - </desc> </method> @@ -686,14 +670,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the size of the column in pixels. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">get_fixed_width</function> + Sets the size of the column in pixels. This is meaningful only if + the sizing type is + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_FIXED</optionname>. + 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. + </para> + <para> + See also: + <function class="GtkTreeViewColumn">get_fixed_width</function>, + <function class="GtkTreeViewColumn">set_sizing</function> </para> - </desc> </method> @@ -705,14 +698,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the maximum width. </shortdesc> <desc> <para> - See also: + Sets the maximum width of the column. If + <parameter>max_width</parameter> is <literal>-1</literal>, 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. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_max_width</function> </para> - </desc> </method> @@ -724,14 +723,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the minimum width. </shortdesc> <desc> <para> - See also: + Sets the minimum width of the column. If <parameter>min_width</parameter> + is <literal>-1</literal>, then the minimum width is unset. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_min_width</function> </para> - </desc> </method> @@ -743,14 +745,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set if the column can be moved around. </shortdesc> <desc> <para> - See also: + If reorderable is <literal>true</literal>, then the column can be + reordered by the end user dragging the header. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_reorderable</function> </para> - </desc> </method> @@ -762,14 +767,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set if the column can be resized. </shortdesc> <desc> <para> - See also: + If resizable is <literal>true</literal>, then the user can explicitly + resize the column by grabbing the outer edge of the column button. + If resizable is <literal>true</literal> and sizing mode of the column + is + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_AUTOSIZE</optionname>, + then the sizing mode is changed to + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_GROW_ONLY</optionname>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_resizable</function> </para> - </desc> </method> @@ -777,18 +790,20 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_sizing</function></funcdef> - <paramdef>GtkTreeViewColumnSizing <parameter>type</parameter></paramdef> + <paramdef><enumname>GtkTreeViewColumnSizing</enumname> <parameter>type</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the growth behavior. </shortdesc> <desc> <para> - See also: + Sets the growth behavior of the column to type. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sizing</function> </para> - </desc> </method> @@ -800,14 +815,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set the logical column that this column sorts. </shortdesc> <desc> <para> - See also: + Sets the logical <parameter>sort_column_id</parameter> that this + column sorts on when this column is selected for sorting. + Doing so makes the column header clickable. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_column_id</function> + <function class="GtkTreeViewColumn">set_clickable</function>, </para> - </desc> </method> @@ -819,14 +839,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets an arrow in the header indicating the column is sorted. </shortdesc> <desc> <para> - See also: + Call this function with a setting of <literal>true</literal> to display + an arrow in the header button indicating the column is sorted. + Call + <function class="GtkTreeViewColumn">set_sort_order</function> + to change the direction of the arrow. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_indicator</function> </para> - </desc> </method> @@ -834,18 +860,34 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_sort_order</function></funcdef> - <paramdef>GtkSortType <parameter>order</parameter></paramdef> + <paramdef><enumname>GtkSortType</enumname> <parameter>order</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Changes the appearance of the sort indicator. </shortdesc> <desc> <para> - See also: + Changes the appearance of the sort indicator. + </para> + <para> + This does not actually sort the model. Use + <function class="GtkTreeViewColumn">set_sort_column_id</function> if you + want automatic sorting support. This function is primarily for custom + sorting behavior, and should be used in conjunction with + <function class="GtkTreeSortable">set_sort_column</function> to do that. + For custom models, the mechanism will vary. + </para> + <para> + 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 + <function class="GtkTreeViewColumn">set_sort_indicator</function>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_order</function> </para> - </desc> </method> @@ -857,14 +899,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the number of pixels to place between cell renderers. </shortdesc> <desc> <para> - See also: + Sets the spacing field of the column, which is the number of + pixels to place between cell renderers packed into it. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_spacing</function> </para> - </desc> </method> @@ -876,14 +921,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the title of the column. </shortdesc> <desc> <para> - See also: + Sets the title of the column. If a custom widget has been set, + then this value is ignored. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_title</function> </para> - </desc> </method> @@ -895,14 +943,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the visibility of the column. </shortdesc> <desc> <para> - See also: + Sets the visibility of the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_visible</function> </para> - </desc> </method> @@ -910,54 +960,306 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_widget</function></funcdef> - <paramdef>GtkWidget <parameter>widget</parameter></paramdef> + <paramdef><classname>GtkWidget</classname> <parameter>widget</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the widget in the header. </shortdesc> <desc> <para> - See also: + Sets the widget in the header to be <parameter>widget</parameter>. + If widget is + <literal>null</literal>, then the header button is set with a + <classname>GtkLabel</classname> set to the title of the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_widget</function> </para> - </desc> </method> + </methods> - <method id="gtk.gtktreeviewcolumn.method.reorder"> - <funcsynopsis> - <funcprototype> - <funcdef> <function>reorder</function></funcdef> - <paramdef><parameter>position</parameter></paramdef> - </funcprototype> - </funcsynopsis> + + <properties> + <prop id="gtk.gtktreeviewcolumn.property.alignment" type="rw"> + <propname>alignment</propname> + <proptype>double</proptype> <shortdesc> + X Alignment of the column header text or widget. + </shortdesc> + <desc> + <para> + X Alignment of the column header text or widget. + </para> + <para> + Default: <literal>0</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.clickable" type="rw"> + <propname>clickable</propname> + <proptype>bool</proptype> + <shortdesc> + Whether the header can be clicked. </shortdesc> - <desc> + <desc> + <para> + Whether the header can be clicked. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.expand" type="rw"> + <propname>expand</propname> + <proptype>bool</proptype> + <shortdesc> + Column gets share of extra width allocated to the widget. + </shortdesc> + <desc> + <para> + Column gets share of extra width allocated to the widget. + </para> + <para> + Default: <literal>false</literal> + </para> </desc> - </method> - </methods> + </prop> - <signals> + <prop id="gtk.gtktreeviewcolumn.property.fixed-width" type="rw"> + <propname>fixed-width</propname> + <proptype>int</proptype> + <shortdesc> + Current fixed width of the column. + </shortdesc> + <desc> + <para> + Current fixed width of the column. + </para> + <para> + Default: <literal>1</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.max-width" type="rw"> + <propname>max-width</propname> + <proptype>int</proptype> + <shortdesc> + Maximum allowed width of the column. + </shortdesc> + <desc> + <para> + Maximum allowed width of the column. + </para> + <para> + Default: <literal>-1</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.min-width" type="rw"> + <propname>min-width</propname> + <proptype>int</proptype> + <shortdesc> + Minimum allowed width of the column. + </shortdesc> + <desc> + <para> + Minimum allowed width of the column. + </para> + <para> + Default: <literal>-1</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.reorderable" type="rw"> + <propname>reorderable</propname> + <proptype>bool</proptype> + <shortdesc> + Whether the column can be reordered around the headers. + </shortdesc> + <desc> + <para> + Whether the column can be reordered around the headers. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.resizable" type="rw"> + <propname>resizable</propname> + <proptype>bool</proptype> + <shortdesc> + Column is user-resizable. + </shortdesc> + <desc> + <para> + Column is user-resizable. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sizing" type="rw"> + <propname>sizing</propname> + <proptype><enumname>GtkTreeViewColumnSizing</enumname></proptype> + <shortdesc> + Resize mode of the column. + </shortdesc> + <desc> + <para> + Resize mode of the column. + </para> + <para> + Default: + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_GROW_ONLY</optionname> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sort-indicator" type="rw"> + <propname>sort-indicator</propname> + <proptype>bool</proptype> + <shortdesc> + Whether to show a sort indicator. + </shortdesc> + <desc> + <para> + Whether to show a sort indicator. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sort-order" type="rw"> + <propname>sort-order</propname> + <proptype><enumname>GtkSortType</enumname></proptype> + <shortdesc> + Sort direction the sort indicator should indicate. + </shortdesc> + <desc> + <para> + Sort direction the sort indicator should indicate. + </para> + <para> + Default: <optionname enum="GtkSortType">Gtk::SORT_ASCENDING</optionname> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.spacing" type="rw"> + <propname>spacing</propname> + <proptype>int</proptype> + <shortdesc> + Space which is inserted between cells. + </shortdesc> + <desc> + <para> + Space which is inserted between cells. + </para> + <para> + Default: <literal>0</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.title" type="rw"> + <propname>title</propname> + <proptype>string</proptype> + <shortdesc> + Title to appear in column header. + </shortdesc> + <desc> + <para> + Title to appear in column header. + </para> + <para> + Default: <literal>""</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.visible" type="rw"> + <propname>visible</propname> + <proptype>bool</proptype> + <shortdesc> + Whether to display the column. + </shortdesc> + <desc> + <para> + Whether to display the column. + </para> + <para> + Default: <literal>true</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.widget" type="rw"> + <propname>widget</propname> + <proptype><classname>GtkWidget</classname></proptype> + <shortdesc> + Widget to put in column header button instead of column title. + </shortdesc> + <desc> + <para> + Widget to put in column header button instead of column title. + </para> + <para> + Default: <literal>null</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.width" type="ro"> + <propname>width</propname> + <proptype>int</proptype> + <shortdesc> + Current width of the column. + </shortdesc> + <desc> + <para> + Current width of the column. + </para> + <para> + Default: <literal></literal> + </para> + </desc> + </prop> + </properties> + + + <signals> <signal id="gtk.gtktreeviewcolumn.signal.clicked"> <signalname>clicked</signalname> <funcsynopsis> <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> - <paramdef>GtkTreeViewColumn <parameter>treeviewcolumn</parameter></paramdef> + <paramdef><classname>GtkTreeViewColumn</classname> <parameter>treeviewcolumn</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> + The column header has been clicked. </shortdesc> <desc> - + <para> + The column header has been clicked. + </para> </desc> </signal> - </signals> -</classentry> +</classentry> \ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtkenum.xml?r1=1.18&r2=1.19&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.18 php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.19 --- php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.18 Mon Jul 10 20:30:57 2006 +++ php-gtk-doc/manual/en/reference/gtk/gtkenum.xml Tue Aug 8 19:34:19 2006 @@ -4245,6 +4245,41 @@ </enum> + <enum id="gtk.enum.treeviewcolumnsizing"> + <enumname>GtkTreeViewColumnSizing</enumname> + <desc> + <simpara> + Used by <classname>GtkTreeViewColumn</classname> + <function class="GtkTreeViewColumn">set_sizing</function>. + </simpara> + </desc> + + <enumoption> + <value>0</value> + <optionname>Gtk::GtkTreeViewColumnSizing</optionname> + <shortdesc> + Columns only get bigger in reaction to changes in the model. + </shortdesc> + </enumoption> + + <enumoption> + <value>1</value> + <optionname>Gtk::TREE_VIEW_COLUMN_AUTOSIZE</optionname> + <shortdesc> + Columns resize to be the optimal size everytime the model changes. + </shortdesc> + </enumoption> + + <enumoption> + <value>2</value> + <optionname>Gtk::TREE_VIEW_COLUMN_FIXED</optionname> + <shortdesc> + Columns are a fixed numbers of pixels wide. + </shortdesc> + </enumoption> + </enum> + + <enum id="gtk.enum.treeviewmode"> <enumname>GtkTreeViewMode</enumname> <desc> http://cvs.php.net/viewvc.cgi/php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml?r1=1.9&r2=1.10&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.9 php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.10 --- php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml:1.9 Wed May 17 20:09:18 2006 +++ php-gtk-doc/manual/en/reference/gtk/gtktreeviewcolumn.xml Tue Aug 8 19:34:19 2006 @@ -3,6 +3,7 @@ <classmeta> <classtitle>GtkTreeViewColumn</classtitle> <classparent>GtkObject</classparent> + <implements>GtkCellLayout</implements> <shortdesc> A visible column in a GtkTreeView. </shortdesc> @@ -15,7 +16,6 @@ </classmeta> <constructors> - <constructor id="gtk.gtktreeviewcolumn.constructor"> <funcsynopsis> <funcprototype> @@ -75,55 +75,49 @@ </example> </desc> </constructor> - </constructors> - <methods> - - <method id="gtk.gtktreeviewcolumn.method.add_attribute"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>add_attribute</function></funcdef> - <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> - <paramdef>string <parameter>attribute</parameter></paramdef> - <paramdef>int <parameter>column</parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> + <methods> <method id="gtk.gtktreeviewcolumn.method.cell_get_position"> <funcsynopsis> <funcprototype> - <funcdef>void <function>cell_get_position</function></funcdef> - <paramdef>void</paramdef> + <funcdef>array <function>cell_get_position</function></funcdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns horizontal position and size of a cell in the column. </shortdesc> <desc> - + <para> + Returns the horizontal position and the size of the given cell + in the column. If the cell is not found in the column, + <literal>false</literal> is returned. + </para> </desc> </method> <method id="gtk.gtktreeviewcolumn.method.cell_get_size"> <funcsynopsis> <funcprototype> - <funcdef>void <function>cell_get_size</function></funcdef> - <paramdef>void</paramdef> + <funcdef>array <function>cell_get_size</function></funcdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell_renderer</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the size and offset of the cell. </shortdesc> <desc> - + <para> + Returns the width and height needed to render the column. + This is used primarily by the <classname>GtkTreeView</classname>. + </para> + <para> + The array consists of the following values: + <literal><classname>GdkRectangle</classname> cell_area, + int x_offset, int y_offset, int width, int height</literal> + </para> </desc> </method> @@ -135,10 +129,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If any of the cells in the column is visible. </shortdesc> <desc> - + <para> + Returns <literal>true</literal> if any of the cells packed into the + column are visible. For this to be meaningful, you must first initialize + the cells with + <function class="GtkTreeViewColumn">cell_set_cell_data</function>. + </para> </desc> </method> @@ -146,48 +145,24 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>cell_set_cell_data</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.clear"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.clear_attributes"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>clear_attributes</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell_renderer</parameter></paramdef> + <paramdef><classname>GtkTreeModel</classname> <parameter>tree_model</parameter></paramdef> + <paramdef><classname>GtkTreeIter</classname> <parameter>iter</parameter></paramdef> + <paramdef>bool <parameter>is_expander</parameter></paramdef> + <paramdef>bool <parameter>is_expanded</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets some cell data like model, iter, expander and expanded. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">set_attributes</function> + Sets the cell renderer based on the <parameter>tree_model</parameter> and + <parameter>iter</parameter>. That is, for every attribute mapping in + <parameter>tree_column</parameter>, it will get a value from the set column + on the <parameter>iter</parameter>, and use that value to set the + attribute on the cell renderer. This is used primarily by the + <classname>GtkTreeView</classname>. </para> - </desc> </method> @@ -199,10 +174,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - - </shortdesc> + Emits the "clicked" signal on the column. + </shortdesc> <desc> - + <para> + Emits the "clicked" signal on the column. + This function will only work if the column is clickable. + </para> </desc> </method> @@ -210,14 +188,17 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>focus_cell</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> + <paramdef><classname>GtkCellRenderer</classname> <parameter>cell</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current keyboard focus to be at the given cell. </shortdesc> <desc> - + <para> + Sets the current keyboard focus to be at cell, if the column contains + 2 or more editable and activatable cells. + </para> </desc> </method> @@ -229,29 +210,36 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current x alignment of the column. </shortdesc> <desc> <para> - See also: + Returns the current x alignment of the column. + This value can range between <literal>0.0</literal> + and <literal>1.0</literal>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_alignment</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_cell_renderers"> <funcsynopsis> <funcprototype> - <funcdef> <function>get_cell_renderers</function></funcdef> + <funcdef>array <function>get_cell_renderers</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns an arry of all the cell renderers in the column. </shortdesc> <desc> - + <para> + Returns an arry of all the cell renderers in the column, + in no particular order. + </para> </desc> </method> @@ -263,14 +251,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns if the user can click on the header for the column. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the user can click on the + header for the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_clickable</function> </para> - </desc> </method> @@ -282,14 +273,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Return if the column expands to take any available space. </shortdesc> <desc> <para> - See also: + Return <literal>true</literal> if the column expands to take any + available space. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_expand</function> </para> - </desc> </method> @@ -301,14 +295,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the fixed width of the column. </shortdesc> <desc> <para> - See also: + 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. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_fixed_width</function> </para> - </desc> </method> @@ -320,14 +318,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the maximum width in pixels. </shortdesc> <desc> <para> - See also: + Returns the maximum width in pixels of the column, or + <literal>-1</literal> if no maximum width is set. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_max_width</function> </para> - </desc> </method> @@ -339,14 +340,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the minimum width in pixels. </shortdesc> <desc> <para> - See also: + Returns the minimum width in pixels of the tree_column, + or <literal>-1</literal> if no minimum width is set. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_min_width</function> </para> - </desc> </method> @@ -358,14 +362,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column can be reordered by the user. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column can be reordered + by the user. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_reorderable</function> </para> - </desc> </method> @@ -377,33 +384,38 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column can be resized by the user. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column can be resized + by the end user. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_resizable</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_sizing"> <funcsynopsis> <funcprototype> - <funcdef>int <function>get_sizing</function></funcdef> + <funcdef><enumname>GtkTreeViewColumnSizing</enumname> <function>get_sizing</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current sizing policy. </shortdesc> <desc> <para> - See also: + Returns the current sizing policy. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sizing</function> </para> - </desc> </method> @@ -415,14 +427,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the column id that the model sorts on. </shortdesc> <desc> <para> - See also: + Gets the logical <literal>sort_column_id</literal> that the model sorts + on when this column is selected for sorting. Returns <literal>-1</literal> + if this column can't be used for sorting. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sort_column_id</function> </para> - </desc> </method> @@ -434,33 +450,39 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the sort indicator is visible. </shortdesc> <desc> <para> - See also: + Returns if the sort indicator (arrow) is visible. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_sort_indicator</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_sort_order"> <funcsynopsis> <funcprototype> - <funcdef>GtkSortType <function>get_sort_order</function></funcdef> + <funcdef><enumname>GtkSortType</enumname> <function>get_sort_order</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the sort indicator direction. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">set_sort_order</function> + Returns the direction of the sort indicator. + </para> + <para> + See also: + <function class="GtkTreeViewColumn">set_sort_order</function>, + <function class="GtkTreeViewColumn">set_sort_indicator</function>, + <function class="GtkTreeViewColumn">get_sort_indicator</function> </para> - </desc> </method> @@ -472,14 +494,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the number of pixels between cell renderers. </shortdesc> <desc> <para> - See also: + Returns the spacing of the column, which is the number + of pixels placed between cell renderers packed into it. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_spacing</function> </para> - </desc> </method> @@ -491,14 +516,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the title of the widget. </shortdesc> <desc> <para> - See also: + Returns the title of the widget. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_title</function> </para> - </desc> </method> @@ -510,33 +537,39 @@ </funcprototype> </funcsynopsis> <shortdesc> - + If the column is visible. </shortdesc> <desc> <para> - See also: + Returns <literal>true</literal> if the column is visible. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_visible</function> </para> - </desc> </method> <method id="gtk.gtktreeviewcolumn.method.get_widget"> <funcsynopsis> <funcprototype> - <funcdef>GtkWidget <function>get_widget</function></funcdef> + <funcdef><classname>GtkWidget</classname> <function>get_widget</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Returns the widget in the column header. </shortdesc> <desc> <para> - See also: + Returns the <classname>GtkWidget</classname> in the button on the + column header. If a custom widget has <emphasis>not</emphasis> been + set then <literal>null</literal> is returned. + </para> + <para> + See also: <function class="GtkTreeViewColumn">set_widget</function> </para> - </desc> </method> @@ -548,42 +581,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.pack_end"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>pack_end</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> - <paramdef>bool <parameter><optional>expand = true</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.pack_start"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>pack_start</function></funcdef> - <paramdef>GtkCellRenderer <parameter>cell</parameter></paramdef> - <paramdef>bool <parameter><optional>expand = true</optional></parameter></paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - + Returns the current size in pixels. </shortdesc> <desc> - + <para> + Returns the current size of the column in pixels. + </para> </desc> </method> @@ -595,48 +598,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the alignment of the title. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">get_alignment</function> + Sets the alignment of the title or custom widget inside the column + header. The alignment determines its location inside the button + - <literal>0.0</literal> for left, <literal>0.5</literal> for + center, <literal>1.0</literal> for right. </para> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.set_attributes"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>set_attributes</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> <para> - See also: - <function class="GtkTreeViewColumn">clear_attributes</function> + See also: + <function class="GtkTreeViewColumn">get_alignment</function> </para> - - </desc> - </method> - - <method id="gtk.gtktreeviewcolumn.method.set_cell_data_func"> - <funcsynopsis> - <funcprototype> - <funcdef>void <function>set_cell_data_func</function></funcdef> - <paramdef>void</paramdef> - </funcprototype> - </funcsynopsis> - <shortdesc> - - </shortdesc> - <desc> - </desc> </method> @@ -648,14 +622,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the header to be active. </shortdesc> <desc> <para> - See also: + Sets the header to be active if active is <literal>true</literal>. + When the header is active, then it can take keyboard focus, + and can be clicked. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_clickable</function> </para> - </desc> </method> @@ -667,14 +645,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the column to take available extra space. </shortdesc> <desc> <para> - See also: + Sets the column to take available extra space. This space is + shared equally amongst all columns that have the expand set to + <literal>true</literal>. If no column has this option set, then + the last column gets all extra space. By default, every column is + created with this <literal>false</literal>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_expand</function> </para> - </desc> </method> @@ -686,14 +670,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the size of the column in pixels. </shortdesc> <desc> <para> - See also: - <function class="GtkTreeViewColumn">get_fixed_width</function> + Sets the size of the column in pixels. This is meaningful only if + the sizing type is + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_FIXED</optionname>. + 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. + </para> + <para> + See also: + <function class="GtkTreeViewColumn">get_fixed_width</function>, + <function class="GtkTreeViewColumn">set_sizing</function> </para> - </desc> </method> @@ -705,14 +698,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the maximum width. </shortdesc> <desc> <para> - See also: + Sets the maximum width of the column. If + <parameter>max_width</parameter> is <literal>-1</literal>, 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. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_max_width</function> </para> - </desc> </method> @@ -724,14 +723,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the minimum width. </shortdesc> <desc> <para> - See also: + Sets the minimum width of the column. If <parameter>min_width</parameter> + is <literal>-1</literal>, then the minimum width is unset. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_min_width</function> </para> - </desc> </method> @@ -743,14 +745,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set if the column can be moved around. </shortdesc> <desc> <para> - See also: + If reorderable is <literal>true</literal>, then the column can be + reordered by the end user dragging the header. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_reorderable</function> </para> - </desc> </method> @@ -762,14 +767,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set if the column can be resized. </shortdesc> <desc> <para> - See also: + If resizable is <literal>true</literal>, then the user can explicitly + resize the column by grabbing the outer edge of the column button. + If resizable is <literal>true</literal> and sizing mode of the column + is + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_AUTOSIZE</optionname>, + then the sizing mode is changed to + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_GROW_ONLY</optionname>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_resizable</function> </para> - </desc> </method> @@ -777,18 +790,20 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_sizing</function></funcdef> - <paramdef>GtkTreeViewColumnSizing <parameter>type</parameter></paramdef> + <paramdef><enumname>GtkTreeViewColumnSizing</enumname> <parameter>type</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the growth behavior. </shortdesc> <desc> <para> - See also: + Sets the growth behavior of the column to type. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sizing</function> </para> - </desc> </method> @@ -800,14 +815,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Set the logical column that this column sorts. </shortdesc> <desc> <para> - See also: + Sets the logical <parameter>sort_column_id</parameter> that this + column sorts on when this column is selected for sorting. + Doing so makes the column header clickable. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_column_id</function> + <function class="GtkTreeViewColumn">set_clickable</function>, </para> - </desc> </method> @@ -819,14 +839,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets an arrow in the header indicating the column is sorted. </shortdesc> <desc> <para> - See also: + Call this function with a setting of <literal>true</literal> to display + an arrow in the header button indicating the column is sorted. + Call + <function class="GtkTreeViewColumn">set_sort_order</function> + to change the direction of the arrow. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_indicator</function> </para> - </desc> </method> @@ -834,18 +860,34 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_sort_order</function></funcdef> - <paramdef>GtkSortType <parameter>order</parameter></paramdef> + <paramdef><enumname>GtkSortType</enumname> <parameter>order</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Changes the appearance of the sort indicator. </shortdesc> <desc> <para> - See also: + Changes the appearance of the sort indicator. + </para> + <para> + This does not actually sort the model. Use + <function class="GtkTreeViewColumn">set_sort_column_id</function> if you + want automatic sorting support. This function is primarily for custom + sorting behavior, and should be used in conjunction with + <function class="GtkTreeSortable">set_sort_column</function> to do that. + For custom models, the mechanism will vary. + </para> + <para> + 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 + <function class="GtkTreeViewColumn">set_sort_indicator</function>. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_sort_order</function> </para> - </desc> </method> @@ -857,14 +899,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the number of pixels to place between cell renderers. </shortdesc> <desc> <para> - See also: + Sets the spacing field of the column, which is the number of + pixels to place between cell renderers packed into it. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_spacing</function> </para> - </desc> </method> @@ -876,14 +921,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the title of the column. </shortdesc> <desc> <para> - See also: + Sets the title of the column. If a custom widget has been set, + then this value is ignored. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_title</function> </para> - </desc> </method> @@ -895,14 +943,16 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the visibility of the column. </shortdesc> <desc> <para> - See also: + Sets the visibility of the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_visible</function> </para> - </desc> </method> @@ -910,54 +960,306 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_widget</function></funcdef> - <paramdef>GtkWidget <parameter>widget</parameter></paramdef> + <paramdef><classname>GtkWidget</classname> <parameter>widget</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets the widget in the header. </shortdesc> <desc> <para> - See also: + Sets the widget in the header to be <parameter>widget</parameter>. + If widget is + <literal>null</literal>, then the header button is set with a + <classname>GtkLabel</classname> set to the title of the column. + </para> + <para> + See also: <function class="GtkTreeViewColumn">get_widget</function> </para> - </desc> </method> + </methods> - <method id="gtk.gtktreeviewcolumn.method.reorder"> - <funcsynopsis> - <funcprototype> - <funcdef> <function>reorder</function></funcdef> - <paramdef><parameter>position</parameter></paramdef> - </funcprototype> - </funcsynopsis> + + <properties> + <prop id="gtk.gtktreeviewcolumn.property.alignment" type="rw"> + <propname>alignment</propname> + <proptype>double</proptype> <shortdesc> + X Alignment of the column header text or widget. + </shortdesc> + <desc> + <para> + X Alignment of the column header text or widget. + </para> + <para> + Default: <literal>0</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.clickable" type="rw"> + <propname>clickable</propname> + <proptype>bool</proptype> + <shortdesc> + Whether the header can be clicked. </shortdesc> - <desc> + <desc> + <para> + Whether the header can be clicked. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.expand" type="rw"> + <propname>expand</propname> + <proptype>bool</proptype> + <shortdesc> + Column gets share of extra width allocated to the widget. + </shortdesc> + <desc> + <para> + Column gets share of extra width allocated to the widget. + </para> + <para> + Default: <literal>false</literal> + </para> </desc> - </method> - </methods> + </prop> - <signals> + <prop id="gtk.gtktreeviewcolumn.property.fixed-width" type="rw"> + <propname>fixed-width</propname> + <proptype>int</proptype> + <shortdesc> + Current fixed width of the column. + </shortdesc> + <desc> + <para> + Current fixed width of the column. + </para> + <para> + Default: <literal>1</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.max-width" type="rw"> + <propname>max-width</propname> + <proptype>int</proptype> + <shortdesc> + Maximum allowed width of the column. + </shortdesc> + <desc> + <para> + Maximum allowed width of the column. + </para> + <para> + Default: <literal>-1</literal> + </para> + </desc> + </prop> + <prop id="gtk.gtktreeviewcolumn.property.min-width" type="rw"> + <propname>min-width</propname> + <proptype>int</proptype> + <shortdesc> + Minimum allowed width of the column. + </shortdesc> + <desc> + <para> + Minimum allowed width of the column. + </para> + <para> + Default: <literal>-1</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.reorderable" type="rw"> + <propname>reorderable</propname> + <proptype>bool</proptype> + <shortdesc> + Whether the column can be reordered around the headers. + </shortdesc> + <desc> + <para> + Whether the column can be reordered around the headers. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.resizable" type="rw"> + <propname>resizable</propname> + <proptype>bool</proptype> + <shortdesc> + Column is user-resizable. + </shortdesc> + <desc> + <para> + Column is user-resizable. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sizing" type="rw"> + <propname>sizing</propname> + <proptype><enumname>GtkTreeViewColumnSizing</enumname></proptype> + <shortdesc> + Resize mode of the column. + </shortdesc> + <desc> + <para> + Resize mode of the column. + </para> + <para> + Default: + <optionname enum="GtkTreeViewColumnSizing">Gtk::TREE_VIEW_COLUMN_GROW_ONLY</optionname> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sort-indicator" type="rw"> + <propname>sort-indicator</propname> + <proptype>bool</proptype> + <shortdesc> + Whether to show a sort indicator. + </shortdesc> + <desc> + <para> + Whether to show a sort indicator. + </para> + <para> + Default: <literal>false</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.sort-order" type="rw"> + <propname>sort-order</propname> + <proptype><enumname>GtkSortType</enumname></proptype> + <shortdesc> + Sort direction the sort indicator should indicate. + </shortdesc> + <desc> + <para> + Sort direction the sort indicator should indicate. + </para> + <para> + Default: <optionname enum="GtkSortType">Gtk::SORT_ASCENDING</optionname> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.spacing" type="rw"> + <propname>spacing</propname> + <proptype>int</proptype> + <shortdesc> + Space which is inserted between cells. + </shortdesc> + <desc> + <para> + Space which is inserted between cells. + </para> + <para> + Default: <literal>0</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.title" type="rw"> + <propname>title</propname> + <proptype>string</proptype> + <shortdesc> + Title to appear in column header. + </shortdesc> + <desc> + <para> + Title to appear in column header. + </para> + <para> + Default: <literal>""</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.visible" type="rw"> + <propname>visible</propname> + <proptype>bool</proptype> + <shortdesc> + Whether to display the column. + </shortdesc> + <desc> + <para> + Whether to display the column. + </para> + <para> + Default: <literal>true</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.widget" type="rw"> + <propname>widget</propname> + <proptype><classname>GtkWidget</classname></proptype> + <shortdesc> + Widget to put in column header button instead of column title. + </shortdesc> + <desc> + <para> + Widget to put in column header button instead of column title. + </para> + <para> + Default: <literal>null</literal> + </para> + </desc> + </prop> + + <prop id="gtk.gtktreeviewcolumn.property.width" type="ro"> + <propname>width</propname> + <proptype>int</proptype> + <shortdesc> + Current width of the column. + </shortdesc> + <desc> + <para> + Current width of the column. + </para> + <para> + Default: <literal></literal> + </para> + </desc> + </prop> + </properties> + + + <signals> <signal id="gtk.gtktreeviewcolumn.signal.clicked"> <signalname>clicked</signalname> <funcsynopsis> <funcprototype> <funcdef>void <cbfunction>callback</cbfunction></funcdef> - <paramdef>GtkTreeViewColumn <parameter>treeviewcolumn</parameter></paramdef> + <paramdef><classname>GtkTreeViewColumn</classname> <parameter>treeviewcolumn</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> + The column header has been clicked. </shortdesc> <desc> - + <para> + The column header has been clicked. + </para> </desc> </signal> - </signals> -</classentry> +</classentry> \ No newline at end of file