コード例 #1
0
 public void OnTabSelected(bool boolz)
 {
     if (boolz == true)
     {
         OnTabSelectedEvent.Invoke(boolz);
         TabControllerEvent.Invoke(TabButton);
     }
 }
コード例 #2
0
        protected void OnTabButtonPressed(object o, ButtonPressEventArgs args)
        {
            if (args.Event.Button == 1)
            {
                DraggingController.GetInstance().ClearEvents();
                DraggingController.GetInstance().OnDropEvent += OnDropUIElement;

                OnTabSelectedEvent?.Invoke(this);
            }
            else if (args.Event.Button == 3)
            {
                _mouseRightClickPoint = GetCanvasMousePos();

                Gtk.Menu rightButtonMenu = new Gtk.Menu();

                Gtk.MenuItem menuItem = null;

                menuItem = new Gtk.MenuItem("Delete tab page");
                menuItem.ButtonReleaseEvent += OnDeleteTabPagePressed;
                rightButtonMenu.Append(menuItem);
                rightButtonMenu.ShowAll();
                rightButtonMenu.Popup();
            }
        }
コード例 #3
0
 public void Select()
 {
     OnTabSelectedEvent?.Invoke(this.gameObject);
 }