示例#1
0
        public LayoutMetrics ToClr()
        {
            return(new LayoutMetrics
            {
                ActualHeight = ActualHeight,
                ActualWidth = ActualWidth,

                LayoutSlot = LayoutSlot.ToClr(),
                VisualOffset = VisualOffset.ToClr(),
                LayoutClip = LayoutClip.ToClr(),

                HiddenDesire = HiddenDesire.ToClr(),
                DesiredSize = DesiredSize.ToClr(),
                RenderSize = RenderSize.ToClr(),

                AbsoluteXform = AbsoluteXform,
                LayoutXform = LayoutXform,
                LocalXform = LocalXform,
                RenderXform = RenderXform,

                TotalOpacity = TotalOpacity,
                TotalIsRenderVisible = TotalIsRenderVisible,
                TotalIsHitTestVisible = TotalIsHitTestVisible,
                TotalRenderProjection = TotalRenderProjection,
            });
        }
示例#2
0
 public Obj(string fileName, string textureName, VisualOffset offset, Opacity opacity)
 {
     this.objName     = fileName;
     this.textureName = textureName;
     this.offset      = offset;
     this.opacity     = opacity;
 }
示例#3
0
 public Obj(string fileName)
 {
     this.objName = fileName;
     this.offset  = new VisualOffset(Vector3.one, Vector3.zero, Vector3.zero);
 }
示例#4
0
 public Obj(string fileName, string textureName, VisualOffset offset)
 {
     this.objName     = fileName;
     this.textureName = textureName;
     this.offset      = offset;
 }