pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

We should introduce a way to access in a single place the display properties #1503

Open Ducasse opened 8 months ago

Ducasse commented 8 months ago

Such as fullScreen, width, height. May be this should be done at the level of SpPresenter and the back-end.

estebanlm commented 8 months ago

but the control of the world is not related to spec (as it could easily not exist) unless you are talking about any single presenter, in which case this is not how spec is designed, and those properties are related to a SpWindowPresenter, where you can already affect the #extent: and already can #maximize and #minimize (and I guess we could add a #fullscreen idiom)

Ducasse commented 8 months ago

What I mean is that people should not be forced to violate layer to access to the size of the screen or other information relative to the display their application is running on. If I want to have a window with a third of the screen size then I should be able to do it. So this is why I need to know the size of the screen.