Last active
January 24, 2016 04:59
-
-
Save unascribed/42e8439defedc9dcecce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!version 1 | |
!import aesen.laminate.component.* | |
!import net.example.customcomponents.MyCoolComponent | |
ProgressBar[30x40+10,10] | |
Panel[30x80+10,60](title="Some Awesome Panel" showBorder) | |
Label | |
| Hello, GUI! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aesen.laminate.component.*; | |
import net.example.customcomponents.MyCoolComponent; | |
Screen screen = new Screen(); | |
ProgressBar bar = new ProgressBar(); | |
bar.width(30).height(80).x(10).y(60); | |
screen.addComponent(bar); | |
Panel panel = new Panel(); | |
panel.width(30).height(80).x(10).y(60); | |
panel.setTitle("Some Awesome Panel"); | |
panel.setShowBorder(true); | |
Label label = new Label(); | |
label.setText("Hello, GUI!"); | |
panel.add(label); | |
screen.add(panel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"imports": [ | |
"aesen.laminate.component.*", | |
"net.example.customcomponents.MyCoolComponent" | |
], | |
"contents": [ | |
{ | |
"type": "ProgressBar", | |
"geometry": "30x40+10,10" | |
}, | |
{ | |
"type": "Panel", | |
"geometry": "30x80+10,60", | |
"showBorder": true, | |
"title": "Some Awesome Panel", | |
"contents": [ | |
{ | |
"type": "Label", | |
"text": "Hello, GUI!" | |
} | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"> | |
<?import aesen.laminate.component.*> | |
<?import net.example.customcomponents.MyCoolComponent> | |
<Screen version="1"> | |
<ProgressBar geometry="30x40+10,10"/> | |
<Panel | |
geometry="30x80+10,60" | |
title="Some Awesome Panel" | |
showBorder> | |
<Label text="Hello, GUI!"/> | |
</Panel> | |
</Screen> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment