// Generated by gtkmmproc -- DO NOT MODIFY! #include #include // -*- c++ -*- /* $Id$ */ /* Copyright 1998-2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include namespace Atk { Glib::ArrayHandle Table::get_selected_columns() const { int* selected = 0; const int n_selected = atk_table_get_selected_columns(const_cast(gobj()), &selected); return Glib::ArrayHandle(selected, n_selected, Glib::OWNERSHIP_SHALLOW); } Glib::ArrayHandle Table::get_selected_rows() const { int* selected = 0; const int n_selected = atk_table_get_selected_rows(const_cast(gobj()), &selected); return Glib::ArrayHandle(selected, n_selected, Glib::OWNERSHIP_SHALLOW); } } // namespace Atk namespace { void Table_signal_row_inserted_callback(AtkTable* self, gint p0,gint p1,void* data) { using namespace Atk; typedef sigc::slot< void,int,int > SlotType; // Do not try to call a signal on a disassociated wrapper. if(Glib::ObjectBase::_get_current_wrapper((GObject*) self)) { try { if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data)) (*static_cast(slot))(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } } const Glib::SignalProxyInfo Table_signal_row_inserted_info = { "row_inserted", (GCallback) &Table_signal_row_inserted_callback, (GCallback) &Table_signal_row_inserted_callback }; void Table_signal_column_inserted_callback(AtkTable* self, gint p0,gint p1,void* data) { using namespace Atk; typedef sigc::slot< void,int,int > SlotType; // Do not try to call a signal on a disassociated wrapper. if(Glib::ObjectBase::_get_current_wrapper((GObject*) self)) { try { if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data)) (*static_cast(slot))(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } } const Glib::SignalProxyInfo Table_signal_column_inserted_info = { "column_inserted", (GCallback) &Table_signal_column_inserted_callback, (GCallback) &Table_signal_column_inserted_callback }; void Table_signal_row_deleted_callback(AtkTable* self, gint p0,gint p1,void* data) { using namespace Atk; typedef sigc::slot< void,int,int > SlotType; // Do not try to call a signal on a disassociated wrapper. if(Glib::ObjectBase::_get_current_wrapper((GObject*) self)) { try { if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data)) (*static_cast(slot))(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } } const Glib::SignalProxyInfo Table_signal_row_deleted_info = { "row_deleted", (GCallback) &Table_signal_row_deleted_callback, (GCallback) &Table_signal_row_deleted_callback }; void Table_signal_column_deleted_callback(AtkTable* self, gint p0,gint p1,void* data) { using namespace Atk; typedef sigc::slot< void,int,int > SlotType; // Do not try to call a signal on a disassociated wrapper. if(Glib::ObjectBase::_get_current_wrapper((GObject*) self)) { try { if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data)) (*static_cast(slot))(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } } const Glib::SignalProxyInfo Table_signal_column_deleted_info = { "column_deleted", (GCallback) &Table_signal_column_deleted_callback, (GCallback) &Table_signal_column_deleted_callback }; const Glib::SignalProxyInfo Table_signal_row_reordered_info = { "row_reordered", (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, (GCallback) &Glib::SignalProxyNormal::slot0_void_callback }; const Glib::SignalProxyInfo Table_signal_column_reordered_info = { "column_reordered", (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, (GCallback) &Glib::SignalProxyNormal::slot0_void_callback }; const Glib::SignalProxyInfo Table_signal_model_changed_info = { "model_changed", (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, (GCallback) &Glib::SignalProxyNormal::slot0_void_callback }; } // anonymous namespace namespace Glib { Glib::RefPtr wrap(AtkTable* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } // namespace Glib namespace Atk { /* The *_Class implementation: */ const Glib::Interface_Class& Table_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Interface_Class has to know the interface init function // in order to add interfaces to implementing types. class_init_func_ = &Table_Class::iface_init_function; // We can not derive from another interface, and it is not necessary anyway. gtype_ = atk_table_get_type(); } return *this; } void Table_Class::iface_init_function(void* g_iface, void*) { BaseClassType *const klass = static_cast(g_iface); //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect. //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc g_assert(klass != 0); klass->ref_at = &ref_at_vfunc_callback; klass->get_index_at = &get_index_at_vfunc_callback; klass->get_column_at_index = &get_column_at_index_vfunc_callback; klass->get_row_at_index = &get_row_at_index_vfunc_callback; klass->get_n_columns = &get_n_columns_vfunc_callback; klass->get_n_rows = &get_n_rows_vfunc_callback; klass->get_column_extent_at = &get_column_extent_at_vfunc_callback; klass->get_row_extent_at = &get_row_extent_at_vfunc_callback; klass->get_caption = &get_caption_vfunc_callback; klass->get_column_description = &get_column_description_vfunc_callback; klass->get_column_header = &get_column_header_vfunc_callback; klass->get_row_description = &get_row_description_vfunc_callback; klass->get_row_header = &get_row_header_vfunc_callback; klass->get_summary = &get_summary_vfunc_callback; klass->set_caption = &set_caption_vfunc_callback; klass->set_column_description = &set_column_description_vfunc_callback; klass->set_column_header = &set_column_header_vfunc_callback; klass->set_row_description = &set_row_description_vfunc_callback; klass->set_row_header = &set_row_header_vfunc_callback; klass->set_summary = &set_summary_vfunc_callback; klass->is_column_selected = &is_column_selected_vfunc_callback; klass->is_row_selected = &is_row_selected_vfunc_callback; klass->is_selected = &is_selected_vfunc_callback; klass->add_row_selection = &add_row_selection_vfunc_callback; klass->remove_row_selection = &remove_row_selection_vfunc_callback; klass->add_column_selection = &add_column_selection_vfunc_callback; klass->remove_column_selection = &remove_column_selection_vfunc_callback; klass->get_selected_columns = &get_selected_columns_vfunc_callback; klass->get_selected_rows = &get_selected_rows_vfunc_callback; klass->row_inserted = &row_inserted_callback; klass->column_inserted = &column_inserted_callback; klass->row_deleted = &row_deleted_callback; klass->column_deleted = &column_deleted_callback; klass->row_reordered = &row_reordered_callback; klass->column_reordered = &column_reordered_callback; klass->model_changed = &model_changed_callback; } AtkObject* Table_Class::ref_at_vfunc_callback(AtkTable* self, gint row, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return Glib::unwrap_copy(obj->get_at_vfunc(row , column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->ref_at) return (*base->ref_at)(self, row, column); } typedef AtkObject* RType; return RType(); } gint Table_Class::get_index_at_vfunc_callback(AtkTable* self, gint row, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_index_at_vfunc(row , column ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_index_at) return (*base->get_index_at)(self, row, column); } typedef gint RType; return RType(); } gint Table_Class::get_column_at_index_vfunc_callback(AtkTable* self, gint index_) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_column_at_index_vfunc(index_ ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_column_at_index) return (*base->get_column_at_index)(self, index_); } typedef gint RType; return RType(); } gint Table_Class::get_row_at_index_vfunc_callback(AtkTable* self, gint index_) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_row_at_index_vfunc(index_ ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_row_at_index) return (*base->get_row_at_index)(self, index_); } typedef gint RType; return RType(); } gint Table_Class::get_n_columns_vfunc_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_n_columns_vfunc(); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_n_columns) return (*base->get_n_columns)(self); } typedef gint RType; return RType(); } gint Table_Class::get_n_rows_vfunc_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_n_rows_vfunc(); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_n_rows) return (*base->get_n_rows)(self); } typedef gint RType; return RType(); } gint Table_Class::get_column_extent_at_vfunc_callback(AtkTable* self, gint row, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_column_extent_at_vfunc(row , column ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_column_extent_at) return (*base->get_column_extent_at)(self, row, column); } typedef gint RType; return RType(); } gint Table_Class::get_row_extent_at_vfunc_callback(AtkTable* self, gint row, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_row_extent_at_vfunc(row , column ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_row_extent_at) return (*base->get_row_extent_at)(self, row, column); } typedef gint RType; return RType(); } AtkObject* Table_Class::get_caption_vfunc_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return Glib::unwrap(obj->get_caption_vfunc()); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_caption) return (*base->get_caption)(self); } typedef AtkObject* RType; return RType(); } const gchar* Table_Class::get_column_description_vfunc_callback(AtkTable* self, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_column_description_vfunc(column ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_column_description) return (*base->get_column_description)(self, column); } typedef const gchar* RType; return RType(); } AtkObject* Table_Class::get_column_header_vfunc_callback(AtkTable* self, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return Glib::unwrap(obj->get_column_header_vfunc(column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_column_header) return (*base->get_column_header)(self, column); } typedef AtkObject* RType; return RType(); } const gchar* Table_Class::get_row_description_vfunc_callback(AtkTable* self, gint row) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_row_description_vfunc(row ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_row_description) return (*base->get_row_description)(self, row); } typedef const gchar* RType; return RType(); } AtkObject* Table_Class::get_row_header_vfunc_callback(AtkTable* self, gint row) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return Glib::unwrap(obj->get_row_header_vfunc(row )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_row_header) return (*base->get_row_header)(self, row); } typedef AtkObject* RType; return RType(); } AtkObject* Table_Class::get_summary_vfunc_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return Glib::unwrap(obj->get_summary_vfunc()); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_summary) return (*base->get_summary)(self); } typedef AtkObject* RType; return RType(); } void Table_Class::set_caption_vfunc_callback(AtkTable* self, AtkObject* caption) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_caption_vfunc(Glib::wrap(caption, true) ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_caption) (*base->set_caption)(self, caption); } } void Table_Class::set_column_description_vfunc_callback(AtkTable* self, gint column, const gchar* description) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_column_description_vfunc(column , description ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_column_description) (*base->set_column_description)(self, column, description); } } void Table_Class::set_column_header_vfunc_callback(AtkTable* self, gint column, AtkObject* header) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_column_header_vfunc(column , Glib::wrap(header, true) ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_column_header) (*base->set_column_header)(self, column, header); } } void Table_Class::set_row_description_vfunc_callback(AtkTable* self, gint row, const gchar* description) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_row_description_vfunc(row , description ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_row_description) (*base->set_row_description)(self, row, description); } } void Table_Class::set_row_header_vfunc_callback(AtkTable* self, gint row, AtkObject* header) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_row_header_vfunc(row , Glib::wrap(header, true) ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_row_header) (*base->set_row_header)(self, row, header); } } void Table_Class::set_summary_vfunc_callback(AtkTable* self, AtkObject* accessible) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->set_summary_vfunc(Glib::wrap(accessible, true) ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->set_summary) (*base->set_summary)(self, accessible); } } gboolean Table_Class::is_column_selected_vfunc_callback(AtkTable* self, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->is_column_selected_vfunc(column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->is_column_selected) return (*base->is_column_selected)(self, column); } typedef gboolean RType; return RType(); } gboolean Table_Class::is_row_selected_vfunc_callback(AtkTable* self, gint row) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->is_row_selected_vfunc(row )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->is_row_selected) return (*base->is_row_selected)(self, row); } typedef gboolean RType; return RType(); } gboolean Table_Class::is_selected_vfunc_callback(AtkTable* self, gint row, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->is_selected_vfunc(row , column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->is_selected) return (*base->is_selected)(self, row, column); } typedef gboolean RType; return RType(); } gboolean Table_Class::add_row_selection_vfunc_callback(AtkTable* self, gint row) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->add_row_selection_vfunc(row )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->add_row_selection) return (*base->add_row_selection)(self, row); } typedef gboolean RType; return RType(); } gboolean Table_Class::remove_row_selection_vfunc_callback(AtkTable* self, gint row) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->remove_row_selection_vfunc(row )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->remove_row_selection) return (*base->remove_row_selection)(self, row); } typedef gboolean RType; return RType(); } gboolean Table_Class::add_column_selection_vfunc_callback(AtkTable* self, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->add_column_selection_vfunc(column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->add_column_selection) return (*base->add_column_selection)(self, column); } typedef gboolean RType; return RType(); } gboolean Table_Class::remove_column_selection_vfunc_callback(AtkTable* self, gint column) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return static_cast(obj->remove_column_selection_vfunc(column )); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->remove_column_selection) return (*base->remove_column_selection)(self, column); } typedef gboolean RType; return RType(); } gint Table_Class::get_selected_columns_vfunc_callback(AtkTable* self, gint** selected) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_selected_columns_vfunc(selected ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_selected_columns) return (*base->get_selected_columns)(self, selected); } typedef gint RType; return RType(); } gint Table_Class::get_selected_rows_vfunc_callback(AtkTable* self, gint** selected) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. return obj->get_selected_rows_vfunc(selected ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->get_selected_rows) return (*base->get_selected_rows)(self, selected); } typedef gint RType; return RType(); } void Table_Class::row_inserted_callback(AtkTable* self, gint p0, gint p1) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_row_inserted(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->row_inserted) (*base->row_inserted)(self, p0, p1); } } void Table_Class::column_inserted_callback(AtkTable* self, gint p0, gint p1) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_column_inserted(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->column_inserted) (*base->column_inserted)(self, p0, p1); } } void Table_Class::row_deleted_callback(AtkTable* self, gint p0, gint p1) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_row_deleted(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->row_deleted) (*base->row_deleted)(self, p0, p1); } } void Table_Class::column_deleted_callback(AtkTable* self, gint p0, gint p1) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_column_deleted(p0 , p1 ); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->column_deleted) (*base->column_deleted)(self, p0, p1); } } void Table_Class::row_reordered_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_row_reordered(); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->row_reordered) (*base->row_reordered)(self); } } void Table_Class::column_reordered_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_column_reordered(); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->column_reordered) (*base->column_reordered)(self); } } void Table_Class::model_changed_callback(AtkTable* self) { CppObjectType *const obj = dynamic_cast( Glib::ObjectBase::_get_current_wrapper((GObject*)self)); // Non-gtkmmproc-generated custom classes implicitly call the default // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- // generated classes can use this optimisation, which avoids the unnecessary // parameter conversions if there is no possibility of the virtual function // being overridden: if(obj && obj->is_derived_()) { try // Trap C++ exceptions which would normally be lost because this is a C callback. { // Call the virtual member method, which derived classes might override. obj->on_model_changed(); } catch(...) { Glib::exception_handlers_invoke(); } } else { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface. ) ); // Call the original underlying C function: if(base && base->model_changed) (*base->model_changed)(self); } } Glib::ObjectBase* Table_Class::wrap_new(GObject* object) { return new Table((AtkTable*)(object)); } /* The implementation: */ Table::Table() : Glib::Interface(table_class_.init()) {} Table::Table(AtkTable* castitem) : Glib::Interface((GObject*)(castitem)) {} Table::~Table() {} // static void Table::add_interface(GType gtype_implementer) { table_class_.init().add_interface(gtype_implementer); } Table::CppClassType Table::table_class_; // initialize static member GType Table::get_type() { return table_class_.init().get_type(); } GType Table::get_base_type() { return atk_table_get_type(); } Glib::RefPtr Table::get_at(int row, int column) { return Glib::wrap(atk_table_ref_at(gobj(), row, column)); } int Table::get_index_at(int row, int column) const { return atk_table_get_index_at(const_cast(gobj()), row, column); } int Table::get_column_at_index(int index) const { return atk_table_get_column_at_index(const_cast(gobj()), index); } int Table::get_row_at_index(int index) const { return atk_table_get_row_at_index(const_cast(gobj()), index); } int Table::get_n_columns() const { return atk_table_get_n_columns(const_cast(gobj())); } int Table::get_n_rows() const { return atk_table_get_n_rows(const_cast(gobj())); } int Table::get_column_extent_at(int row, int column) const { return atk_table_get_column_extent_at(const_cast(gobj()), row, column); } int Table::get_row_extent_at(int row, int column) const { return atk_table_get_row_extent_at(const_cast(gobj()), row, column); } Glib::RefPtr Table::get_caption() { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_caption(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Table::get_caption() const { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_caption(const_cast(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::ustring Table::get_column_description(int column) const { return Glib::convert_const_gchar_ptr_to_ustring(atk_table_get_column_description(const_cast(gobj()), column)); } Glib::RefPtr Table::get_column_header(int column) { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_column_header(gobj(), column)); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Table::get_column_header(int column) const { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_column_header(const_cast(gobj()), column)); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::ustring Table::get_row_description(int row) const { return Glib::convert_const_gchar_ptr_to_ustring(atk_table_get_row_description(const_cast(gobj()), row)); } Glib::RefPtr Table::get_row_header(int row) { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_row_header(gobj(), row)); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Table::get_row_header(int row) const { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_row_header(const_cast(gobj()), row)); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Table::get_summary() { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_summary(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr Table::get_summary() const { Glib::RefPtr retvalue = Glib::wrap(atk_table_get_summary(const_cast(gobj()))); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } void Table::set_caption(const Glib::RefPtr& caption) { atk_table_set_caption(gobj(), Glib::unwrap(caption)); } void Table::set_column_description(int column, const Glib::ustring& description) { atk_table_set_column_description(gobj(), column, description.c_str()); } void Table::set_column_header(int column, const Glib::RefPtr& header) { atk_table_set_column_header(gobj(), column, Glib::unwrap(header)); } void Table::set_row_description(int row, const Glib::ustring& description) { atk_table_set_row_description(gobj(), row, description.c_str()); } void Table::set_row_header(int row, const Glib::RefPtr& header) { atk_table_set_row_header(gobj(), row, Glib::unwrap(header)); } void Table::set_summary(const Glib::RefPtr& accessible) { atk_table_set_summary(gobj(), Glib::unwrap(accessible)); } bool Table::is_column_selected(int column) const { return atk_table_is_column_selected(const_cast(gobj()), column); } bool Table::is_row_selected(int row) const { return atk_table_is_row_selected(const_cast(gobj()), row); } bool Table::is_selected(int row, int column) const { return atk_table_is_selected(const_cast(gobj()), row, column); } bool Table::add_row_selection(int row) { return atk_table_add_row_selection(gobj(), row); } bool Table::remove_row_selection(int row) { return atk_table_remove_row_selection(gobj(), row); } bool Table::add_column_selection(int column) { return atk_table_add_column_selection(gobj(), column); } bool Table::remove_column_selection(int column) { return atk_table_remove_column_selection(gobj(), column); } Glib::SignalProxy2< void,int,int > Table::signal_row_inserted() { return Glib::SignalProxy2< void,int,int >(this, &Table_signal_row_inserted_info); } Glib::SignalProxy2< void,int,int > Table::signal_column_inserted() { return Glib::SignalProxy2< void,int,int >(this, &Table_signal_column_inserted_info); } Glib::SignalProxy2< void,int,int > Table::signal_row_deleted() { return Glib::SignalProxy2< void,int,int >(this, &Table_signal_row_deleted_info); } Glib::SignalProxy2< void,int,int > Table::signal_column_deleted() { return Glib::SignalProxy2< void,int,int >(this, &Table_signal_column_deleted_info); } Glib::SignalProxy0< void > Table::signal_row_reordered() { return Glib::SignalProxy0< void >(this, &Table_signal_row_reordered_info); } Glib::SignalProxy0< void > Table::signal_column_reordered() { return Glib::SignalProxy0< void >(this, &Table_signal_column_reordered_info); } Glib::SignalProxy0< void > Table::signal_model_changed() { return Glib::SignalProxy0< void >(this, &Table_signal_model_changed_info); } void Atk::Table::on_row_inserted(int row, int num_inserted) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->row_inserted) (*base->row_inserted)(gobj(),row,num_inserted); } void Atk::Table::on_column_inserted(int column, int num_inserted) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->column_inserted) (*base->column_inserted)(gobj(),column,num_inserted); } void Atk::Table::on_row_deleted(int row, int num_deleted) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->row_deleted) (*base->row_deleted)(gobj(),row,num_deleted); } void Atk::Table::on_column_deleted(int column, int num_deleted) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->column_deleted) (*base->column_deleted)(gobj(),column,num_deleted); } void Atk::Table::on_row_reordered() { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->row_reordered) (*base->row_reordered)(gobj()); } void Atk::Table::on_column_reordered() { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->column_reordered) (*base->column_reordered)(gobj()); } void Atk::Table::on_model_changed() { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->model_changed) (*base->model_changed)(gobj()); } Glib::RefPtr Atk::Table::get_at_vfunc(int row, int column) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->ref_at) return Glib::wrap((*base->ref_at)(gobj(),row,column)); typedef Glib::RefPtr RType; return RType(); } int Atk::Table::get_index_at_vfunc(int row, int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_index_at) return (*base->get_index_at)(const_cast(gobj()),row,column); typedef int RType; return RType(); } int Atk::Table::get_column_at_index_vfunc(int index) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_column_at_index) return (*base->get_column_at_index)(const_cast(gobj()),index); typedef int RType; return RType(); } int Atk::Table::get_row_at_index_vfunc(int index) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_row_at_index) return (*base->get_row_at_index)(const_cast(gobj()),index); typedef int RType; return RType(); } int Atk::Table::get_n_columns_vfunc() const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_n_columns) return (*base->get_n_columns)(const_cast(gobj())); typedef int RType; return RType(); } int Atk::Table::get_n_rows_vfunc() const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_n_rows) return (*base->get_n_rows)(const_cast(gobj())); typedef int RType; return RType(); } int Atk::Table::get_column_extent_at_vfunc(int row, int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_column_extent_at) return (*base->get_column_extent_at)(const_cast(gobj()),row,column); typedef int RType; return RType(); } int Atk::Table::get_row_extent_at_vfunc(int row, int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_row_extent_at) return (*base->get_row_extent_at)(const_cast(gobj()),row,column); typedef int RType; return RType(); } Glib::RefPtr Atk::Table::get_caption_vfunc() { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_caption) return Glib::wrap((*base->get_caption)(gobj())); typedef Glib::RefPtr RType; return RType(); } const char* Atk::Table::get_column_description_vfunc(int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_column_description) return (*base->get_column_description)(const_cast(gobj()),column); typedef const char* RType; return RType(); } Glib::RefPtr Atk::Table::get_column_header_vfunc(int column) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_column_header) return Glib::wrap((*base->get_column_header)(gobj(),column)); typedef Glib::RefPtr RType; return RType(); } const char* Atk::Table::get_row_description_vfunc(int row) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_row_description) return (*base->get_row_description)(const_cast(gobj()),row); typedef const char* RType; return RType(); } Glib::RefPtr Atk::Table::get_row_header_vfunc(int row) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_row_header) return Glib::wrap((*base->get_row_header)(gobj(),row)); typedef Glib::RefPtr RType; return RType(); } Glib::RefPtr Atk::Table::get_summary_vfunc() { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_summary) return Glib::wrap((*base->get_summary)(gobj())); typedef Glib::RefPtr RType; return RType(); } void Atk::Table::set_caption_vfunc(const Glib::RefPtr& caption) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_caption) (*base->set_caption)(gobj(),Glib::unwrap(caption)); } void Atk::Table::set_column_description_vfunc(int column, const char* description) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_column_description) (*base->set_column_description)(gobj(),column,description); } void Atk::Table::set_column_header_vfunc(int column, const Glib::RefPtr& header) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_column_header) (*base->set_column_header)(gobj(),column,Glib::unwrap(header)); } void Atk::Table::set_row_description_vfunc(int row, const char* description) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_row_description) (*base->set_row_description)(gobj(),row,description); } void Atk::Table::set_row_header_vfunc(int row, const Glib::RefPtr& header) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_row_header) (*base->set_row_header)(gobj(),row,Glib::unwrap(header)); } void Atk::Table::set_summary_vfunc(const Glib::RefPtr& accessible) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->set_summary) (*base->set_summary)(gobj(),Glib::unwrap(accessible)); } bool Atk::Table::is_column_selected_vfunc(int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->is_column_selected) return (*base->is_column_selected)(const_cast(gobj()),column); typedef bool RType; return RType(); } bool Atk::Table::is_row_selected_vfunc(int row) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->is_row_selected) return (*base->is_row_selected)(const_cast(gobj()),row); typedef bool RType; return RType(); } bool Atk::Table::is_selected_vfunc(int row, int column) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->is_selected) return (*base->is_selected)(const_cast(gobj()),row,column); typedef bool RType; return RType(); } bool Atk::Table::add_row_selection_vfunc(int row) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->add_row_selection) return (*base->add_row_selection)(gobj(),row); typedef bool RType; return RType(); } bool Atk::Table::remove_row_selection_vfunc(int row) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->remove_row_selection) return (*base->remove_row_selection)(gobj(),row); typedef bool RType; return RType(); } bool Atk::Table::add_column_selection_vfunc(int column) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->add_column_selection) return (*base->add_column_selection)(gobj(),column); typedef bool RType; return RType(); } bool Atk::Table::remove_column_selection_vfunc(int column) { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->remove_column_selection) return (*base->remove_column_selection)(gobj(),column); typedef bool RType; return RType(); } int Atk::Table::get_selected_columns_vfunc(int** selected) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_selected_columns) return (*base->get_selected_columns)(const_cast(gobj()),selected); typedef int RType; return RType(); } int Atk::Table::get_selected_rows_vfunc(int** selected) const { BaseClassType *const base = static_cast( g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface. ) ); if(base && base->get_selected_rows) return (*base->get_selected_rows)(const_cast(gobj()),selected); typedef int RType; return RType(); } } // namespace Atk