Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
added NineSlicePlane class
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Nov 25, 2016
1 parent 5c361b0 commit 1afa6b4
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
18 changes: 18 additions & 0 deletions docs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17666,6 +17666,24 @@
</new>
<meta><m n=":native"><e>"PIXI.mesh.Plane"</e></m></meta>
</class>
<class path="pixi.mesh.NineSlicePlane" params="" file="src/pixi/mesh/NineSlicePlane.hx" extern="1">
<extends path="pixi.mesh.Plane"/>
<leftWidth public="1"><x path="Int"/></leftWidth>
<rightWidth public="1"><x path="Int"/></rightWidth>
<topHeight public="1"><x path="Int"/></topHeight>
<bottomHeight public="1"><x path="Int"/></bottomHeight>
<updateHorizontalVertices public="1" set="method"><f a=""><x path="Void"/></f></updateHorizontalVertices>
<updateVerticalVertices public="1" set="method"><f a=""><x path="Void"/></f></updateVerticalVertices>
<new public="1" set="method"><f a="texture:?leftWidth:?topHeight:?rightWidth:?bottomHeight">
<c path="pixi.core.textures.Texture"/>
<x path="Int"/>
<x path="Int"/>
<x path="Int"/>
<x path="Int"/>
<x path="Void"/>
</f></new>
<meta><m n=":native"><e>"PIXI.mesh.NineSlicePlane"</e></m></meta>
</class>
<class path="pixi.mesh.Rope" params="" file="src/pixi/mesh/Rope.hx" extern="1">
<extends path="pixi.mesh.Mesh"/>
<points public="1"><c path="Array"><c path="pixi.core.math.Point"/></c></points>
Expand Down
4 changes: 2 additions & 2 deletions haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"contributors": [
"adireddy"
],
"releasenote": "updated to latest pixi 4.2.2 and spine externs",
"version": "4.2.0",
"releasenote": "added NineSlicePlane class in mesh package",
"version": "4.2.1",
"url": "https://github.com/pixijs/pixi-haxe",
"dependencies": {
"perf.js": ""
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixijs",
"version": "4.2.0",
"version": "4.2.1",
"description": "Externs of pixi.js v4.x for Haxe - a fast and lightweight 2D rendering library that works across all devices",
"author": "Adi Reddy Mora",
"homepage": "http://adireddy.github.io",
Expand Down
17 changes: 17 additions & 0 deletions src/pixi/mesh/NineSlicePlane.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package pixi.mesh;

import pixi.core.textures.Texture;
@:native("PIXI.mesh.NineSlicePlane")
extern class NineSlicePlane extends Plane {

var leftWidth:Int;
var rightWidth:Int;
var topHeight:Int;
var bottomHeight:Int;

function new(texture:Texture, ?leftWidth:Int, ?topHeight:Int, ?rightWidth:Int, ?bottomHeight:Int);

function updateHorizontalVertices():Void;

function updateVerticalVertices():Void;
}

0 comments on commit 1afa6b4

Please sign in to comment.