public void UpdateGeometries(RawVector2 center, RawVector2 size) { Center = center; Size = size; BorderRect = SharpDXUtils.CenteredRect(center, size); ContentRect = BorderWidth > 0 ? BorderRect.Shrink(BorderWidth) : BorderRect; var absoluteMargins = FlickerMargins.GetAbsolute(ContentRect.Width(), ContentRect.Height()); FlickerRect = absoluteMargins.IsEmpty(0.1) ? ContentRect : ContentRect.Shrink((float)absoluteMargins.Left, (float)absoluteMargins.Top, (float)absoluteMargins.Right, (float)absoluteMargins.Bottom); FixationPoint = new D2D1.Ellipse(FlickerRect.Center(), FixationPointSize, FixationPointSize); }
private void RegisterBorder(BorderRect rect) { BorderRect = rect; }