ogoffart
3278b39549
Bump version number to 0.1.6
2021-11-24 14:19:09 +00:00
ogoffart
b25ae6fbcd
Bump version number to 0.1.5
2021-10-26 07:36:54 +00:00
ogoffart
77fcd5221b
Bump version number to 0.1.4
2021-10-07 09:36:43 +00:00
ogoffart
8b9717633e
Bump version number to 0.1.3
2021-10-05 10:31:45 +00:00
Olivier Goffart
54c848fca4
Todo example: clear the line edit when adding a Todo item
2021-09-30 13:21:02 +02:00
ogoffart
e54e03148f
Bump version number to 0.1.2
2021-09-04 10:08:51 +02:00
Olivier Goffart
013eee351c
Wasm demos: add touch-action: none
to all canvas
...
So that the Slider, Flickabke and such works on android/chrome
2021-08-20 09:33:49 +02:00
Tobias Hunger
aea4ecca99
Apply pre-commit hooks to all files
2021-08-17 22:38:16 +02:00
Olivier Goffart
429e5bdb07
Add link to SixtyFPS homepage from the wasm demo pages
2021-08-12 14:19:29 +02:00
Simon Hausmann
efb4a03a9a
Apply the loading spinner from the plotter example to the todo example
2021-08-12 10:17:00 +02:00
Olivier Goffart
ffccef4e0c
Examples: replace all _ by - in identifiers
2021-08-10 22:21:01 +02:00
ogoffart
53f286258c
Bump version number to 0.1.1
2021-08-10 08:06:20 +00:00
Olivier Goffart
6aa6dec9b4
Small simplification on the usages of ListView
...
Now that the height computation is done properly
2021-07-22 17:29:53 +02:00
Olivier Goffart
13bd828b96
Update license date
2021-07-02 15:55:54 +02:00
Olivier Goffart
962dc0075c
Layout: Make the default padding and spacing 0
...
and add Box widgets that have proper defaults
Closes #200
2021-06-21 14:29:53 +02:00
Olivier Goffart
fbdbe69fe7
Window: make hight and width fixed size, preferred-* property set the initial size
...
Issue #227
2021-05-18 10:23:06 +02:00
Simon Hausmann
7773678e22
Simplify wasm "startup" code
...
Apply the simplification of 2398d00e6f
to all
index.html files we use. An async function
can be called directly.
2021-04-14 09:36:33 +02:00
Simon Hausmann
c22bc79ee7
Fix running the todo node version
...
Use `run()` instead of just `run()` to spin the event loop.
Amends commit 5f265ffc09
2021-01-29 11:10:48 +01:00
Olivier Goffart
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Olivier Goffart
002cfa76af
Use PRIVATE in target_link_libraries
2020-12-16 14:29:12 +01:00
Olivier Goffart
261b2cb533
Make the link to the source point to the directory instead of the .60
2020-12-11 09:20:01 +01:00
Olivier Goffart
5517b368eb
Todo: add a small spacing
2020-12-08 16:21:08 +01:00
Olivier Goffart
d8680c33d0
Port more wasm example to the simplified wasm
2020-12-08 13:01:02 +01:00
Simon Hausmann
7047856d4e
Replace FooRc with Foo and without ComponentHandle in examples and tests
2020-12-03 08:13:24 +01:00
Simon Hausmann
08b8a8cb83
Port the examples away from the ComponentHandle based API
2020-12-03 08:13:15 +01:00
Simon Hausmann
a5932c9f88
Remove the outline around the canvas in the wasm demos
2020-11-26 17:31:46 +01:00
Olivier Goffart
d6a440aa4a
Change C++ API to use the ComponentHandle
2020-11-10 19:28:34 +01:00
Simon Hausmann
e87913634a
Use layout alignment
...
That allows removing a FIXME
2020-11-06 11:09:22 +01:00
Simon Hausmann
9df18a3747
Apply default layout spacing and padding from the style
...
Extract the StyleMetrics from the style and pass it to the layout
lowering pass for application.
The tests were adjusted to explicitly specify the padding/spacing to
override the ugly style default.
2020-11-04 15:20:43 +01:00
Olivier Goffart
72f22c8aad
Make a StyleMetrics global in the style and use it from todo just to test
2020-11-02 17:19:57 +01:00
Olivier Goffart
2ece3817cc
Make ModelHandle a struct
...
Last commit broke for structures containing models, because models are not PartialEq.
So we need to implement PartialEq for ModelHandle. Which means a struct needs to
be created
2020-10-31 13:32:19 +01:00
Simon Hausmann
cd75556ab1
Minor clean up in the todo app
...
* Show a placeholder text for the todo entry
* Disable the "Add Entry" button if there's nothing to be added
2020-10-30 15:55:19 +01:00
Olivier Goffart
263df7dc63
Remove the www from all sixtyfps.io URL
2020-10-29 11:06:06 +01:00
Olivier Goffart
d3801e26d3
Change the syntax of structures to require the struct keyword
2020-10-27 16:09:05 +01:00
Olivier Goffart
47be71e16d
Introduce layout stretching
2020-10-26 16:40:35 +01:00
Olivier Goffart
ed01d8369a
Start working on VerticalLayout/HorizontalLayout
2020-10-23 14:08:58 +02:00
Simon Hausmann
68e35ab332
Fix removing todo items in node
...
After removal the index is wrong and I mistakely thought entries() adjuts.
2020-10-21 14:18:33 +02:00
Simon Hausmann
aad9306d54
Added a node version of the todo app
2020-10-21 13:49:18 +02:00
Olivier Goffart
1436402999
Change the target name for the C++ example
...
they were ending by _cpp because corrosion used to add all rust target as target
but that's no longer the case
2020-10-20 18:02:28 +02:00
Simon Hausmann
713cfd8157
Fix colspan/rowspan usage in todo demo
...
Accidental swap :-)
2020-10-20 10:52:02 +02:00
Simon Hausmann
6aa292eac1
Change the names of the logical and physical pixel units
...
The logical pixels are now just called "px" and the less frequently
used physical pixels have the "phx" suffix.
The existing markup was adapted using the syntax updater and the
following patch:
+ if node.kind() == SyntaxKind::NumberLiteral {
+ if node.text().ends_with("lx") {
+ return write!(
+ file,
+ "{}px",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ if node.text().ends_with("px") {
+ return write!(
+ file,
+ "{}phx",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ }
Fixes #49
2020-10-16 07:19:40 +02:00
Olivier Goffart
87ec175166
wasm demo: Don't call non existing fuction
...
Fixes #85
2020-10-13 12:44:09 +02:00
Olivier Goffart
1138c9dbed
Normalize the spelling of SixtyFPS
2020-10-13 07:48:55 +02:00
Olivier Goffart
9d106c6830
Some changes in the README
2020-10-09 13:49:39 +02:00
Olivier Goffart
8b02568b4b
Refactor the cmake C++ build
2020-10-07 11:40:34 +02:00
Simon Hausmann
5695e251b7
Fix wasm builds
...
We're running into https://github.com/parcel-bundler/parcel/issues/1573
so switch back to webpack.
2020-10-05 11:29:40 +02:00
Olivier Goffart
c7e5b39973
Layout the items in the ListView
2020-10-02 18:07:39 +02:00
Olivier Goffart
f10c2bfd7c
More ListView WIP
2020-10-02 18:07:39 +02:00
Olivier Goffart
6d9af3449a
C++ model for the todo example in C++
2020-09-30 18:30:19 +02:00
Olivier Goffart
4cf61b5617
Make the "remove done items" button work in the Todo rust example
2020-09-30 17:57:19 +02:00