Exemplo n.º 1
0
 public void OnTabSelected(bool boolz)
 {
     if (boolz == true)
     {
         OnTabSelectedEvent.Invoke(boolz);
         TabControllerEvent.Invoke(TabButton);
     }
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 public void Select()
 {
     OnTabSelectedEvent?.Invoke(this.gameObject);
 }