summaryrefslogtreecommitdiffstats
path: root/native/src/widget (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Added initial touch events to support iOSLibravatar Sebastian Imlay2020-03-186-40/+84
| | |
* | | Use recently stabilized intra-doc linksLibravatar Héctor Ramón Jiménez2020-11-2625-625/+37
| | | | | | | | | | | | See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
* | | Rename `keyboard::ModifiersState` to `Modifiers`Libravatar Héctor Ramón Jiménez2020-11-261-6/+4
| | |
* | | Fix broken links in API documentationLibravatar Héctor Ramón Jiménez2020-11-261-8/+4
| | |
* | | Track keyboard modifiers in `text_input`Libravatar Héctor Ramón Jiménez2020-11-251-24/+16
| | |
* | | This PR fixes a bug with select all (CMD + A on MacOS) when using a text_input.Libravatar Zak2020-11-251-3/+13
| | | | | | | | | | | | | | | | | | Previous behaviour: when selecting all (CMD + A) would delete the current text inside the input and replace the content with just the letter 'a'. Now we check if the logo key (modifier key) has been pressed before checking any other key and save it to the state level. This way we can prevent any text being deleted when using the select all shortcut or text being entered at all when a modifier key is pressed (this behaviour matches other text input behaviour i.e text inputs in the browser etc...).
* | | Disable dragging in `TextInput` after double clickLibravatar Héctor Ramón Jiménez2020-11-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | When using a trackpad, mouse move events may happen between the press/release events. This was incorrectly triggering selection dragging in the `TextInput` widget. Eventually, we should implement proper word-aware selection dragging.
* | | Remove `Focus` in `pane_grid`Libravatar Héctor Ramón Jiménez2020-11-172-17/+1
| | | | | | | | | | | | Since #608, the `PaneGrid` widget does not handle pane focus.
* | | Implement flexible `TextInput::draw` helperLibravatar Héctor Ramón Jiménez2020-11-172-30/+63
| | |
* | | Implement event capturing for `TextInput`Libravatar Héctor Ramón Jiménez2020-11-121-130/+168
| | |
* | | Implement event capturing for `Slider`Libravatar Héctor Ramón Jiménez2020-11-121-0/+6
| | |
* | | Implement event capturing for `Scrollable`Libravatar Héctor Ramón Jiménez2020-11-121-37/+52
| | |
* | | Implement event capturing for `Row`Libravatar Héctor Ramón Jiménez2020-11-121-8/+8
| | |
* | | Implement event capturing for `Radio`Libravatar Héctor Ramón Jiménez2020-11-121-0/+2
| | |
* | | Implement event capturing for `PickList`Libravatar Héctor Ramón Jiménez2020-11-121-5/+13
| | |
* | | Implement event capturing for `PaneGrid`Libravatar Héctor Ramón Jiménez2020-11-123-28/+47
| | |
* | | Implement event capturing for `Column`Libravatar Héctor Ramón Jiménez2020-11-121-8/+8
| | |
* | | Implement event capturing for `Checkbox`Libravatar Héctor Ramón Jiménez2020-11-121-0/+2
| | |
* | | Implement event capturing for `Button`Libravatar Héctor Ramón Jiménez2020-11-121-6/+11
| | |
* | | Make `Widget::on_event` return an `event::Status`Libravatar Héctor Ramón Jiménez2020-11-1213-45/+95
| | |
* | | Remove unnecessary `move` in `PaneGrid::new`Libravatar Héctor Ramón Jiménez2020-11-101-1/+1
| | |
* | | Restore hotkeys in `pane_grid` exampleLibravatar Héctor Ramón Jiménez2020-11-102-18/+7
| | | | | | | | | | | | | | | | | | - Implement `subscription::events_with` - Remove `pane_grid::KeyPressEvent` - Return closest sibling in `pane_grid::State::close`
* | | Fix typo in documentation of `pane_grid::Content`Libravatar Héctor Ramón Jiménez2020-11-101-2/+2
| | |
* | | Introduce `on_click` handler in `PaneGrid`Libravatar Héctor Ramón Jiménez2020-11-101-11/+26
| | |
* | | Remove focus concept from `pane_grid`Libravatar Héctor Ramón Jiménez2020-11-102-223/+14
| | |
* | | Split `focus` and `unfocus` methods in `text_input`Libravatar Héctor Ramón Jiménez2020-11-091-6/+14
| | |
* | | Add textinput focus methodLibravatar Paul Delafosse2020-11-091-0/+6
| | |
* | | Fix `Widget::draw` for `Rule`Libravatar Héctor Ramón Jiménez2020-10-281-0/+1
| | |
* | | Introduce `viewport` to `Widget::draw`Libravatar Héctor Ramón Jiménez2020-10-2816-10/+51
| | | | | | | | | | | | | | | This should eventually allow us to only generate primitives that are visible.
* | | Merge pull request #575 from clarkmoody/scrollable-widthLibravatar Héctor Ramón2020-10-271-4/+65
|\ \ \ | | | | | | | | Custom Scrollbar Width
| * | | Update scrollbar logic and introduce outer_boundsLibravatar Clark Moody2020-10-221-3/+10
| | | |
| * | | Replace hard-coded params with struct membersLibravatar Clark Moody2020-10-221-2/+56
| | | |
* | | | Introduce `Eq` requirement to build a `PickList`Libravatar Héctor Ramón Jiménez2020-10-241-1/+1
|/ / /
* | | Merge pull request #545 from MonliH/masterLibravatar Héctor Ramón2020-10-172-8/+0
|\ \ \ | | | | | | | | Remove outdated `Fill` comment for `Column` and `Row`
| * | | Remove entirelyLibravatar Jonathan Li2020-10-172-10/+0
| | | |
| * | | Document betterLibravatar Jonathan Li2020-10-022-3/+5
| | | |
| * | | Satify documented behaviourLibravatar Jonathan Li2020-10-011-1/+1
| | | |
* | | | Require `Clone` for `Message` early when neededLibravatar Héctor Ramón Jiménez2020-10-174-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, the widgets that needed a `Clone` bound on `Message` to implement the `Widget` trait could be created with a non-cloneable `Message`. As a consequence, the compiler complained only when actually trying to use the `Widget` trait. Normally, this happens when trying to `push` the widget in a container or turn it into an `Element`. Furthermore, the compiler error in this case does not mention `Message` nor the `Clone` bound, but instead complains about a missing `From` implementation. Thus, it can easily cause confusion! This change introduces `Clone` bounds in the main implementation of the widgets that need it to properly implement the `Widget` trait. As a result, the compiler complains early when trying to create one of these widgets with a non-cloneable `Message` and explicitly mentions that the `Message` needs to implement `Clone`.
* | | | Fix typo in Row's and Column's hash_layoutLibravatar Jakub Hlusička2020-10-132-1/+2
|/ / /
* | | Merge branch 'feature/rule-widget' into masterLibravatar Héctor Ramón Jiménez2020-08-221-0/+125
|\ \ \
| * | | widget Rule addedLibravatar Billy Messenger2020-08-221-0/+125
| | | |
* | | | Implement `hash_layout` for `pane_grid::TitleBar`Libravatar Héctor Ramón Jiménez2020-08-192-1/+15
|/ / /
* | | Add `height` method to `Slider`Libravatar Héctor Ramón Jiménez2020-08-011-6/+15
| | |
* | | Merge pull request #463 from mobile-bungalow/titlebar_optionsLibravatar Héctor Ramón2020-07-311-12/+29
|\ \ \ | | | | | | | | Added `always_show_controls` method to TitleBar
| * | | Clarify `TitleBar::always_show_controls` docs a bitLibravatar Héctor Ramón Jiménez2020-07-311-3/+6
| | | |
| * | | Move `always_show_controls` after `padding`Libravatar Héctor Ramón Jiménez2020-07-311-1/+1
| | | |
| * | | Fix typo in `TitleBar::new`Libravatar Héctor Ramón Jiménez2020-07-311-1/+1
| | | |
| * | | Added method to TitleBar, allowing controls to be show statically instead ↵Libravatar mobile-bungalow2020-07-271-11/+25
| | | | | | | | | | | | | | | | of only on mouseover
* | | | Unfocus `TextInput` when `Escape` key is pressedLibravatar Héctor Ramón Jiménez2020-07-301-0/+5
| | | |
* | | | Fix `Widget::layout` for `Checkbox`Libravatar Héctor Ramón Jiménez2020-07-281-0/+1
| | | |