Commit graph

124 commits

Author SHA1 Message Date
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
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
d54b8b8ff8 Minor doc fixes
* `phx` scales towards the device pixel ratio, not aspect ratio.
* Small spelling fix :)
2021-01-25 08:31:40 +01:00
Olivier Goffart
e37ac6e45f Add a documentaion on how to install Qt
And link from it from the warning
2021-01-24 14:06:14 +01:00
Olivier Goffart
d4db1a6c4d More layout docs 2021-01-24 13:43:14 +01:00
Olivier Goffart
4e93f71286 Add the missing new layouting doc 2021-01-23 10:38:29 +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
Simon Hausmann
1bf5a56c39 Rename initial-focus to forward-focus 2021-01-20 15:52:58 +01:00
Olivier Goffart
f1d0a647a4 Document FocusScope 2021-01-20 13:02:11 +01:00
Olivier Goffart
38a3c0655c Add support for \u{xxx} escape sequences in stirng literal 2021-01-20 09:11:06 +01:00
Olivier Goffart
8dc79699de String template concatenation
Currently not supported in the sixtyfps macro
2021-01-18 16:09:58 +01:00
Olivier Goffart
ba6ff5736c String Escaping 2021-01-18 13:36:23 +01:00
Olivier Goffart
96e002ecba Fix documentation 2020-12-30 12:12:43 +01:00
Olivier Goffart
8797f6512d Rename Slider min/max property
For consistency with the SpinBox

Fixes https://github.com/sixtyfpsui/sixtyfps/issues/138
2020-12-30 10:02:38 +01:00
Olivier Goffart
56b67eac8c Complete the last patch to add a minimum/maximum properties to the SpinBox 2020-12-29 09:44:19 +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
1a3396da3b Recommend the use of Ninja when using CMake 2020-12-15 18:28:24 +01:00
Simon Hausmann
625978fe1a WIP: Add an image-fit property to Image/ClippedImage 2020-12-15 10:26:54 +01:00
Olivier Goffart
a37a287a17 Limit the conversion from percentage to lenght for the width and height property 2020-12-04 11:20:09 +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
bff55d4f1b Return value for signal 2020-12-01 18:52:51 +01:00
Simon Hausmann
6fba6aca56 Consistency fix for transitions API
Use "in" and "out" instead of "to" and "out".
2020-12-01 11:18:47 +01:00
Simon Hausmann
515d78d3bd Remove two todos in the language reference 2020-12-01 11:03:55 +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
Simon Hausmann
8c477998dc Load the logo in the examples off the website
This will allow moving them out of the repo and also makes the urls shorter.
2020-11-25 09:34:47 +01:00
Olivier Goffart
3ae7c6e0b5 Hover effect 2020-11-24 18:09:32 +01:00
Simon Hausmann
d80868bbf4 Add support for font_weight to Text and TextInput
This allows implementing another sliding puzzle theme feature, the
boldness of the tile number text in the simple theme when the tile is in
the correct position. For the other themes the weight is constant and
it's bold.

More cleanup to follow later: unify the font handle and FontCacheKey
handling, improve the API to allow for the use of symbolic constants
(normal, bold, etc.) instead of the CSS number values.
2020-11-24 10:10:00 +01:00
Simon Hausmann
3d85e45ec3 Add support for source clipping to the Image element
This allows rendering only a sub-rectangle of the original image, which
we can use right away in the sliding puzzle demo.
2020-11-23 15:46:59 +01:00