You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
That struct is directly tied to WindowBuilder. Eg it has an apply_to_builder method:
/// Apply this window configuration to the given WindowBuilderpubfnapply_to_builder(&self,builder:&mutWindowBuilder){ifletSome(resizable) = self.resizable{
builder.resizable(resizable);}ifletSome(show_titlebar) = self.show_titlebar{
builder.show_titlebar(show_titlebar);}ifletSome(size) = self.size{
builder.set_size(size);}elseifletWindowSizePolicy::Content = self.size_policy{
builder.set_size(Size::new(0.,0.));}ifletSome(position) = self.position{
builder.set_position(position);}ifletSome(transparent) = self.transparent{
builder.set_transparent(transparent);}ifletSome(level) = &self.level{
builder.set_level(level.clone())}ifletSome(state) = self.state{
builder.set_window_state(state);}ifletSome(min_size) = self.min_size{
builder.set_min_size(min_size);}}
Almost every method of WindowBuilder has a matching field in WindowConfig. So I think it would make sense to move WindowConfig to glazier directly. (And it would remove redundant interfaces from druid / masonry).
The text was updated successfully, but these errors were encountered:
Druid has the following data structure.
That struct is directly tied to
WindowBuilder
. Eg it has anapply_to_builder
method:Almost every method of WindowBuilder has a matching field in WindowConfig. So I think it would make sense to move WindowConfig to glazier directly. (And it would remove redundant interfaces from druid / masonry).
The text was updated successfully, but these errors were encountered: