Commit graph

140 commits

Author SHA1 Message Date
Mattia Guazzaloca
8782f45955 Fix color issue with Debugger::explain implementation for Renderer 2021-11-03 22:48:13 +01:00
Héctor Ramón Jiménez
a0ad399622
Refactor alignment types into an alignment module 2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
643500bbdf
Use Option to encode empty text case in hit test methods 2021-09-15 14:49:13 +07:00
Héctor Ramón Jiménez
61dc9defad
Rely on latest release of lyon_tessellation 2021-09-01 13:35:52 +07:00
Héctor Ramón Jiménez
30ce60109e
Rely on new fast paths for basic shapes in lyon
See [1] for more details.

[1]: https://github.com/nical/lyon/pull/696
2021-08-30 13:24:30 +07:00
Héctor Ramón Jiménez
59b3d724ed
Use FillTessellator::tessellate_rectangle in Frame 2021-08-26 15:44:32 +07:00
Héctor Ramón Jiménez
82d967c04f
Avoid reallocating tessellators in Frame methods 2021-08-26 15:41:12 +07:00
Héctor Ramón Jiménez
d0fe7b57ea
Update lyon to 0.17 in iced_graphics 2021-08-26 14:54:02 +07:00
Héctor Ramón
6821114cae
Merge pull request #670 from twitchyliquid64/text_backend
Refactor textual hit testing into a `renderer::Backend` method
2021-08-26 14:53:15 +07:00
Héctor Ramón Jiménez
7614127d36
Rename HitTestResult to Hit
... and also move it to a new `text` module in `iced_core`
2021-08-26 14:41:33 +07:00
Héctor Ramón Jiménez
acc47a5953
Rename SwapChainError to SurfaceError in iced_graphics 2021-08-25 15:42:35 +07:00
Tom
aa63841e2c Implement textual hit testing 2021-08-21 10:31:26 -07:00
Héctor Ramón Jiménez
fe0de182c5
Remove SwapChain associated type from Compositor 2021-08-20 20:32:04 +07:00
Poly
18753b77fc wgpu: Update to 0.10 2021-08-19 03:06:38 +02:00
Héctor Ramón Jiménez
3e03a42bc6
Use thiserror to derive Error for SwapChainError 2021-08-04 21:52:02 +07:00
Billy Messenger
b629a80254 small documentation error 2021-07-22 13:26:27 -05:00
Billy Messenger
e5010b8ab8 redo custom error for Compositor::draw() 2021-07-22 13:23:36 -05:00
Billy Messenger
a7d2834a6d add custom error for Compositor::draw() 2021-07-22 13:08:13 -05:00
Billy Messenger
e822f654e4 Merge branch 'master' of https://github.com/hecrj/iced into wgpu_outdatedframe 2021-07-22 12:37:39 -05:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw 2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
1b36068847
Introduce placeholder_color to pick_list::Style 2021-07-22 20:22:32 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
see issue #726
2021-07-22 19:12:56 +07:00
Diego Fujii
80df17ab55 fix-typo 2021-06-24 00:16:08 +09:00
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3 2021-06-14 21:01:37 +03:00
Kaiden42
7a626f3b7b Change label of Toggler to optional 2021-06-03 20:21:55 +07:00
Kaiden42
52a185fbab Implement Toggler widget for iced_native 2021-06-03 20:21:02 +07:00
Héctor Ramón
b94cd7a2a8 Use Padding::horizontal and Padding::vertical helpers 2021-06-01 19:21:43 +07:00
Héctor Ramón
0a14492343 Fix Tooltip widget 2021-06-01 19:13:52 +07:00
Ben LeFevre
fe0a27c56d Add support for asymmetrical padding 2021-06-01 19:05:39 +07:00
Clark Moody
d4c5f3ee95 Enable event handling within the title elements
Shrink the pick area to avoid both the controls and the title elements.
Handle events and merge title area event status with control events.
2021-05-24 16:37:47 -05:00
Héctor Ramón
3840b75bea Provide compatible_surface in iced_wgpu::Compositor 2021-05-05 14:33:30 +07:00
Héctor Ramón
59c2500c55 Fix Scrollable scrollbar being rendered behind contents
... by issuing a new clip layer just for the scrollbar itself.
2021-05-03 15:42:02 +07:00
Downtime
ca4257ff5c Update frame.rs 2021-04-01 21:58:25 +08:00
Héctor Ramón Jiménez
0864e63bde Bump versions 🎉 2021-03-31 20:07:17 +02:00
Héctor Ramón
7eb5127748
Merge pull request #770 from hecrj/feature/clipboard-write
Write clipboard support and `TextInput` copy and cut behavior
2021-03-10 21:13:07 +01:00
Héctor Ramón Jiménez
21971e0037 Make Clipboard argument in Widget trait mutable 2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
c51b771519 Reposition Tooltip inside viewport bounds
... only when out of bounds.
2021-02-27 03:47:13 +01:00
Héctor Ramón Jiménez
f52f8c1337 Fix viewport argument in PaneGrid draw calls 2021-02-27 03:36:46 +01:00
Héctor Ramón Jiménez
5e2743361b Generate new layers only for clip primitives in Layer::generate 2021-02-23 04:02:55 +01:00
Héctor Ramón Jiménez
4e923290cc Add style and padding to Tooltip 2021-02-23 04:00:35 +01:00
Héctor Ramón Jiménez
2f766b7341 Introduce Tooltip::gap to control spacing 2021-02-23 03:16:37 +01:00
Héctor Ramón Jiménez
81c75c1524 Change Tooltip to support Text only for now 2021-02-23 03:09:16 +01:00
Yusuf Bera Ertan
a19f89d3a6
feat(native): add Tooltip widget 2021-02-15 19:37:46 +03:00
Héctor Ramón Jiménez
d1c4239ac7 Disable default features of qrcode for iced_graphics 2021-01-21 05:07:41 +01:00
Tanner Rogalsky
766bb7f5cc Fix physical_width getter incorrectly returning the height 2021-01-14 10:38:12 -05:00
Héctor Ramón Jiménez
a7bb7bb2ea Implement split highlight on hover for PaneGrid 2021-01-01 15:28:38 +01:00
Héctor Ramón
f8aef03456
Merge pull request #657 from clarkmoody/feature/pane-grid-title-contents
Generic Element Content in Pane Grid TitleBar
2020-12-22 14:58:39 +01:00
Héctor Ramón Jiménez
f2c2f3fc75 Remove unnecessary text::Renderer bound for PaneGrid
This is no longer necessary, as we do not render text directly anymore.
2020-12-22 14:44:44 +01:00
Héctor Ramón Jiménez
4bbfdef14b Update font-kit to 0.10 2020-12-19 01:24:46 +01:00
Héctor Ramón Jiménez
43ef85ae5c Rename starting_cursor_pos to cursor_grabbed_at in image::Viewer 2020-12-18 11:20:18 +01:00