A game framework written with osu! in mind.
at master 19 lines 804 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 4using osu.Framework.Graphics.UserInterface; 5 6namespace osu.Framework.Graphics.Cursor 7{ 8 public interface IHasContextMenu : IDrawable 9 { 10 /// <summary> 11 /// Menu items that appear when the drawable is right-clicked. 12 /// </summary> 13 /// <remarks> 14 /// If empty, this <see cref="Drawable"/> will be picked as the menu target but a context menu will not be shown. 15 /// <para>If null, this <see cref="Drawable"/> will not be picked as the menu target and other <see cref="Drawable"/>s underneath may become the menu target.</para> 16 /// </remarks> 17 MenuItem[] ContextMenuItems { get; } 18 } 19}