Olivier Goffart
c941946f49
Debug: make sure that more properties have debug_name
...
The global properties, and base properties were not named
This adds a Property::new_named regardless if debug is enabled or not
2022-02-18 17:40:17 +01:00
Olivier Goffart
d70a304e2b
fix slint_debug_property cfg build
2022-02-18 12:24:35 +01:00
Olivier Goffart
a32eee64a7
Count the uses of property, and do not generate properties that are not used
2022-02-17 16:25:48 +01:00
Olivier Goffart
85e88eb3d6
Silent warning in the generated code.
...
Inlining may cause global to become unused.
In a perfect world, We should remove the global completely instead, but
that will be for a followup patch
2022-02-16 18:46:37 +01:00
Olivier Goffart
068a7a51b5
Rust generator: Fix type conversion when creating a Point
...
Before it used to always be a property access, but now it may be inlined
and result in a f64 or int expression
2022-02-16 18:46:37 +01:00
Olivier Goffart
9f77e9a2e8
llr: note when a property binding is for a StateInfo
2022-02-16 18:46:37 +01:00
Olivier Goffart
9e938046ca
llr: Add a helper function
2022-02-16 18:46:37 +01:00
Olivier Goffart
76a1bf8d7d
LLR: Put the expression into a RefCell so they can be optimized
2022-02-16 18:46:37 +01:00
Simon Hausmann
304e06f758
Begin rasterizing glyphs for glyph embedding
...
Enable with `SLINT_EMBED_GLYPHS=1` and select sizes like
`SLINT_FONT_SIZES=12,16`
This change just puts the data structures in place, rasterizes a fixed
subset, embeds that into the rust generated code and calls a backend
function for registering the font that is unimplemented.
2022-02-15 15:52:24 +01:00
Simon Hausmann
29cbb9e181
Change names of identifiers used for accessing embedded resources in the compiler
...
Instead of using SFPS (Slint_Fast_Packing_System) use SLINT :-)
2022-02-14 16:17:55 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
f0b047057b
Fix HighDPI on windows with the rust generator and the native style and qt backend
...
We must create the window first to initialize the backend before
the style is called because it would initialize qt as a plugin instead
of as a proper application, and it would then not initialize the high dpi mode
2022-02-09 09:47:39 +01:00
Olivier Goffart
91e107150e
Merge remote-tracking branch 'origin/wip/rename'
...
Conflicts:
examples/opengl_underlay/index.html
examples/opengl_underlay/main.cpp
2022-02-08 07:29:41 +01:00
Olivier Goffart
0dba666d1f
Rust generator: Fix compilation returning from void callbacks
...
If a callback returning voids ends in a statement that returns something,
we would have an error in the rust generated code as we end our function
with an expression that is not `()`
2022-02-06 10:33:36 +01:00
Tobias Hunger
cc3994b58d
Rename rust API
2022-02-02 13:26:35 +01:00
Simon Hausmann
fcf59f3793
Rename the C++ header files
2022-02-02 13:07:26 +01:00
Simon Hausmann
7d297da2fc
Rename the sixtyfps C++ namespaces
2022-02-02 12:11:27 +01:00
Simon Hausmann
5226feab01
Rename C++ pre-processor macros
2022-02-02 12:11:27 +01:00
Simon Hausmann
c846633708
Rename C ffi functions
2022-02-02 11:12:34 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Tobias Hunger
0d358251c9
Janitor: More clippy stuff
2022-01-31 20:59:45 +01:00
Tobias Hunger
cc568a63f5
Janitor: Fix stray @ in patterns
2022-01-31 20:59:45 +01:00
Tobias Hunger
e6b24bceec
[reorg]: Set up and populate the internal
directory
...
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
2022-01-31 16:00:50 +01:00