mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 05:26:29 +00:00
![]() Instead of replacing the existing x/y properties with "invisible" ones, let's just keep those that we have and merely zero out the geometry x/y. This has the bonus that access to x/y within the PopupWindow will provide the right value, i.e. popup := PopupWindow { x: 42px; Text { text: popup.text / 1px; } } will show "42" instead of zero. Since x/y are now merely referenced via the NamedReferences in PopupWindow, this patch also fixes the property materialization pass to use visit_all_named_references(component) to also visit the x/y named refs, instead of visit_all_named_references_in_element() that skips them. |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
parser | ||
parser-test-macro | ||
passes | ||
tests | ||
widgets | ||
build.rs | ||
builtin_macros.rs | ||
builtins.slint | ||
Cargo.toml | ||
diagnostics.rs | ||
embedded_resources.rs | ||
expression_tree.rs | ||
fileaccess.rs | ||
generator.rs | ||
langtype.rs | ||
layout.rs | ||
lexer.rs | ||
lib.rs | ||
literals.rs | ||
llr.rs | ||
load_builtins.rs | ||
lookup.rs | ||
namedreference.rs | ||
object_tree.rs | ||
parser.rs | ||
passes.rs | ||
pathutils.rs | ||
README.md | ||
typeloader.rs | ||
typeregister.rs |
The Slint Compiler Library
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.