mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-04 15:47:50 +02:00
feat(window): add option to disable controls (#406)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
committed by
GitHub
parent
83abea3cae
commit
a79d6d94bd
File diff suppressed because one or more lines are too long
@@ -115,6 +115,9 @@ getter!(is_maximized, bool);
|
||||
getter!(is_focused, bool);
|
||||
getter!(is_decorated, bool);
|
||||
getter!(is_resizable, bool);
|
||||
getter!(is_maximizable, bool);
|
||||
getter!(is_minimizable, bool);
|
||||
getter!(is_closable, bool);
|
||||
getter!(is_visible, bool);
|
||||
getter!(title, String);
|
||||
getter!(current_monitor, Option<Monitor>);
|
||||
@@ -125,6 +128,9 @@ getter!(theme, Theme);
|
||||
setter!(center);
|
||||
setter!(request_user_attention, Option<UserAttentionType>);
|
||||
setter!(set_resizable, bool);
|
||||
setter!(set_maximizable, bool);
|
||||
setter!(set_minimizable, bool);
|
||||
setter!(set_closable, bool);
|
||||
setter!(set_title, &str);
|
||||
setter!(maximize);
|
||||
setter!(unmaximize);
|
||||
|
||||
@@ -43,6 +43,9 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
desktop_commands::is_focused,
|
||||
desktop_commands::is_decorated,
|
||||
desktop_commands::is_resizable,
|
||||
desktop_commands::is_maximizable,
|
||||
desktop_commands::is_minimizable,
|
||||
desktop_commands::is_closable,
|
||||
desktop_commands::is_visible,
|
||||
desktop_commands::title,
|
||||
desktop_commands::current_monitor,
|
||||
@@ -53,6 +56,9 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
desktop_commands::center,
|
||||
desktop_commands::request_user_attention,
|
||||
desktop_commands::set_resizable,
|
||||
desktop_commands::set_maximizable,
|
||||
desktop_commands::set_minimizable,
|
||||
desktop_commands::set_closable,
|
||||
desktop_commands::set_title,
|
||||
desktop_commands::maximize,
|
||||
desktop_commands::unmaximize,
|
||||
|
||||
Reference in New Issue
Block a user