Héctor Ramón
ef5f46bcdd
Use intra-doc links in Toggler docs
2021-06-03 20:28:36 +07:00
Héctor Ramón
a32ce271bd
Rename text_align to text_alignment in Toggler
2021-06-03 20:27:32 +07:00
Kaiden42
c0cfd9d5cf
Update documentation of Toggler
2021-06-03 20:21:55 +07:00
Kaiden42
7a626f3b7b
Change label of Toggler to optional
2021-06-03 20:21:55 +07:00
Kaiden42
aa18a6e0d5
Add alignment of Toggler label.
2021-06-03 20:21:55 +07:00
Kaiden42
7370dfac6e
fix missing semicolon in doc test
2021-06-03 20:21:04 +07:00
Kaiden42
52a185fbab
Implement Toggler widget for iced_native
2021-06-03 20:21:02 +07:00
Héctor Ramón
8a3b71df8b
Replace ignored doc-tests with additional documentation for Padding
2021-06-01 19:45:47 +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
92361ef07d
Fix overlay::Menu implementation
2021-06-01 19:13:34 +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
Aaron Housh
ae484429d3
Merge branch 'hecrj:master' into upgrade-wgpu
2021-05-19 07:14:26 -07:00
Héctor Ramón
8b7452a55d
Fix formatting with cargo fmt
2021-05-19 16:26:04 +07:00
chiheisen
59f3896392
fix pick_list layouting not respecting fonts
2021-05-18 12:37:23 +02:00
zdevwu
40d21d2365
Added text color and font options for native radio and checkbox ( #831 )
...
* text color and font options to radio
* code formatting
* code formatting
* code formatting
* Added text_color for native checkbox
* Removed clone as color has Copy
* Fix code formatting with `cargo fmt`
Co-authored-by: Héctor Ramón <hector@lich.io>
2021-05-17 20:22:55 +07:00
Dispersia
983aa1b366
Run cargo fmt
2021-04-12 23:23:47 -07:00
Héctor Ramón Jiménez
0864e63bde
Bump versions 🎉
2021-03-31 20:07:17 +02:00
Héctor Ramón Jiménez
00de9d0c9b
Add CloseRequested variant to window::Event
2021-03-30 21:33:57 +02:00
Nicolas Levy
0333a8daff
Overwrite overlay method in Widget implementation for Button ( #764 )
...
* Overwrite `overlay` method in Widget implementation for Button
* Overwrite `overlay` method in Widget implementation for Button (cargo fmt)
* Fix button overlay
2021-03-14 23:39:01 +01:00
Héctor Ramón Jiménez
ae517b9fa0
Add clipboard argument to Application::update
2021-03-11 03:38:20 +01: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
939fcfe9db
Merge pull request #771 from hecrj/fix/tooltip-layering
...
Reposition `Tooltip` inside `viewport` bounds
2021-03-10 03:28:04 +01:00
Héctor Ramón Jiménez
17dcfa8faf
Implement copy and cut behavior for TextInput
2021-03-10 01:59:20 +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
35425001ed
Introduce write method to Clipboard trait
2021-03-10 01:18:22 +01:00
Héctor Ramón Jiménez
b22b0dd7ff
Update window_clipboard to 0.2
2021-03-10 01:16:26 +01:00
Héctor Ramón Jiménez
bbca5c4bde
Call hash_layout for controls in pane_grid::TitleBar
2021-03-09 04:49:17 +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
2736e4ca35
Hide Text as an implementation detail of Tooltip
2021-02-24 00:59:29 +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
9f60a256fc
Remove viewport from Overlay::draw for now
2021-02-23 03:12:00 +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
anunge
9e453843b2
Touch support for PaneGrid and PickList ( #650 )
...
* touch events properly parsed and converted to logical size, button working
* scrolling with a nice touch
* fixed application state level touch cursor. panel_grid is touchable now.
* format glicthes fixes
* format glitches
* tight format
* fixed pane grid
* fixing with upstream
* Remove unused `touch` module from `iced_core`
* Remove unused `crate::text` import in `iced_native`
* Remove redundant match branch in `iced_winit`
* Keep removed line break in `UserInterface::update`
* Compute `text_size` only when bounds contains cursor in `overlay::menu`
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2021-02-12 20:52:20 +01:00
Héctor Ramón Jiménez
45dc02e9bd
Split window::Event::Focused into two variants
2021-01-15 18:21:44 +01:00
cossonleo
0b140488b4
add focus event
2021-01-15 22:40:16 +08:00
Héctor Ramón Jiménez
0646280d67
Fix Widget::width implementation for PickList
2021-01-15 14:26:23 +01:00
Héctor Ramón Jiménez
c7f6b2a5c7
Capture relevant events in image::Viewer
2021-01-11 19:31:34 +01:00
Héctor Ramón Jiménez
e7344d03b4
Use BTreeMap for splits and regions in pane_grid
...
This preserves ordering between calls to update and draw logic.
2021-01-07 21:07:44 +01: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
e815c5bbd7
Remove unnecessary lifetime bound in TitleBar
2020-12-22 14:47:18 +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
86361f003c
Merge pull request #668 from hecrj/fix/propagate-button-events
...
Propagate `Button` events to contents
2020-12-18 23:30:49 +01:00
Héctor Ramón Jiménez
10d6df73e3
Remove max_width and max_height from image::Viewer
...
The support for these layout constraints is currently not ideal. We
should reintroduce these methods once our layout engine improves.
2020-12-18 11:35:01 +01:00
Héctor Ramón Jiménez
c54a6446a3
Use intra-doc links in image::viewer
2020-12-18 11:35:01 +01:00
Héctor Ramón Jiménez
6a51282933
Simplify cursor_to_center in image::Viewer
2020-12-18 11:34:52 +01:00
Héctor Ramón Jiménez
149098cb68
Remove use of unwrap in image::Viewer
2020-12-18 11:20:48 +01:00