選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

atkobjectfactory.h 2.6 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* ATK - Accessibility Toolkit
  2. * Copyright 2001 Sun Microsystems Inc.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
  20. #error "Only <atk/atk.h> can be included directly."
  21. #endif
  22. #ifndef __ATK_OBJECT_FACTORY_H__
  23. #define __ATK_OBJECT_FACTORY_H__
  24. #include <glib-object.h>
  25. #include <atk/atkobject.h>
  26. G_BEGIN_DECLS
  27. #define ATK_TYPE_OBJECT_FACTORY (atk_object_factory_get_type ())
  28. #define ATK_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactory))
  29. #define ATK_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass))
  30. #define ATK_IS_OBJECT_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_OBJECT_FACTORY))
  31. #define ATK_IS_OBJECT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_OBJECT_FACTORY))
  32. #define ATK_OBJECT_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_OBJECT_FACTORY, AtkObjectFactoryClass))
  33. typedef struct _AtkObjectFactory AtkObjectFactory;
  34. typedef struct _AtkObjectFactoryClass AtkObjectFactoryClass;
  35. struct _AtkObjectFactory
  36. {
  37. GObject parent;
  38. };
  39. struct _AtkObjectFactoryClass
  40. {
  41. GObjectClass parent_class;
  42. AtkObject* (* create_accessible) (GObject *obj);
  43. void (* invalidate) (AtkObjectFactory *factory);
  44. GType (* get_accessible_type) (void);
  45. AtkFunction pad1;
  46. AtkFunction pad2;
  47. };
  48. GType atk_object_factory_get_type(void);
  49. AtkObject* atk_object_factory_create_accessible (AtkObjectFactory *factory, GObject *obj);
  50. void atk_object_factory_invalidate (AtkObjectFactory *factory);
  51. GType atk_object_factory_get_accessible_type (AtkObjectFactory *factory);
  52. G_END_DECLS
  53. #endif /* __GTK_OBJECT_FACTORY_H__ */