GUI系统的设计

2016-09-03  本文已影响0人  golden_age

(2013年旧文)
YAUI


YAUI(Y et A nother UI), 是一个新思路的GUI系统, 它参考了传统GUI和HTML的设计

以下是它的特点:

代码示例;

  var strXML = @"
    <div layout='vertical, shrink'>
      <label id='lb1' text='touch me!'><label>
      <label id='lb2' text='touch me again!'><label>
      <label id='lb3' text='donnot touch me!'><label>
    </div>";                                //layout 
  var ui = UI.loadXML(strXML);                 
  var lb = ui.findByID('lb1') as UILable;     //query
  lb.text = "touch me!";                     //属性
  lb.evtClick = ()=>print("i am touched!");  //事件

demo

[download][1]

![demo pic][21]
![demo pic][3]
![demo pic][31]


demo picdemo pic
demo picdemo pic

todo list

Version

0.1

me

lxf0525@gmail.com

453588006@qq.com
[1]:https://raw.githubusercontent.com/TheWindX/YAUI/master/demo.zip
[2]:https://raw.githubusercontent.com/TheWindX/YAUI/master/doc/demo2.png
[21]:https://raw.githubusercontent.com/TheWindX/YAUI/master/doc/demo21.png
[3]:https://raw.githubusercontent.com/TheWindX/YAUI/master/doc/demo3.png
[31]:https://raw.githubusercontent.com/TheWindX/YAUI/master/doc/demo31.png

(2013旧文)

上一篇 下一篇

猜你喜欢

热点阅读