Commit graph

23 commits

Author SHA1 Message Date
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
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
Tobias Hunger
ca469048c6 Replace cat picture used in examples
* Use a jpg over an png, which is much smaller
* Do not round the image
* Change the image file extensions used in the demos to reflect the
  actual image format being used
* Do not use symlinks for images: This breaks the WASM demos
2022-02-07 15:29:13 +01:00
Olivier Goffart
3594c20153 Replace SixtyFPS in many locations (Uppercase) 2022-02-02 15:49:18 +01:00
Olivier Goffart
fc6b7cc966 Replace sixtyfps:: almost everywhere 2022-02-02 13:50:44 +01:00
Tobias Hunger
cc3994b58d
Rename rust API 2022-02-02 13:26:35 +01:00
Olivier Goffart
0308f86cd4 Rename sixtyfps_widgets.60 to std-widgets.slint 2022-02-01 18:58:54 +01:00
Olivier Goffart
929166f06c Change what is accepted by ModelRc::new and ModelRc::from
- ModelRc::new constructs a ModelRc from a impl Model
 - ModelRc::form constructs a ModelRc from a `Rc<dyn Model>` or `Rc<impl Model>`
2022-01-31 14:44:35 +01:00
Tobias Hunger
018c1a6666 Rename ModelHandle to SharedModel
This patch is mostly a rename now, but also contains a few small
cleanups.

SharedModel implements the Model trait itself and gracefully falls back
to an empty model is no Model was provided. This allows for some small
simplifications.

Also make sure to use the same comparision for SharedModels everywhere.
This fixes the last remaining clippy errors we had.
2022-01-30 01:26:35 +01:00
Simon Hausmann
d16a335bc4 SharedImageBuffer/SharedPixelBuffer: use u32 instead of usize
For width, height and stride that's a more natural choice that's also consistent
with what the image crate uses.
2022-01-27 22:15:29 +01:00
Tobias Hunger
6e74a7b330
Model: Remove deprecated APIs
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2022-01-26 18:41:15 +01:00
Tobias Hunger
e3c4209b1f
Change Model::row_data to return an Option<T> (#873)
Change Model::row_data to return an Option<T> (rust) or std::optional<T> (c++)

Co-authored-by: Olivier Goffart <olivier@woboq.com>
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2022-01-26 13:55:38 +01:00
Tobias Hunger
bfca0e3573 Mass update copyright messages to be more REUSE compliant 2021-12-22 10:06:12 +01:00
Simon Hausmann
64ee1047c8 Simplify filters model
We don't need to re-implement attach_peer
2021-10-20 15:33:37 +02:00
Tobias Hunger
09e272abb6 Janitor: Fix clippy::useless_conversion 2021-08-18 00:24:51 +02:00
Simon Hausmann
481c977b68 Simplify the image filter example
Use a callback to produce the filtered image, instead of back and forth of
properties.
2021-08-11 17:21:30 +02:00
Olivier Goffart
0ebd92c253 ImageFilter demo: "Blur" is the default filter, so it should show that by default 2021-08-11 16:05:06 +02:00
Olivier Goffart
b62d600a3a Make the imagefilter demo self-contained 2021-08-11 15:44:36 +02:00
Simon Hausmann
efb207b299 imagefilter example: use a blur filter as default
It's visually clearer what's filtered and what's not
2021-08-10 17:12:23 +02:00
Simon Hausmann
1a08b392e3 Fix the wasm build of the imagefilter example 2021-08-10 15:56:01 +02:00
Simon Hausmann
d023475f1c Rename Image::new_rgb*() to Image::from_rgb* 2021-08-10 15:56:01 +02:00
Simon Hausmann
42ba8ba7b0 Adapt the imagefilter example to the SharedImageBuffer API removal 2021-08-10 15:56:01 +02:00
Simon Hausmann
10da1a9499 Add an example to filter images in Rust
This demonstrates how to use the image crate and feed data into
SixtyFPS.
2021-08-10 15:56:01 +02:00