| 1 |
/* Copyright (C) 1998-2002 The gtkmm Development Team |
| 2 |
* |
| 3 |
* This library is free software; you can redistribute it and/or |
| 4 |
* modify it under the terms of the GNU Lesser General Public |
| 5 |
* License as published by the Free Software Foundation; either |
| 6 |
* version 2.1 of the License, or (at your option) any later version. |
| 7 |
* |
| 8 |
* This library is distributed in the hope that it will be useful, |
| 9 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
* Lesser General Public License for more details. |
| 12 |
* |
| 13 |
* You should have received a copy of the GNU Lesser General Public |
| 14 |
* License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 15 |
*/ |
| 16 |
|
| 17 |
#include <atkmm/object.h> |
| 18 |
|
| 19 |
_DEFS(atkmm,atk) |
| 20 |
_PINCLUDE(atkmm/private/object_p.h) |
| 21 |
|
| 22 |
namespace Atk |
| 23 |
{ |
| 24 |
|
| 25 |
/** This object class is derived from AtkObject and can be used as a basis implementing accessible objects. |
| 26 |
* This can be used as a basis for implementing accessible objects for Glib::Objects which are not derived from |
| 27 |
* Gtk::Widget. One example of its use is in providing an accessible object for GnomeCanvasItem in the GAIL library. |
| 28 |
*/ |
| 29 |
class ATKMM_API ObjectAccessible : public Atk::Object |
| 30 |
{ |
| 31 |
_CLASS_GOBJECT(ObjectAccessible, AtkGObjectAccessible, ATK_GOBJECT_ACCESSIBLE, Atk::Object, AtkObject, , , ATKMM_API) |
| 32 |
protected: |
| 33 |
|
| 34 |
_WRAP_METHOD(Glib::RefPtr<Glib::Object> get_object(), atk_gobject_accessible_get_object, refreturn) |
| 35 |
_WRAP_METHOD(Glib::RefPtr<const Glib::Object> get_object() const, atk_gobject_accessible_get_object, refreturn, constversion) |
| 36 |
|
| 37 |
_WRAP_METHOD(static Glib::RefPtr<Atk::Object> for_object(const Glib::RefPtr<Glib::Object>& obj), atk_gobject_accessible_for_object, refreturn) |
| 38 |
_WRAP_METHOD(static Glib::RefPtr<const Atk::Object> for_object(const Glib::RefPtr<const Glib::Object>& obj), atk_gobject_accessible_for_object, refreturn) |
| 39 |
}; |
| 40 |
|
| 41 |
} // namespace Atk |