Nswindow not updating
I wonder if it would make more sense to present a new field in the config that's macos specific.
Something for @jwilm and @chrisduerr to weight in on, probably. I wonder if it would make more sense to present a new field in the config that's macos specific.
As a result of this static representation, if the window updates its contents while the layer is shown, that change will not be reflected in the layer. But really, all I care about is that you put this library to good use.
So as a result, this class is more geared toward short animations that take place during a time where the content is most unlikely to change, such as when the window is opening or closing. I want to help make OS X development a friendlier place, and this is one of my attempts at doing so.
has provides both a layer property and a set of order out & order front methods to simplify common animations.
If you would like to animate the window manually and if the window is already visible, you can just manipulate the , so you can modify any layer property you wish and it should be implicitly animated.
EDIT: if anybody wants to play with this more and make it, like, not shit, diffs here: [email protected] in a horribly hackish way, but even with that work would still need to be done to add automatic padding to the top, and re-enable the title by finding a way to change the font color or render our own.
EDIT: if anybody wants to play with this more and make it, like, not shit, diffs here: [email protected]
I also have a PR into the above PR robertgzr/winit#1 to allow the same as above, but also hide the titlebar buttons, to allow a window that looks like this: This basically looks like a window with no titlebar, but retains rounded corners and drop shadow. I'm not sure how we would expose those options from alacritty, though. Or alias 'none' covers the fullscreen or quake-like terminal use case.The first time this property is accessed, it will lazily create an image representation of the window and place that into a layer which is then animatable.When you are done with the layer, you are responsible for calling , which will remove the extra window and release resources.where it is present in both configs but only does something in one.