Tobias Hunger
70f4eff2d5
Janitor: !(a > 0)
is a <= 0
2021-07-12 15:01:19 +02:00
Tobias Hunger
d68ac7a664
Janitor: CSpell ignore coord in document
2021-07-12 15:01:19 +02:00
Tobias Hunger
b402faff13
Janitor: Deduplicate if blocks
2021-07-12 15:01:19 +02:00
Simon Hausmann
9b4752bdfa
Silence cSpell on window.rs :)
2021-07-12 14:14:12 +02:00
Simon Hausmann
2d3ae8390a
Fix interpreter ffi generated by cbindgen
...
Make sure to never export the Value enum. It might drag in all sorts of
unrelated types (as it happened in #311 ). We have ValueOpaque for that,
so exclude Value from the export config explicitly. However since we
expose the Value *pointers* for the struct iterators, at least provide a
forward declaration.
2021-07-12 14:08:20 +02:00
Olivier Goffart
dcc10f9ccb
iot-dashboard: Add a screenshot in the README
2021-07-12 13:40:22 +02:00
Olivier Goffart
3d9b0fa19c
Adjustment to the example README
2021-07-12 13:38:13 +02:00
Simon Hausmann
6e12b00b3f
Re-add new
constructor functions for ComponentCompiler and CompilerConfiguration
...
Amends commit dc51d4ccda
As discussed in #310
2021-07-12 13:26:17 +02:00
Tobias Hunger
dc51d4ccda
Use impl Default
instead of new()
constructors
2021-07-12 13:22:25 +02:00
Simon Hausmann
3177e60408
Start documenting some of the cbindgen internals
2021-07-12 12:02:28 +02:00
Simon Hausmann
28d656cc8f
cSpell: silence checker
...
frontend -> front-end
corelib -> core library
2021-07-12 11:43:59 +02:00
Simon Hausmann
5a6ba99de2
cSpell: ignore code inline blocks in markdown
2021-07-12 11:43:22 +02:00
Simon Hausmann
8ef8cb90ec
Remove unused file
2021-07-10 08:23:01 +02:00
Simon Hausmann
e321bece70
Add missing license header
2021-07-10 08:13:13 +02:00
Simon Hausmann
4f8c9b4378
Add a badge for GH discussions as forum
2021-07-10 08:13:13 +02:00
Simon Hausmann
163625fcd3
C++ docs: finish re-organzing the C++ docs entry
...
Instead of repeating the table of contents, provide a proper intro
page - based on the Github README - and group the remaining content
into Getting Started, Reference and Integration sections.
2021-07-10 08:13:13 +02:00
Simon Hausmann
a782bc7853
README: Spelling fixes
2021-07-09 17:44:49 +02:00
Simon Hausmann
cb9a89d112
C++ docs: Fix the index page
...
Remove the namespace prefix to make the page readable
2021-07-09 17:18:37 +02:00
Simon Hausmann
16ef842856
C++ docs: remove non-existent module index
2021-07-09 17:16:11 +02:00
Tobias Hunger
b105d6add3
Janitor: Do the float comparision dance
...
I think it is actually makes sense in this case!
2021-07-09 17:00:46 +02:00
Tobias Hunger
ad98137c17
Janitor: Mark up float comparisons where we want bitwise identity
...
Mark up test cases where we want bitwise identity of float values and
use `assert_eq!` since that produces better output in the error case.
2021-07-09 17:00:46 +02:00
Tobias Hunger
8f7d7afa94
Janitor: Replace Option::map
returning ()
with if let
2021-07-09 17:00:46 +02:00
Tobias Hunger
718126e148
Janitor: Remove useless into()
2021-07-09 17:00:46 +02:00
Tobias Hunger
a0c567d242
Janitor: Remove unnecessary return
2021-07-09 17:00:46 +02:00
Tobias Hunger
86e847fec0
Janitor: Prefer strip_prefix
over manual stripping
2021-07-09 17:00:46 +02:00
Tobias Hunger
b82ee6a470
Janitor: Replace a == ""
with a.is_empty()
2021-07-09 17:00:46 +02:00
Olivier Goffart
7193cbeec1
Revert "C++ Fix struct with a field that has the same name as the struct itself"
...
This reverts commit 9e70e009a2
.
This turns out to break CI
Changed the test not to use the same name for a field and the struct
2021-07-09 15:52:28 +02:00
Simon Hausmann
fcc71a3cce
Fix image sizes not propagating into layouts when loading remotely
...
When images are loaded by the WASM-built interpreter, we do support
loading them asynchronously via the DOM. In that case we have a property
inside the HTMLImage in the GL backend that becomes dirty once loaded
and triggers re-evaluation of depending properties/layouts. However that
only works as long as uses of the image sizes are in property bindings.
BuiltinFunction::ImageSize however is marked as pure in the compiler, so
this may mean that something like this results in an initial assignment
instead of a binding:
Image {
source: ...
height: source.height * 1px;
}
For Rust, etc. that's fine, but when running in the WASM-built
interpreter the expression needs to remain in a binding. Therefore this
hack tries to narrow down this condition to wasm as target.
2021-07-09 14:56:02 +02:00
Olivier Goffart
6e9db5e6e6
examples/README: Fix a table
2021-07-09 14:42:46 +02:00
Olivier Goffart
9e70e009a2
C++ Fix struct with a field that has the same name as the struct itself
2021-07-09 14:37:42 +02:00
Olivier Goffart
6ed5044940
Fix rust compilation when using keywords in struct
2021-07-09 13:33:09 +02:00
Olivier Goffart
5c18e100b0
Fix unary operator + in rust
2021-07-09 12:52:18 +02:00
Simon Hausmann
c40f3a57ee
Add support for debug() in .60 logging to console.log in the online editor
...
In non-wasm builds debug_log! sends to eprintln!, so there should be no
change. For wasm debug_log! hoever goes to the console.
2021-07-09 11:08:23 +02:00
Olivier Goffart
2ee1e5ac1d
iot-dashboard: Some more polishing
2021-07-09 10:40:20 +02:00
Olivier Goffart
12eee38e6c
iot-dashboard: adjust a bit the size of the up/down buttons
2021-07-09 10:09:51 +02:00
Simon Hausmann
2154d00f67
iot-dashboard: Fix alignment of the usage spacers
...
Deviate from the C++ code and use a grid for the usage panel, to achieve the same visual
alignment as in C++.
2021-07-09 10:09:19 +02:00
Simon Hausmann
9e57262487
C++ docs: Fix showing of the version in the theme
...
Not sure where the "release" variable came from :)
2021-07-09 09:59:20 +02:00
Simon Hausmann
0403458751
iot-dashboard: Fix distance between main menubar logo and the items
...
Apply what is the margin on the MenuBarTopLabel::Graphic as padding in
an injected layout.
2021-07-09 09:35:50 +02:00
Simon Hausmann
cc5d1a773c
iot-dasbhardo: Fix padding in top bar
...
Apply the same padding as in Skin.cpp for the TopBar::Panel.
2021-07-09 09:27:20 +02:00
Tobias Hunger
2d1afbd926
Janitor: Rename some variables to av oid triggering cspell
2021-07-08 21:48:31 +02:00
Tobias Hunger
2c5589ff9b
Janitor: Remove unnecessary format!
2021-07-08 21:48:31 +02:00
Tobias Hunger
4a9206f2de
Janitor: Remove unnecessary lifetime
2021-07-08 21:48:31 +02:00
Tobias Hunger
287c96386e
Janitor: Remove unnecessary ?
2021-07-08 21:48:31 +02:00
Tobias Hunger
da324e5505
Janitor: Silence cspell some more:-)
2021-07-08 21:48:31 +02:00
Tobias Hunger
d6e297ddac
Janitor: Rename test to avoid triggering cspell
2021-07-08 21:48:31 +02:00
Tobias Hunger
094883208c
Janitor: Remove some more unnecessary &
2021-07-08 21:48:31 +02:00
Tobias Hunger
52ddf7882c
Janitor: Remove some more needles clones
2021-07-08 21:48:31 +02:00
Tobias Hunger
eac109d168
Janitor: Fix spelling in error message
2021-07-08 21:48:31 +02:00
Tobias Hunger
b8f44ebc9b
Janitor: cspell:ignore some words in cppdocs.rs
2021-07-08 21:48:31 +02:00
Tobias Hunger
ef5301f3c2
Janitor: Fix some more clippy warnings about iterator use
2021-07-08 21:48:31 +02:00