Commit graph

262 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d6914d79a1 Rename is_pressed to is_dragging in text_input 2020-03-24 21:48:54 +01:00
Héctor Ramón Jiménez
5e6970b615 Improve docs of text_input::State::cursor 2020-03-24 21:47:43 +01:00
Héctor Ramón Jiménez
6791c0b208 Remove commented code in text_input 2020-03-24 21:46:20 +01:00
Héctor Ramón Jiménez
857d65c1ce Write documentation for text_input::Cursor 2020-03-24 21:43:28 +01:00
Héctor Ramón Jiménez
735d9f049c Fix edge case in Editor::backspace 2020-03-24 20:57:03 +01:00
Héctor Ramón Jiménez
6c47a40730 Create text_input::Editor to hold editing logic 2020-03-24 20:51:22 +01:00
Héctor Ramón Jiménez
28382a47d3 Move Value to its own module 2020-03-24 20:36:33 +01:00
Héctor Ramón Jiménez
6b89dd7db9 Improve text_input::cursor API 2020-03-24 20:23:31 +01:00
Héctor Ramón Jiménez
763f64b653 Avoid panic in Click::is_consecutive 2020-03-24 19:14:27 +01:00
Héctor Ramón Jiménez
e77fa175aa Merge branch 'master' into feature/text-selection 2020-03-24 19:08:21 +01:00
Héctor Ramón Jiménez
7cb1452d29 Convert mouse::State into mouse::Click 2020-03-24 19:03:17 +01:00
Mark Friedenbach
e5d264caf0 Remove excess whitespace from end of line to comply with cargo fmt. 2020-03-20 15:51:05 -07:00
Héctor Ramón Jiménez
fb744a338c Fix links in pane_grid documentation 2020-03-20 11:56:39 +01:00
Héctor Ramón Jiménez
cfc2b55e05 Rename Internal::idle_pane to active_pane 2020-03-20 11:54:42 +01:00
Héctor Ramón Jiménez
33f33ed4e3 Check cursor is in-bounds before resizing panes 2020-03-20 11:53:08 +01:00
Héctor Ramón Jiménez
420275793e Fix minor documentation issues in pane_grid 2020-03-19 09:43:36 +01:00
Héctor Ramón Jiménez
bd74c4e577 Write documentation for pane_grid 2020-03-19 09:30:54 +01:00
Héctor Ramón Jiménez
a820b8ce7b Rename PaneGrid::modifiers to pressed_modifiers 2020-03-19 08:21:23 +01:00
Héctor Ramón Jiménez
50b02d41a0 Check only for partial match of modifier keys 2020-03-18 07:10:36 +01:00
Héctor Ramón Jiménez
05beb87852 Move common keyboard types to iced_core
Also expose them in `iced` through `iced_native` and `iced_web`.
2020-03-17 07:30:05 +01:00
Héctor Ramón Jiménez
1cd1582506 Add modifiers to KeyPressEvent in pane_grid 2020-03-17 07:16:54 +01:00
Héctor Ramón Jiménez
a280dcda23 Add PaneGrid::on_key_press for hotkey logic 2020-03-17 06:53:57 +01:00
Héctor Ramón Jiménez
21a4095a99 Fix spacing calculation in Axis::split 2020-03-17 04:15:17 +01:00
Héctor Ramón Jiménez
c7583f1227 Merge branch 'master' into feature/panes-widget 2020-03-17 03:23:10 +01:00
Héctor Ramón Jiménez
95c8031f3d Reuse with_children to remove some duplication 2020-03-17 00:51:01 +01:00
Héctor Ramón Jiménez
a146e53eb0 Rename new_with_children to with_children 2020-03-17 00:50:23 +01:00
Rowun Giles
ae123d8f14 Instantiate Column and Row with children 2020-03-16 10:08:37 +00:00
Héctor Ramón Jiménez
e1438774af Fix Scrollable width consistency 2020-03-14 23:25:19 +01:00
FabianLars
b632dce0da fixed panic on pasting into non updating input 2020-03-14 10:51:36 +01:00
Héctor Ramón Jiménez
a373682fa4 Fix ratio calculation on resize in PaneGrid 2020-03-14 09:36:20 +01:00
Héctor Ramón Jiménez
ec334bdd36 Improve pane selection when resizing a PaneGrid 2020-03-14 09:01:52 +01:00
Héctor Ramón Jiménez
eb5e2251bd Trigger PaneGrid resize on click 2020-03-14 08:16:07 +01:00
Héctor Ramón Jiménez
f08cb4ad56 Implement mouse-based pane resizing for PaneGrid 2020-03-14 08:10:50 +01:00
Héctor Ramón Jiménez
db441a64b1 Reintroduce pane_grid::Split as an identifier 2020-03-14 06:35:43 +01:00
Héctor Ramón Jiménez
b55746b1e1 Remove PaneGrid::split_* helpers
We can use the `split` method directly instead.
2020-03-14 06:33:17 +01:00
Héctor Ramón Jiménez
a79603e4ca Rename Split to Axis 2020-03-14 06:32:56 +01:00
Héctor Ramón Jiménez
00c2b55b56 Replace FocusedPane with Action in pane_grid 2020-03-14 06:26:09 +01:00
Héctor Ramón Jiménez
5c8ec4504b Create module boundaries for pane_grid logic 2020-03-14 05:27:27 +01:00
Héctor Ramón Jiménez
460565056e Reuse PaneGrid::focus to remove some duplication 2020-03-14 04:53:57 +01:00
Héctor Ramón Jiménez
2459648574 Simplify iter and iter_mut in pane_grid 2020-03-14 04:47:14 +01:00
Héctor Ramón Jiménez
6e8585e88c Expose adjacent_pane instead of focus_adjacent 2020-03-14 04:06:32 +01:00
FabianLars
731e6752eb keep cursor inside value boundaries more reliable 2020-03-13 17:54:02 +01:00
Héctor Ramón Jiménez
26b9541bca Improve PaneGrid::focus_adjacent intuitiveness 2020-03-13 09:55:59 +01:00
Héctor Ramón Jiménez
b9f184fda4 Draft PaneGrid::focus_adjacent 2020-03-13 08:57:52 +01:00
Héctor Ramón Jiménez
0b12d706e3 Unfocus pane in PaneGrid on out-of-bounds click 2020-03-13 07:54:14 +01:00
Héctor Ramón Jiménez
29bf51d25a Implement spacing support for PaneGrid 2020-03-13 07:51:41 +01:00
Héctor Ramón Jiménez
c2ced4cd59 Improve PaneGrid API by introducing DragEvent 2020-03-13 07:35:44 +01:00
Héctor Ramón Jiménez
2d8d420949 Replace Panes with PaneGrid in documentation 2020-03-11 23:34:51 +01:00
Héctor Ramón Jiménez
f09b4bd4f4 Round region dimensions of panes to avoid overlaps 2020-03-11 23:26:45 +01:00
Héctor Ramón Jiménez
df6e3f8da9 Expose pane_grid::Focus for state-based styling 2020-03-11 23:25:00 +01:00