pub enum WindowTool {
Windows,
Focus {
window: f64,
},
Place {
window: f64,
x: f64,
y: f64,
},
Resize {
window: f64,
width: f64,
height: f64,
},
Close {
window: f64,
},
Reload {
window: f64,
},
Open {
app: WindowApp,
url: Option<String>,
path: Option<String>,
command: Option<String>,
},
Key {
keys: Vec<String>,
window: Option<f64>,
},
}Variants§
Windows
Focus
Place
Resize
Close
Reload
Load a Web window’s page again, after its files change. Previews follow their file on their own.
Open
A web window at url; a files window at path (a folder of /repository); a preview of the
file at path, which follows the file as it changes; or a terminal, running command in
view and staying open at a prompt when it ends.
Key
A chord like [‘ctrl’, ‘s’]. Focuses window first when given.
Trait Implementations§
Source§impl Clone for WindowTool
impl Clone for WindowTool
Source§impl Debug for WindowTool
impl Debug for WindowTool
Source§impl<'de> Deserialize<'de> for WindowTool
impl<'de> Deserialize<'de> for WindowTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WindowTool
impl PartialEq for WindowTool
Source§impl Serialize for WindowTool
impl Serialize for WindowTool
impl StructuralPartialEq for WindowTool
Auto Trait Implementations§
impl Forget for WindowTool
impl Freeze for WindowTool
impl Move for WindowTool
impl RefUnwindSafe for WindowTool
impl Send for WindowTool
impl Sync for WindowTool
impl Unpin for WindowTool
impl UnsafeUnpin for WindowTool
impl UnwindSafe for WindowTool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more