5 using SiliconStudio.Core;
6 using SiliconStudio.Paradox.UI.Controls;
8 namespace SiliconStudio.
Paradox.UI.Renderers
13 internal class DefaultScrollBarRenderer : ElementRenderer
20 public override void RenderColor(UIElement element, UIRenderingContext context)
22 base.RenderColor(element, context);
27 var barSize = bar.RenderSizeInternal;
28 for (
int i = 0; i < 2; i++)
29 barSize[i] = (
float)(Math.Ceiling(barSize[i] * bar.RealSizeVirtualResolutionRatio[i]) / bar.RealSizeVirtualResolutionRatio[i]);
31 Batch.DrawRectangle(ref element.WorldMatrixInternal, ref barSize, ref bar.BarColorInternal, context.DepthBias);
A service registry is a IServiceProvider that provides methods to register and unregister services...