コード例 #1
0
ファイル: MenuBackend.cs プロジェクト: wwwK/xwt
        public void Popup(IWidgetBackend widget, double x, double y)
        {
            var target = widget as WidgetBackend;

            if (target == null)
            {
                throw new ArgumentException("Widget belongs to an unsupported Toolkit", nameof(widget));
            }
            GtkWorkarounds.ShowContextMenu(Menu, target.Widget, new Gdk.Rectangle((int)x, (int)y, 0, 0));
        }
コード例 #2
0
 public void Popup(IWidgetBackend widget, double x, double y)
 {
     GtkWorkarounds.ShowContextMenu(Menu, ((WidgetBackend)widget).Widget, new Gdk.Rectangle((int)x, (int)y, 0, 0));
 }
コード例 #3
0
 public void Popup()
 {
     GtkWorkarounds.ShowContextMenu(Menu, null, Gdk.Rectangle.Zero);
 }