Simon Hausmann
ea8e8318b6
Trim the text example a little
...
So that perhaps we can avoid the horizontal scrollbar
2021-05-25 12:58:13 +02:00
Simon Hausmann
843a2c9e7a
Fix doc syntax error
2021-05-25 11:48:28 +02:00
Simon Hausmann
d7a8d03475
Attempt at improving the Text
docs
...
Try to clarify the line breaking behavior with an example.
2021-05-25 11:31:05 +02:00
Simon Hausmann
cc9d5e09f0
Add support for clip on Path elements
...
This allows clipping the viewbox conveniently.
2021-05-21 19:51:00 +02:00
Simon Hausmann
11ab32f54f
Fix typo in viewbox docs
2021-05-21 19:51:00 +02:00
Simon Hausmann
e7bc91c804
Add support for specifying the viewbox of path elements
2021-05-21 19:51:00 +02:00
Simon Hausmann
a7ce64657c
Restore source compatibility for drop-shadow-blur
...
Let's keep source compatibility and define `drop-shadow-blur` to be a radius.
The CSS spec says that the standard deviation is half of the radius.
We just need to scale again and increase the shadow rect to make sure that no borders are visible.
2021-05-20 12:14:05 +02:00
Simon Hausmann
bb7b301b10
GL backend: new box drop shadow implementation
...
This replaces the box gradient with a new implementation that
behaves like the HTML Canvas element, by applying a gaussian
blur to the alpha of the rectangle to shadow.
The drop-shadow-blur property is changed to be now just a "level", like
the HTML Canvas shadowBlur property, which is defined to be half of the
standard deviation of the gaussian blur to be applied.
2021-05-20 08:50:02 +02:00
Olivier Goffart
f84a4a54d3
Doc and changelog upgrade
2021-05-18 10:23:06 +02:00
Olivier Goffart
fbdbe69fe7
Window: make hight and width fixed size, preferred-* property set the initial size
...
Issue #227
2021-05-18 10:23:06 +02:00
Olivier Goffart
f76a33319c
Document the opacity
2021-04-15 15:13:19 +02:00
Simon Hausmann
dc12a22780
Add small comment to the image docs regarding image-fit and aspect ratio
2021-04-15 08:28:22 +02:00
Simon Hausmann
6a1191c5a5
Add Window.default-font-weight
...
This completes the font properties that can be set as default.
2021-04-14 11:16:22 +02:00
Olivier Goffart
80b236489e
Add a clip
property that can be set to the Rectangle
2021-04-12 18:48:43 +02:00
Simon Hausmann
e69c9b1487
Document the image-fit
and size behavior
...
Closes #168
2021-04-09 15:19:20 +02:00
Olivier Goffart
87ad4fe59e
Rename Object to Struct in the language reference
2021-03-16 12:32:24 +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
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
Olivier Goffart
f7a76dc352
Add ImageFit::cover, and fix ImageFit::contain
2021-02-09 10:52:04 +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
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
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
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
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
31eedea4ef
Minor doc formatting fix
...
Adding missing parentheses
2021-01-25 14:58:46 +01:00
Simon Hausmann
5a4fd71dcc
Fix links to alignment enums in Text
and TextInput
2021-01-25 14:29:26 +01:00
Simon Hausmann
c18a751e97
Added boilerplate docs for the text alignment enums
2021-01-25 11:07:33 +01:00
Simon Hausmann
2801e82658
Changed the KeyEvent in .60 to be an object
...
This exposes the text as well as the keyboard modifiers and is a little
more extensible.
2021-01-22 18:05:34 +01:00
Olivier Goffart
f1d0a647a4
Document FocusScope
2021-01-20 13:02:11 +01:00
Olivier Goffart
61399e566a
Add a title to the Window
...
also add a color, but not yet implemented
2020-12-18 16:47:14 +01:00
Olivier Goffart
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +01:00
Simon Hausmann
625978fe1a
WIP: Add an image-fit property to Image/ClippedImage
2020-12-15 10:26:54 +01:00
Olivier Goffart
f3f18259ae
Some items default size is the parent size
...
Fixes #122
2020-12-02 18:36:23 +01:00
Olivier Goffart
564d6a0744
Fix Popup in C++
2020-12-01 10:24:37 +01:00
Olivier Goffart
99e66a6b55
doc for the PopupWindow
2020-11-30 18:44:45 +01:00