Talk:GUI/Maximum window dimensions

From Rosetta Code

As titled, this task is impossible. Window size can have restrictions placed on it by the system's window manager. (This includes tiling window managers, a class of WMs I use as often as possible.) If intent is to query the system about physical display parameters, then that's awesome, but the task needs to be renamed. Also, it needs to properly be aware of multimonitor environments, and make a distinction between a monitor's display area and the total desktop. --Michael Mol 13:53, 23 November 2010 (UTC)

That's why I knocked it back to draft… –Donal Fellows 16:32, 23 November 2010 (UTC)

Ok. You are right that the idea is to determine the physical display parameters for the maximum height and width of the usable display area in pixels (without scrolling).

We are talking about the display area here (not the total desktop area, which could be bigger than the screen). The values that are calculated represent the usable desktop area of a window maximized to fit the the screen.

For multiple monitors, the value returned should be the display area on the monitor which is related to the task (ie the monitor which would display a window if such instructions were given).

"The monitor which would display a window if such instructions were given." This is not clearly specified as my GUI will create a window across multiple monitors for the related task. For example, two identical monitors side by side with a window that's width goes across both monitors by default.
Also, dimensions are arbitrary as the coordinate system can vary by monitor type and scaling being used. For example, a vector screen with polar coordinates, monitors with sub-pixels, and scaled resolutions. Does an older character device report only in character dimensions, maximum character graphic resolution, and/or character resolution × character display dimensions? My 1280x1024 monitor can appear as a much much higher resolution monitor. In other coordinate systems, the width and height, if this is what is being used, can be really big numbers. Monitors and windows are not always rectangles.
The task might be: Query the highest displayable resolution of every display device in the appropriate coordinate system for each device.–mmphosis 18:17, 24 July 2023 (UTC)

For a tiling window manager, the parameters should represent the maximum height and width of the display area of the maximum size a window can be created without scrolling. This would typically be a full screen window (minus any areas occupied by desktop bars), unless the window manager has restrictions that does not allow creation of a full screen window, in which case the values represent the maximum usable area (without scrolling).

I'll go head and paste this information into the task description

Markhobley 22:41, 23 November 2010 (UTC)

Good improvements. To be honest, I think explicitly asking for "the display size of the current display area, where display area would be the current monitor" is fine. It's probably simpler and more straightforward. (By the way, have you read Rosetta Code:Add a Task? I like to see folks creating tasks, and that's a draft set of task creation guidelines. It'd be good to get more input.)--Michael Mol 02:33, 24 November 2010 (UTC)

Would this task be better titled as "Determine the maximum height and width of a nonoversized window"?

Markhobley 19:29, 7 December 2010 (UTC)