Re: [gtkmm4] Help on DrawingArea plus Mouse Activity
Mj Mendoza IV via gtkmm-list <[email protected]> Tue, 26 Jul 2022 13:50:08 -0700
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CAP0FjUSoU10dK-KMagxE2D35cbocf6Wz0UKwuDfTSppWYXvK0w@mail.gmail.com> |
--===============4172456806345138884== Content-Type: multipart/alternative; boundary="0000000000001d9d5605e4bb6aa0" --0000000000001d9d5605e4bb6aa0 Content-Type: text/plain; charset="UTF-8" Hi Andrew! Thanks for porting the demo code. I saw the GTK version earlier but I'm not familiar on Gtkmm4 API to actually port the GTK version. I'm still halfway in porting my code, but I can draw now so I feel like it's better progress now than without your gtkmm ported version of the GTK demo. Kjell thanks for the link. I've always been referring to the developer-old gtkmm tutorial -- I'm still wondering why it's developer-old -- prolly cooking something new? ~creek23 On Sun, Jul 10, 2022, 04:29 Kjell Ahlstedt <[email protected]> wrote: > Den 2022-07-09 kl. 20:02, skrev Mj Mendoza IV via gtkmm-list: > > > I've tried the Cairo-based Clock demo, and adjusted my code to reflect > needed changes to port to gtkmm4. Now, I'm currently missing mouse > activities. > > In addition to what Andrew Potter suggested, if you want to track all > mouse movements, use Gtk::EventControllerMotion. > > Just about everything that was done in event signal handlers in gtkmm3 is > now done with the many subclasses of Gtk::EventController. > > > I've read the gtkmm4 changes section > <https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4> > of the tutorial ( > https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4) > but content is more of a note than actual information for beginner porters > like me. > > I don't think anyone will ever take the time to write a real migration > guide from gtkmm3 to gtkmm4. > > The documentation at developer-old.gnome.org > <https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4> > is not updated any more. If you want to see the latest version of the > gtkmm4 tutorial, look at > https://gnome.pages.gitlab.gnome.org/gtkmm-documentation. > > > --0000000000001d9d5605e4bb6aa0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div dir=3D"auto">Hi Andrew!</div><div dir=3D"auto"><br><= /div><div dir=3D"auto">Thanks for porting the demo code.=C2=A0 I saw the GT= K version earlier but I'm not familiar on Gtkmm4 API to actually port t= he GTK version.=C2=A0 I'm still halfway in porting my code, but I can d= raw now so I feel like it's better progress now than without your gtkmm= ported version of the GTK demo.</div><div dir=3D"auto"><br></div><div dir= =3D"auto">Kjell thanks for the link.=C2=A0 I've always been referring t= o the developer-old gtkmm tutorial -- I'm still wondering why it's = developer-old -- prolly cooking something new?</div><div dir=3D"auto"><br><= /div><div dir=3D"auto">~creek23</div></div><br><div class=3D"gmail_quote"><= div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul 10, 2022, 04:29 Kjell Ahls= tedt <<a href=3D"mailto:[email protected]">[email protected]= </a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:= 0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> =20 =20 =20 <div> <div>Den 2022-07-09 kl. 20:02, skrev Mj Mendoza IV via gtkmm-list:<br> </div> <blockquote type=3D"cite"> =20 <div dir=3D"ltr"><br> <div>I've tried the Cairo-based Clock demo, and adjusted my cod= e to reflect needed changes to port to gtkmm4.=C2=A0 Now, I'm currently missing mouse activities.</div> </div> </blockquote> <p>In addition to what Andrew Potter suggested, if you want to track all mouse movements, use Gtk::EventControllerMotion.</p> <p>Just about everything that was done in event signal handlers in gtkmm3 is now done with the many subclasses of Gtk::EventController.<br> </p> <blockquote type=3D"cite"> <div dir=3D"ltr"> <div><br> </div> <div>I've read the <a href=3D"https://developer-old.gnome.org/g= tkmm-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4" target=3D"_blank= " rel=3D"noreferrer">gtkmm4 changes section</a> of the tutorial (<a href=3D"https://developer-old.gnome.org/gtkmm-tutori= al/unstable/gtkmm-tutorial.html#changes-gtkmm4" target=3D"_blank" rel=3D"no= referrer">https://developer-old.gnome.org/gtkmm-tutorial/unstable/gtkmm-tut= orial.html#changes-gtkmm4</a>) but content is more of a note than actual information for beginner porters like me.</div> </div> <br> </blockquote> <p>I don't think anyone will ever take the time to write a real migration guide from gtkmm3 to gtkmm4.</p> <p>The documentation at <a href=3D"https://developer-old.gnome.org/gtkm= m-tutorial/unstable/gtkmm-tutorial.html#changes-gtkmm4" target=3D"_blank" r= el=3D"noreferrer">developer-old.gnome.org</a> is not updated any more. If you want to see the latest version of the gtkmm4 tutorial, look at <a href=3D"https://gnome.pages.gitlab.gnome.org/gtkmm-documentation" = target=3D"_blank" rel=3D"noreferrer">https://gnome.pages.gitlab.gnome.org/g= tkmm-documentation</a>.</p> <p><br> </p> </div> </blockquote></div> --0000000000001d9d5605e4bb6aa0-- --===============4172456806345138884== 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 --===============4172456806345138884==--