/// <summary> /// Renders the canvas. Call in your rendering loop. /// </summary> public void RenderCanvas() { DoThink(); Skin.SkinBase skin = Skin; Renderer.RendererBase render = skin.Renderer; render.Begin(); render.ClipRegion = Bounds; render.RenderOffset = Point.Zero; if (ShouldDrawBackground) { render.DrawColor = m_BackgroundColor; render.DrawFilledRect(RenderBounds); } DoRender(skin); DragAndDrop.RenderOverlay(this, skin); Gwen.Net.ToolTip.RenderToolTip(skin); render.EndClip(); render.End(); }
/// <summary> /// Renders the canvas. Call in your rendering loop. /// </summary> public void RenderCanvas() { DoThink(); Renderer.RendererBase render = Skin.Renderer; render.Scale = Scale; render.Begin(); Layout(false); render.ClipRegion = Bounds; render.RenderOffset = Point.Empty; if (ShouldDrawBackground) { render.DrawColor = m_BackgroundColor; render.DrawFilledRect(RenderBounds); } DoRender(Skin); DragAndDrop.RenderOverlay(this, Skin); if (m_ToolTip.IsVisible) { m_ToolTip.DoRender(Skin); } render.EndClip(); render.End(); }
/// <summary> /// Renders the canvas. Call in your rendering loop. /// </summary> public void RenderCanvas() { doThink(); Renderer.RendererBase render = Skin.Renderer; render.Begin(); recurseLayout(Skin); render.ClipRegion = Bounds; render.RenderOffset = Point.Empty; render.Scale = Scale; if (ShouldDrawBackground) { render.DrawColor = backgroundColor; render.DrawFilledRect(Bounds); } DoRender(Skin); DragAndDrop.RenderOverlay(this, Skin); Gwen.ToolTip.RenderToolTip(Skin); render.EndClip(); render.End(); }