Supports the titlebar DMF attribute#2618
Conversation
|
I could probably split this up so that the titlebar support which depends on a robust toolbox PR can come later. |
When things calm down we can shoot PJB a message about the security concerns. based PR, the titlebars have been annoying me for a while |
|
Im worried that there will be concerns about the ability to set the position of windows and remove the borders which will be needed for fancy TGUI. Im hoping that since they can be closed if misbehaving by just closing all from the task bar then it won't be a huge issue. For now ill atomize out the browse() handling options and then deal with things needing RT changes when the PRs can be merged |
|
is this cross platform? can you test in on windows, wayland and X? |
|
I believe it will be cross-platform since its a standard SDL call, but I'm trying to find a good way of testing this |
|
I'll let the robust toolbox PR progress before re-opening this |
This PR implements the ability to create a borderless window in the Clyde window engine (Requires space-wizards/RobustToolbox#6618), and implements the titlebar property, which hides the title bars when set to 0.
Because most TGUI windows set this property through browse(), I have also implemented support for passing options through to browse as right now only the size option is being handled.
These TGUI windows cannot yet be moved, as there is no support for moving windows from code in the Clyde engine, and I suspect that there may be some trouble getting that in if there are security concerns about having arbitrarily moving windows.