Commit graph

3027 commits

Author SHA1 Message Date
Cory Forsstrom
fb036529a2 Render picked pane last 2022-10-17 14:56:06 -07:00
Cory Forsstrom
dca99f35e9 Fix pane grid mouse interactions
- Use `grabbing` interaction while dragging
- Ignore grab interaction when dragging is disabled
2022-10-17 14:38:24 -07:00
Héctor Ramón
69e288cad1
Merge pull request #1463 from tarkah/fix/pane-grid-render-order
Render pane grid titlebar after body
2022-10-17 19:26:59 +02:00
Michael Aaron Murphy
ac6e137be3
feat: Add window minimize support 2022-10-11 21:56:45 +02:00
Michael Aaron Murphy
8a50836ffc
feat: Add window maximize support 2022-10-11 21:56:01 +02:00
Michael Aaron Murphy
7ea7dbef57
feat: Add window drag support from winit
Exposes access to the winit window's window_drag method as an action.
2022-10-11 21:39:53 +02:00
bungoboingo
bb8d46a3fd Fixed fragment shader compatibility issues with GLES 3.0+ 2022-10-10 20:55:43 -07:00
Bingus
aabc4e87b5
Merge branch 'master' into fear/linear-gradients 2022-10-07 16:58:45 -07:00
shan
7a124476b1 Jumped the gun on pushing; one more readability update :P 2022-10-07 16:57:29 -07:00
shan
fd5e1e5ab0 Adjusted gradient transform function to be more readable. 2022-10-07 16:55:55 -07:00
shan
a4a1262fa2 Fixed import issue with canvas in the gradient mod for situations where canvas feature is not enabled. 2022-10-07 16:28:13 -07:00
shan
215e6c95be More import adjusting. 2022-10-07 13:21:32 -07:00
shan
3e600fe775 Adjusted reexports for clarity. 2022-10-07 13:10:37 -07:00
shan
87371ce934 Fixed an edge case where when gradient start/end are identical the GL fragment shader was not choosing the appropriate color. 2022-10-07 13:06:06 -07:00
shan
12a87c54eb Added support for relative positioning of gradient fills. Addressed some PR feedback. 2022-10-07 12:01:07 -07:00
Cory Forsstrom
20fd1f2047 Render pane grid titlebar after body 2022-10-07 09:03:44 -07:00
Héctor Ramón
77c838011f
Merge pull request #1458 from AlistairKeiller/master
Fix wgpu README supported backends
2022-10-07 12:25:07 +02:00
shan
f9a6efcaa0 Fixed some more imports/documentation. 2022-10-06 19:41:00 -07:00
shan
72feba51be Fixed some imports/documentation. 2022-10-06 19:13:40 -07:00
shan
9c7bf417ac Added support for gradients to respect current frame transform. 2022-10-06 18:59:54 -07:00
Alistair Keiller
520907e997 remove iced 2022-10-06 11:27:45 -07:00
Alistair Keiller
c9641b0b5d add a link to wgpu supported platforms list 2022-10-06 11:22:27 -07:00
Alistair Keiller
013c1f1f89 remove DX11 support from wgpu 2022-10-06 09:55:20 -07:00
shan
f4878a1a66 Changed tesselation functions to take Vertex2D builder instead of using lyon's builtin Point type to avoid extra copies. 2022-10-06 08:04:43 -07:00
shan
cb7c467654 Fixed lint issues & cleaned up some documentation. 2022-10-06 07:28:05 -07:00
shan
1eb8d972ba Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant. 2022-10-05 16:07:43 -07:00
shan
f7ce7244d0 Adjusted gradient uniforms to be more tightly packed. 2022-10-05 11:32:59 -07:00
shan
e540b7f642 Fixed issue with offsets not being reset properly leading to borked draws. 2022-10-05 11:23:36 -07:00
shan
30432cbade Readjusted namespaces, removed Geometry example as it's no longer relevant. 2022-10-05 10:49:58 -07:00
Héctor Ramón
cd5a5f2ed2
Merge pull request #1331 from ThisIsRex/master
`is_selected` property for `Radio` `StyleSheet`
2022-10-05 19:15:14 +02:00
MG_REX
dbd76ea21c
Derive Clone and Copy for toggler::Appearance 2022-10-05 19:08:07 +02:00
MG_REX
d95c216b2d
Add is_selected argument in radio::StyleSheet 2022-10-05 19:07:02 +02:00
shan
6e7b3ced0b Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR. 2022-10-04 18:24:46 -07:00
Héctor Ramón
2278bade55
Merge pull request #1305 from artursapek/canvas-touch
Expose touch events in canvas widget
2022-10-04 18:20:14 +02:00
Héctor Ramón Jiménez
8c74464b0d
Fix clippy lints 2022-10-04 11:53:03 +02:00
Héctor Ramón Jiménez
ce2c795bda
Replace voronoi crate with voronator 2022-10-04 11:50:32 +02:00
Héctor Ramón Jiménez
ddb8f5b96c
Finish multitouch example 2022-10-04 11:35:22 +02:00
Artur Sapek
9d6834f250
vornoi experiment 2022-10-04 11:24:10 +02:00
Artur Sapek
fe17641d46
Working multitouch example 2022-10-04 11:23:03 +02:00
Artur Sapek
4a3c3e2a18
expose touch module 2022-10-04 11:15:36 +02:00
Artur Sapek
388b3c3b33
expose touch events in canvas widget 2022-10-04 11:15:35 +02:00
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
shan
5d0fffc626 Fixed some importing issues since you can use a Shader::Gradient outside a Canvas widget, where it was previously only accessible. 2022-09-30 10:27:00 -07:00
shan
e25f3d3dea Fixed issue where OpenGL would not render both shaders at once under certain circumstances. 2022-09-29 17:13:32 -07:00
shan
0f434c74d6 Removed some leftover debugging. 2022-09-29 16:11:05 -07:00
shan
734557bda5 Fixed issue where stops could be declared out of order in the builder but must be sorted before being passed to shader. 2022-09-29 14:01:57 -07:00
shan
91b5ab6ab3 Merge remote-tracking branch 'origin/fear/linear-gradients' into fear/linear-gradients
# Conflicts:
#	graphics/src/widget/canvas/frame.rs
2022-09-29 11:18:58 -07:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00