Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
172 changes: 172 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion jphp-gui-ext/package.php.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

name: jphp-gui-ext
version: 2.1.3
version: 2.1.4
description: GUI based on JavaFX 11 library.

deps:
Expand Down Expand Up @@ -30,6 +30,9 @@ gradle:


history:
2.1.4:
- Create wrappers for JavaFX transforms.
- Small EventProvider fixes.
2.1.2:
- Small Fixes
2.1.1:
Expand Down
6 changes: 6 additions & 0 deletions jphp-gui-ext/sdk/php/gui/UXNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use php\gui\effect\UXEffect;
use php\gui\effect\UXEffectPipeline;
use php\gui\event\UXEvent;
use php\gui\transform\UXTransform;
use php\lang\IllegalArgumentException;
use php\gui\UXList;

Expand Down Expand Up @@ -297,6 +298,11 @@ abstract class UXNode
*/
public $boundsInParent = ['x' => 0.0, 'y' => 0.0, 'z' => 0.0, 'width' => 0.0, 'height' => 0.0, 'depth' => 0.0];

/**
* @var UXList of UXTransform
*/
public $transforms;

/**
* UXNode constructor.
*/
Expand Down
48 changes: 48 additions & 0 deletions jphp-gui-ext/sdk/php/gui/transform/UXAffine.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?php


namespace php\gui\transform;


class UXAffine extends UXTransform {
public function __construct(?UXTransform $transform = null)
{
}

public function appendArray(array $matrix, string $type, int $offset){}

public function append2D(float $mxx, float $mxy, float $tx, float $myx, float $myy, float $ty){}
public function append3D(float $mxx, float $mxy, float $mxz, float $tx, float $myx, float $myy, float $myz, float $ty, float $mzx, float $mzy, float $mzz, float $tz){}

public function appendTransform(UXTransform $transform){}

public function appendScale(float $sx, float $sy, float $sz = null, array $pivot = [0, 0, 0]){}

public function appendShear(float $shx, float $shy, array $pivot = [0, 0]){}

public function appendTranslation(float $tx, float $ty, float $tz = null){}

public function appendRotation2D(float $angle, array $pivot = []){}
public function appendRotation3D(float $angle, array $pivot, array $axis){}

public function prependArray(array $matrix, string $type, int $offset){}

public function prepend2D(float $mxx, float $mxy, float $tx, float $myx, float $myy, float $ty){}
public function prepend3D(float $mxx, float $mxy, float $mxz, float $tx, float $myx, float $myy, float $myz, float $ty, float $mzx, float $mzy, float $mzz, float $tz){}

public function prependTransform(UXTransform $transform){}

public function prependScale(float $sx, float $sy, float $sz = null, array $pivot = [0, 0, 0]){}

public function prependShear(float $shx, float $shy, array $pivot = [0, 0]){}

public function prependTranslation(float $tx, float $ty, float $tz = null){}

public function prependRotation2D(float $angle, array $pivot = []){}
public function prependRotation3D(float $angle, array $pivot, array $axis){}

public function setElement(string $type, int $row, int $column, float $value){}

public function setToIdentity(){}
public function setToTransform(UXTransform $transform){}
}
34 changes: 34 additions & 0 deletions jphp-gui-ext/sdk/php/gui/transform/UXRotate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php


namespace php\gui\transform;


class UXRotate extends UXTransform{
/**
* @var double
*/
public $angle;

/**
* @var double
*/
public $pivotX;
/**
* @var double
*/
public $pivotY;
/**
* @var double
*/
public $pivotZ;

/**
* @var array
*/
public $axis;

public function __construct(float $angle = 0, float $pivotX = 0, float $pivotY = 0, float $pivotZ = 0, array $axis = [0, 0, 1])
{
}
}
Loading