Added atk tests
[platform/core/uifw/at-spi2-atk.git] / atk-tests / test-simple-child.h
1 /* This file contains both declaration and definition of the TestSimpleChild class 
2  * derived from AtkObject. The TestSimpleChild instances can be used as children by 
3  * the TestSimpleSelection and TestSimpleTable instances.
4  */
5
6 #ifndef TESTSIMPLECHILD_H_
7 #define TESTSIMPLECHILD_H_
8 #include <glib-object.h>
9 #include <atk/atk.h> 
10
11 #define TEST_TYPE_SIMPLE_CHILD             (test_simple_child_get_type ())
12 #define TEST_SIMPLE_CHILD(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_SIMPLE_CHILD, TestSimpleChild))
13 #define TEST_SIMPLE_CHILD_CLASS(vtable)    (G_TYPE_CHECK_CLASS_CAST ((vtable), TEST_TYPE_SIMPLE_CHILD, TestSimpleChildClass))
14 #define TEST_IS_SIMPLE_CHILD(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_SIMPLE_CHILD))
15 #define TEST_IS_SIMPLE_CHILD_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), TEST_TYPE_SIMPLE_CHILD))
16 #define TEST_SIMPLE_CHILD_GET_CLASS(inst)  (G_TYPE_INSTANCE_GET_CLASS ((inst), TEST_TYPE_SIMPLE_CHILD, TestSimpleChildClass))
17
18 typedef struct _TestSimpleChild TestSimpleChild;
19 typedef struct _TestSimpleChildClass TestSimpleChildClass;
20
21 struct _TestSimpleChild 
22 {
23     AtkObject parent;
24     gboolean disposed;
25         gint id;        /* unique object ID */
26 };
27
28 struct _TestSimpleChildClass 
29 {
30         AtkObjectClass parent;
31 };
32
33 #endif /*TESTSIMPLECHILD_H_*/