How to get the available desktop area in SDL2

How do I work out the maximum available desktop area, taking into
account desktop furniture such as taskbars? I also need to find the size
of the title bars and borders for windows.

The reason is I want to make a window as large as possible for the
current display, but I do not want to use a maximised window because I
want to keep to a fixed aspect ratio.

Thanks

Tony

I don’t think you can get taskbar sizing/space, or at least not directly
through the SDL api, but just for the desktop area, you can enumerate the
desktops available, and get their respective resolutions with
http://wiki.libsdl.org/moin.fcg/SDL_GetNumVideoDisplays and
http://wiki.libsdl.org/moin.fcg/SDL_GetDisplayBounds

I don’t know of any api-specific ways of getting the task bar
placement/size off hand, but maybe someone else on the list/forum can point
you in the right direction.

-AlexOn Mon, Jun 3, 2013 at 2:00 AM, Tony Park wrote:

How do I work out the maximum available desktop area, taking into account
desktop furniture such as taskbars? I also need to find the size of the
title bars and borders for windows.

The reason is I want to make a window as large as possible for the current
display, but I do not want to use a maximised window because I want to keep
to a fixed aspect ratio.

Thanks

Tony
_____________**
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.orghttp://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org