-root = PageRoot(\r
- Box({\r
+root = X.UI.PageRoot(\r
+ X.UI.Box({\r
width : '10%',\r
height : '10%',\r
left : 5,\r
top : 1,\r
bgColor : 0x0000ff\r
}),\r
- Box({\r
+ X.UI.Box({\r
width : 5,\r
height : 5,\r
left : '10%',\r
bottom : '70%',\r
bgColor : 0xff0000\r
}),\r
- VBox(\r
+ X.UI.VBox(\r
{\r
width : '50%',\r
left : '49%',\r
padding : [ 4, 1 ],\r
sizing : 'border'\r
},\r
- Box({\r
+ X.UI.Box({\r
width : '50%',\r
height : 2,\r
left : '25%',\r
bgColor : 0x999999\r
}),\r
- Text( 'Hello, world!', { width : '100%' } ),\r
- Text( '----------------------------', { width : '100%' } ),\r
- text = Text( 'PettanR-team. rrrrrrrrrr', { width : '100%' } )\r
+ X.UI.Text( 'Hello, world!', { width : '100%' } ),\r
+ X.UI.Text( '----------------------------', { width : '100%' } ),\r
+ text = X.UI.Text( 'PettanR-team. rrrrrrrrrr', { width : '100%' } )\r
.listen( X.UI.Event.TAP, _onClick )\r
)\r
);\r