2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _ATKMM_OBJECTACCESSIBLE_H
4
#define _ATKMM_OBJECTACCESSIBLE_H
9
/* $Id: objectaccessible.hg,v 1.4 2006/04/12 11:11:24 murrayc Exp $ */
11
/* Copyright (C) 1998-2002 The gtkmm Development Team
13
* This library is free software; you can redistribute it and/or
14
* modify it under the terms of the GNU Lesser General Public
15
* License as published by the Free Software Foundation; either
16
* version 2.1 of the License, or (at your option) any later version.
18
* This library is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21
* Lesser General Public License for more details.
23
* You should have received a copy of the GNU Lesser General Public
24
* License along with this library; if not, write to the Free
25
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
#include <atkmm/object.h>
31
#ifndef DOXYGEN_SHOULD_SKIP_THIS
32
typedef struct _AtkGObjectAccessible AtkGObjectAccessible;
33
typedef struct _AtkGObjectAccessibleClass AtkGObjectAccessibleClass;
34
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
38
{ class ObjectAccessible_Class; } // namespace Atk
42
/** This object class is derived from AtkObject and can be used as a basis implementing accessible objects.
43
* This can be used as a basis for implementing accessible objects for Glib::Objects which are not derived from
44
* Gtk::Widget. One example of its use is in providing an accessible object for GnomeCanvasItem in the GAIL library.
47
class ObjectAccessible : public Atk::Object
50
#ifndef DOXYGEN_SHOULD_SKIP_THIS
53
typedef ObjectAccessible CppObjectType;
54
typedef ObjectAccessible_Class CppClassType;
55
typedef AtkGObjectAccessible BaseObjectType;
56
typedef AtkGObjectAccessibleClass BaseClassType;
58
private: friend class ObjectAccessible_Class;
59
static CppClassType objectaccessible_class_;
63
ObjectAccessible(const ObjectAccessible&);
64
ObjectAccessible& operator=(const ObjectAccessible&);
67
explicit ObjectAccessible(const Glib::ConstructParams& construct_params);
68
explicit ObjectAccessible(AtkGObjectAccessible* castitem);
70
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
73
virtual ~ObjectAccessible();
75
#ifndef DOXYGEN_SHOULD_SKIP_THIS
76
static GType get_type() G_GNUC_CONST;
79
static GType get_base_type() G_GNUC_CONST;
82
///Provides access to the underlying C GObject.
83
AtkGObjectAccessible* gobj() { return reinterpret_cast<AtkGObjectAccessible*>(gobject_); }
85
///Provides access to the underlying C GObject.
86
const AtkGObjectAccessible* gobj() const { return reinterpret_cast<AtkGObjectAccessible*>(gobject_); }
88
///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
89
AtkGObjectAccessible* gobj_copy();
96
/** Gets the GObject for which @a obj is the accessible object.
97
* @return A Object which is the object for which @a obj is the accessible object.
99
Glib::RefPtr<Glib::Object> get_object();
101
/** Gets the GObject for which @a obj is the accessible object.
102
* @return A Object which is the object for which @a obj is the accessible object.
104
Glib::RefPtr<const Glib::Object> get_object() const;
107
/** Gets the accessible object for the specified @a obj.
108
* @param obj A Object.
109
* @return A Atk::Object which is the accessible object for the @a obj.
111
static Glib::RefPtr<Atk::Object> for_object(const Glib::RefPtr<Glib::Object>& obj);
113
/** Gets the accessible object for the specified @a obj.
114
* @param obj A Object.
115
* @return A Atk::Object which is the accessible object for the @a obj.
117
static Glib::RefPtr<const Atk::Object> for_object(const Glib::RefPtr<const Glib::Object>& obj);
123
//C++ methods used to invoke GTK+ virtual functions:
126
//GTK+ Virtual Functions (override these to change behaviour):
128
//Default Signal Handlers::
138
/** A Glib::wrap() method for this object.
140
* @param object The C instance.
141
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
142
* @result A C++ instance that wraps this C instance.
144
* @relates Atk::ObjectAccessible
146
Glib::RefPtr<Atk::ObjectAccessible> wrap(AtkGObjectAccessible* object, bool take_copy = false);
150
#endif /* _ATKMM_OBJECTACCESSIBLE_H */