pwiecz / go-fltk

A simple wrapper around FLTK 1.4 library
MIT License
124 stars 24 forks source link

Missing screen functions #90

Closed vlappa closed 1 year ago

vlappa commented 1 year ago

https://www.fltk.org/doc-1.4/group__fl__screen.html

Functions like Fl::h (), are missing if I'm not mistaken.

I was looking for Fl::w()

https://github.com/pwiecz/go-fltk/blob/bb29d08ae9a231d7cfb9fc77e95ea21738089c83/fltk.go#L250

pwiecz commented 1 year ago

I'm wondering whether I should add all the screen sizing functions, or maybe some are not that useful. @vlappa maybe it would be enough to use ScreenWorkArea for some particular screen. My problem with Fl::w is that the documentation does not specifies that it "Returns the width in pixels of the main screen work area.", but does not specify what the "main screen" really is... :/

vlappa commented 1 year ago

ScreenWorkArea does the job fine for me atm.