示例#1
0
文件: Layer2d.cs 项目: chkn/cirrus
 /// <summary>
 /// Initializes a new instance of the <see cref="Cirrus.Gfx.Layer2d"/> class.
 /// </summary>
 /// <param name='surface'>
 /// The <see cref="Cirrus.Gfx.ISurface2d" /> to which this layer will render.
 /// </param>
 /// <param name='transform'>
 /// Transform.
 /// </param>
 protected Layer2d(ISurface2d surface, bool transform)
 {
     this.Surface = surface;
     this.transform = transform;
     this.ScaleX = 1;
     this.ScaleY = 1;
     this.Bounds = new BoundingRect ();
     this.Bounds.Change.OnNext += HandleBoundsChange;
 }
示例#2
0
文件: RootWidget.cs 项目: chkn/cirrus
 public RootWidget(ISurface2d nativeSurface)
     : base(nativeSurface)
 {
 }