您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ ATK_IS_TABLE函数代码示例

51自学网 2021-06-01 19:38:26
  C++
这篇教程C++ ATK_IS_TABLE函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中ATK_IS_TABLE函数的典型用法代码示例。如果您正苦于以下问题:C++ ATK_IS_TABLE函数的具体用法?C++ ATK_IS_TABLE怎么用?C++ ATK_IS_TABLE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了ATK_IS_TABLE函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: impl_GetRowAtIndex

static DBusMessage *impl_GetRowAtIndex (DBusConnection * bus, DBusMessage * message,                    void *user_data){  AtkTable *table = (AtkTable *) user_data;  dbus_int32_t index;  dbus_int32_t row;  DBusError error;  DBusMessage *reply;  g_return_val_if_fail (ATK_IS_TABLE (user_data),                        droute_not_yet_handled_error (message));  dbus_error_init (&error);  if (!dbus_message_get_args      (message, &error, DBUS_TYPE_INT32, &index, DBUS_TYPE_INVALID))    {      return droute_invalid_arguments_error (message);    }  row = atk_table_get_row_at_index (table, index);  reply = dbus_message_new_method_return (message);  if (reply)    {      dbus_message_append_args (reply, DBUS_TYPE_INT32, &row,                                DBUS_TYPE_INVALID);    }  return reply;}
开发者ID:tbsaunde,项目名称:at-spi2-atk,代码行数:27,


示例2: impl_get_NColumns

static dbus_bool_timpl_get_NColumns (DBusMessageIter * iter, void *user_data){  AtkTable *table = (AtkTable *) user_data;  g_return_val_if_fail (ATK_IS_TABLE (user_data), FALSE);  return droute_return_v_int32 (iter, atk_table_get_n_columns (table));}
开发者ID:tbsaunde,项目名称:at-spi2-atk,代码行数:7,


示例3: impl_GetSelectedColumns

static DBusMessage *impl_GetSelectedColumns (DBusConnection * bus, DBusMessage * message,                         void *user_data){  AtkTable *table = (AtkTable *) user_data;  gint *selected_columns = NULL;  gint count;  DBusMessage *reply;  g_return_val_if_fail (ATK_IS_TABLE (user_data),                        droute_not_yet_handled_error (message));  count = atk_table_get_selected_columns (table, &selected_columns);  if (!selected_columns)    count = 0;  reply = dbus_message_new_method_return (message);  if (reply)    {      /* tbd - figure out if this is safe for a 0-length array */      dbus_message_append_args (reply, DBUS_TYPE_ARRAY, DBUS_TYPE_INT32,                                &selected_columns, count, DBUS_TYPE_INVALID);    }  if (selected_columns)    g_free (selected_columns);  return reply;}
开发者ID:tbsaunde,项目名称:at-spi2-atk,代码行数:25,


示例4: impl_GetColumnExtentAt

static DBusMessage *impl_GetColumnExtentAt (DBusConnection * bus, DBusMessage * message,                        void *user_data){  AtkTable *table = (AtkTable *) user_data;  dbus_int32_t row, column;  dbus_int32_t extent;  DBusError error;  DBusMessage *reply;  g_return_val_if_fail (ATK_IS_TABLE (user_data),                        droute_not_yet_handled_error (message));  dbus_error_init (&error);  if (!dbus_message_get_args      (message, &error, DBUS_TYPE_INT32, &row, DBUS_TYPE_INT32, &column,       DBUS_TYPE_INVALID))    {      return droute_invalid_arguments_error (message);    }  extent = atk_table_get_column_extent_at (table, row, column);  reply = dbus_message_new_method_return (message);  if (reply)    {      dbus_message_append_args (reply, DBUS_TYPE_INT32, &extent,                                DBUS_TYPE_INVALID);    }  return reply;}
开发者ID:tbsaunde,项目名称:at-spi2-atk,代码行数:28,


示例5: impl_GetColumnDescription

static DBusMessage *impl_GetColumnDescription (DBusConnection * bus, DBusMessage * message,                           void *user_data){  AtkTable *table = (AtkTable *) user_data;  dbus_int32_t column;  const char *description;  DBusError error;  DBusMessage *reply;  g_return_val_if_fail (ATK_IS_TABLE (user_data),                        droute_not_yet_handled_error (message));  dbus_error_init (&error);  if (!dbus_message_get_args      (message, &error, DBUS_TYPE_INT32, &column, DBUS_TYPE_INVALID))    {      return droute_invalid_arguments_error (message);    }  description = atk_table_get_column_description (table, column);  if (!description)    description = "";  reply = dbus_message_new_method_return (message);  if (reply)    {      dbus_message_append_args (reply, DBUS_TYPE_STRING, &description,                                DBUS_TYPE_INVALID);    }  return reply;}
开发者ID:tbsaunde,项目名称:at-spi2-atk,代码行数:29,


示例6: JSStringCreateWithCharacters

JSRetainPtr<JSStringRef> AccessibilityUIElement::attributesOfVisibleCells(){    if (!ATK_IS_TABLE(m_element.get()))        return JSStringCreateWithCharacters(0, 0);    Vector<RefPtr<AccessibilityUIElement> > visibleCells = getVisibleCells(this);    return createStringWithAttributes(visibleCells);}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:8,


示例7: impl_get_summary

static dbus_bool_timpl_get_summary (DBusMessageIter * iter, void *user_data){  AtkTable *table = (AtkTable *) user_data;  g_return_val_if_fail (ATK_IS_TABLE (user_data), FALSE);  return spi_dbus_return_v_object (iter, atk_table_get_summary (table),                                   FALSE);}
开发者ID:freedesktop-unofficial-mirror,项目名称:at-spi2__at-spi2-atk,代码行数:8,


示例8: impl_get_Summary

static dbus_bool_timpl_get_Summary (DBusMessageIter * iter, void *user_data){  AtkTable *table = (AtkTable *) user_data;  g_return_val_if_fail (ATK_IS_TABLE (user_data), FALSE);  spi_object_append_v_reference (iter, atk_table_get_summary (table));  return TRUE;}
开发者ID:Distrotech,项目名称:at-spi2-atk,代码行数:8,


示例9: ASSERT

int AccessibilityUIElement::rowCount(){    if (!m_element)        return 0;    ASSERT(ATK_IS_TABLE(m_element));    return atk_table_get_n_rows(ATK_TABLE(m_element));}
开发者ID:mikezit,项目名称:Webkit_Code,代码行数:9,


示例10: adoptGRef

PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::cellForColumnAndRow(unsigned col, unsigned row){    if (!ATK_IS_TABLE(m_element.get()))        return nullptr;    // Adopt the AtkObject representing the cell because    // at_table_ref_at() transfers full ownership.    GRefPtr<AtkObject> foundCell = adoptGRef(atk_table_ref_at(ATK_TABLE(m_element.get()), row, col));    return foundCell ? AccessibilityUIElement::create(foundCell.get()) : nullptr;}
开发者ID:ZeusbaseWeb,项目名称:webkit,代码行数:10,


示例11: impl_get_NSelectedColumns

static dbus_bool_timpl_get_NSelectedColumns (DBusMessageIter * iter, void *user_data){  AtkTable *table = (AtkTable *) user_data;  gint *selected_columns = NULL;  int count;  g_return_val_if_fail (ATK_IS_TABLE (user_data), FALSE);  count = atk_table_get_selected_columns (table, &selected_columns);  if (selected_columns)    g_free (selected_columns);  return droute_return_v_int32 (iter, count);}
开发者ID:Distrotech,项目名称:at-spi2-atk,代码行数:12,


示例12: ASSERT

AccessibilityUIElement AccessibilityUIElement::cellForColumnAndRow(unsigned column, unsigned row){    if (!m_element)        return 0;    ASSERT(ATK_IS_TABLE(m_element));    // Adopt the AtkObject representing the cell because    // at_table_ref_at() transfers full ownership.    GRefPtr<AtkObject> foundCell = adoptGRef(atk_table_ref_at(ATK_TABLE(m_element), row, column));    return foundCell ? AccessibilityUIElement(foundCell.get()) : 0;}
开发者ID:fatman2021,项目名称:webkitgtk,代码行数:12,


示例13: atk_table_set_caption

/** * 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);}
开发者ID:batman52,项目名称:dingux-code,代码行数:20,


示例14: atk_table_set_summary

/** * 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);}
开发者ID:batman52,项目名称:dingux-code,代码行数:21,


示例15: atk_table_get_row_header

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:24,


示例16: atk_table_get_summary

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:23,


示例17: atk_table_get_n_rows

/** * atk_table_get_n_rows: * @table: a GObject instance that implements AtkTableIface * * Gets the number of rows in the table. * * Returns: a gint representing the number of rows, or 0 * if value does not implement this interface. **/gintatk_table_get_n_rows (AtkTable *table){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), 0);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_n_rows)    return (iface->get_n_rows) (table);  else    return 0;}
开发者ID:batman52,项目名称:dingux-code,代码行数:23,


示例18: atk_table_get_selected_columns

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:25,


示例19: atk_table_set_row_description

/** * 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);}
开发者ID:batman52,项目名称:dingux-code,代码行数:23,


示例20: atk_table_set_row_header

/** * 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);}
开发者ID:batman52,项目名称:dingux-code,代码行数:22,


示例21: atk_table_get_column_at_index

/** * atk_table_get_column_at_index: * @table: a GObject instance that implements AtkTableInterface * @index_: a #gint representing an index in @table * * Gets a #gint representing the column at the specified @index_.  * * Returns: a gint representing the column at the specified index, * or -1 if the table does not implement this interface **/gintatk_table_get_column_at_index (AtkTable *table,                               gint     index){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), 0);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_column_at_index)    return (iface->get_column_at_index) (table, index);  else    return -1;}
开发者ID:batman52,项目名称:dingux-code,代码行数:25,


示例22: atk_table_get_column_description

/** * atk_table_get_column_description: * @table: a GObject instance that implements AtkTableIface * @column: a #gint representing a column in @table * * Gets the description text of the specified @column in the table * * Returns: a gchar* representing the column description, or %NULL * if value does not implement this interface. **/const gchar*atk_table_get_column_description (AtkTable *table,                                  gint     column){  AtkTableIface *iface;  g_return_val_if_fail (ATK_IS_TABLE (table), NULL);  iface = ATK_TABLE_GET_IFACE (table);  if (iface->get_column_description)    return (iface->get_column_description) (table, column);  else    return NULL;}
开发者ID:h4ck3rm1k3,项目名称:atk,代码行数:25,


示例23: atk_table_get_row_description

/** * atk_table_get_row_description: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * * Gets the description text of the specified row in the table * * Returns: a gchar* representing the row description, or %NULL * if value does not implement this interface. **/G_CONST_RETURN gchar*atk_table_get_row_description (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_description)    return (iface->get_row_description) (table, row);  else    return NULL;}
开发者ID:batman52,项目名称:dingux-code,代码行数:25,


示例24: atk_table_remove_column_selection

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:25,


示例25: atk_table_add_row_selection

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:25,


示例26: atk_table_is_selected

/** * 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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:28,


示例27: atk_table_get_row_extent_at

/** * atk_table_get_row_extent_at: * @table: a GObject instance that implements AtkTableIface * @row: a #gint representing a row in @table * @column: a #gint representing a column in @table * * Gets the number of rows occupied by the accessible object * at a specified @row and @column in the @table. * * Returns: a gint representing the row extent at specified position, or 0 * if value does not implement this interface. **/gintatk_table_get_row_extent_at (AtkTable *table,                             gint     row,                             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;}
开发者ID:batman52,项目名称:dingux-code,代码行数:28,



注:本文中的ATK_IS_TABLE函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ ATK_OBJECT函数代码示例
C++ ATK_IS_OBJECT函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。