Add ability to hide close and minimize title bar buttons
This commit is contained in:
parent
dcd4abd5af
commit
0e24d89e26
2 changed files with 23 additions and 6 deletions
|
|
@ -56,6 +56,12 @@ pub struct Settings {
|
|||
/// Whether the window should be resizable or not.
|
||||
pub resizable: bool,
|
||||
|
||||
/// Whether the title bar has Close button or not
|
||||
pub closeable: bool,
|
||||
|
||||
/// Whether the title bar has Minimize button or not
|
||||
pub minimizable: bool,
|
||||
|
||||
/// Whether the window should have a border, a title bar, etc. or not.
|
||||
pub decorations: bool,
|
||||
|
||||
|
|
@ -93,6 +99,8 @@ impl Default for Settings {
|
|||
max_size: None,
|
||||
visible: true,
|
||||
resizable: true,
|
||||
minimizable: true,
|
||||
closeable: true,
|
||||
decorations: true,
|
||||
transparent: false,
|
||||
level: Level::default(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue