gloss-relative: Painless relative-sized pictures in Gloss.

[ bsd3, graphics, library, program ] [ Propose Tags ] [ Report a vulnerability ]

A new Frame data type for Gloss that simplifies drawing vector graphics with relative sizes and flexible layouts -- no more hardcoding distances. Bonus: graphics automatically resize when the screen changes, and native mouse hover events over defined screen regions.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Dependencies base (<5), containers, gloss, gloss-relative, mtl [details]
License BSD-3-Clause
Author Hugo Pacheco
Maintainer hpacheco@di.uminho.pt
Category Graphics
Uploaded by HugoPacheco at 2025-11-27T15:14:41Z
Distributions
Executables gloss-relative-button, gloss-relative-checkers
Downloads 3 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-11-27 [all 1 reports]

Readme for gloss-relative-0.1.0.0

[back to package description]

Gloss Relative

This library is an extension to Gloss to reduce some of the pain of designing graphics with sizes relative to the screen dimensions.

Usage

This package is defined as a replacement with batteries for the standard:

import Graphics.Gloss 

Just replace with the new import to get the original Gloss functionality plus the 'Frame' abstraction.

import Graphics.Gloss.Relative 

Examples

You can play with a few examples that illustrate how the library can be used:

cabal run gloss-relative-checkers
cabal run gloss-relative-button