Example #1
0
  void initWindow_Type()
  {
    PyXBMCInitializeTypeObject(&Window_Type);

    Window_Type.tp_name = (char*)"xbmcgui.Window";
    Window_Type.tp_basicsize = sizeof(Window);
    Window_Type.tp_dealloc = (destructor)Window_Dealloc;
    Window_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Window_Type.tp_doc = window_documentation;
    Window_Type.tp_methods = Window_methods;
    Window_Type.tp_new = Window_New;
  }
Example #2
0
  void initInfoTagMusic_Type()
  {
    PyXBMCInitializeTypeObject(&InfoTagMusic_Type);

    InfoTagMusic_Type.tp_name = (char*)"xbmc.InfoTagMusic";
    InfoTagMusic_Type.tp_basicsize = sizeof(InfoTagMusic);
    InfoTagMusic_Type.tp_dealloc = (destructor)InfoTagMusic_Dealloc;
    InfoTagMusic_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    InfoTagMusic_Type.tp_doc = musicInfoTag__doc__;
    InfoTagMusic_Type.tp_methods = InfoTagMusic_methods;
    InfoTagMusic_Type.tp_base = 0;
    InfoTagMusic_Type.tp_new = 0;
  }
Example #3
0
  void initMonitor_Type()
  {
    PyXBMCInitializeTypeObject(&Monitor_Type);

    Monitor_Type.tp_name = (char*)"xbmc.Monitor";
    Monitor_Type.tp_basicsize = sizeof(Monitor);
    Monitor_Type.tp_dealloc = (destructor)Monitor_Dealloc;
    Monitor_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Monitor_Type.tp_doc = monitor__doc__;
    Monitor_Type.tp_methods = Monitor_methods;
    Monitor_Type.tp_base = 0;
    Monitor_Type.tp_new = Monitor_New;
  }
Example #4
0
  void initPlayer_Type()
  {
    PyXBMCInitializeTypeObject(&Player_Type);

    Player_Type.tp_name = (char*)"xbmc.Player";
    Player_Type.tp_basicsize = sizeof(Player);
    Player_Type.tp_dealloc = (destructor)Player_Dealloc;
    Player_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Player_Type.tp_doc = player__doc__;
    Player_Type.tp_methods = Player_methods;
    Player_Type.tp_base = 0;
    Player_Type.tp_new = Player_New;
  }
Example #5
0
  void initKeyboard_Type()
  {
    PyXBMCInitializeTypeObject(&Keyboard_Type);

    Keyboard_Type.tp_name = (char*)"xbmc.Keyboard";
    Keyboard_Type.tp_basicsize = sizeof(Keyboard);
    Keyboard_Type.tp_dealloc = (destructor)Keyboard_Dealloc;
    Keyboard_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Keyboard_Type.tp_doc = keyboard__doc__;
    Keyboard_Type.tp_methods = Keyboard_methods;
    Keyboard_Type.tp_base = 0;
    Keyboard_Type.tp_new = Keyboard_New;
  }
Example #6
0
  void initAddon_Type()
  {
    PyXBMCInitializeTypeObject(&Addon_Type);

    Addon_Type.tp_name = (char*)"xbmcaddon.Addon";
    Addon_Type.tp_basicsize = sizeof(Addon);
    Addon_Type.tp_dealloc = (destructor)Addon_Dealloc;
    Addon_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Addon_Type.tp_doc = addon__doc__;
    Addon_Type.tp_methods = Addon_methods;
    Addon_Type.tp_base = 0;
    Addon_Type.tp_new = Addon_New;
  }
Example #7
0
  void initWindowXMLDialog_Type()
  {
    PyXBMCInitializeTypeObject(&WindowXMLDialog_Type);

    WindowXMLDialog_Type.tp_name = (char*)"xbmcgui.WindowXMLDialog";
    WindowXMLDialog_Type.tp_basicsize = sizeof(WindowXMLDialog);
    WindowXMLDialog_Type.tp_dealloc = (destructor)Window_Dealloc;
    WindowXMLDialog_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    WindowXMLDialog_Type.tp_doc = windowXMLDialog__doc__;
    WindowXMLDialog_Type.tp_methods = windowXMLDialog_methods;
    WindowXMLDialog_Type.tp_base = &WindowXML_Type;
    WindowXMLDialog_Type.tp_new = WindowXMLDialog_New;
  }
  void initControlImage_Type()
  {
    PyXBMCInitializeTypeObject(&ControlImage_Type);

    ControlImage_Type.tp_name = (char*)"xbmcgui.ControlImage";
    ControlImage_Type.tp_basicsize = sizeof(ControlImage);
    ControlImage_Type.tp_dealloc = (destructor)ControlImage_Dealloc;
    ControlImage_Type.tp_compare = 0;
    ControlImage_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    ControlImage_Type.tp_doc = controlImage__doc__;
    ControlImage_Type.tp_methods = ControlImage_methods;
    ControlImage_Type.tp_base = &Control_Type;
    ControlImage_Type.tp_new = ControlImage_New;
  }
Example #9
0
  void initControl_Type()
  {
    PyXBMCInitializeTypeObject(&Control_Type);

    Control_Type.tp_name = (char*)"xbmcgui.Control";
    Control_Type.tp_basicsize = sizeof(Control);
    Control_Type.tp_dealloc = 0;
    Control_Type.tp_compare = Control_Compare;
    Control_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Control_Type.tp_doc = control__doc__;
    Control_Type.tp_methods = Control_methods;
    Control_Type.tp_base = 0;
    Control_Type.tp_new = 0;
  }
Example #10
0
  void initAction_Type()
  {
    PyXBMCInitializeTypeObject(&Action_Type);

    Action_Type.tp_name = (char*)"xbmcgui.Action";
    Action_Type.tp_basicsize = sizeof(Action);
    Action_Type.tp_dealloc = (destructor)Action_Dealloc;
    //Action_Type.tp_compare = Action_Compare;
    Action_Type.tp_richcompare = (richcmpfunc)Action_RichCompare;
    Action_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE;
    Action_Type.tp_doc = action__doc__;
    Action_Type.tp_methods = Action_methods;
    Action_Type.tp_base = 0;
    Action_Type.tp_new = Action_New;
  }