mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Rename SwipeGestureRecognizer to SwipeGestureHandler
The origin of this proposal is the name of the `swipe-left`, etc. directional, boolean properties. They're missing another verb in their name. In principle the right choice would be "recognize". That is what the type name suggests, that's the term the documentation uses, so the code should read `recognize-swipe-left: true;`. However that is a long word. "Handle" is a verb that's simpler. It's also more generic (that's a downside), but it's otherwise short enough to make things look "right": ``` SwipeGestureHandler { handle-swipe-left: true; swiped => { something.naviate-left(); } } ``` Therefore this patch proposes to rename the type to SwipeGestureHandler and prefixes the boolean directional properties with "handle".
This commit is contained in:
parent
0e751b1eea
commit
cd2b738c7a
9 changed files with 107 additions and 84 deletions
|
@ -281,7 +281,7 @@ fn gen_corelib(
|
|||
"ClippedImage",
|
||||
"TouchArea",
|
||||
"FocusScope",
|
||||
"SwipeGestureRecognizer",
|
||||
"SwipeGestureHandler",
|
||||
"Flickable",
|
||||
"SimpleText",
|
||||
"ComplexText",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue