Commit graph

1555 commits

Author SHA1 Message Date
Simon Hausmann
b9dee9fcce Fix issue link 2020-10-12 21:30:59 +02:00
Simon Hausmann
b3a591cef0 Small grammar fix 2020-10-12 21:27:01 +02:00
Simon Hausmann
e301c19fd0 Fix typo 2020-10-12 21:24:43 +02:00
Simon Hausmann
a4745d911c Fix typo 2020-10-12 21:18:32 +02:00
Simon Hausmann
ce68004aa3 Two minor cleanups in the README 2020-10-12 21:11:12 +02:00
Simon Hausmann
2f7839e326 Remove unused BuiltinItem derivation
It's not needed :-)
2020-10-12 18:21:36 +02:00
Simon Hausmann
e1fdef73b1 Remove unused data structure
Added accidentally in parent commit
2020-10-12 18:20:25 +02:00
Simon Hausmann
805ba494ba Fix native padding calculation for NativeLineEdit
Similar to the parent commit, don't calculate the native_padding_* as a side-effect of calling
layout_info(), but calculate it property through a binding.
2020-10-12 16:49:44 +02:00
Simon Hausmann
fa982b9380 Fix calculation of native group box padding
Setting the value of the native_padding_{left, right, top, bottom}
properties *during* the layout_info() call is too late, as the calling
compute_layout implementation has already queried for those properties.

Instead, this patch moves the padding calculation into a shared property
binding that's queried from bindings to the individual native_padding_*
properties and layout_info() just uses the properties, too.
2020-10-12 16:49:44 +02:00
Simon Hausmann
a37d42fa0e Add an init function to the Item vtable
This will be called by the run-time and will allow items to set up
bindings that rely on internals that should not be exposed to the
compiler/runtime.
2020-10-12 16:49:44 +02:00
Simon Hausmann
8cf6cdb033 Fix build
Neon 0.4.2 was yanked from crates.io, so upgrade to a newer version
2020-10-12 16:46:21 +02:00
Simon Hausmann
765f2790ba Fix failing syntax tests
After commit 0c8a31211e we're using an
older version of the regex crate, that uncovered a bug in our tests:

We were looking for

   Use parentheses to disambiguate && and ||

in the output messages by interpreting this as a regular expression. The
newer version of regex considered the || in the above regex as
alternations, empty alternations. So they basically always matched.

The old regexp that's pinned due to the above commit doesn't support
empty alternations, so the || need to be escaped. That uncovered a bug
in the regex itself, where it turns out that the word "between" was
missing after "disambiguate".
2020-10-12 16:37:21 +02:00
Olivier Goffart
84ecffa5d7 Parser: avoid too many "Fixme" error
Echo a parse error once per items
2020-10-12 16:12:32 +02:00
Simon Hausmann
0c8a31211e Work around build failure on macOS
I keep running into https://github.com/BurntSushi/aho-corasick/issues/64
on macOS, so pin aho-corasick to 0.7.4.
2020-10-12 14:46:21 +02:00
Olivier Goffart
ec24a02acf Fix warning
Span::is_valid is not used when not compiled with the
display-diagnostics feature is not used. Mark it as pub
2020-10-12 14:21:06 +02:00
Olivier Goffart
d0611d8491 Document widgets that were missing documentation 2020-10-12 13:36:25 +02:00
Simon Hausmann
0752067cab
Fix appearance of the list view in the gallery
By default the window is a little too small (in terms of height), so the list view is squished. We don't propagate the minimum size to the window yet, so bump the height by hand.
2020-10-12 13:27:09 +02:00
Olivier Goffart
23e9a5f339 Fix some spelling issues in README and doc 2020-10-12 12:59:40 +02:00
Olivier Goffart
7eff181e6f sixtyfps_build: add a compile_with_config function 2020-10-12 12:35:03 +02:00
Olivier Goffart
cbf252f73b Online editor: go back to hello world if no demo is selected 2020-10-12 12:25:34 +02:00
Olivier Goffart
0845b4ab85 Online editor: Add a timeout 2020-10-12 12:22:49 +02:00
Olivier Goffart
84f0fb7b07 Display a warning when no style is selected 2020-10-12 11:50:39 +02:00
Simon Hausmann
5f36134ff9 Emphasize the "What" in the README
Per feedback, the first sentence about the repo is obvious. So go
straight for the "What". Also emphasize the early status.
2020-10-12 11:34:48 +02:00
Simon Hausmann
e374fd35c4 Ignore the generated pkg/ directory 2020-10-12 11:26:15 +02:00
Simon Hausmann
45fb4eab04 Pull in fix for Safari breakage of online editor
Patch winit to use a specific version from the master branch, for use during development and the CI builds.
2020-10-12 10:52:41 +02:00
Simon Hausmann
49516826a6 Clarify development support intent in the README
Emphasize dual licensing over pure commercial.
2020-10-12 10:48:53 +02:00
Olivier Goffart
cae0503fbb Update outdated dependencies 2020-10-12 10:29:07 +02:00
Simon Hausmann
e1022952d3 Some edits for the README 2020-10-12 08:06:21 +02:00
Olivier Goffart
7bd77f698f cmake: use the newly introduced CRATES option from corrosion 2020-10-12 06:57:03 +02:00
Olivier Goffart
9a909142a8 Disable wayland dependency by default 2020-10-10 16:10:22 +02:00
Olivier Goffart
69b07eee53 Revert the changes to the hello world in the code editor
These were not meant to be commited
2020-10-10 15:46:38 +02:00
Olivier Goffart
e57554a71d Missing license header 2020-10-10 13:20:13 +02:00
Olivier Goffart
8ec820cb9f Online editor syntax highliting 2020-10-10 13:00:14 +02:00
Olivier Goffart
9d106c6830 Some changes in the README 2020-10-09 13:49:39 +02:00
Olivier Goffart
8fbfc3c4d7 Improve README 2020-10-09 13:39:40 +02:00
Olivier Goffart
29f4910cbd Some changes to the online editor
- Set a small hello world by default
 - add a permalink
 - allow to load an URL
2020-10-09 13:14:30 +02:00
Olivier Goffart
18881cfcad Online editor don't ship with support for other languages 2020-10-09 12:48:56 +02:00
Olivier Goffart
9dbe1f874f One need image 0.23.10 to use image::ImageBuffer::as_raw 2020-10-09 12:08:18 +02:00
Simon Hausmann
51f9fc0e61 Refresh the window when loading of an HTML image completed 2020-10-09 10:44:15 +02:00
Simon Hausmann
f4b6eea646 Implement the rest of the dynamic image loading for the online editor
This works except that there's a mechanism missing for refreshing the
canvas when the image was loaded.
2020-10-09 10:10:48 +02:00
Simon Hausmann
785f23f01a Make the tex__image_2d call work
* Set cross origin for the image to "anonymous" to ask the server for permission
* Pass RGBA as internal format
2020-10-09 09:57:45 +02:00
Olivier Goffart
6c9f0691aa WIP: Attempt to get image loading in wasm
Not working
2020-10-09 09:57:45 +02:00
Simon Hausmann
0f07684fcf Clean up GLFrame::render_primitive
Move the main match out into a separate helper function in GLFrame and
keep render_primitive to just be the loop. This will also make it easier
to implement the dynamic primitives later.
2020-10-09 09:56:32 +02:00
Simon Hausmann
67f387e628 Prepare for relative resource loading from the web
Pass the base url as path to the interpreter
2020-10-08 20:42:46 +02:00
Olivier Goffart
119898f6d0 Remove the test examples 2020-10-08 17:18:22 +02:00
Olivier Goffart
2903428072 Add a C++ build of the gallery 2020-10-08 17:18:22 +02:00
Olivier Goffart
d8f7139f48 Fix Native StandardListView with C++ 2020-10-08 17:18:22 +02:00
Olivier Goffart
4169254169 StandardListView in rust 2020-10-08 16:22:16 +02:00
Olivier Goffart
3bdd71b36f Start working on the Native ListView
Currently only the interpret part
2020-10-08 15:51:33 +02:00
Olivier Goffart
4bdf447b11 C++ build documentation and README 2020-10-08 12:25:12 +02:00