Re: [gtkmm4] Help on DrawingArea plus Mouse Activity
Andrew Potter via gtkmm-list <[email protected]> Sat, 9 Jul 2022 14:19:39 -0700
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CABgWb1LW90XxmYHEypjRDJkPPhhFxHNUtDmunMkuuv3gUYhQnQ@mail.gmail.com> |
--===============6716599820551865143== Content-Type: multipart/alternative; boundary="000000000000072bb905e365e193" --000000000000072bb905e365e193 Content-Type: text/plain; charset="UTF-8" The base gtk documentation will be more informative on how to use the toolkit in general. Specifically, https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkwidget-event-signals covers how to change event handling. The relevant event controllers: GestureClick, GestureStylus, GestureDrag are talked about on this discourse post: https://discourse.gnome.org/t/handling-both-gesturestylus-and-gesturedrag-for-stylus/9217/7 I decided to learn about this myself, so I reimplemented the example from that post in gtkmm. I hope it is helpful for you: https://gist.github.com/talisein/f4f80167fa21f329f3db06a2730746f5 --000000000000072bb905e365e193 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>The base gtk documentation will be more informative o= n how to use the toolkit in general.</div><div>Specifically, <a href=3D"htt= ps://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkwidget-event-signa= ls">https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-gtkwidget-even= t-signals</a> covers how to change event handling.</div><div><br></div><div= >The relevant event controllers: GestureClick, GestureStylus, GestureDrag a= re talked about on this discourse post: <a href=3D"https://discourse.gnome.= org/t/handling-both-gesturestylus-and-gesturedrag-for-stylus/9217/7">https:= //discourse.gnome.org/t/handling-both-gesturestylus-and-gesturedrag-for-sty= lus/9217/7</a></div><div><br></div><div>I decided to learn about this mysel= f, so I reimplemented the example from that post in gtkmm. I hope it is hel= pful for you:</div><div><br></div><div><a href=3D"https://gist.github.com/t= alisein/f4f80167fa21f329f3db06a2730746f5">https://gist.github.com/talisein/= f4f80167fa21f329f3db06a2730746f5</a></div></div> --000000000000072bb905e365e193-- --===============6716599820551865143== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list --===============6716599820551865143==--