Ian Douglas Scott
6ce12fc0c6
Use Cow<'static, [u8]> in image/svg, add constructors taking &[u8]`
...
This should resolve https://github.com/iced-rs/iced/issues/580 by
providing a way to use an image included with `include_bytes!` without
needing to copy it to a `Vec` to create an image handle.
It would be nice if these methods could also be `const`, but that isn't
possible due to the hashing being done.
This is technically a breaking change since `Handle::data()` is public.
But if that is used, it's most likely in used somewhere that only relies
on the type derefing to `&[u8]`.
2022-10-03 15:58:43 -07:00
Héctor Ramón
5f758d847f
Merge pull request #1450 from xTeKc/readme
...
update: match test badge
2022-10-03 20:06:58 +02:00
xTeKc
12ff7964e8
update: match test badge
2022-10-02 16:48:33 -04:00
Héctor Ramón
97f385e093
Merge pull request #1230 from kaimast/feat/ignored_events
...
Pass ignored events to program
2022-09-28 19:52:00 +02:00
Kai Mast
c9b8dbdb7a
Return ignored events in program::State::update
2022-09-28 19:36:55 +02:00
Héctor Ramón
77800bcf6d
Merge pull request #1196 from aentity/application_feature
...
Add application feature, which allows to build freestanding wgpu app
2022-09-26 18:20:27 +02:00
Héctor Ramón
4aea743999
Merge pull request #1139 from thenlevy/fix_wgpu_integration
...
Fix wgpu integration example
2022-09-26 16:02:27 +02:00
Héctor Ramón Jiménez
98b5832917
Remove application feature from iced crate
2022-09-26 15:58:12 +02:00
aentity
78c9d5bedf
Add application feature, which allows to build freestanding wgpu app
2022-09-26 15:57:30 +02:00
nlevy
0412718080
Recreate Viewport on RedrawRequested in integration_wgpu
2022-09-26 15:43:52 +02:00
Héctor Ramón
3c2a8b70ad
Merge pull request #1445 from clarkmoody/tweak-sysinfo
...
Tweak System Information
2022-09-26 13:48:34 +02:00
Clark Moody
bb92369017
Include short version in example app
2022-09-23 15:56:37 -05:00
Clark Moody
8d2331af01
New short OS Version field; update doc strings
2022-09-23 15:41:47 -05:00
Héctor Ramón
3c9af1eb31
Merge pull request #1227 from LordRatte/feature-colour-macro
...
`color!` macro
2022-09-23 20:26:53 +02:00
Héctor Ramón Jiménez
be5964db83
Write documentation for color! macro
2022-09-23 20:11:43 +02:00
Héctor Ramón Jiménez
b8401c61a1
Export color! macro in iced and iced_native
2022-09-23 20:10:35 +02:00
Joshua
82cf8d2d12
Macro for easy colour generation
2022-09-23 20:09:03 +02:00
Héctor Ramón
bfd24c27db
Merge pull request #1174 from daladim/icon_from_file
...
Added convenience functions for window::icon::Icon
2022-09-23 20:02:57 +02:00
Héctor Ramón
489a85518b
Merge pull request #1444 from iced-rs/fix/clippy-lints
...
Fix latest `clippy` lints
2022-09-23 18:04:16 +02:00
Héctor Ramón
35cf105072
Merge pull request #1136 from xkenmon/feature/example-sierpinski-triangle
...
Implement sierpinski-triangle example
2022-09-23 17:54:36 +02:00
Héctor Ramón Jiménez
3e82ab069e
Fix latest clippy lints
2022-09-23 17:51:42 +02:00
xkenmon
79d045cfe1
Implement sierpinski-triangle example
2022-09-23 17:41:34 +02:00
Héctor Ramón
7420ea7a6b
Merge pull request #1107 from RamType0/TextContentByCow
...
Text content by cow
2022-09-21 21:11:54 +02:00
Ram.Type-0
ce3b89639d
Take Cow in Text::new
2022-09-21 20:59:17 +02:00
Héctor Ramón
f15bc3ca34
Merge pull request #1425 from 0x192/master
...
Make `overlay::menu` accessible
2022-09-21 13:26:02 +02:00
Héctor Ramón Jiménez
7a35d1cec0
Expose overlay::Element
2022-09-21 13:09:30 +02:00
Héctor Ramón Jiménez
183b925c95
Fix doc comments in overlay
2022-09-21 12:58:56 +02:00
0x192
214f6f9cba
Make menu style accessible
2022-09-21 12:58:56 +02:00
Héctor Ramón
a22cdc9aa5
Merge pull request #1437 from wash2/window_size_sync
...
fix: sync size of window and viewport
2022-09-20 19:03:00 +02:00
Héctor Ramón Jiménez
1bfd032169
Improve code styling in application::State
2022-09-20 18:40:36 +02:00
Héctor Ramón
cbe7200b54
Merge pull request #1440 from ids1024/move
...
Document that `window::Action::Move` is unsupported on Wayland
2022-09-20 15:26:10 +02:00
Ian Douglas Scott
4a6fd6b5bc
Document that window::Action::Move is unsupported on Wayland
...
https://docs.rs/winit/latest/winit/window/struct.Window.html#method.set_outer_position
notes that this isn't supported on Wayland.
Wayland by design doesn't allow applications to position windows
arbitrarily. GTK4 in comparison removed `gtk_window_move()` (which
naturally didn't work on Wayland).
2022-09-15 12:08:39 -07:00
Héctor Ramón Jiménez
4655411256
Make Cache::clear immutable
2022-09-13 17:38:44 +02:00
Ashley Wulber
b113bb8a09
fix: formatting
2022-09-10 23:14:47 -04:00
Ashley Wulber
8de87b8f1b
fix: sync size of window and viewport
2022-09-10 22:43:09 -04:00
Héctor Ramón
cb395abd19
Merge pull request #1433 from 13r0ck/integration-docs
...
Update docs for renamed integration examples
2022-09-08 09:11:12 +02:00
Héctor Ramón
dcdbe1b0f4
Merge pull request #1434 from fralonra/patch-3
...
Update docs for running `integration_wgpu` example
2022-09-08 09:10:26 +02:00
Zoron
ef39d85696
Update docs for running integration_wgpu example
2022-09-08 13:58:28 +08:00
13r0ck
92958e49ad
Update docs for renamed integration examples
...
The integration examples were renamed in
77a0b68aa1 , this just updates the
docs to point to the updates links.
2022-09-07 14:50:58 -06:00
Héctor Ramón
d659811964
Merge pull request #1429 from pheki/remove-pure-docs-rs
...
Remove old pure feature from docs.rs build metadata
2022-09-07 10:31:02 +02:00
Aphek
8ad6889ee0
Remove old pure feature from docs.rs build metadata
2022-08-31 22:53:42 -03:00
Héctor Ramón
ab1ac8228f
Merge pull request #1410 from wyatt-herkamp/0.27_update
...
Update `winit` to `0.27` and `glutin` to `0.29`
2022-08-29 14:50:40 +02:00
Héctor Ramón Jiménez
28a30079d1
Return Mode::Hidden in window::Action::FetchMode
...
... when the window is not visible.
2022-08-29 14:24:03 +02:00
Wyatt Herkamp
7ec4747304
Update winit and glutin forks
2022-08-29 14:20:02 +02:00
Héctor Ramón
94fc3d993e
Merge pull request #1424 from mtkennerly/bugfix/pane-grid-undraggable-area-when-cramped
...
When pane grid title bar is cramped, still show content until hover and allow dragging where content would've been
2022-08-27 11:53:36 +02:00
Matthew Kennerly
ea2df18147
When pane grid title bar is cramped, still show content until hover and allow dragging where content would've been
2022-08-27 06:25:12 +08:00
Héctor Ramón
4158a9a0cd
Merge pull request #1423 from iced-rs/feature/element-explain
...
Reintroduce `Element::explain`
2022-08-26 20:19:15 +02:00
Héctor Ramón
59bccb4ca1
Merge pull request #1422 from iced-rs/fix/invisible-window
...
Fix invisible window on Windows
2022-08-26 20:10:14 +02:00
Héctor Ramón
94687696aa
Merge pull request #1421 from iced-rs/fix/tooltip-mouse-interaction
...
Fix incorrect layout in `mouse_interaction` for `Tooltip`
2022-08-26 20:05:38 +02:00
Héctor Ramón Jiménez
a07cb8588f
Reintroduce Element::explain
2022-08-26 20:04:02 +02:00