public dbugVisualInvalidationTracer(RootGraphic visualroot) { this.visualroot = visualroot; dbug_Id = dbug_totalId; ++dbug_totalId; outputFileName = dbugCoreConst.dbugRootFolder + "\\invalidate\\" + dbug_Id + "_" + Guid.NewGuid().ToString() + ".txt"; }
public dbugVisualEvalScrollBarTrace(RootGraphic visualroot) { this.visualroot = visualroot; myTraceCount = tracerCount; ++tracerCount; outputFileName = dbugCoreConst.dbugRootFolder + "\\invalidate\\" + myTraceCount + "_" + Guid.NewGuid().ToString() + ".txt"; }
public dbugVisualLayoutTracer(RootGraphic visualroot) { this.visualroot = visualroot; myTraceCount = tracerCount; ++tracerCount; outputFileName = dbugCoreConst.dbugRootFolder + "\\layout_trace\\" + myTraceCount + "_" + Guid.NewGuid().ToString() + ".txt"; }
protected override void OnStartDemo(SampleViewport viewport) { this.viewport = viewport; this.rootgfx = viewport.ViewportControl.RootGfx; //-------------------------------- bgbox = new LayoutFarm.CustomWidgets.SimpleBox(800, 600); bgbox.BackColor = Color.White; bgbox.SetLocation(0, 0); SetupBackgroundProperties(bgbox); viewport.AddContent(bgbox); //user box1 var box1 = new LayoutFarm.CustomWidgets.SimpleBox(150, 150); box1.BackColor = Color.Red; box1.SetLocation(10, 10); SetupActiveBoxProperties(box1); bgbox.AddChild(box1); var box2 = new LayoutFarm.CustomWidgets.SimpleBox(60, 60); box2.BackColor = Color.Yellow; box2.SetLocation(50, 50); SetupActiveBoxProperties(box2); bgbox.AddChild(box2); var box3 = new LayoutFarm.CustomWidgets.SimpleBox(60, 60); box3.BackColor = Color.OrangeRed; box3.SetLocation(200, 80); SetupActiveBoxProperties(box3); bgbox.AddChild(box3); selectionBox = new UISelectionBox(1, 1); selectionBox.Visible = false; selectionBox.BackColor = Color.FromArgb(80, Color.Green); viewport.AddContent(selectionBox); SetupSelectionBoxProperties(selectionBox); }
public virtual void dbug_WriteOwnerLayerInfo(RootGraphic visualroot, int i) { if (this.parentLink != null) { visualroot.dbug_rootHitChainMsg.AddLast(new dbugLayoutMsg(this, new string('.', i) + " [Ly:" + i + "] " + parentLink.dbugGetLinkInfo())); } }
public RenderElement(RootGraphic rootGfx, int width, int height) { this.b_width = width; this.b_height = height; this.rootGfx = rootGfx; #if DEBUG dbug_totalObjectId++; dbug_obj_id = dbug_totalObjectId; //if (dbug_obj_id == 57) //{ //} //if(this.dbug_obj_id ==6) //{ //} //this.dbug_SetFixedElementCode(this.GetType().Name); #endif }
public virtual void dbug_WriteOwnerLineInfo(RootGraphic visualroot, int i) { }
public TopWindowRenderBox(RootGraphic rootGfx, int width, int height) : base(width, height) { _rootGfx = rootGfx; this.IsTopWindow = true; }
//------- public TopWindowEventRoot(RenderElement topRenderElement) { this.iTopBoxEventPortal = this.topWinBoxEventPortal = new RenderElementEventPortal(topRenderElement); this.rootgfx = topRenderElement.Root; this.hoverMonitoringTask = new UIHoverMonitorTask(OnMouseHover); }
public TopWindowRenderBox(RootGraphic rootGfx, int width, int height) : base(rootGfx, width, height) { this.IsTopWindow = true; this.HasSpecificWidthAndHeight = true; }
public abstract void ResetRootGraphics(RootGraphic rootgfx);
//get primary render element public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (!this.HasReadyRenderElement) { gridBox = new LayoutFarm.CustomWidgets.GridBox(30, 30); gridBox.SetLocation(5, 5); gridBox.BuildGrid(3, 3, CellSizeStyle.UniformCell); var renderE = base.GetPrimaryRenderElement(rootgfx); renderE.AddChild(gridBox); //------------------------------------------------------ renderE.AddChild(boxLeftTop); renderE.AddChild(boxRightTop); renderE.AddChild(boxLeftBottom); renderE.AddChild(boxRightBottom); //------------------------------------------------------ } return base.GetPrimaryRenderElement(rootgfx); }
public RenderBoxBase(RootGraphic rootgfx, int width, int height) : base(rootgfx, width, height) { this.MayHasViewport = true; this.MayHasChild = true; }
public override void ResetRootGraphics(RootGraphic rootgfx) { if (this.Root != rootgfx) { DirectSetRootGraphics(this, rootgfx); if (this.defaultLayer != null) { foreach (var r in defaultLayer.GetRenderElementIter()) { r.ResetRootGraphics(rootgfx); } } } }
//get primary render element public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (!this.HasReadyRenderElement) { gridBox = new LayoutFarm.CustomWidgets.GridBox(30, 30); gridBox.SetLocation(5, 5); gridBox.BuildGrid(3, 3, CellSizeStyle.UniformCell); var myRenderElement = base.GetPrimaryRenderElement(rootgfx) as LayoutFarm.CustomWidgets.CustomRenderBox; myRenderElement.AddChild(gridBox); } return base.GetPrimaryRenderElement(rootgfx); }
protected static void DirectSetRootGraphics(RenderElement r, RootGraphic rootgfx) { r.rootGfx = rootgfx; }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (!this.HasReadyRenderElement) { var renderE = base.GetPrimaryRenderElement(rootgfx); //------------------------------------------------------ renderE.AddChild(boxLeftTop); renderE.AddChild(boxRightTop); renderE.AddChild(boxLeftBottom); renderE.AddChild(boxRightBottom); //------------------------------------------------------ renderE.AddChild(boxLeft); renderE.AddChild(boxRight); renderE.AddChild(boxTop); renderE.AddChild(boxBottom); //grippers renderE.AddChild(gripperLeft); renderE.AddChild(gripperRight); renderE.AddChild(gripperTop); renderE.AddChild(gripperBottom); //------------------------------------------------------ } return base.GetPrimaryRenderElement(rootgfx); }
public TopWindowRenderBox(RootGraphic rootGfx, int width, int height) : base(rootGfx, width, height) { this.IsTopWindow = true; this.HasSpecificSize = true; }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (!this.HasReadyRenderElement) { var myRenderElement = base.GetPrimaryRenderElement(rootgfx); //------------------------------------------------------ myRenderElement.AddChild(boxLeftTop); myRenderElement.AddChild(boxRightTop); myRenderElement.AddChild(boxLeftBottom); myRenderElement.AddChild(boxRightBottom); //------------------------------------------------------ myRenderElement.AddChild(boxLeft); myRenderElement.AddChild(boxRight); myRenderElement.AddChild(boxTop); myRenderElement.AddChild(boxBottom); //------------------------------------------------------ } return base.GetPrimaryRenderElement(rootgfx); }