i_slint_core

Module items

Source
Expand description

This module contains the builtin items, either in this file or in sub-modules.

When adding an item or a property, it needs to be kept in sync with different place. (This is less than ideal and maybe we can have some automation later)

  • It needs to be changed in this module
  • In the compiler: builtins.slint
  • In the interpreter (new item only): dynamic_item_tree.rs
  • For the C++ code (new item only): the cbindgen.rs to export the new item
  • Don’t forget to update the documentation

Re-exports§

  • pub use crate::item_tree::ItemRc;

Macros§

  • Instantiate a static ItemVTable for a given type and implements vtable::HasStaticVTable<ItemVTable> for it.

Structs§

Enums§

  • This enum represents the different values for the accessible-role property, used to describe the role of an element in the context of assistive technology such as screen readers.
  • This enum describes the direction of an animation.
  • This enum indicates the color scheme used by the widget style. Use this to explicitly switch between dark and light schemes, or choose Unknown to fall back to the system default.
  • This enum represents the value of the dialog-button-role property which can be added to any element within a Dialog to put that item in the button row, and its exact position depends on the role and the platform.
  • This enum describes whether an event was rejected or accepted by an event handler.
  • This enum describes the different ways of deciding what the inside of a shape described by a path shall be.
  • This enum defines how the source image shall fit into an Image element.
  • This enum specifies the horizontal alignment of the source image.
  • This enum specifies how the source image will be scaled.
  • This enum specifies how the source image will be tiled.
  • This enum specifies the vertical alignment of the source image.
  • This enum is used to define the type of the input field.
  • Enum representing the alignment property of a HorizontalBox, a VerticalBox, a HorizontalLayout, or VerticalLayout.
  • This enum represents different types of mouse cursors. It’s a subset of the mouse cursors available in CSS. For details and pictograms see the MDN Documentation for cursor. Depending on the backend and used OS unidirectional resize cursors may be replaced with bidirectional ones.
  • Represents the orientation of an element or widget such as the Slider.
  • PathEvent is a low-level data structure describing the composition of a path. Typically it is generated at compile time from a higher-level description, such as SVG commands.
  • This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
  • The enum reports what happened to the PointerEventButton in the event
  • Returned by the render() function on items to indicate whether the rendering of children should be handled by the caller, of if the item took care of that (for example through layer indirection)
  • This enum describes the scrollbar visibility
  • This enum represents the different values of the sort-order property. It’s used to sort a StandardTableView by a column.
  • Use this enum to add standard buttons to a Dialog. The look and positioning of these StandardButtons depends on the environment (OS, UI environment, etc.) the application runs in.
  • Argument to TextInput::delete_selection that determines whether to trigger the edited and cursor position callbacks and issue an input method request update.
  • This enum describes the different types of alignment of text along the horizontal axis of a Text element.
  • This enum describes the how the text appear if it is too wide to fit in the Text width.
  • This enum describes the positioning of a text stroke relative to the border of the glyphs in a Text.
  • This enum describes the different types of alignment of text along the vertical axis of a Text element.
  • This enum describes the how the text wrap if it is too wide to fit in the Text width.

Statics§

Traits§

  • Items are the nodes in the render tree. Note: Was generated from the #[vtable] macro on ItemVTable
  • Trait containing the associated constant relative to the trait Item.

Functions§

Type Aliases§

  • Alias for vtable::VRef<ItemVTable> which represent a pointer to a dyn Item with the associated vtable
  • Workarounds for cbindgen