### Install JTGC using JPPM Source: https://github.com/jphp-group/jtgc/blob/master/api-docs/README.md Instructions to add the JTGC utility to your project using the JPPM package manager. ```Shell jppm add JTGC@0.0.2+dev ``` -------------------------------- ### JSON Layout Definition for JTGC Source: https://github.com/jphp-group/jtgc/blob/master/README.md An example JSON configuration defining a simple button component for use with the JTGC library. This structure specifies the button's text, dimensions, and a unique identifier. ```json [ { "_": "button", "text": "test JTGC", "size": [50, 70], "id": "mySuperButton" } ] ``` -------------------------------- ### JTGC Class API Reference Source: https://github.com/jphp-group/jtgc/blob/master/api-docs/classes/jtgc/parser/JTGC.md Comprehensive API documentation for the `JTGC` class, outlining its structure, properties, and method signatures for GUI component parsing. ```APIDOC class JTGC (jtgc\parser\JTGC) source: jtgc/parser/JTGC.php Properties: ->components: mixed ->guiArray: mixed Methods: ->__construct(array $data): void ->get(array $size): jtgc\parser\UXAnchorPane ->parseNode(array $data): UXNode ->isJTGNode(mixed $val): bool ``` -------------------------------- ### JTGC API Classes Overview Source: https://github.com/jphp-group/jtgc/blob/master/api-docs/README.md Overview of the main classes available in the JTGC API for parsing JavaFX GUI layouts from JSON, located within the 'jtgc\parser' namespace. ```APIDOC Classes: jtgc\parser: - JTGC - JTGCError ``` -------------------------------- ### JTGCError Class API Reference Source: https://github.com/jphp-group/jtgc/blob/master/api-docs/classes/jtgc/parser/JTGCError.md Provides the API definition for the `JTGCError` class, including its full namespace, parent class, and source file location. ```APIDOC Class: JTGCError Namespace: jtgc\parser\JTGCError Extends: Exception Source: jtgc/parser/JTGCError.php ``` -------------------------------- ### PHP Class for JavaFX GUI with JTGC Source: https://github.com/jphp-group/jtgc/blob/master/README.md Demonstrates how to create a JavaFX form using the JTGC library in PHP. It loads a GUI layout from 'layout.json' and sets up an event handler for a button defined within that layout. ```php use gui; use jtgc\parser\JTGC; use std; class Form extends UXForm { public function show() { $this->layout = new JTGC(fs::parse("layout.json"))->get([ 300, 300 ]); // [ 300, 300 ] is a size of panel parent::show(); // show form $this->mySuperButton->on("click", fn() => { UXDialog::show("mySuperButton is clicked!"); // show dialog }); } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.