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
Olivier Goffart
20b4d8826b
Make the extra documentation page a bit more visible
2020-11-23 10:55:05 +01:00
Olivier Goffart
08fe5f6c72
Add a Clip
2020-11-20 15:45:45 +01:00
Olivier Goffart
dd4435fe5d
Add round/ceil/floor
2020-11-16 12:52:01 +01:00
Olivier Goffart
7bfc199acb
Documentation for the builtin functions
2020-11-13 16:11:04 +01:00
Olivier Goffart
183f300a85
Implement the temperature converter in the .60 code
...
A edited signal was required on the line edit
2020-11-03 18:23:37 +01:00
Olivier Goffart
11e55dd8d2
String -> Float conversions
2020-11-03 15:19:58 +01:00
Olivier Goffart
4a182ef4d0
Layout alignment
2020-11-03 12:22:34 +01:00
Olivier Goffart
59707f068c
add a enabled property on the line edit
2020-11-02 18:20:01 +01:00
Olivier Goffart
d3801e26d3
Change the syntax of structures to require the struct keyword
2020-10-27 16:09:05 +01:00
Olivier Goffart
dc98487160
Add a placeholder-text property to LineEdit
2020-10-27 10:55:08 +01:00
Olivier Goffart
07589f3037
Document HoizontalLayout and VerticalLayout
2020-10-26 19:25:24 +01:00
Olivier Goffart
76b7f1aef6
Allow dashes in identifier
...
Currenly, dashes are normalized to '_'.
Dashes are not allowed at the begining of an identifier.
If an identifier with a dash is not found, we also look for identifier
without a dash and if that exist, we hint the user to use spaces.
Issue #52
2020-10-22 18:32:25 +02:00
Olivier Goffart
45e8c94535
Some more documentation for the rust backend
2020-10-21 10:35:42 +02:00
Simon Hausmann
3b051f2176
Clarify hexadecimal color encoding
...
We parse hex colors as per CSS, including the #RRGGBBAA variant, as per
https://www.w3.org/TR/css-color-4/#hex-notation . This is now documented
and the JS conversion also generates that instead of #AARRGGBB.
2020-10-19 16:38:58 +02:00
Simon Hausmann
13f845ee4f
Add support for property<percent>
2020-10-16 18:56:54 +02:00
Simon Hausmann
cf87ac804b
Add support for relative lengths
...
Typically `some_length_prop: 40%` produces an error, but if there's a
matching property in the parent, then it will be allowed and interpreted
as relative value and creates a dynamically updated binding.
2020-10-16 18:54:04 +02:00
Simon Hausmann
a695d551da
Small typo fix
2020-10-16 14:59:58 +02:00
Simon Hausmann
6c45ccc8a6
Fix syntax error in docs
...
The syntax updater found this one :-)
2020-10-16 12:30:11 +02:00
Simon Hausmann
6aa292eac1
Change the names of the logical and physical pixel units
...
The logical pixels are now just called "px" and the less frequently
used physical pixels have the "phx" suffix.
The existing markup was adapted using the syntax updater and the
following patch:
+ if node.kind() == SyntaxKind::NumberLiteral {
+ if node.text().ends_with("lx") {
+ return write!(
+ file,
+ "{}px",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ if node.text().ends_with("px") {
+ return write!(
+ file,
+ "{}phx",
+ node.text().as_str().split_at(node.text().as_str().len() - 2).0
+ );
+ }
+ }
Fixes #49
2020-10-16 07:19:40 +02:00
Olivier Goffart
e48f0b7621
Add a current item to the StandardListView
2020-10-14 14:32:18 +02:00
Olivier Goffart
519de0f860
Allow convertion of object type even if a property is missing
2020-10-14 13:53:44 +02:00
ritschwumm
f236a7b7c7
fix typos
2020-10-14 09:18:06 +02:00