⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atktable.c

📁 linux下图形库开发包atk-1.4.0.tar.gz
💻 C
📖 第 1 页 / 共 2 页
字号:
                             gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), 0);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_row_extent_at)    return (iface->get_row_extent_at) (table, row, column);  else    return 0;}/** * atk_table_get_row_header: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in the table * * Gets the row header of a specified row in an accessible table. * * Returns: a AtkObject* representing the specified row header, or * %NULL if value does not implement this interface. **/AtkObject*atk_table_get_row_header (AtkTable *table, gint row){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), NULL);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_row_header)    return (iface->get_row_header) (table, row);  else    return NULL;}/** * atk_table_get_summary: * @table: a GObject instance that implements AtkTableIface * * Gets the summary description of the table. * * Returns: a AtkObject* representing a summary description of the table, * or zero if value does not implement this interface. **/AtkObject*atk_table_get_summary (AtkTable *table){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), NULL);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_summary)    return (iface->get_summary) (table);  else    return NULL;}/** * atk_table_get_selected_rows: * @table: a GObject instance that implements AtkTableIface * @selected: a #gint** that is to contain the selected row numbers * * Gets the selected rows of the table by initializing **selected with  * the selected row numbers. This array should be freed by the caller. * * Returns: a gint representing the number of selected rows, * or zero if value does not implement this interface. **/gintatk_table_get_selected_rows (AtkTable *table, gint **selected){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), 0);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_selected_rows)    return (iface->get_selected_rows) (table, selected);  else    return 0;}/** * atk_table_get_selected_columns: * @table: a GObject instance that implements AtkTableIface * @selected: a #gint** that is to contain the selected columns numbers * * Gets the selected columns of the table by initializing **selected with  * the selected column numbers. This array should be freed by the caller. * * Returns: a gint representing the number of selected columns, * or %0 if value does not implement this interface. **/gint atk_table_get_selected_columns (AtkTable *table, gint **selected){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), 0);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_selected_columns)    return (iface->get_selected_columns) (table, selected);  else    return 0;}/** * atk_table_is_column_selected: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * * Gets a boolean value indicating whether the specified @column * is selected * * Returns: a gboolean representing if the column is selected, or 0 * if value does not implement this interface. **/gbooleanatk_table_is_column_selected (AtkTable *table,                              gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->is_column_selected)    return (iface->is_column_selected) (table, column);  else    return FALSE;}/** * atk_table_is_row_selected: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * * Gets a boolean value indicating whether the specified @row * is selected * * Returns: a gboolean representing if the row is selected, or 0 * if value does not implement this interface. **/gbooleanatk_table_is_row_selected (AtkTable *table,                           gint     row){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->is_row_selected)    return (iface->is_row_selected) (table, row);  else    return FALSE;}/** * atk_table_is_selected: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * @column: a #gint representing a column in @table * * Gets a boolean value indicating whether the accessible object * at the specified @row and @column is selected * * Returns: a gboolean representing if the cell is selected, or 0 * if value does not implement this interface. **/gbooleanatk_table_is_selected (AtkTable *table,                       gint     row,                       gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->is_selected)    return (iface->is_selected) (table, row, column);  else    return FALSE;}/** * atk_table_add_row_selection: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * * Adds the specified @row to the selection.  * * Returns: a gboolean representing if row was successfully added to selection, * or 0 if value does not implement this interface. **/gbooleanatk_table_add_row_selection (AtkTable *table,                       		 gint     row){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->add_row_selection)    return (iface->add_row_selection) (table, row);  else    return FALSE;}/** * atk_table_remove_row_selection: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * * Removes the specified @row from the selection.  * * Returns: a gboolean representing if the row was successfully removed from * the selection, or 0 if value does not implement this interface. **/gbooleanatk_table_remove_row_selection (AtkTable *table,                       		    gint     row){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->remove_row_selection)    return (iface->remove_row_selection) (table, row);  else    return FALSE;}/** * atk_table_add_column_selection: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * * Adds the specified @column to the selection.  * * Returns: a gboolean representing if the column was successfully added to  * the selection, or 0 if value does not implement this interface. **/gbooleanatk_table_add_column_selection (AtkTable *table,                       		    gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->add_column_selection)    return (iface->add_column_selection) (table, column);  else    return FALSE;}/** * atk_table_remove_column_selection: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * * Adds the specified @column to the selection.  * * Returns: a gboolean representing if the column was successfully removed from * the selection, or 0 if value does not implement this interface. **/gbooleanatk_table_remove_column_selection (AtkTable *table,                       			   gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), FALSE);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->remove_column_selection)    return (iface->remove_column_selection) (table, column);  else    return FALSE;}/** * atk_table_set_caption: * @table: a GObject instance that implements AtkTableIface * @caption: a #AtkObject representing the caption to set for @table * * Sets the caption for the table. **/voidatk_table_set_caption (AtkTable       *table,                       AtkObject      *caption){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_caption)    (iface->set_caption) (table, caption);}/** * atk_table_set_column_description: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * @description: a #gchar representing the description text * to set for the specified @column of the @table * * Sets the description text for the specified @column of the @table. **/voidatk_table_set_column_description (AtkTable       *table,                                  gint           column,                                  const gchar    *description){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_column_description)    (iface->set_column_description) (table, column, description);}/** * atk_table_set_column_header: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * @header: an #AtkTable * * Sets the specified column header to @header. **/voidatk_table_set_column_header (AtkTable  *table,                             gint      column,                             AtkObject *header){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_column_header)    (iface->set_column_header) (table, column, header);}/** * atk_table_set_row_description: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * @description: a #gchar representing the description text * to set for the specified @row of @table * * Sets the description text for the specified @row of @table. **/voidatk_table_set_row_description (AtkTable       *table,                               gint           row,                               const gchar    *description){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_row_description)    (iface->set_row_description) (table, row, description);}/** * atk_table_set_row_header: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * @header: an #AtkTable  * * Sets the specified row header to @header. **/voidatk_table_set_row_header (AtkTable  *table,                          gint      row,                          AtkObject *header){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_row_header)    (iface->set_row_header) (table, row, header);}/** * atk_table_set_summary: * @table: a GObject instance that implements AtkTableIface * @accessible: an #AtkObject representing the summary description * to set for @table * * Sets the summary description of the table. **/voidatk_table_set_summary (AtkTable       *table,                       AtkObject      *accessible){  AtkTableIface *iface;  g_return_if_fail (ATK_IS_TABLE (table));  iface = ATK_TABLE_GET_IFACE (table);  if (iface->set_summary)    (iface->set_summary) (table, accessible);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -