Interface PixiBridge
- All Superinterfaces:
org.teavm.jso.JSObject
public interface PixiBridge
extends org.teavm.jso.JSObject
TeaVM interface for the
pixi-bridge.js
JavaScript implementation.-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeBackgroundColor
(int backgroundColor) createSprite
(Pixi.Texture texture) createText
(String family, float size, boolean bold, String align, float lineHeight, int color) createTexture
(String id, org.teavm.jso.canvas.CanvasImageSource image, float regionX, float regionY, float regionWidth, float regionHeight) void
init()
Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
init
void init() -
getPixiApp
Pixi.App getPixiApp() -
getRootContainer
Pixi.DisplayObject getRootContainer() -
changeBackgroundColor
void changeBackgroundColor(int backgroundColor) -
createContainer
Pixi.DisplayObject createContainer() -
createTexture
Pixi.Texture createTexture(String id, org.teavm.jso.canvas.CanvasImageSource image, float regionX, float regionY, float regionWidth, float regionHeight) -
createSprite
-
createGraphics
Pixi.DisplayObject createGraphics() -
createText
Pixi.DisplayObject createText(String family, float size, boolean bold, String align, float lineHeight, int color)
-