Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-26 Thread Mj Mendoza IV via gtkmm-list
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  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
> 
> 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
> 
> 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.
>
>
>
___
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-10 Thread Kjell Ahlstedt via gtkmm-list

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 
 
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 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.


___
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list


Re: [gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-09 Thread Andrew Potter via gtkmm-list
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
___
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list


[gtkmm4] Help on DrawingArea plus Mouse Activity

2022-07-09 Thread Mj Mendoza IV via gtkmm-list
Hi,

I'm porting a 2D Animation Software from gtkmm3 to gtkmm4.

As a drawing tool, it heavily relies on Gtk::DrawingArea and mouse
activities (movements and presses).  I got the keyboard activity working
from a different code demo.

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.

I've read the gtkmm4 changes section

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.  By any chance, does someone have a snippet of DrawingArea where
mouse activities are currently handled?  I believe I could work on that and
be on my merry way.

I've tried the IRC but there's no activity at all.  I tried the gtk channel
but could only be helpful to a certain extent.

~creek23
___
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list