Commit graph

253 commits

Author SHA1 Message Date
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
Héctor Ramón Jiménez
eb070b9652 Draft drag and drop support for PaneGrid 2020-03-10 06:47:32 +01:00
Héctor Ramón Jiménez
ed7c327b48 Implement Default for keyboard::ModifiersState 2020-03-10 06:46:58 +01:00
Héctor Ramón Jiménez
e4fbca59b4 Merge branch 'master' into feature/panes-widget 2020-03-10 06:12:06 +01:00
Héctor Ramón Jiménez
6151c52824 Rename Panes widget to PaneGrid 2020-03-10 02:57:13 +01:00
Héctor Ramón
d817fe8e14
Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
2020-03-06 03:47:40 +01:00
Héctor Ramón Jiménez
f81827c151 Remove counterintuitive constant functions 2020-03-06 03:30:48 +01:00
Héctor Ramón Jiménez
15fad17f37 Implement panes::State::close 2020-03-05 03:12:45 +01:00
Héctor Ramón Jiménez
58adfcd514 Fix Split::apply on vertical splits 2020-03-04 22:31:37 +01:00
Héctor Ramón Jiménez
d7f32d47ba Compute panes regions and focus on click 2020-03-04 22:01:57 +01:00