z0w0 / helm

A functionally reactive game engine, with headgear to protect you from the headache of game development provided.
http://helm-engine.org/
MIT License
600 stars 69 forks source link

Find the size of a Form #130

Open Ulrar opened 6 years ago

Ulrar commented 6 years ago

Hi,

I'm wondering if there is any way to figure out the size a Form, in pixels. For shapes it's easy enough since you have to set it, but for Text I don't really see a way to know how large it'll be. It'd be great to have a function like "formSize :: Form -> V2 Int" or something similar.