@hackage / gtk-scaling-image

Generic GTK image scaling helpers for haskell-gi

Latest0.1.0.0

About

Metadata

  • Last updated , by eyevanmalicesun
  • License BSD-3-Clause
  • Categories Graphics
  • Maintained by: IvanMalison@gmail.com

  • Lottery factor: 1

Links

Installation

Readme

gtk-scaling-image

gtk-scaling-image provides generic GTK image sizing helpers for Haskell GI applications. It includes:

  • aspect-ratio-preserving pixbuf scaling to a target size
  • CSS-aware border and padding measurement helpers
  • a draw-based auto-fill image widget that scales to allocation without Gtk.Image resize feedback loops

This package was extracted from the shared image widget code used by taffybar and gtk-sni-tray.