📄 atktable.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title>AtkTable</title><meta name="generator" content="DocBook XSL Stylesheets V1.48"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css"> .synopsis, .classsynopsis { background: #eeeeee; border: solid 1px #aaaaaa; padding: 0.5em; } .programlisting { background: #eeeeff; border: solid 1px #aaaaff; padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .navigation { background: #ffeeee; border: solid 1px #ffaaaa; margin-top: 0.5em; margin-bottom: 0.5em; } .navigation a { color: #770000; } .navigation a:visited { color: #550000; } .navigation .title { font-size: 200%; } </style><link rel="home" href="index.html" title="ATK Library Reference Manual"><link rel="up" href="atk.html" title="ATK Library"><link rel="previous" href="AtkStreamableContent.html" title="AtkStreamableContent"><link rel="next" href="AtkText.html" title="AtkText"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="AtkStreamableContent.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="atk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">ATK Library Reference Manual</th><td><a accesskey="n" href="AtkText.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry"><a name="AtkTable"></a><div class="titlepage"></div><div class="refnamediv"><h2>AtkTable</h2><p>AtkTable — The ATK interface implemented for UI components which contain tabular orrow/column information.</p></div><div class="refsynopsisdiv"><h2><h1 class="title"><a name="id293611"></a>Synopsis</h1></h2><pre class="synopsis">struct <a href="AtkTable.html#AtkTable-struct">AtkTable</a>;<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkTable.html#atk-table-ref-at">atk_table_ref_at</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);gint <a href="AtkTable.html#atk-table-get-index-at">atk_table_get_index_at</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);gint <a href="AtkTable.html#atk-table-get-column-at-index">atk_table_get_column_at_index</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint index_);gint <a href="AtkTable.html#atk-table-get-row-at-index">atk_table_get_row_at_index</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint index_);gint <a href="AtkTable.html#atk-table-get-n-columns">atk_table_get_n_columns</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table);gint <a href="AtkTable.html#atk-table-get-n-rows">atk_table_get_n_rows</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table);gint <a href="AtkTable.html#atk-table-get-column-extent-at">atk_table_get_column_extent_at</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);gint <a href="AtkTable.html#atk-table-get-row-extent-at">atk_table_get_row_extent_at</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkTable.html#atk-table-get-caption">atk_table_get_caption</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table);G_CONST_RETURN gchar* <a href="AtkTable.html#atk-table-get-column-description">atk_table_get_column_description</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column);G_CONST_RETURN gchar* <a href="AtkTable.html#atk-table-get-row-description">atk_table_get_row_description</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row);<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkTable.html#atk-table-get-column-header">atk_table_get_column_header</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column);<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkTable.html#atk-table-get-row-header">atk_table_get_row_header</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row);<a href="AtkObject.html" title="AtkObject">AtkObject</a>* <a href="AtkTable.html#atk-table-get-summary">atk_table_get_summary</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table);void <a href="AtkTable.html#atk-table-set-caption">atk_table_set_caption</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, <a href="AtkObject.html" title="AtkObject">AtkObject</a> *caption);void <a href="AtkTable.html#atk-table-set-row-description">atk_table_set_row_description</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, const gchar *description);void <a href="AtkTable.html#atk-table-set-column-description">atk_table_set_column_description</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column, const gchar *description);void <a href="AtkTable.html#atk-table-set-row-header">atk_table_set_row_header</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, <a href="AtkObject.html" title="AtkObject">AtkObject</a> *header);void <a href="AtkTable.html#atk-table-set-column-header">atk_table_set_column_header</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column, <a href="AtkObject.html" title="AtkObject">AtkObject</a> *header);void <a href="AtkTable.html#atk-table-set-summary">atk_table_set_summary</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, <a href="AtkObject.html" title="AtkObject">AtkObject</a> *accessible);gint <a href="AtkTable.html#atk-table-get-selected-columns">atk_table_get_selected_columns</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint **selected);gint <a href="AtkTable.html#atk-table-get-selected-rows">atk_table_get_selected_rows</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint **selected);gboolean <a href="AtkTable.html#atk-table-is-column-selected">atk_table_is_column_selected</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column);gboolean <a href="AtkTable.html#atk-table-is-row-selected">atk_table_is_row_selected</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row);gboolean <a href="AtkTable.html#atk-table-is-selected">atk_table_is_selected</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);gboolean <a href="AtkTable.html#atk-table-add-column-selection">atk_table_add_column_selection</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column);gboolean <a href="AtkTable.html#atk-table-add-row-selection">atk_table_add_row_selection</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row);gboolean <a href="AtkTable.html#atk-table-remove-column-selection">atk_table_remove_column_selection</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint column);gboolean <a href="AtkTable.html#atk-table-remove-row-selection">atk_table_remove_row_selection</a> (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row);</pre></div><div class="refsect1"><h2>Object Hierarchy</h2><pre class="synopsis"> GInterface +----AtkTable</pre></div><div class="refsect1"><h2>Known Implementations</h2><p>AtkTable is implemented by <a href="AtkNoOpObject.html" title="AtkNoOpObject">AtkNoOpObject</a>.</p></div><div class="refsect1"><h2>Signal Prototypes</h2><pre class="synopsis">"<a href="AtkTable.html#AtkTable-column-deleted">column-deleted</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gint arg1, gint arg2, gpointer user_data);"<a href="AtkTable.html#AtkTable-column-inserted">column-inserted</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gint arg1, gint arg2, gpointer user_data);"<a href="AtkTable.html#AtkTable-column-reordered">column-reordered</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gpointer user_data);"<a href="AtkTable.html#AtkTable-model-changed">model-changed</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gpointer user_data);"<a href="AtkTable.html#AtkTable-row-deleted">row-deleted</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gint arg1, gint arg2, gpointer user_data);"<a href="AtkTable.html#AtkTable-row-inserted">row-inserted</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gint arg1, gint arg2, gpointer user_data);"<a href="AtkTable.html#AtkTable-row-reordered">row-reordered</a>" void user_function (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *atktable, gpointer user_data);</pre></div><div class="refsect1"><h2>Description</h2><p><a href="AtkTable.html" title="AtkTable">AtkTable</a> should be implemented by components which present elementsordered via rows and columns. It may also be used to presenttree-structured information if the nodes of the trees can be said tocontain multiple "columns". Individual elements of an <a href="AtkTable.html" title="AtkTable">AtkTable</a> aretypically referred to as "cells", and these cells are exposed by<a href="AtkTable.html" title="AtkTable">AtkTable</a> as child AtkObjects of the <a href="AtkTable.html" title="AtkTable">AtkTable</a>. Both row/column andchild-index-based access to these children is provided.</p><p>Children of <a href="AtkTable.html" title="AtkTable">AtkTable</a> are frequently "lightweight" objects, that is,they may not have backing widgets in the host UI toolkit. They aretherefore often transient.</p><p>Since tables are often very complex, <a href="AtkTable.html" title="AtkTable">AtkTable</a> includes provision foroffering simplified summary information, as well as row and columnheaders and captions. Headers and captions are AtkObjects which mayimplement other interfaces (<a href="AtkText.html" title="AtkText">AtkText</a>, <a href="AtkImage.html" title="AtkImage">AtkImage</a>, etc.) as appropriate.<a href="AtkTable.html" title="AtkTable">AtkTable</a> summaries may themselves be (simplified) AtkTables, etc.</p></div><div class="refsect1"><h2>Details</h2><div class="refsect2"><h3><a name="AtkTable-struct"></a>struct AtkTable</h3><a class="indexterm" name="id296134"></a><pre class="programlisting">struct AtkTable;</pre><p>The AtkTable structure does not contain any fields.</p></div><hr><div class="refsect2"><h3><a name="atk-table-ref-at"></a>atk_table_ref_at ()</h3><a class="indexterm" name="id296161"></a><pre class="programlisting"><a href="AtkObject.html" title="AtkObject">AtkObject</a>* atk_table_ref_at (<a href="AtkTable.html" title="AtkTable">AtkTable</a> *table, gint row, gint column);</pre><p>Get a reference to the table cell at <i><tt>row</tt></i>, <i><tt>column</tt></i>.</p><p></p><div class="variablelist"><table border="0"><col align="left"><tbody><tr><td><span class="term"><i><tt>table</tt></i>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -