// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Containers; using osuTK; namespace osu.Framework.Graphics.UserInterface { /// /// A UI component generally used to show the current cursor location in a text edit field. /// public abstract class Caret : CompositeDrawable { /// /// Request the caret be displayed at a particular location, with an optional selection length. /// /// The position (in parent space) where the caret should be displayed. /// If a selection is active, the length (in parent space) of the selection. The caret should extend to display this selection to the user. public abstract void DisplayAt(Vector2 position, float? selectionWidth); } }