Jared Moulton
63fd204dda
Update the Flickable and ScrollView docs...
...
...to include mention that the default is for the viewport dimensions to
be calculated automatically and add properties and and an example to the
Flickable docs
2021-12-06 11:59:09 +01:00
Jared Moulton
a3c0771a2a
Update Flickable and ScrollView docs...
...
...to include information about having to manually set the
viewport-width and viewport-height when using a for loop to instantiate
elements.
2021-12-06 11:59:09 +01:00
Olivier Goffart
98e1bb19db
Document the current-index property of the TabWidget
2021-10-07 12:21:11 +02:00
Simon Hausmann
c23f98968e
Add missing newline for doctests
2021-10-05 23:16:46 +02:00
Simon Hausmann
4a26faef9a
Add AboutSixtyFPS element
2021-10-05 23:16:46 +02:00
Olivier Goffart
671df0f24f
New widget: StandardButton
2021-09-29 16:25:44 +02:00
Olivier Goffart
cbf22d494e
TextEdit
2021-09-06 21:52:12 +02:00
Olivier Goffart
ff441d3db6
Improve a bit the preview in the documentation with nightly rustdoc
...
The example are in a layout so "float:right" doesn't have an effect in that div
Instread, just put the preview inside the example.
This also remove the "Preview:" text
2021-08-12 13:57:36 +02:00
Olivier Goffart
8b2d1f1d8f
Docs: replace underscores by dashes
2021-08-10 22:21:01 +02:00
Olivier Goffart
b6137ecbc4
Error when trying to use internal builtin items
2021-08-09 17:43:22 +02:00
Olivier Goffart
a89d83e58f
Apply suggestions from code review
...
Co-authored-by: Simon Hausmann <simon.hausmann@sixtyfps.io>
2021-08-06 15:58:13 +02:00
Olivier Goffart
d41839abe3
Compiler pass for the TabWidget
...
it will lower the TabWidget into a TabWidgetImpl and the tabs into TabImpl
2021-08-06 15:58:13 +02:00
Olivier Goffart
90cdb5ab5d
Add a changed
callback to Slider
...
Closes #125
2021-07-31 15:14:03 +02:00
Simon Hausmann
14c6819791
Add support for icons in the Button widget
...
The icon in the gallery example was generated via https://emoji.aranja.com
2021-07-27 19:37:06 +02:00
Olivier Goffart
d81f07d20b
Fix rustdoc warning
2021-07-13 11:51:50 +02:00
Olivier Goffart
cc7242c523
Add a selected
callback to ComboBox
2021-07-13 11:42:31 +02:00
Olivier Goffart
6263979357
Add missing documentation for ComboBox
2021-07-13 11:34:47 +02:00
Tobias Hunger
e01bd87df8
Janitor: Fix warnings about markdown files
...
These might change the layout of the rendered markdown files. This will
also fix some typos along the way:-)
2021-06-28 08:32:25 +02:00
Olivier Goffart
962dc0075c
Layout: Make the default padding and spacing 0
...
and add Box widgets that have proper defaults
Closes #200
2021-06-21 14:29:53 +02:00
Simon Hausmann
e61529976e
Issue warnings when creating bindings against deprecated properties
2021-02-02 22:42:02 +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
0d2d48be4f
Rename "signal" to "callback"
2020-12-18 09:51:01 +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
59707f068c
add a enabled property on the line edit
2020-11-02 18:20:01 +01:00
Olivier Goffart
dc98487160
Add a placeholder-text property to LineEdit
2020-10-27 10:55:08 +01:00
Simon Hausmann
a695d551da
Small typo fix
2020-10-16 14:59:58 +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
8f1c5a96c1
Fix ListView being scrollable when it shouldn't
...
Relates to #86
2020-10-13 13:45:18 +02:00
Olivier Goffart
d0611d8491
Document widgets that were missing documentation
2020-10-12 13:36:25 +02:00
Simon Hausmann
3eef23f93c
Add widgets to the C++ docs as well
2020-09-03 12:05:50 +02:00
Olivier Goffart
8a7afbc238
Documents the elements
2020-09-02 18:57:24 +02:00