bohonghuang / cl-gtk4

GTK4/Libadwaita/WebKit2 bindings for Common Lisp.
GNU Lesser General Public License v3.0
217 stars 9 forks source link

How do I use Gdk Rectangle? #18

Closed bigos closed 1 year ago

bigos commented 1 year ago

https://docs.gtk.org/gdk4/struct.Rectangle.html

I am trying to add popover and need it to show at mouse coordinates.

bohonghuang commented 1 year ago

It could be implemented with CFFI. I added the CFFI definition for Rectangle and an example for it:

https://github.com/bohonghuang/cl-gtk4/blob/1c7607f4084214bf9bfe54d574ed7677669cb935/examples/gdk4.lisp#L24-L54

bigos commented 1 year ago

Thank you!