A game framework written with osu! in mind.
at master 22 lines 751 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4#nullable enable 5 6using osu.Framework.Graphics.UserInterface; 7 8namespace osu.Framework.Graphics.Cursor 9{ 10 /// <summary> 11 /// Interface to be implemented by UI controls that show a <see cref="Popover"/> on click. 12 /// </summary> 13 public interface IHasPopover : IDrawable 14 { 15 /// <summary> 16 /// Creates the <see cref="Popover"/> to display for this control. 17 /// Supports returning <see langword="null"/> if the popover should only display in some cases 18 /// (e.g. if the control is not disabled). 19 /// </summary> 20 Popover? GetPopover(); 21 } 22}