Re: mouse button event and gtkmm-4.0

2022-09-26 Thread Duncan Duncan via gtkmm-list
Thanks! so I just try quickly something like this. Exactly what i need. auto mouse = Gtk::GestureClick::create(); mouse->set_propagation_phase(Gtk::PropagationPhase::CAPTURE); mouse->set_button(GDK_BUTTON_PRIMARY); add_controller(mouse); mouse->signal_pressed().connect(sigc::mem_fun(*this, &Windo

Re: mouse button event and gtkmm-4.0

2022-09-26 Thread Andrew Potter via gtkmm-list
On Mon, Sep 26, 2022 at 10:17 AM Duncan Duncan via gtkmm-list < gtkmm-list@gnome.org> wrote: > Could someone explain how to get event key mouse ? > > Hi, A question on the list a couple months ago prompted me to make this github gist: https://gist.github.com/talisein/f4f80167fa21f329f3db06a27307

Re: mouse button event and gtkmm-4.0

2022-09-26 Thread Daniel Boles via gtkmm-list
You want Gtk::Gesture and its subclasses. ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

mouse button event and gtkmm-4.0

2022-09-26 Thread Duncan Duncan via gtkmm-list
Hello I'm on Ubuntu 22.04 and use gtkmm-4.0 There is Gtk::EventControllerKey to capture keyboard event and a good example here https://developer-old.gnome.org/gtkmm-tutorial/stable/chapter-keyboardevents.html.en But how to capture key mouse event ? I don't find anything in the documentation's gtkm