Crate i_slint_core_macros

Source
Expand description

This crate contains the internal procedural macros used by the i-slint-core crate

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.

Macros§

slint_doc_str
Same as slint_doc but for string literals instead of doc comments (useful for crate level documentation that cannot have an attribute)

Attribute Macros§

identity
An attribute macro that simply return its input and ignore any arguments
slint_doc
To be applied on any item that has documentation comment, it will convert link to slint:Foo to the link from the documentation map from link-data.json

Derive Macros§

SlintElement
This derive macro is used with structures in the run-time library that are meant to be exposed to the language. The structure is introspected for properties and fields marked with the rtti_field attribute and generates run-time type information for use with the interpreter. In addition all Property<T> foo fields get a convenient getter function generated that works on a Pin<&Self> receiver.