Back to index

unity  6.0.0
nux-object-accessible.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Alejandro PiƱeiro Iglesias <apinheiro@igalia.com>
00017  */
00018 
00019 #ifndef NUX_OBJECT_ACCESSIBLE_H
00020 #define NUX_OBJECT_ACCESSIBLE_H
00021 
00022 #include <atk/atk.h>
00023 
00024 #include <Nux/Nux.h>
00025 #include <NuxCore/Object.h>
00026 
00027 G_BEGIN_DECLS
00028 
00029 #define NUX_TYPE_OBJECT_ACCESSIBLE            (nux_object_accessible_get_type ())
00030 #define NUX_OBJECT_ACCESSIBLE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessible))
00031 #define NUX_OBJECT_ACCESSIBLE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))
00032 #define NUX_IS_OBJECT_ACCESSIBLE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_OBJECT_ACCESSIBLE))
00033 #define NUX_IS_OBJECT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_OBJECT_ACCESSIBLE))
00034 #define NUX_OBJECT_ACCESSIBLE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))
00035 
00036 typedef struct _NuxObjectAccessible        NuxObjectAccessible;
00037 typedef struct _NuxObjectAccessibleClass   NuxObjectAccessibleClass;
00038 typedef struct _NuxObjectAccessiblePrivate NuxObjectAccessiblePrivate;
00039 
00040 struct _NuxObjectAccessible
00041 {
00042   AtkObject parent;
00043 
00044   /* < private > */
00045   NuxObjectAccessiblePrivate* priv;
00046 };
00047 
00048 struct _NuxObjectAccessibleClass
00049 {
00050   AtkObjectClass parent_class;
00051 };
00052 
00053 GType      nux_object_accessible_get_type(void);
00054 AtkObject* nux_object_accessible_new(nux::Object* object);
00055 
00056 nux::Object* nux_object_accessible_get_object(NuxObjectAccessible* self);
00057 
00058 G_END_DECLS
00059 
00060 #endif /* __NUX_OBJECT_ACCESSIBLE_H__ */