Example #1
0
    def __init__(self, bodytype=None):
        NativeClass.__init__(self)

        self.store(libfp_core.Body())

        if not bodytype is None:
            self.type = bodytype
Example #2
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Element())
     self.listen({"add": self.on_add,
                  "remove": self.on_remove,
                  "pre_render": self.on_pre_render,
                  "post_render": self.on_render})
    def __init__(self, element_a=None, element_b=None):
        NativeClass.__init__(self)

        self.store(libfp_core.DistanceJoint())

        if not element_a is None:
            self.element_a = element_a
            self.element_b = element_b
Example #4
0
    def __init__(self, instance=None, attribute=None):
        NativeClass.__init__(self)

        self.store(libfp_core.Tween())

        # We want the property to be created once it starts running
        self.listen({"pre_render": self.create_property})
        self.instance = instance
        self.attribute = attribute
Example #5
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.App())
        self.listen({
            "render": self.on_render,
            "init": self.on_init,
            "change_scene": self.on_scene_change
        })
Example #6
0
    def __init__(self, image=None):
        NativeClass.__init__(self)

        if isinstance(image, NativeClass):
            self.store(libfp_core.Sprite(image._native))
        elif image is not None:
            self.store(libfp_core.Sprite(image))
        else:
            self.store(libfp_core.Sprite())
Example #7
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Playable())

        self.listen({
            "render_single": self.on_render_single,
            "calculate_duration": self.on_calculate_duration
        })
Example #8
0
 def __init__(self, file=None):
     NativeClass.__init__(self)
     
     self.auto_cast_numbers = True
     self.module_paths = []
     
     if file:
         self.store(libfp_core.Node(file))
     else:
         self.store(libfp_core.Node())
Example #9
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.PhysicsWorld())
Example #10
0
    def __init__(self, text=None):
        NativeClass.__init__(self)

        if text is not None:
            self.store(libfp_core.Text(text))
Example #11
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Animation())        
Example #12
0
    def __init__(self, name="undefined"):
        NativeClass.__init__(self)

        self.store(libfp_core.Event(name))
 def __init__(self, evname=None):
     NativeClass.__init__(self)
     
     if not evname is None:
         self.store(libfp_core.PropertyEvent(evname))        
Example #14
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Group())
Example #15
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.ContactEvent())
Example #16
0
    def __init__(self, image=None):
        NativeClass.__init__(self)

        if image is not None:
            self.store(libfp_core.Image(image))
Example #17
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(ObserverWrap())
     self._native.function = self.action
Example #18
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Collection())
Example #19
0
 def __init__(self):
     NativeClass.__init__(self)
     
     self.store(libfp_core.Property())
     self.listen({"get": self.on_get,
                  "set": self.on_set})
Example #20
0
    def __init__(self, color=None):
        NativeClass.__init__(self)

        if not color is None:
            self.store(libfp_core.Color(color))
Example #21
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Scene())
        self.listen({"init": self.on_init, "post_render": self.on_render})
Example #22
0
    def __init__(self, font_file=None):
        NativeClass.__init__(self)

        if not font_file is None:
            self.store(libfp_core.Font(font_file))
Example #23
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Observable())
Example #24
0
    def __init__(self):
        NativeClass.__init__(self)

        self.store(libfp_core.Primitive())