2.38.0
[platform/upstream/at-spi2-atk.git] / tests / dummyatk / my-atk-component.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; https://wiki.gnome.org/Accessibility)
4  *
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  * Boston, MA 02110-1301, USA.
21  */
22
23
24 #ifndef MY_ATK_COMPONENT_H
25 #define MY_ATK_COMPONENT_H
26
27 #include <atk/atk.h>
28
29 #define MY_TYPE_ATK_COMPONENT             (my_atk_component_get_type ())
30 #define MY_ATK_COMPONENT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), MY_TYPE_ATK_COMPONENT, MyAtkComponent))
31 #define MY_ATK_COMPONENT_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), MY_TYPE_ATK_COMPONENT, MyAtkComponentClass))
32 #define MY_IS_ATK_COMPONENT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MY_TYPE_ATK_COMPONENT))
33 #define MY_IS_ATK_COMPONENT_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), MY_TYPE_ATK_COMPONENT))
34 #define MY_ATK_COMPONENT_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), MY_TYPE_ATK_COMPONENT, MyAtkComponentClass))
35
36 typedef struct _MyAtkComponent MyAtkComponent;
37 typedef struct _MyAtkComponentClass MyAtkComponentClass;
38
39 typedef void (* MyAtkComponentFunc) (MyAtkComponent *component);
40
41 struct _MyAtkComponent {
42   MyAtkObject parent;
43   AtkRectangle extent;
44   gboolean extent_may_change;
45   gboolean is_manage_descendants;
46   AtkLayer layer;
47   gint zorder;
48   gdouble alpha;
49 };
50
51 struct _MyAtkComponentClass {
52   MyAtkObjectClass parent;
53 };
54
55 GType my_atk_component_get_type ();
56
57 void my_atk_component_set_layer (AtkComponent *component, AtkLayer layer);
58 void my_atk_component_set_mdi_zorder (AtkComponent *component, gint mdi_zorder);
59 void my_atk_component_set_alpha (AtkComponent *component, gdouble alpha);
60
61 #endif /*MY_ATK_COMPONENT_H*/