pub struct WidgetWindowConfig {
pub label: String,
pub url: Option<String>,
pub width: f64,
pub height: f64,
pub x: Option<f64>,
pub y: Option<f64>,
pub always_on_top: bool,
pub skip_taskbar: bool,
pub group: Option<String>,
pub widget_id: Option<String>,
pub size: Option<String>,
}Expand description
Configuration for creating a desktop widget window.
When url is omitted the plugin serves its built-in renderer
automatically (via a custom URI-scheme protocol). In that case
group tells the renderer which config to load, and size
selects the layout family ("small", "medium", or "large").
Fields§
§label: StringTauri window label (must be unique).
url: Option<String>Frontend route or URL. Leave empty / omit to use the built-in widget renderer that ships with the plugin.
width: f64Window width in logical pixels.
height: f64Window height in logical pixels.
x: Option<f64>Optional X position.
y: Option<f64>Optional Y position.
always_on_top: boolKeep the widget above other windows.
skip_taskbar: boolHide from the taskbar / dock.
group: Option<String>Widget group identifier — passed to the built-in renderer so it
knows which config to load via get_widget_config.
widget_id: Option<String>Widget identity within the group (required for built-in renderer).
size: Option<String>Size family the renderer should display: "small", "medium",
or "large". Defaults to "small" when omitted.
Trait Implementations§
Source§impl Clone for WidgetWindowConfig
impl Clone for WidgetWindowConfig
Source§fn clone(&self) -> WidgetWindowConfig
fn clone(&self) -> WidgetWindowConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WidgetWindowConfig
impl Debug for WidgetWindowConfig
Source§impl<'de> Deserialize<'de> for WidgetWindowConfig
impl<'de> Deserialize<'de> for WidgetWindowConfig
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>,
Source§impl JsonSchema for WidgetWindowConfig
impl JsonSchema for WidgetWindowConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more