Cory Forsstrom
5dd62bacd5
update docs
2020-05-27 14:16:38 -07:00
Cory Forsstrom
de176beb28
centered image and zoom to cursor
2020-05-27 13:39:26 -07:00
Clark Moody
858eafe22e
Structured test cases
2020-05-27 14:24:33 -05:00
Cory Forsstrom
5d045c2e9a
rename to image::Viewer
2020-05-26 17:16:05 -07:00
Cory Forsstrom
431171f975
Rename and add to iced image module
2020-05-26 16:56:34 -07:00
Cory Forsstrom
6bf459e068
Rebase to master and update for api changes
2020-05-26 16:56:34 -07:00
Cory Forsstrom
0d8cefbf2d
Add ImagePane widget
2020-05-26 16:56:34 -07:00
Clark Moody
9079014974
Tests for axis split
2020-05-26 16:47:29 -05:00
Clark Moody
334dd09817
Pane Grid spacing applied prior to rounding
...
On low-DPI screens, the rounding order of operations made it impossible
to produce an odd-pixel spacing. Specifying 1, for instance, produced
zero space between panes.
This approach subtracts half the spacing from the first pane prior to
rounding and uses the whole spacing for the second pane size and
coordinate.
2020-05-26 16:24:18 -05:00
Héctor Ramón Jiménez
230bd6f747
Write documentation for new pane_grid API
2020-05-23 01:51:34 +02:00
Héctor Ramón Jiménez
2ab7341fa5
Implement State::with_content in pane_grid
2020-05-22 21:56:50 +02:00
Héctor Ramón Jiménez
32b9c1fdbd
Return new Split in pane_grid::State::split
2020-05-22 21:55:55 +02:00
Héctor Ramón Jiménez
c620e4dc4c
Implement State::get in pane_grid
2020-05-22 21:55:45 +02:00
Héctor Ramón Jiménez
f3d54a0f33
Expose Node and State::layout for PaneGrid
2020-05-22 21:55:31 +02:00
Héctor Ramón Jiménez
d1f2a18439
Implement Clone for pane_grid::State
2020-05-22 21:55:18 +02:00
Scott Harper
863714602c
Updated Radio layout/fns to match Checkbox
2020-05-15 11:27:24 +09:00
Héctor Ramón Jiménez
7565d294af
Fix PaneGrid not releasing split properly
2020-05-06 06:18:22 +02:00
Héctor Ramón Jiménez
bb9ccc4f62
Remove inconsistent input module in iced_native
2020-04-30 05:04:45 +02:00
Héctor Ramón Jiménez
e55cd9652e
Split Input mouse event by ButtonState
2020-04-30 04:53:15 +02:00
Héctor Ramón Jiménez
e139aae143
Split Input keyboard event by ButtonState
2020-04-30 04:34:29 +02:00
Ethan Pailes
da2ab420ce
document that img handle constructors guess fmt
...
This patch documents the fact that a couple of the image
handle constructors know how to guess the image format based
on the data that they are provided.
I had to dig through `iced` sources until I discovered that those
routines ultimately boil down to stuff like [image::load_from_memory][1]
from the `image` crate, so I thought I would save others the trouble
of doing the same reverse-engineering
[1]: https://docs.rs/image/0.23.4/image/fn.load_from_memory.html
2020-04-26 15:03:48 -04:00
Héctor Ramón Jiménez
0300b649d7
Make Font an associated type of text::Renderer
2020-04-23 22:17:11 +02:00
Héctor Ramón Jiménez
5e47238489
Rename leftover TextInputWidget to Marker
2020-04-13 04:38:35 +02:00
Olivier Pinon
41f6a325e9
#288 Renamed XXXWidget to Marker
2020-04-12 01:20:40 +02:00
Olivier Pinon
f7d7ab1ba9
Remove unnecessary 'static lifetime on Renderer
2020-04-12 00:57:44 +02:00
Héctor Ramón
703beae05e
Merge pull request #268 from FabianLars/ctrl-del
...
implement ctrl + del on text-input
2020-04-07 04:39:16 +02:00
FabianLars
6ca97788b2
implement ctrl + del on text-input
2020-04-06 15:22:52 +02:00
Dmitry Kashitsyn
1a9bfd9e73
Radiobutton label is now impl Into<String>
2020-04-05 12:43:18 +07:00
Dmitry Kashitsyn
15f5b93a0d
Checkbox label is now impl Into<String>
2020-04-05 11:48:44 +07:00
Héctor Ramón Jiménez
703f7657e1
Add example to pane_grid module documentation
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
c114be034a
Fix typo in text_input::Renderer::draw docs
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
4c44517556
Fix minor documentation issues
2020-04-02 03:44:14 +02:00
Héctor Ramón
3bf938f65f
Merge pull request #249 from michael-swan/master
...
Add Ctrl+Backspace text field behaviour
2020-03-31 17:56:19 +02:00
Héctor Ramón Jiménez
990b4aa0b7
Merge branch 'master' into feature/container-padding
2020-03-31 17:11:58 +02:00
Michael Swan
4ca54836a8
Add Ctrl+Backspace text field behaviour
2020-03-30 22:37:28 -05:00
Héctor Ramón Jiménez
749a9588d7
Implement padding support for Container
2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
f4776a46bb
Genericize From implementation for image::Handle
2020-03-31 00:51:59 +02:00
Héctor Ramón Jiménez
ae009158cc
Implement svg::Handle::from_memory
...
Useful if you already have your SVG data in memory.
2020-03-31 00:39:18 +02:00
Héctor Ramón Jiménez
d07304fb85
Hash type ids in Widget::hash_layout impls
2020-03-30 17:28:55 +02:00
Théo Gaillard
0539cd1b85
refactor: remove not mandatory static lifetime
2020-03-30 06:39:10 +08:00
Kai Mast
cbe9298a0b
Clippy
2020-03-28 15:25:55 -07:00
Héctor Ramón Jiménez
893841bfbd
Genericize From implementation for svg::Handle
2020-03-26 16:38:29 +01:00
Héctor Ramón Jiménez
bc10ca501b
Remove unnecessary borrows in Editor
2020-03-25 14:07:32 +01:00
Héctor Ramón Jiménez
cb32326fe6
Fix edge cases when inserting text in Editor
2020-03-25 14:03:15 +01:00
Héctor Ramón Jiménez
30f02345a8
Implement Renderer::find_cursor_position
2020-03-25 13:57:02 +01:00
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