Commit graph

151 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d39ad717ed
Wire up styling to Radio in iced_native 2021-10-20 19:18:40 +07:00
Héctor Ramón Jiménez
e914888f57
Implement Widget::draw for TextInput 2021-10-20 18:40:39 +07:00
Héctor Ramón Jiménez
11bcb13427
Wire up styling to Slider in iced_native 2021-10-20 15:50:42 +07:00
Héctor Ramón Jiménez
e00a2e9b2d
Remove dbg! leftover in Renderer::fill_text 2021-10-18 16:59:59 +07:00
Héctor Ramón Jiménez
3140cdc4ba
Wire up styling to Button in iced_native 2021-10-18 16:02:30 +07:00
Héctor Ramón Jiménez
d61cb58d92
Wire up container styling to iced_native 2021-10-18 15:36:32 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native 2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable 2021-10-18 14:48:33 +07:00
Héctor Ramón Jiménez
a4f4d83161
Introduce fill_rectangle to Renderer trait 2021-10-18 14:47:49 +07:00
Héctor Ramón Jiménez
dfceee99aa
Implement Widget::draw for Scrollable
Rendering the scroller is still WIP
2021-10-14 17:15:29 +07:00
Héctor Ramón Jiménez
3a0c503db9
Implement Widget::draw for Text 2021-10-14 17:00:38 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native 2021-10-14 16:07:22 +07: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