macro_rules! impl_properties_other {
() => {
pub(crate) const WINDOW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("title_bar_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("close_button_size", PropertyValueKind::UInt, true, true),
PropertySchema::new("button_spacing", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const LCD_NUMBER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::Float, true, true),
PropertySchema::new("min_value", PropertyValueKind::Float, true, true),
PropertySchema::new("max_value", PropertyValueKind::Float, true, true),
PropertySchema::new("num_digits", PropertyValueKind::Int, true, true),
PropertySchema::new("small_decimal_point", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated("mode", true, true, &["hex", "dec", "oct", "bin"]),
PropertySchema::enumerated("segment_style", true, true, &["outline", "filled", "flat"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CODE_EDITOR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("text", PropertyValueKind::String, true, true),
PropertySchema::new("line_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("cursor_line", PropertyValueKind::UInt, true, false),
PropertySchema::new("cursor_column", PropertyValueKind::UInt, true, false),
PropertySchema::new("marker_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("undo_stack_limit", PropertyValueKind::UInt, true, true),
PropertySchema::new("undo_depth", PropertyValueKind::UInt, true, false),
PropertySchema::new("goto_bar_visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("breakpoint_gutter", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const GANTT_WIDGET_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("task_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_id", PropertyValueKind::String, true, false),
PropertySchema::new("viewport_start", PropertyValueKind::Int, true, true),
PropertySchema::new("viewport_end", PropertyValueKind::Int, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_critical_path", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_today", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TERMINAL_VIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("output_line_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("input_line", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("scrollback_lines", PropertyValueKind::UInt, true, true),
PropertySchema::new("wrap_output", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_scrollbar", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated("caret_style", true, true, &["line", "block", "underline"]),
PropertySchema::new("caret_blink_enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("prompt", PropertyValueKind::String, true, true),
PropertySchema::enumerated("selection_mode", true, true, &["lines", "characters"]),
PropertySchema::new("ansi_palette", PropertyValueKind::NumberList, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SNACKBAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("message", PropertyValueKind::String, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("action_label", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("queued_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("max_queued", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated("anchor", true, true, &["top", "center", "bottom"]),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAP_VIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("center_x", PropertyValueKind::Float, true, true),
PropertySchema::new("center_y", PropertyValueKind::Float, true, true),
PropertySchema::new("zoom", PropertyValueKind::Float, true, true),
PropertySchema::new("marker_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_marker_id", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated("projection", true, true, &["linear", "mercator"]),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MEDIA_PLAYER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("source", PropertyValueKind::String, true, true),
PropertySchema::new("playing", PropertyValueKind::Bool, true, true),
PropertySchema::new("duration_ms", PropertyValueKind::UInt, true, false),
PropertySchema::new("position_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("volume", PropertyValueKind::UInt, true, true),
PropertySchema::new("muted", PropertyValueKind::Bool, true, true),
PropertySchema::new("fullscreen", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("playlist_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("track_count", PropertyValueKind::UInt, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const BREADCRUMB_PROPERTIES: &[PropertySchema] = &[
PropertySchema::records(
"segments",
true,
true,
&crate::widget::special_widgets::breadcrumb::BREADCRUMB_SEGMENT_SCHEMA,
),
PropertySchema::new("segment_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("collapsed_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("separator", PropertyValueKind::String, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SIGNATURE_PAD_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("stroke_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("stroke_width", PropertyValueKind::UInt, true, true),
PropertySchema::new("stroke_color", PropertyValueKind::Color, true, true),
PropertySchema::new("min_point_distance", PropertyValueKind::Float, true, true),
PropertySchema::new("min_point_interval_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("pressure_affects_width", PropertyValueKind::Bool, true, true),
PropertySchema::new("last_pressure", PropertyValueKind::Float, true, false),
PropertySchema::new("last_tilt_x", PropertyValueKind::Float, true, false),
PropertySchema::new("last_tilt_y", PropertyValueKind::Float, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DROP_ZONE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("accepted_type", PropertyValueKind::String, true, true),
PropertySchema::enumerated(
"state",
true,
true,
&["idle", "hovering", "accepted", "rejected", "dropped"],
),
PropertySchema::new("hovered", PropertyValueKind::Bool, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("accepted_types", PropertyValueKind::StringList, true, true),
PropertySchema::new("multi_file", PropertyValueKind::Bool, true, true),
PropertySchema::new("hover_style", PropertyValueKind::String, true, true),
PropertySchema::new("show_count_badge", PropertyValueKind::Bool, true, true),
PropertySchema::new("dropped_count", PropertyValueKind::UInt, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::enumerated(
"chart_type",
true,
true,
&[
"bar",
"line",
"area",
"pie",
"scatter",
"waterfall",
"funnel",
"candlestick",
"box_plot",
],
),
PropertySchema::new("point_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("label_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("series_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SPLIT_BUTTON_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("text", PropertyValueKind::String, true, true),
PropertySchema::new("action_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("menu_open", PropertyValueKind::Bool, true, true),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated("popup_direction", true, true, &["down", "up", "auto"]),
PropertySchema::new("max_menu_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("menu_scroll", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SEGMENTED_CONTROL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_id", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("size_to_fit", PropertyValueKind::Bool, true, true),
PropertySchema::new("min_segment_width", PropertyValueKind::UInt, true, true),
PropertySchema::new("multi_select", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CHIP_PROPERTIES: &[PropertySchema] = &[
PropertySchema::records(
"items",
true,
true,
&crate::widget::special_widgets::chip::CHIP_ITEM_SCHEMA,
),
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("multi_select", PropertyValueKind::Bool, true, true),
PropertySchema::new("focused_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TIMELINE_WIDGET_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("viewport_start", PropertyValueKind::Int, true, true),
PropertySchema::new("viewport_end", PropertyValueKind::Int, true, true),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("show_time_labels", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated("lane_mode", true, true, &["row", "lane_packed"]),
];
#[cfg(not(alloc_frugal))]
pub(crate) const COMMAND_PALETTE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("query", PropertyValueKind::String, true, true),
PropertySchema::new("entry_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("filtered_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("highlighted_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("group_by_category", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const NOTIFICATION_CENTER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("unread_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated(
"level_filter",
true,
true,
&["all", "info", "warning", "error"],
),
PropertySchema::new("max_items", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DIFF_VIEWER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("left_text", PropertyValueKind::String, true, true),
PropertySchema::new("right_text", PropertyValueKind::String, true, true),
PropertySchema::new("line_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("change_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated("view_mode", true, true, &["side_by_side", "unified"]),
PropertySchema::new("fold_unchanged", PropertyValueKind::Bool, true, true),
PropertySchema::new("fold_threshold", PropertyValueKind::UInt, true, true),
PropertySchema::new("fold_context_lines", PropertyValueKind::UInt, true, true),
PropertySchema::new("unified_changed_pair", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated(
"whitespace_mode",
true,
true,
&["show", "ignore_eol", "ignore_all", "mark_blank_changes"],
),
PropertySchema::new("word_granularity", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TOAST_STACK_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("toast_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_id", PropertyValueKind::String, true, false),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("max_visible", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated(
"anchor",
true,
true,
&["top_left", "top_right", "bottom_left", "bottom_right"],
),
PropertySchema::enumerated(
"stacking_direction",
true,
true,
&["newest_at_bottom", "newest_at_top"],
),
];
#[cfg(not(alloc_frugal))]
pub(crate) const GRID_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("rows", PropertyValueKind::UInt, true, true),
PropertySchema::new("columns", PropertyValueKind::UInt, true, true),
PropertySchema::new("spacing", PropertyValueKind::UInt, true, true),
PropertySchema::new("line_color", PropertyValueKind::String, true, true),
PropertySchema::new("cell_width", PropertyValueKind::UInt, true, false),
PropertySchema::new("cell_height", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_cell", PropertyValueKind::UInt, true, true),
PropertySchema::new("selected_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("page", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("page_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("headers", PropertyValueKind::StringList, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const FREEFORM_SHAPE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::enumerated(
"path_kind",
true,
false,
&["bubble", "rounded_rect", "polygon", "star", "heart", "custom"],
),
PropertySchema::new("fill_rgba", PropertyValueKind::String, true, true),
PropertySchema::new("stroke_rgba", PropertyValueKind::String, true, true),
PropertySchema::new("stroke_width", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("movable", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const WEB_VIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("url", PropertyValueKind::String, true, true),
PropertySchema::new("loading", PropertyValueKind::Bool, true, false),
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("can_go_back", PropertyValueKind::Bool, false, false),
PropertySchema::new("can_go_forward", PropertyValueKind::Bool, false, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("user_agent", PropertyValueKind::String, true, true),
PropertySchema::new("background_transparent", PropertyValueKind::Bool, true, true),
PropertySchema::new("cookie_persistence_enabled", PropertyValueKind::Bool, true, true),
];
pub(crate) const ARC_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value_format", PropertyValueKind::String, true, true),
PropertySchema::new("value", PropertyValueKind::UInt, true, true),
PropertySchema::new("minimum", PropertyValueKind::UInt, true, true),
PropertySchema::new("maximum", PropertyValueKind::UInt, true, true),
PropertySchema::new("thickness", PropertyValueKind::UInt, true, true),
PropertySchema::new("sweep_angle", PropertyValueKind::UInt, true, true),
PropertySchema::new("start_angle", PropertyValueKind::Float, true, true),
PropertySchema::new("indeterminate", PropertyValueKind::Bool, true, true),
PropertySchema::new("rounded", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_value", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MENTION_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("text", PropertyValueKind::String, true, true),
PropertySchema::new("trigger", PropertyValueKind::String, true, true),
PropertySchema::new("candidate_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("visible_candidate_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("mention_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("popup_open", PropertyValueKind::Bool, true, false),
PropertySchema::new("caret", PropertyValueKind::UInt, true, false),
PropertySchema::new("max_visible", PropertyValueKind::UInt, true, true),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const EMOJI_PICKER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("recent_capacity", PropertyValueKind::UInt, true, true),
PropertySchema::new("glyph_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("visible_glyph_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("tab_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("active_tab", PropertyValueKind::UInt, true, true),
PropertySchema::new("search", PropertyValueKind::String, true, true),
PropertySchema::new("recent_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const QUERY_BUILDER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("row_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("incomplete_row_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("field_count", PropertyValueKind::UInt, true, false),
PropertySchema::enumerated("conjunction", true, true, &["and", "or"]),
PropertySchema::new("active_row", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("live_update", PropertyValueKind::Bool, true, true),
PropertySchema::new("commit_delay_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("has_pending_commit", PropertyValueKind::Bool, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CASCADER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::String, true, false),
PropertySchema::new("placeholder", PropertyValueKind::String, true, true),
PropertySchema::new("depth", PropertyValueKind::UInt, true, false),
PropertySchema::new("expanded", PropertyValueKind::Bool, true, true),
PropertySchema::new("separator", PropertyValueKind::String, true, true),
PropertySchema::new("filterable", PropertyValueKind::Bool, true, true),
PropertySchema::new("filter", PropertyValueKind::String, true, false),
PropertySchema::new("max_visible", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const KANBAN_BOARD_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("column_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("card_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("dragging_card_id", PropertyValueKind::String, true, false),
PropertySchema::new("hovered_column", PropertyValueKind::UInt, true, false),
PropertySchema::new("column_width", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("horizontal_scroll_offset", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated("lane_mode", true, true, &["none", "lanes"]),
PropertySchema::new("swimlanes", PropertyValueKind::Bool, true, true),
PropertySchema::new("lane_count", PropertyValueKind::UInt, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const RADAR_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("axis_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("series_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("show_grid", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_axis_labels", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_legend", PropertyValueKind::Bool, true, true),
PropertySchema::new("hovered_axis", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("series_names", PropertyValueKind::StringList, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const HEATMAP_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("row_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("column_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("scale_minimum", PropertyValueKind::Float, true, true),
PropertySchema::new("scale_maximum", PropertyValueKind::Float, true, true),
PropertySchema::new("resolved_minimum", PropertyValueKind::Float, true, false),
PropertySchema::new("resolved_maximum", PropertyValueKind::Float, true, false),
PropertySchema::new("show_labels", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_legend", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("viewport_rows", PropertyValueKind::UInt, true, true),
PropertySchema::new("viewport_columns", PropertyValueKind::UInt, true, true),
];
pub(crate) const METER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::UInt, true, true),
PropertySchema::new("minimum", PropertyValueKind::UInt, true, true),
PropertySchema::new("maximum", PropertyValueKind::UInt, true, true),
PropertySchema::new("tick_count", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_tick_labels", PropertyValueKind::Bool, true, true),
PropertySchema::new("unit", PropertyValueKind::String, true, true),
PropertySchema::new("value_text", PropertyValueKind::String, true, false),
PropertySchema::new("threshold_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
pub(crate) const MINI_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::enumerated("chart_type", true, true, &["line", "bar"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
pub(crate) const MINI_CANVAS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
#[cfg(not(alloc_frugal))]
pub(crate) const CANVAS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("command_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("layer_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("anti_alias", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_grid", PropertyValueKind::Bool, true, true),
PropertySchema::new("grid_step", PropertyValueKind::UInt, true, true),
PropertySchema::new("snap_to_grid", PropertyValueKind::Bool, true, true),
PropertySchema::new("zoom_range", PropertyValueKind::NumberList, true, true),
PropertySchema::new("zoom_step", PropertyValueKind::Float, true, true),
];
#[cfg(not(alloc_frugal))]
#[cfg(not(alloc_frugal))]
pub(crate) const BADGE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("text", PropertyValueKind::String, true, true),
PropertySchema::new("count", PropertyValueKind::Int, true, true),
PropertySchema::new("dot_mode", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated(
"level",
true,
true,
&["info", "success", "warning", "error"],
),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SKELETON_LOADER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("active", PropertyValueKind::Bool, true, true),
PropertySchema::new("text_line_rows", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated("shape", true, true, &["rect", "circle", "text_line"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const FAB_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("icon", PropertyValueKind::String, true, true),
PropertySchema::new("icon_source", PropertyValueKind::IconSpec, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const BOTTOM_NAVIGATION_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const NAVIGATION_DRAWER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("open", PropertyValueKind::Bool, true, true),
PropertySchema::new("width", PropertyValueKind::Float, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("section_separator_visible", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const APP_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::enumerated("direction", true, true, &["ltr", "rtl"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MOBILE_DATE_PICKER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("selected_date", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("year_span", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DIVIDER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::enumerated("line_style", true, true, &["plain", "sunken", "raised"]),
PropertySchema::new("orientation", PropertyValueKind::String, true, true),
PropertySchema::new("thickness", PropertyValueKind::Float, true, true),
PropertySchema::new("color", PropertyValueKind::Color, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const RATING_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::Float, true, true),
PropertySchema::new("allow_half_step", PropertyValueKind::Bool, true, true),
PropertySchema::new("max", PropertyValueKind::UInt, true, true),
PropertySchema::new("star_size", PropertyValueKind::UInt, true, true),
PropertySchema::new("fill", PropertyValueKind::Float, true, false),
PropertySchema::new("display_text", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const AVATAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("initials", PropertyValueKind::String, true, true),
PropertySchema::new("square", PropertyValueKind::Bool, true, true),
PropertySchema::new("size", PropertyValueKind::UInt, true, true),
PropertySchema::new("image_source", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("badge", PropertyValueKind::String, true, true),
PropertySchema::new("ring_color", PropertyValueKind::Color, true, true),
PropertySchema::new("ring_width", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const EMPTY_STATE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("message", PropertyValueKind::String, true, true),
PropertySchema::new("secondary_action_text", PropertyValueKind::String, true, true),
PropertySchema::new("description", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const COLOR_HISTORY_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("color_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const COLOR_WELL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("color", PropertyValueKind::Color, true, true),
PropertySchema::new("show_border", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const QR_CODE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("data", PropertyValueKind::String, true, true),
PropertySchema::new("size", PropertyValueKind::UInt, true, true),
PropertySchema::new("quiet_zone", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated("ec_level", true, true, &["L", "M", "Q", "H"]),
PropertySchema::new("min_version", PropertyValueKind::UInt, true, true),
PropertySchema::new("max_version", PropertyValueKind::UInt, true, true),
PropertySchema::new("foreground_color", PropertyValueKind::Color, true, true),
PropertySchema::new("background_color", PropertyValueKind::Color, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MATERIAL_SNACKBAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("message", PropertyValueKind::String, true, true),
PropertySchema::new("action_text", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("duration_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("slide_progress", PropertyValueKind::Float, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const ADAPTIVE_SCAFFOLD_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated("badge_style", true, true, &["text", "dot"]),
PropertySchema::new("drawer_animated", PropertyValueKind::Bool, true, true),
PropertySchema::new("scrim_opacity", PropertyValueKind::Float, true, true),
PropertySchema::new("page_transition", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SEGMENTED_BUTTON_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("selected_indices", PropertyValueKind::String, true, true),
PropertySchema::new("allows_multiple", PropertyValueKind::Bool, true, true),
PropertySchema::new("segment_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("group_id", PropertyValueKind::String, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const NAVIGATION_STACK_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("page_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("current_page", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("back_visible", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const PROGRESS_CIRCLE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::Float, true, true).constrained(&[
Constraint::Range(RangeSpec { minimum: 0.0, maximum: 1.0, step: None }),
]),
PropertySchema::new("thickness", PropertyValueKind::Float, true, true),
PropertySchema::new("progress_color", PropertyValueKind::Color, true, true),
PropertySchema::new("diameter", PropertyValueKind::UInt, true, true),
PropertySchema::new("indeterminate", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_center_text", PropertyValueKind::Bool, true, true),
PropertySchema::new("center_text_format", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const ICON_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("icon_name", PropertyValueKind::String, true, true),
PropertySchema::new("icon_source", PropertyValueKind::IconSpec, true, true),
PropertySchema::new("size", PropertyValueKind::Float, true, true),
PropertySchema::new("color", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const FONT_PREVIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("font_family", PropertyValueKind::String, true, true),
PropertySchema::new("font_size", PropertyValueKind::Float, true, true),
PropertySchema::new("preview_text", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CUPERTINO_NAVIGATION_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("large_title", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("prompt", PropertyValueKind::String, true, true),
PropertySchema::new("collapse_offset", PropertyValueKind::Float, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const REFRESH_CONTROL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("refreshing", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DATE_RANGE_PICKER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("start_date", PropertyValueKind::String, true, true),
PropertySchema::new("end_date", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("presets", PropertyValueKind::StringList, true, true),
PropertySchema::new("double_month", PropertyValueKind::Bool, true, true),
PropertySchema::new("min_nights", PropertyValueKind::UInt, true, true),
PropertySchema::new("max_nights", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MATERIAL_NAVIGATION_RAIL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TAB_VIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("tab_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("keyboard_navigation_enabled", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SWIPE_TO_DISMISS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("is_dismissed", PropertyValueKind::Bool, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const LINE_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("stroke_width", PropertyValueKind::Float, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SPARKLINE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("data", PropertyValueKind::NumberList, true, true),
PropertySchema::new("stroke_width", PropertyValueKind::Float, true, true),
PropertySchema::new("show_end_value", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("fill", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_points", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_last_marker", PropertyValueKind::Bool, true, true),
PropertySchema::new("capacity", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const BAR_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("bar_spacing", PropertyValueKind::Float, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const PIE_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("donut", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const BEZIER_CURVE_EDITOR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("snap_to_grid", PropertyValueKind::Bool, true, true),
PropertySchema::new("segments", PropertyValueKind::UInt, true, false),
PropertySchema::new("curve_points", PropertyValueKind::String, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const BARCODE_SCANNER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("is_scanning", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
pub(crate) const CANDLESTICK_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("series", PropertyValueKind::String, true, true),
PropertySchema::new("overlay_count", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_price_levels", PropertyValueKind::Bool, true, true),
PropertySchema::new("show_overlay_legend", PropertyValueKind::Bool, true, true),
];
pub(crate) const VOLUME_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("series", PropertyValueKind::String, true, true),
PropertySchema::enumerated("color_mode", true, true, &["direction", "uniform"]),
PropertySchema::new("headroom", PropertyValueKind::Float, true, true),
];
pub(crate) const DEPTH_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("depth", PropertyValueKind::UInt, true, true),
PropertySchema::new("bid_color", PropertyValueKind::Color, true, true),
PropertySchema::new("ask_color", PropertyValueKind::Color, true, true),
];
pub(crate) const ORDER_BOOK_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("depth", PropertyValueKind::UInt, true, true),
PropertySchema::new("decimals", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_spread", PropertyValueKind::Bool, true, false),
];
pub(crate) const QUOTE_BOARD_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::enumerated(
"sort",
true,
true,
&[
"none",
"symbol_ascending",
"symbol_descending",
"last_ascending",
"last_descending",
"change_magnitude_ascending",
"change_magnitude_descending",
],
),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, false),
PropertySchema::new("scroll_offset", PropertyValueKind::UInt, true, true),
];
pub(crate) const INDICATOR_CHART_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("series", PropertyValueKind::String, true, true),
PropertySchema::enumerated(
"mode",
true,
true,
&["macd", "rsi", "stochastic", "money_flow_index", "atr", "on_balance_volume"],
),
PropertySchema::new("period", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_reference_levels", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TAG_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("text", PropertyValueKind::String, true, true),
PropertySchema::new("icon", PropertyValueKind::String, true, true),
PropertySchema::enumerated(
"tone",
true,
true,
&["neutral", "primary", "success", "warning", "error"],
),
PropertySchema::new("selected", PropertyValueKind::Bool, true, true),
PropertySchema::new("closable", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CLOCK_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("hour", PropertyValueKind::UInt, true, true),
PropertySchema::new("minute", PropertyValueKind::UInt, true, true),
PropertySchema::new("second", PropertyValueKind::UInt, true, true),
PropertySchema::new("show_seconds", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated("time_source", true, true, &["manual", "system"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const GAUGE_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::Float, true, true),
PropertySchema::new("minimum", PropertyValueKind::Float, true, true),
PropertySchema::new("maximum", PropertyValueKind::Float, true, true),
PropertySchema::new("label", PropertyValueKind::String, true, true),
PropertySchema::new("unit", PropertyValueKind::String, true, true),
PropertySchema::new("zone_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("animated", PropertyValueKind::Bool, true, true),
PropertySchema::new("thickness", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("bands", PropertyValueKind::StringList, true, true),
PropertySchema::new("tick_count", PropertyValueKind::UInt, true, true),
PropertySchema::new("start_angle", PropertyValueKind::Float, true, true),
PropertySchema::new("end_angle", PropertyValueKind::Float, true, true),
PropertySchema::enumerated("needle_style", true, true, &["none", "line", "triangle"]),
PropertySchema::new("unit_label", PropertyValueKind::String, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAC_SEGMENTED_CONTROL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("segment_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAC_STEPPER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("value", PropertyValueKind::Int, true, true),
PropertySchema::new("minimum", PropertyValueKind::Int, true, true),
PropertySchema::new("maximum", PropertyValueKind::Int, true, true),
PropertySchema::new("step", PropertyValueKind::Int, true, true),
PropertySchema::new("wraps", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("repeat_delay_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("repeat_interval_ms", PropertyValueKind::UInt, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAC_TOOLBAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("item_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("icon_size", PropertyValueKind::Float, true, true),
PropertySchema::new("orientation", PropertyValueKind::String, true, false),
PropertySchema::new("selectable", PropertyValueKind::Bool, true, true),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("overflow_count", PropertyValueKind::UInt, true, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAC_SOURCE_LIST_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("section_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("row_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("row_height", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_row", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MAC_WINDOW_CHROME_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("chrome_height", PropertyValueKind::UInt, true, false),
PropertySchema::new("buttons_visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("draggable", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
PropertySchema::new("fullscreen", PropertyValueKind::Bool, true, true),
PropertySchema::new("document_edited", PropertyValueKind::Bool, true, true),
PropertySchema::new("focused", PropertyValueKind::Bool, true, true),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SWATCH_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("colors", PropertyValueKind::Color, true, true),
PropertySchema::new("selected_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("cell_size", PropertyValueKind::UInt, true, true),
PropertySchema::new("columns", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const FILTER_ROW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("columns", PropertyValueKind::StringList, true, true),
PropertySchema::new("conditions", PropertyValueKind::StringList, true, true),
PropertySchema::enumerated(
"operator",
true,
true,
&[
"contains",
"equals",
"starts_with",
"ends_with",
"not_contains",
"equals_number",
"greater_than",
"greater_or_equal",
"less_than",
"less_or_equal",
],
),
PropertySchema::new("live", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const LEGEND_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("entries", PropertyValueKind::StringList, true, true),
PropertySchema::enumerated("orientation", true, true, &["horizontal", "vertical"]),
PropertySchema::new("checkable", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated(
"position",
true,
true,
&["top", "right", "bottom", "left", "outside"],
),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const CHART_TOOLTIP_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("anchor", PropertyValueKind::NumberList, true, true),
PropertySchema::new("offset", PropertyValueKind::NumberList, true, true),
PropertySchema::new("follow_pointer", PropertyValueKind::Bool, true, true),
PropertySchema::new("content", PropertyValueKind::StringList, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TOOLTIP_MANAGER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("delay_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("duration_ms", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("follow_pointer", PropertyValueKind::Bool, true, true),
PropertySchema::new("max_width", PropertyValueKind::UInt, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const ZOOM_PAN_CONTROLLER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("zoom_level", PropertyValueKind::Float, true, true),
PropertySchema::new("pan_offset", PropertyValueKind::NumberList, true, true),
PropertySchema::enumerated(
"zoom_mode",
true,
true,
&["free", "fit_width", "fit_height", "original"],
),
PropertySchema::new("min_zoom", PropertyValueKind::Float, true, true),
PropertySchema::new("max_zoom", PropertyValueKind::Float, true, true),
PropertySchema::new("roi", PropertyValueKind::Rect, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TOAST_HOST_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("max_visible", PropertyValueKind::UInt, true, true),
PropertySchema::new("max_queued", PropertyValueKind::UInt, true, true),
PropertySchema::new("default_duration_ms", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated(
"anchor",
true,
true,
&[
"top_left",
"top_center",
"top_right",
"bottom_left",
"bottom_center",
"bottom_right",
],
),
PropertySchema::enumerated(
"stacking_direction",
true,
true,
&["newest_at_top", "newest_at_bottom"],
),
PropertySchema::enumerated(
"overflow_policy",
true,
true,
&["drop_oldest", "drop_newest", "queue"],
),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TILE_LOADER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("url_template", PropertyValueKind::String, true, true),
PropertySchema::new("min_zoom", PropertyValueKind::UInt, true, true),
PropertySchema::new("max_zoom", PropertyValueKind::UInt, true, true),
PropertySchema::new("tile_size", PropertyValueKind::UInt, true, true),
PropertySchema::new("cache_limit", PropertyValueKind::UInt, true, true),
PropertySchema::new("cache_size", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const ZOOM_CONTROL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("zoom_level", PropertyValueKind::Float, true, true),
PropertySchema::new("min", PropertyValueKind::Float, true, true),
PropertySchema::new("max", PropertyValueKind::Float, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SCALE_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("meters_per_pixel", PropertyValueKind::Float, true, true),
PropertySchema::enumerated("units", true, true, &["metric", "imperial"]),
PropertySchema::enumerated("style", true, true, &["plain", "boxed"]),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const COMPASS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("bearing_deg", PropertyValueKind::Float, true, true),
PropertySchema::new("clickable", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const TIMELINE_AXIS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("tick_density", PropertyValueKind::UInt, true, true),
PropertySchema::enumerated("date_format", true, true, &["numeric", "iso"]),
PropertySchema::new("zoom_level", PropertyValueKind::Float, true, true),
PropertySchema::new("range", PropertyValueKind::NumberList, true, false),
PropertySchema::new("range_start", PropertyValueKind::Int, true, true),
PropertySchema::new("range_end", PropertyValueKind::Int, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DEPENDENCY_EDITOR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("dependencies", PropertyValueKind::UInt, true, false),
PropertySchema::new("editable", PropertyValueKind::Bool, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const DIFF_FILE_LIST_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("files", PropertyValueKind::StringList, true, true),
PropertySchema::new("file_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selected_path", PropertyValueKind::String, true, false),
PropertySchema::enumerated(
"selection_mode",
true,
true,
&["single", "multi", "extended", "none"],
),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const MARKDOWN_OUTLINE_PANEL_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("entries", PropertyValueKind::StringList, true, true),
PropertySchema::new("active_index", PropertyValueKind::UInt, true, true),
PropertySchema::new("width", PropertyValueKind::UInt, true, true),
PropertySchema::new("entry_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const FIND_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("query", PropertyValueKind::String, true, true),
PropertySchema::new("case_sensitive", PropertyValueKind::Bool, true, true),
PropertySchema::new("whole_word", PropertyValueKind::Bool, true, true),
PropertySchema::new("replace_text", PropertyValueKind::String, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("replace_visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("match_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("current_range", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const SHAPE_CANVAS_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("shapes", PropertyValueKind::NumberList, true, false),
PropertySchema::new("shape_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("selection", PropertyValueKind::NumberList, true, true),
PropertySchema::new("editable", PropertyValueKind::Bool, true, true),
PropertySchema::new("snap_to_grid", PropertyValueKind::Bool, true, true),
PropertySchema::new("grid_step", PropertyValueKind::UInt, true, true),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const KANBAN_CARD_VIEW_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("description", PropertyValueKind::String, true, true),
PropertySchema::new("done", PropertyValueKind::Bool, true, true),
PropertySchema::new("tags", PropertyValueKind::StringList, true, true),
PropertySchema::new("assignee", PropertyValueKind::String, true, true),
PropertySchema::new("draggable", PropertyValueKind::Bool, true, true),
PropertySchema::new("editing", PropertyValueKind::Bool, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const KANBAN_COLUMN_HEADER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("title", PropertyValueKind::String, true, true),
PropertySchema::new("count", PropertyValueKind::UInt, true, true),
PropertySchema::new("wip_limit", PropertyValueKind::UInt, true, true),
PropertySchema::new("collapsed", PropertyValueKind::Bool, true, true),
PropertySchema::new("editable", PropertyValueKind::Bool, true, true),
PropertySchema::new("at_wip_limit", PropertyValueKind::Bool, true, false),
PropertySchema::new("editing", PropertyValueKind::Bool, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const RANGE_PRESET_BAR_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("presets", PropertyValueKind::StringList, true, true),
PropertySchema::enumerated("orientation", true, true, &["horizontal", "vertical"]),
PropertySchema::new("compact", PropertyValueKind::Bool, true, true),
PropertySchema::new("selected_label", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
#[cfg(not(alloc_frugal))]
pub(crate) const GRID_VIEW_HEADER_PROPERTIES: &[PropertySchema] = &[
PropertySchema::new("columns", PropertyValueKind::StringList, true, true),
PropertySchema::new("column_count", PropertyValueKind::UInt, true, false),
PropertySchema::new("sort_indicator_visible", PropertyValueKind::Bool, true, true),
PropertySchema::enumerated(
"resize_mode",
true,
true,
&["fixed", "stretch", "stretch_last", "interactive"],
),
PropertySchema::new("filter_icon_visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("sort_columns", PropertyValueKind::String, true, false),
PropertySchema::new("enabled", PropertyValueKind::Bool, true, true),
PropertySchema::new("visible", PropertyValueKind::Bool, true, true),
PropertySchema::new("tooltip", PropertyValueKind::String, true, true),
PropertySchema::new("geometry", PropertyValueKind::String, false, false),
];
};
}