Olivier Goffart
1237285fef
Fixup some documentaion links
...
And add a test in the CI that checks for warnings in the internal
crates
(Also changed --exlcude in the test to be matching the one from build,
since c++ test are tested separately)
2022-09-01 12:16:24 +02:00
Tobias Hunger
0daa2513af
API cleanup: Rename PointerEvent
to WindowEvent
...
Also rename members and related functions as specified in #1543 .
Fixes : #1543
2022-08-30 16:47:55 +02:00
Tobias Hunger
107e3ed2e2
janitor: Fix some typos
2022-08-29 16:53:47 +02:00
Tobias Hunger
1e6ffeaa0f
API cleanup: Rename PlatformWindow to WindowAdapter
2022-08-29 16:53:47 +02:00
Simon Hausmann
1d436778c1
Remove the use of the PlatformWindowRc alias again
...
and use Rc<dyn PlatformWindow> instead. The alias has to stay with the ffi
functions though and the item vtable definitions,
because we don't have an Rc<> template in C++.
2022-08-19 15:07:27 +02:00
Simon Hausmann
fd026a3991
Change itemtable to use &PlatformWindowRc instead of &WindowInner
...
The former is cbindgen friendly, the latter is entirely Rust internal.
2022-08-19 15:07:27 +02:00
Simon Hausmann
3e42ae9838
Replace three more uses of WindowRc with &WindowInner
2022-08-19 15:07:27 +02:00
Lukas Jung
a639cb6d8e
seperate text deletion code with move_mod
2022-08-19 13:31:24 +02:00
Olivier Goffart
16985a349d
Add dispatch_pointer_event to the public API
2022-08-17 18:28:12 +02:00
Olivier Goffart
a62a5cbd19
Rename MouseEvent pos
to position
2022-08-17 18:28:12 +02:00
Olivier Goffart
61739dcb81
Remove the Mouse
prefix from enum value of the MouseEvent
enum
2022-08-17 18:28:12 +02:00
Simon Hausmann
151ea2bdd0
Revert "janitor: move code for backspace and delete key shortcut recognition"
...
This reverts commit 49ea24c44a
. This made
DeleteForward and DeleteBackward dead code because move_mod is always
true. Not worth the refactoring IMO.
2022-08-16 09:49:16 +02:00
Simon Hausmann
cca64bf29f
Fix build
2022-08-16 09:47:44 +02:00
Simon Hausmann
49ea24c44a
janitor: move code for backspace and delete key shortcut recognition
...
... into the section that checks move_mod, since the code now depends on it.
2022-08-16 09:35:57 +02:00
Simon Hausmann
81ca8f54c2
Add missing shortcuts for delete word forward and backwards ( #1483 )
...
* Add missing shortcuts for delete word forward and backwards
Fixes #1467
2022-08-16 08:24:56 +02:00
Olivier Goffart
3639ba2644
Don't expose the KeyEventType to .slint
...
This enum is not used in any builtin things anyway, so it shouldn't be
used at all in .slint code.
2022-07-22 12:23:52 +02:00
Tobias Hunger
7bf5c7e28e
janitor: Use is_empty over comparison with len
2022-05-22 11:59:00 +02:00
Levin Rickert
e7aef68d1f
accept wheel event from flickable
2022-05-19 16:45:29 +02:00
Levin Rickert
8a3b24868b
add docs comment
2022-05-19 16:45:29 +02:00
Levin Rickert
5094a59f82
convert scroll to move event for flickable children
2022-05-19 16:45:29 +02:00
Levin Rickert
cdc9ea0e94
WIP
2022-05-19 16:45:29 +02:00
Olivier Goffart
e85e69fda0
Declare .slint enum in one place in i-slint-common
...
This avoid repeating the enums both in the compiler and in
the runtime library, and register them in a bunch of other places.
So it should be easier to add enums and enum values
Since cbindgen doesn't see through the macro, generate the enum
manually
2022-04-14 19:17:48 +02:00
Olivier Goffart
1b91158b46
corelib: allow to use i32 for coordinate instead of f32
2022-04-11 17:46:50 +02:00
Olivier Goffart
0429e11cf7
Refactor: Move ItemRc and ItemWeak to item_tree.rs
...
Keep items.rs for the implementation of items, and move the logic
that helprs navigating the tree to the item_tree.rs module
2022-04-07 16:59:38 +02:00
Tobias Hunger
49dee3a7eb
Match up doc strings and code
2022-04-07 16:50:07 +02:00
Lukas Jung
4a7a84f253
Text shortcuts ( #1129 )
...
* Add moving by word to TextInput
* moving cursor to end of line, paragraph and text
* fix shortcut in cursor move test
2022-04-04 15:25:50 +02:00
Lukas Jung
98b084f80c
Fix the redo shortcuts
2022-03-31 10:54:38 +02:00
Lukas Jung
54a2901777
Move TextShortcut to input.rs and rename Shortcut to StandardShortcut
2022-03-31 10:54:38 +02:00
Lukas Jung
1f5500ff7b
Add Shortcuts to KeyEvent
2022-03-31 10:54:38 +02:00
Tobias Hunger
6795d3ee00
Introduce a FocusEventResult enum ( #975 )
2022-02-21 17:43:41 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Tobias Hunger
de4e195280
Rename internal crates and add a README.md to them
...
The README.md contains the warning that used to be in lib.rs.
Add README.md files to all internal crates
... pointing to the official public crate to use instead.
Rename internal crates
fixup: README files
fixup rename
2022-02-07 13:12:48 +01:00
Olivier Goffart
03534039d6
Replace more .60 by .slint
...
Mainly an automated change with
git grep -O"sed -i 's/\.60/.slint/g'" -w "\.60"
and some manual checks
2022-02-02 10:12:31 +01:00
Simon Hausmann
0bd627cad6
Rename the common crate
2022-02-01 18:00:25 +01:00
Tobias Hunger
e6b24bceec
[reorg]: Set up and populate the internal
directory
...
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
2022-01-31 16:00:50 +01:00