Back to index

gcompris  8.2.2
Classes | Functions
py-mod-anim.h File Reference
#include <Python.h>
#include "gcompris/anim.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  py_GcomprisAnimation
struct  py_GcomprisAnimCanvas

Functions

void python_gcompris_anim_module_init ()

Class Documentation

struct py_GcomprisAnimation

Definition at line 9 of file py-mod-anim.h.

Collaboration diagram for py_GcomprisAnimation:
Class Members
PyObject_HEAD GcomprisAnimation * a
struct py_GcomprisAnimCanvas

Definition at line 14 of file py-mod-anim.h.

Collaboration diagram for py_GcomprisAnimCanvas:
Class Members
PyObject_HEAD PyObject * anim
GcomprisAnimCanvasItem * item

Function Documentation

Definition at line 294 of file py-mod-anim.c.

{
  PyObject* m;

  py_GcomprisAnimationType.tp_new = PyType_GenericNew;
  py_GcomprisAnimationType.ob_type = &PyType_Type;
  py_GcomprisAnimCanvasType.tp_new = PyType_GenericNew;
  py_GcomprisAnimCanvasType.ob_type = &PyType_Type;
  if (PyType_Ready(&py_GcomprisAnimationType) < 0)
      return;
  if (PyType_Ready(&py_GcomprisAnimCanvasType) < 0)
      return;

  m = Py_InitModule("_gcompris_anim", PythonGcomprisAnimModule);

  Py_INCREF(&py_GcomprisAnimationType);
  Py_INCREF(&py_GcomprisAnimCanvasType);
  PyModule_AddObject(m, "Animation", (PyObject *)&py_GcomprisAnimationType);
  PyModule_AddObject(m, "CanvasItem", (PyObject *)&py_GcomprisAnimCanvasType);
}

Here is the caller graph for this function: