def __init__(self, bodytype=None): NativeClass.__init__(self) self.store(libfp_core.Body()) if not bodytype is None: self.type = bodytype
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
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
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 })
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())
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 })
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())
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.PhysicsWorld())
def __init__(self, text=None): NativeClass.__init__(self) if text is not None: self.store(libfp_core.Text(text))
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Animation())
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))
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Group())
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.ContactEvent())
def __init__(self, image=None): NativeClass.__init__(self) if image is not None: self.store(libfp_core.Image(image))
def __init__(self): NativeClass.__init__(self) self.store(ObserverWrap()) self._native.function = self.action
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Collection())
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Property()) self.listen({"get": self.on_get, "set": self.on_set})
def __init__(self, color=None): NativeClass.__init__(self) if not color is None: self.store(libfp_core.Color(color))
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Scene()) self.listen({"init": self.on_init, "post_render": self.on_render})
def __init__(self, font_file=None): NativeClass.__init__(self) if not font_file is None: self.store(libfp_core.Font(font_file))
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Observable())
def __init__(self): NativeClass.__init__(self) self.store(libfp_core.Primitive())