Tobias Hunger
a8f912900b
janitor: Fix warnings in nightly about redandant use
2024-02-19 17:05:21 +01:00
J-P Nurmi
9644f62f00
Add BorderRadius helper type
2024-02-06 18:01:35 +01:00
Olivier Goffart
e0ac0ed319
Frame per second counter for the software renderer
2023-09-28 16:23:07 +02:00
Simon Hausmann
d160eb7a31
Add support for set_position(), position(), and set_physical_size() to the C++ WindowAdapter ( #3367 )
...
Closes #3349
2023-08-28 18:43:04 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 ( #2994 )
2023-07-10 10:12:11 +02:00
Olivier Goffart
aa8ef4e302
C++: add a "std" feature to the slint-cpp crate
...
And make it no_std otherwise
This is a first step towards getting C++ on MCU (#2136 )
2023-07-05 21:48:01 +02:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs ( #2888 )
2023-06-15 11:20:50 +02:00
Simon Hausmann
057493b3a9
Add support for italic text in the software renderer's vector font path
...
Centralize also fontdb::Query creation and family fallback handling in
sharedfontdb. This way SLINT_DEFAULT_FONT also works for the femtovg
renderer.
2023-05-31 18:47:39 +02:00
Simon Hausmann
3cf1b38a48
Add basic support for italic font face selection to Text
and TextInput
...
This is implemented for FemtoVG, Skia, and Qt.
2023-05-31 18:47:39 +02:00
Simon Hausmann
2fd8bf426a
Move the box shadow cache helpers to core::graphics::boxshadowcache
...
This way the box shadow cache can also be used from the Skia renderer,
which is to be moved into a different crate.
2022-12-09 09:03:27 +01:00
Simon Hausmann
27fea8b9f3
Fix rustdoc warnings with nightly
...
Use backticks as recommended by rustdoc for items that could be interpreted as HTML tags.
2022-10-12 17:29:46 +02:00
Simon Hausmann
37a8c50c12
Simplify FontRequest
...
It doesn't have to be generic as mostly the frontend code creates it with logical lengths.
2022-09-30 23:31:32 +02:00
Simon Hausmann
a52d633b59
Change FontRequest to be a generic over the length
...
The API uses a logical length for pixel sizes and letter spacing,
but the renderer will need the physical length eventually.
2022-09-30 13:00:37 +02:00
Simon Hausmann
0ab71ec503
Perform resolution of font properties against the window defaults in the core library
...
This simplifies the renderer handling - the FontRequest arriving there
will always be resolved.
And this reduces the amount of property dependencies: If a Text elements
specifies a font-family, no dependency to the window's
default-font-family is created.
2022-07-22 23:09:08 +02:00
Olivier Goffart
6cbf2c0609
Put the new cache in corelib and use it in the GL backend
2022-05-31 10:48:24 +02:00
Olivier Goffart
1b91158b46
corelib: allow to use i32 for coordinate instead of f32
2022-04-11 17:46:50 +02:00
Simon Hausmann
d6a569b8f8
Make rendering_metrics_collector a public module
...
... instead of pulling it entirely into the graphics module.
2022-03-24 21:20:28 +01:00
Simon Hausmann
7b194b3f8c
Rename FPSCounter to RenderingMetricsCollector
...
In preparation for collecting additional data
2022-03-24 21:20:28 +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
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
753784c331
C++: drops IntSize in favor of Size<T> ( #922 )
...
Fixes #909
Since we declare the struct in C++, we don't need to declare it in
rust for cbindgen anymore, as long as we expose the Size2D type from
euclid to the cbindgen_private namespace
2022-02-08 14:12:52 +01:00
Simon Hausmann
8ec315c941
Remove a doxygen #ifdef
...
Remove the duplicated definition of the IntSize struct and instead
generate it via cbindgen into the public API.
2022-01-31 17:19:47 +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