Simon Hausmann
c433b762ef
Fix version in nodejs API package.json
...
Co-authored-by: Olivier Goffart <ogoffart@woboq.com>
2020-08-25 12:00:43 +02:00
Simon Hausmann
3f64defaac
Include the C++ API README in the C++ reference docs
2020-08-24 17:40:12 +02:00
Simon Hausmann
e9685c5851
Improve C++ documentation shell
...
Doxygen's markdown support can't quite deal with the Github flavor,
the language reference looks terrible.
So instead, this change switches to using Sphinx,
with two extensions that call Doxygen for us and allow including markdown.
The result is a read-the-docs themed sphinx site that includes search even
in the language reference.
2020-08-24 17:07:04 +02:00
Olivier Goffart
ea1f215367
Some polishinbg of the .toml files
...
- Give all the sixtyfps-* create a 0.0.1 version
- Make sure that the internal dependences are using the exact same version
(so "=0.0.1")
- Add the description/homepage/repository fields in the .toml files
- Set publish=false to crates that are not meant to be published on crates.io
2020-08-24 16:28:11 +02:00
Olivier Goffart
9a555a170f
README changes
2020-08-24 14:44:00 +02:00
Simon Hausmann
a669b8625b
Add missing license header
2020-08-24 13:46:09 +02:00
Olivier Goffart
cbeb982684
Use the FieldOffset struct from the upstream create
2020-08-24 11:20:38 +02:00
Simon Hausmann
2b7649d2d4
Fix typo
2020-08-21 19:15:41 +02:00
Simon Hausmann
3e6f262ca0
Fix typo
2020-08-21 19:15:02 +02:00
Simon Hausmann
2bde730de9
Don't bother trying to generate LaTeX
2020-08-21 16:54:23 +02:00
Simon Hausmann
6ea46aa7e4
Include the language reference in the C++ docs
...
It's still a bit buggy but better than nothing
2020-08-21 16:46:23 +02:00
Simon Hausmann
f610957de0
Include README.md in the C++ Docs
2020-08-21 16:36:58 +02:00
Simon Hausmann
baf0e151a5
Include more header files in the doxygen pass
2020-08-21 16:26:21 +02:00
Simon Hausmann
462d73ccdc
Switch to Doxygen
...
clang-doc is nice and good, but there are features missing such as the ability to manually create a reference (link)...
2020-08-21 16:22:59 +02:00
Simon Hausmann
0e10008c47
Use ".60" design markup consistently
...
It's a mark up language that targets the design, not say the business logic.
2020-08-21 13:59:30 +02:00
Simon Hausmann
8df8db8733
Don't try to reference docs from other crates using relative links
...
This won't work on docs.rs, so instead re-export the types the same way that
text of the link was already suggesting.
2020-08-21 13:42:38 +02:00
Simon Hausmann
490cb299a8
Ignore doc test build for pseudo-code
2020-08-20 16:32:16 +02:00
Simon Hausmann
e397c83d1f
Fix parameters to clang-doc to generate HTML
...
... for now that's more readable.
2020-08-20 16:29:19 +02:00
Simon Hausmann
0e7c39dce4
Added cmake boilerplate for running clang-doc
...
It's an experiment :-)
2020-08-20 16:24:51 +02:00
Simon Hausmann
25156d9aa3
Table'ify the types in the language reference
2020-08-20 15:51:38 +02:00
Simon Hausmann
6ebe008768
Add a table to the Rust docs for the mapping from .60 property types
2020-08-20 15:25:28 +02:00
Simon Hausmann
5d9d283ec8
Include some documentation about the generated APIs
2020-08-20 15:06:10 +02:00
Simon Hausmann
e3fb0c09dd
Some improvements to the Rust API crate documentation
...
Some general cleanups and include the language reference right there using the technique described at https://blog.wnut.pw/2020/03/24/documentation-and-unstable-rustdoc-features/
2020-08-20 10:05:52 +02:00
Simon Hausmann
f05a8c3d32
Link back to the central README from the C++ README
2020-08-18 15:08:44 +02:00
Simon Hausmann
5959b08e54
Added a boilerplate for the Rust API
2020-08-18 15:07:35 +02:00
Simon Hausmann
6f04bbbebf
Minor edit to the C++ README
2020-08-18 14:57:06 +02:00
Simon Hausmann
7f1d9f5252
Commit correct license tags to Cargo.toml
...
For now that's GPL-3.0 only, but this can be changed :-)
2020-08-18 10:12:59 +02:00
Simon Hausmann
2823f32692
Apply license headers to all non-binary/non-json sources
2020-08-17 17:55:20 +02:00
Simon Hausmann
4a74f6d0a3
Implement releasing graphics resources in Rust via Drop
...
Further enhances #12
2020-08-14 13:44:53 +02:00
Simon Hausmann
55888afb1c
Implement releasing of graphics resources in C++ via the component destructor
2020-08-13 16:35:04 +02:00
Olivier Goffart
fb5a82b6c7
Fix acessing repeater variable in a nested repeater, and fix array as property
2020-08-13 15:38:28 +02:00
Simon Hausmann
d650cadc02
Release graphics resources of items when deleting components in C++
2020-08-13 13:31:52 +02:00
Simon Hausmann
b96b627a4f
Release graphics resources of items when destroying components
...
This is only implemented for Rust at the moment.
2020-08-13 13:31:29 +02:00
Simon Hausmann
d3a474af26
Move corelib::Component and friends back into their dedicated component module
2020-08-12 11:39:07 +02:00
Simon Hausmann
b21aa4f9e7
Rename PropertyListenerScope to PropertyTracker
2020-08-12 11:31:33 +02:00
Simon Hausmann
0df86d7eeb
Move corelib::abi::datastructures::Component to corelib
2020-08-12 10:53:03 +02:00
Simon Hausmann
aafb96cb93
Get rid of abi::datastructures::WindowProperties
...
Instead, pass a reference to the root item when mapping the window,
at which point we can downcast to the new Window item. If we have one,
then we'll read its width/height (for initial values) and install
bindings to keep them up-to-date.
2020-08-12 09:44:42 +02:00
Simon Hausmann
c1f91e38ca
Move the window scale factor into GraphicsWindow
2020-08-11 13:42:51 +02:00
Simon Hausmann
f2eec61968
Add a window to the top-level component
...
This means that we always have a window and for the C++
API we don't require this ComponentWindow use anymore.
2020-08-11 13:38:38 +02:00
Olivier Goffart
f0511c9210
Fix javascript from last commit
2020-08-10 14:11:33 +02:00
Olivier Goffart
f4cce26d51
Test the mouse click
2020-08-10 12:54:29 +02:00
Olivier Goffart
36243ccdf7
Traverse item front to back for input events
2020-08-10 10:45:02 +02:00
Olivier Goffart
cc5d5cc92b
C++: Fix input event within repeater
2020-08-10 08:55:42 +02:00
Olivier Goffart
5de801d023
C++: grabbed mouse input
2020-08-07 16:06:49 +02:00
Olivier Goffart
0a56912d0f
Mouse grab in rust
2020-08-07 16:06:49 +02:00
Olivier Goffart
5aa7ee86fe
Use a newtype for VisitChildrenResult instead of just isize
...
Makes the code easier to unserstand
2020-08-07 16:06:49 +02:00
Olivier Goffart
55ec533c40
WIP input events
...
Compile and passes tests. But the mouse event are currently not working
2020-08-07 16:06:49 +02:00
Simon Hausmann
5b9c41b76b
Add referenced image resources to the dependencies for the rust build
2020-08-07 13:35:44 +02:00
Simon Hausmann
fcc819e395
Add support for enums to the compiler
...
This replaces the duplicated text alignment enums
2020-08-07 13:15:43 +02:00
Simon Hausmann
aecf6a8878
Center text in buttons in the demo and gallery
...
This adds horizontal_alignment/vertical_alignment properties, along with
width/height to Text.
This still uses a hard-coded enumeration in the compiler, which is meant
to go away in favor of general enum support.
2020-08-07 10:02:52 +02:00