示例#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);
 }