rust_widgets 2.0.0

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
// SPDX-FileCopyrightText: Copyright (c) 2026 Mike Li/Mikewolfli/Wei Li(mikewolfli@163.com)
// SPDX-License-Identifier: MIT

// Auto-generated from properties.rs — const arrays for widget properties.
// DO NOT EDIT DIRECTLY.

macro_rules! impl_properties_media {
    () => {
        #[cfg(not(alloc_frugal))]
        pub(crate) const ANIMATED_IMAGE_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "playing",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const HERO_ANIMATION_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "animation_progress",
            value_kind: PropertyValueKind::Float,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const LOTTIE_WIDGET_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "playing",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const RIVE_WIDGET_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "is_playing",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const VIDEO_PLAYER_PROPERTIES: &[PropertySchema] = &[
            PropertySchema {
                name: "is_playing",
                value_kind: PropertyValueKind::Bool,
                readable: true,
                writable: true,
            },
            PropertySchema {
                name: "volume",
                value_kind: PropertyValueKind::Float,
                readable: true,
                writable: true,
            },
            PropertySchema {
                name: "enabled",
                value_kind: PropertyValueKind::Bool,
                readable: true,
                writable: true,
            },
            PropertySchema {
                name: "visible",
                value_kind: PropertyValueKind::Bool,
                readable: true,
                writable: true,
            },
            PropertySchema {
                name: "tooltip",
                value_kind: PropertyValueKind::String,
                readable: true,
                writable: true,
            },
            PropertySchema {
                name: "geometry",
                value_kind: PropertyValueKind::String,
                readable: false,
                writable: false,
            },
            ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const AUDIO_VISUALIZER_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "bar_count",
            value_kind: PropertyValueKind::UInt,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];

        #[cfg(not(alloc_frugal))]
        pub(crate) const CAMERA_PREVIEW_PROPERTIES: &[PropertySchema] = &[PropertySchema {
            name: "is_active",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "enabled",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "visible",
            value_kind: PropertyValueKind::Bool,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "tooltip",
            value_kind: PropertyValueKind::String,
            readable: true,
            writable: true,
        },
        PropertySchema {
            name: "geometry",
            value_kind: PropertyValueKind::String,
            readable: false,
            writable: false,
        },
        ];
    };
}