Olivier Goffart
80b236489e
Add a clip
property that can be set to the Rectangle
2021-04-12 18:48:43 +02:00
Olivier Goffart
e67deebc76
Make rgb() and rgba() a macro that can take 3 or 4 arguments
...
and that accept both percent or integer
Closes #139
2021-04-12 15:19:15 +02:00
Seo Sanghyeon
0a76f40093
Add rgb function
2021-04-12 13:24:46 +02:00
Simon Hausmann
e69c9b1487
Document the image-fit
and size behavior
...
Closes #168
2021-04-09 15:19:20 +02:00
Olivier Goffart
287670c140
CI: Split the C++ test driver in a different run
...
This allows to paralelize better.
And also to remove the cpp from the default workspace so it is
not build by default and the ffi feature will not be build by default
2021-03-16 16:55:49 +01:00
Olivier Goffart
87ad4fe59e
Rename Object to Struct in the language reference
2021-03-16 12:32:24 +01:00
Olivier Goffart
c840b046ae
Rename the "resource" type to "image"
2021-03-10 17:24:31 +01:00
Simon Hausmann
b591f7de2c
Add Window.default-font-size
...
This allows getting rid of the `DemoText` element in the printer demo
2021-03-02 13:33:43 +01:00
Simon Hausmann
27bdb4d481
Added Window.default-font-family
...
One step towards getting rid of `DemoText` in the printer demo
2021-03-02 13:25:21 +01:00
Simon Hausmann
391d0152f0
Add Color::brighter/darker functions
...
These are exposed in .60 as well as in Rust and C++ and implemented by
converting to HSV color space and adjusting the brightness (value).
2021-02-24 10:49:27 +01:00
Olivier Goffart
5727a4cf02
implement square root
2021-02-20 08:53:08 +01:00
Simon Hausmann
7cea088a2c
Add support for letter-spacing in text
...
This is conveniently supported by femtovg and Qt
2021-02-16 22:14:50 +01:00
Simon Hausmann
2dd5ea61bb
Add support for Path.fill-rule
...
For some reason it's not working with the Qt renderer though
2021-02-10 14:08:32 +01:00
Simon Hausmann
f64f3f6804
Prospective doc and link warning fix
...
Try to use the correct anchor
2021-02-10 11:42:21 +01:00
Olivier Goffart
f7a76dc352
Add ImageFit::cover, and fix ImageFit::contain
2021-02-09 10:52:04 +01:00
Olivier Goffart
431ce88326
sin/cos/tan and asin/acos/atan
2021-02-08 12:23:31 +01:00
Olivier Goffart
49c7300907
Support for if else
in statements
2021-02-05 13:53:37 +01:00
Olivier Goffart
9bdb793ec1
Rename Window::color to background
2021-02-05 09:38:40 +01:00
Olivier Goffart
0e2471f76b
Image::colorize support
...
(Qt only)
2021-02-04 17:44:01 +01:00
Simon Hausmann
3f541972ef
Change Rectangle::border-color
to be a brush
...
This allows things like filling a thick border with a gradient.
2021-02-04 17:05:00 +01:00
Simon Hausmann
1a9419638d
Change the type of the color property for Text
and TextInput
to be a brush
...
This allows filling glyphs with gradients. However femtovg
appears to apply the start/end position per-glyph
instead of globally - resulting in a different result than Qt.
2021-02-04 11:54:57 +01:00
Simon Hausmann
31f3c45291
Fix typo in docs
2021-02-04 09:53:22 +01:00
Simon Hausmann
7712326a32
Try to fix the gradient rendering preview
2021-02-03 18:03:46 +01:00
Simon Hausmann
8642d5cd3e
Fix typo in docs example
2021-02-03 17:46:27 +01:00
Simon Hausmann
26829b539b
First draft of gradient docs
2021-02-03 17:12:48 +01:00
Simon Hausmann
66df71a3ca
Convert Path
to support brushes
...
* Rename `fill-color` to `fill`
* Rename `stroke-colo` to `stroke`
* Support using a brush for both properties
2021-02-03 15:45:33 +01:00
Simon Hausmann
7982325da4
Change Rectangle::background's type to be a brush
...
This also introduces the brush type in the compiler and generators. At the
moment only conversion from Color is implemented.
2021-02-03 12:49:44 +01:00
Simon Hausmann
c771bcff45
Print a warning when trying to animate deprecated properties
2021-02-02 22:58:54 +01:00
Simon Hausmann
246398fcb3
Issue a warning when accessing deprecated properties through member lookups
2021-02-02 22:42:02 +01:00
Simon Hausmann
e61529976e
Issue warnings when creating bindings against deprecated properties
2021-02-02 22:42:02 +01:00
Olivier Goffart
294cf9bbe3
Convert from literal 0
to any unit-like types
...
cc #68
2021-02-02 15:38:07 +01:00
Olivier Goffart
f2ab456a7b
Test the .60 snippet in the documentation
2021-02-02 14:56:22 +01:00
Simon Hausmann
c47b10d793
Polish the layout documentation
...
This takes the existing content and polishes it a little bit.
2021-01-29 17:37:54 +01:00
Simon Hausmann
69a1b7d4b7
Prospective fix for preview of focus handling example
2021-01-29 16:50:45 +01:00
Olivier Goffart
c2390e4c9f
Fix the @children documentation example not to panic
2021-01-29 10:26:16 +01:00
Olivier Goffart
4d3fabda1b
Document globals
...
CC #96
2021-01-29 09:18:06 +01:00
Simon Hausmann
43dd0e2915
Add missing return value for key-pressed handler in FocusScope
docs
2021-01-28 14:30:28 +01:00
Simon Hausmann
6a4f2aa572
Added the two missing path sub-elements for quadratic and cubic curves
2021-01-28 14:14:24 +01:00
Simon Hausmann
0c7a4da321
Fix the syntax of the sub-element Path example
...
Can't mix `commands` and path sub-elements
2021-01-28 13:42:42 +01:00
Simon Hausmann
14bb19d96c
Formatting fix
2021-01-28 13:32:28 +01:00
Simon Hausmann
c4df7748db
First draft of docs of Path
sub-elements
2021-01-28 13:29:16 +01:00
Simon Hausmann
d074806dd7
Start with Path docs
...
More to come, but starting with this to also see how it renders the example
2021-01-28 11:57:43 +01:00
Olivier Goffart
07df517473
Replace $children
with @children
2021-01-28 11:55:08 +01:00
Olivier Goffart
23a511b380
Replace img!"..."
by @image-url("...")
2021-01-28 11:49:24 +01:00
Simon Hausmann
e2499e5137
Some docs for the drop shadow properties
2021-01-28 08:54:09 +01:00
Olivier Goffart
647f7effcd
Add TextWrap and TextOverflow enum and corresponding property in Text
...
Although they ar enot working yet
2021-01-27 11:40:09 +01:00
Olivier Goffart
cb12a4582d
Documentation the EventResult
2021-01-26 17:31:03 +01:00
Simon Hausmann
a4357ea490
Add missing Oxford comma
2021-01-26 13:58:34 +01:00
Simon Hausmann
f7d6d9bb61
Some layout doc polishing
...
* Use the same heading as in the intro (explicit positioning)
* Remove redundant "example"
* Small grammar fixes
* Use a bullet list for the pixel units as a test
2021-01-26 10:12:57 +01:00
Simon Hausmann
31eedea4ef
Minor doc formatting fix
...
Adding missing parentheses
2021-01-25 14:58:46 +01:00