Haskell, GTK4 and pictures on the fly

As part of my further experiments with GTK4 and Haskell, I wanted to vary gtk-picture by creating the Picture programatically. I named the alternative gtk-dynamic-picture. Diagrams I created the picture using the Diagrams project. I looked at various backends: Ultimately, given the pixel format of a Pixbuf value (R G B A), I used diagrams-rasterific […]

Haskell, GTK4 and application icons

On Windows 11, in File Explorer, gtk-picture.exe has Windows’ default icon for an executable file and GTK4’s default icon in the task bar when running: I wanted to customise these icons. Also, I wanted a similar icon to appear in the application’s window’s header bar, to the left. *.res file The icon can be set […]

Haskell, GTK4 and pictures

As part of my experiments with GTK4 and Haskell, I sought an application with a picture which would report on the co-ordinates if clicked on with a mouse. For my example image, I took the Flammarion wood engraving. gtk-picture With Stack, I created a new single-package project gtk-picture with Main.hs: and package.yaml (extract): and Stack […]