Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'window' widget type #17

Open
11 tasks
airstruck opened this issue Dec 16, 2015 · 2 comments
Open
11 tasks

Add 'window' widget type #17

airstruck opened this issue Dec 16, 2015 · 2 comments

Comments

@airstruck
Copy link
Owner

This widget can be used as the root widget of a layout to manage properties of the window.

  • Attribute maximized -> SDL_MaximizeWindow / SDL_RestoreWindow
  • Attribute minimized -> SDL_MinimizeWindow / SDL_RestoreWindow
  • Attribute borderless -> SDL_SetWindowBordered
  • Attribute fullscreen -> SDL_SetWindowFullscreen
  • Attribute grab -> SDL_SetWindowGrab (will it work with Love?)
  • Attribute icon (override) -> SDL_SetWindowIcon
  • Attribute maxwidth/maxheight -> SDL_SetWindowMaximumSize
  • Attribute minwidth/minheight (override) -> SDL_SetWindowMinimumSize
  • Attribute top/left (override) -> SDL_SetWindowPosition
  • Attribute width/height (override) -> SDL_SetWindowSize
  • Attribute title -> SDL_SetWindowTitle
@airstruck
Copy link
Owner Author

SDL backend should be able to use this to support multiple windows somehow. Calling layout:show on a "window layout" would show it in its own window, but how will "windowless layouts" know which window to show up in?

@airstruck airstruck added this to the 0.2.0 milestone Dec 16, 2015
@airstruck
Copy link
Owner Author

Setting minimum/maximum size doesn't seem to do anything under gnome 3, gnome classic or openbox. Not sure what's going on there, or if it works anywhere else. The rest seems to work fine under SDL, still need to add support in Love backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant