コード例 #1
0
 public override void doLayout()
 {
     base.doLayout();
     icon.Set_Pos(0, 0);
     //text.moveRightOf(icon, icon.Get_Width() > 0 ? 4 : 0);
     text.moveRightOf(icon, 0);
 }
コード例 #2
0
        public override void doLayout()
        {
            base.doLayout();
            float icon_sz = this.inner_area.height;

            pl_icon.Set_Pos(0, 0);
            pl_icon.Set_Size(icon_sz, icon_sz);

            const float xPad = 4f;

            pl_title.moveRightOf(pl_icon, xPad);

            pl_version.moveRightOf(pl_icon, xPad);
            pl_version.moveBelow(pl_title);

            pl_status.alignBottom();
            pl_status.alignRightSide();
        }