Simon Hausmann
4aed6ac6f3
Small touch-up on the rectangles
2020-08-04 16:37:10 +02:00
Simon Hausmann
67feaed237
Ignore a potential build directory
2020-08-04 16:09:33 +02:00
Simon Hausmann
254df328d0
Add support for images (resources) in models
...
This also allows replacing the emojis (not working due to lack of fallback) with images
2020-08-04 16:09:33 +02:00
Olivier Goffart
283387bc44
Add the self and parent implicit id
2020-08-04 15:58:40 +02:00
Simon Hausmann
ee3765e115
Print out the type we failed to convert to rust if it happens
2020-08-04 15:10:58 +02:00
Simon Hausmann
7277d15394
Provide a better error message when failing to convert a type to C++
2020-08-04 15:04:18 +02:00
Simon Hausmann
2d255380c7
Don't crash when trying to report internal errors
2020-08-04 15:01:42 +02:00
Simon Hausmann
71a1daaf5a
Don't crash if we can't find the unicode replacement character
...
Fall back to a question mark :-)
2020-08-04 14:28:45 +02:00
Olivier Goffart
8c793c81e9
Implement some transition between pages
2020-08-04 14:13:22 +02:00
Olivier Goffart
52cf481dc4
Fix states in repeated elements
...
This create reference to new property that needs to be adjusted
2020-08-04 14:02:18 +02:00
Olivier Goffart
894d44e3ac
Correctly print syntax errors in the viewer
...
(instead of panicking because of invalid synstax_node invariant)
2020-08-04 12:59:49 +02:00
Olivier Goffart
2d04e47230
Remove stray dbg
2020-08-04 12:59:49 +02:00
Simon Hausmann
41671e3efb
Represent the window scale factor conversions in the IR
...
That means less code in the generators and easier to extend in the
future with more built-in functions.
2020-08-04 12:49:37 +02:00
Olivier Goffart
1d0eacc87f
Fix wasm build
2020-08-04 12:22:40 +02:00
Olivier Goffart
d158690a88
Add some buttons for the printer demo
2020-08-04 12:19:32 +02:00
Olivier Goffart
01a626cf49
Fix panic when the glyph do not exist in the font
...
This happen with emoji.
Show a replacement character (�) instead
2020-08-04 12:18:30 +02:00
Olivier Goffart
0b1648d891
Fix formating
2020-08-04 11:52:47 +02:00
Olivier Goffart
2b9e529af7
Fix unicode in strings in C++
2020-08-04 11:52:47 +02:00
Olivier Goffart
f09cbdb9ef
Update rust.yaml
2020-08-04 11:21:54 +02:00
Olivier Goffart
59a198b213
Create a top level CMakeLists.txt
...
Also disable Qt for now in the CI as this does not currently build
because of a bug in aho-corasick
2020-08-04 11:16:50 +02:00
Olivier Goffart
3becd69bc5
Skeleton for the printerdemo
2020-08-04 10:11:02 +02:00
Olivier Goffart
e4cd21efd6
Compile
2020-08-04 10:00:05 +02:00
Simon Hausmann
4f0bf0b982
Rename dpi to (window) scale_factor
2020-08-04 09:01:30 +02:00
Simon Hausmann
57154a7467
Oops, fix build
2020-08-04 08:33:50 +02:00
Simon Hausmann
df4e837b04
Move model placeholder module out of abi
2020-08-04 08:27:34 +02:00
Simon Hausmann
f79b80f1e6
Split corelib::abi::sharedarray into corelib::sharedarray and corelib::sharedarray::ffi
2020-08-04 08:26:44 +02:00
Simon Hausmann
3ad7a55038
Split corelib::abi::signals into corelib::signals and corelib::signals:ffi
2020-08-04 08:24:04 +02:00
Olivier Goffart
d7bb993d7b
Fix clang warnings
2020-08-03 18:46:11 +02:00
Olivier Goffart
b9088aa178
Fix linking of C++ code
2020-08-03 18:45:25 +02:00
Olivier Goffart
da11b33e9b
Version check
...
Compilation error when the compiler and the runtime are not on the same version
2020-08-03 18:44:36 +02:00
Simon Hausmann
37f874a26b
Rename test_ellapse_time to mock_elapsed_time
2020-08-03 17:52:42 +02:00
Simon Hausmann
f2166d91a6
Move tests out of abi
2020-08-03 17:48:17 +02:00
Simon Hausmann
dbd6708959
Move string out of abi
...
And split the FFI-only bits into an ffi submodule.
2020-08-03 17:44:49 +02:00
Simon Hausmann
0252d2ac34
Move slice out of abi
2020-08-03 17:41:16 +02:00
Simon Hausmann
9b13b363c3
Move corelib::abi::properties to corelib::properties
...
And the bits that are only there for the C binding are now in an ffi sub-module.
2020-08-03 17:32:28 +02:00
Olivier Goffart
b259a09338
Rename the types float32 and int32 to float and int
2020-08-03 16:15:41 +02:00
Olivier Goffart
1bfd708784
Change the field_offsets() function to a FIELD_OFFSETS associated const
2020-08-03 16:04:55 +02:00
Olivier Goffart
de188e0a54
Add the as_weak to rust generated component
2020-08-03 15:36:54 +02:00
Simon Hausmann
785bdb62ed
Fix linking on Linux
2020-08-03 15:35:19 +02:00
Olivier Goffart
5f38f03a1b
Test setting signal handler and a few fix to make it work
...
We were not parsing CodeBlock node from the signal handler correctly,
we wer eonly taking the first expression instead of the whole codeblock
In JS, emitting signal before the show() did not update the GLOBAL_CONTEXT
needed to emit signals defined in JS
2020-08-03 15:01:10 +02:00
Olivier Goffart
b8d440a6db
Rust: default visibility of everything to private
2020-08-03 15:01:10 +02:00
Olivier Goffart
8aef208340
Rust: add on_* to set signal handler
2020-08-03 15:01:10 +02:00
Olivier Goffart
b2a1a72450
C++: add on_* funciton to connect to signals
2020-08-03 15:01:10 +02:00
Olivier Goffart
a4efac920a
C++: make all properties and sub elements private
2020-08-03 15:01:10 +02:00
Simon Hausmann
a662d36dc3
Move ItemTreeNode from datastructures into item_tree
2020-08-03 14:38:08 +02:00
Simon Hausmann
f284af27c0
Fix build without rtti
2020-08-03 14:34:34 +02:00
Simon Hausmann
76adda0abd
Move ComponentWindow and friends from datastructures into eventloop
2020-08-03 14:26:47 +02:00
Simon Hausmann
8338bd4360
Move CachedRenderingData from datastructures into item_rendering
2020-08-03 14:17:38 +02:00
Simon Hausmann
45b02e9a3e
Move the item visitor bits from datastructures into item_tree
2020-08-03 14:10:32 +02:00
Simon Hausmann
37fa04098f
Move MouseEvent and MouseEventType from datastructures into input
2020-08-03 13:55:33 +02:00