Back to index

unity  6.0.0
nux-area-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_AREA_ACCESSIBLE_H
00020 #define NUX_AREA_ACCESSIBLE_H
00021 
00022 #include <atk/atk.h>
00023 
00024 #include "nux-object-accessible.h"
00025 
00026 G_BEGIN_DECLS
00027 
00028 #define NUX_TYPE_AREA_ACCESSIBLE            (nux_area_accessible_get_type ())
00029 #define NUX_AREA_ACCESSIBLE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_AREA_ACCESSIBLE, NuxAreaAccessible))
00030 #define NUX_AREA_ACCESSIBLE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_AREA_ACCESSIBLE, NuxAreaAccessibleClass))
00031 #define NUX_IS_AREA_ACCESSIBLE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_AREA_ACCESSIBLE))
00032 #define NUX_IS_AREA_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_AREA_ACCESSIBLE))
00033 #define NUX_AREA_ACCESSIBLE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_AREA_ACCESSIBLE, NuxAreaAccessibleClass))
00034 
00035 typedef struct _NuxAreaAccessible        NuxAreaAccessible;
00036 typedef struct _NuxAreaAccessibleClass   NuxAreaAccessibleClass;
00037 typedef struct _NuxAreaAccessiblePrivate NuxAreaAccessiblePrivate;
00038 
00039 struct _NuxAreaAccessible
00040 {
00041   NuxObjectAccessible parent;
00042 
00043   /*< private >*/
00044   NuxAreaAccessiblePrivate* priv;
00045 };
00046 
00047 struct _NuxAreaAccessibleClass
00048 {
00049   NuxObjectAccessibleClass parent_class;
00050 
00051   /*
00052    * Usually objects shouldn emit events like focus or selection
00053    * changes until the toplevel window is active. This method is
00054    * called when the toplevel window became active. Redefine it if you
00055    * need to check any pending state change notification.
00056    */
00057   gboolean(*check_pending_notification)(NuxAreaAccessible* self);
00058 
00059 };
00060 
00061 GType      nux_area_accessible_get_type(void);
00062 AtkObject* nux_area_accessible_new(nux::Object* object);
00063 
00064 gboolean   nux_area_accessible_check_pending_notification(NuxAreaAccessible* self);
00065 gboolean   nux_area_accessible_parent_window_active(NuxAreaAccessible* self);
00066 AtkObject* nux_area_accessible_get_parent_window(NuxAreaAccessible* self);
00067 
00068 G_END_DECLS
00069 
00070 #endif /* __NUX_AREA_ACCESSIBLE_H__ */