Re: mouse button event and gtkmm-4.0
- From: Duncan Duncan <duncan4031 gmail com>
- To: Andrew Potter <agpotter gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: mouse button event and gtkmm-4.0
- Date: Mon, 26 Sep 2022 22:04:12 +0200
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, &Window::on_mouse_key_pressed), false);
void on_mouse_key_pressed(int, double, double)
{
std::cout << "clic left mouse button" << std::endl;
}
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:
Unfortunately google doesn't like returning the gitlab pages links yet.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]