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
shan
00a8a16712
Adds linear gradient support to 2D meshes in the canvas widget.
2022-09-29 10:52:58 -07: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