atkobjectfactory.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // included by atk.pp
  2. {$IFDEF read_forward_definitions}
  3. {$ENDIF read_forward_definitions}
  4. //------------------------------------------------------------------------------
  5. {$IFDEF read_interface_types}
  6. PAtkObjectFactory = ^TAtkObjectFactory;
  7. TAtkObjectFactory = record
  8. parent : TGObject;
  9. end;
  10. PAtkObjectFactoryClass = ^TAtkObjectFactoryClass;
  11. TAtkObjectFactoryClass = record
  12. parent_class : TGObjectClass;
  13. create_accessible : function (obj:PGObject):PAtkObject; cdecl;
  14. invalidate : procedure (factory:PAtkObjectFactory); cdecl;
  15. get_accessible_type : function :GType; cdecl;
  16. pad1 : TAtkFunction;
  17. pad2 : TAtkFunction;
  18. end;
  19. {$ENDIF read_interface_types}
  20. //------------------------------------------------------------------------------
  21. {$IFDEF read_interface_rest}
  22. function ATK_TYPE_OBJECT_FACTORY : GType;
  23. function ATK_OBJECT_FACTORY(obj: pointer) : PAtkObjectFactory;
  24. function ATK_OBJECT_FACTORY_CLASS(klass: pointer) : PAtkObjectFactoryClass;
  25. function ATK_IS_OBJECT_FACTORY(obj: pointer) : boolean;
  26. function ATK_IS_OBJECT_FACTORY_CLASS(klass: pointer) : boolean;
  27. function ATK_OBJECT_FACTORY_GET_CLASS(obj: pointer) : PAtkObjectFactoryClass;
  28. function atk_object_factory_get_type:GType; cdecl; external atklib;
  29. function atk_object_factory_create_accessible(factory:PAtkObjectFactory; obj:PGObject):PAtkObject; cdecl; external atklib;
  30. procedure atk_object_factory_invalidate(factory:PAtkObjectFactory); cdecl; external atklib;
  31. function atk_object_factory_get_accessible_type(factory:PAtkObjectFactory):GType; cdecl; external atklib;
  32. {$ENDIF read_interface_rest}
  33. //------------------------------------------------------------------------------
  34. {$IFDEF read_implementation}
  35. function ATK_TYPE_OBJECT_FACTORY : GType;
  36. begin
  37. ATK_TYPE_OBJECT_FACTORY:=atk_object_factory_get_type;
  38. end;
  39. function ATK_OBJECT_FACTORY(obj: pointer) : PAtkObjectFactory;
  40. begin
  41. ATK_OBJECT_FACTORY:=PAtkObjectFactory(G_TYPE_CHECK_INSTANCE_CAST(obj,ATK_TYPE_OBJECT_FACTORY));
  42. end;
  43. function ATK_OBJECT_FACTORY_CLASS(klass: pointer) : PAtkObjectFactoryClass;
  44. begin
  45. ATK_OBJECT_FACTORY_CLASS:=PAtkObjectFactoryClass(G_TYPE_CHECK_CLASS_CAST(klass,ATK_TYPE_OBJECT_FACTORY));
  46. end;
  47. function ATK_IS_OBJECT_FACTORY(obj: pointer) : boolean;
  48. begin
  49. ATK_IS_OBJECT_FACTORY:=G_TYPE_CHECK_INSTANCE_TYPE(obj,ATK_TYPE_OBJECT_FACTORY);
  50. end;
  51. function ATK_IS_OBJECT_FACTORY_CLASS(klass: pointer) : boolean;
  52. begin
  53. ATK_IS_OBJECT_FACTORY_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,ATK_TYPE_OBJECT_FACTORY);
  54. end;
  55. function ATK_OBJECT_FACTORY_GET_CLASS(obj: pointer) : PAtkObjectFactoryClass;
  56. begin
  57. ATK_OBJECT_FACTORY_GET_CLASS:=PAtkObjectFactoryClass(G_TYPE_INSTANCE_GET_CLASS(obj,ATK_TYPE_OBJECT_FACTORY));
  58. end;
  59. {$ENDIF read_implementation}