pub struct WindowParams {
pub action: WindowAction,
pub label: Option<String>,
pub manage_action: Option<ManageAction>,
pub width: Option<u32>,
pub height: Option<u32>,
pub x: Option<i32>,
pub y: Option<i32>,
pub title: Option<String>,
}Expand description
Parameters for the compound window tool (get_state, list, manage, resize, move, title).
Fields§
§action: WindowActionAction to perform: get_state, list, manage, resize, move_to, set_title.
label: Option<String>Target window label.
manage_action: Option<ManageAction>Window management action (for manage): minimize, unminimize, maximize, unmaximize, close, focus, show, hide, fullscreen, unfullscreen, always_on_top, not_always_on_top.
width: Option<u32>Width in logical pixels (for resize).
height: Option<u32>Height in logical pixels (for resize).
x: Option<i32>X position in logical pixels (for move_to).
y: Option<i32>Y position in logical pixels (for move_to).
title: Option<String>New window title (for set_title).
Trait Implementations§
Source§impl Debug for WindowParams
impl Debug for WindowParams
Source§impl<'de> Deserialize<'de> for WindowParams
impl<'de> Deserialize<'de> for WindowParams
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 JsonSchema for WindowParams
impl JsonSchema for WindowParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WindowParams
impl RefUnwindSafe for WindowParams
impl Send for WindowParams
impl Sync for WindowParams
impl Unpin for WindowParams
impl UnsafeUnpin for WindowParams
impl UnwindSafe for WindowParams
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