Commit graph

1062 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
15fad17f37 Implement panes::State::close 2020-03-05 03:12:45 +01:00
Héctor Ramón Jiménez
a6531c840b Implement Subscription::with 2020-03-05 02:08:53 +01:00
Héctor Ramón Jiménez
85ee2fc65a Merge branch 'master' into feature/panes-widget 2020-03-05 02:04:03 +01:00
Héctor Ramón Jiménez
3062c190bb Fix offsets in triangle pipeline
Yes, again...
2020-03-04 22:32:23 +01:00
Héctor Ramón Jiménez
cc310f71cc Add split hotkeys to panes example 2020-03-04 22:31:59 +01:00
Héctor Ramón Jiménez
58adfcd514 Fix Split::apply on vertical splits 2020-03-04 22:31:37 +01:00
Héctor Ramón Jiménez
d7f32d47ba Compute panes regions and focus on click 2020-03-04 22:01:57 +01:00
Héctor Ramón Jiménez
b6926d9ab4 Improve Debug implementation of cache::State 2020-03-04 21:56:59 +01:00
Héctor Ramón Jiménez
012b4adec7 Draft Panes widget and panes example 2020-03-04 04:10:26 +01:00
Héctor Ramón Jiménez
02091267bf Use new wgpu_glyph release in iced_wgpu 2020-03-03 00:07:30 +01:00
Héctor Ramón
0d4b6addcc
Merge pull request #211 from mrkgnao/master
Add support for loading already-decoded image pixels
2020-03-01 16:31:46 +01:00
Soham Chowdhury
eb7e3250d3 Note BGRA requirement in Handle::from_pixels docs 2020-03-01 06:44:06 +05:30
Soham Chowdhury
1841015428 Add support for loading already-decoded image pixels 2020-02-29 07:32:42 +05:30
Héctor Ramón Jiménez
96f75eae4d Fix offsets of buffer uploads in triangle pipeline 2020-02-28 19:38:17 +01:00
Héctor Ramón
bab7dbcaef
Merge pull request #154 from Maldela/atlas
Texture atlas
2020-02-28 15:17:16 +01:00
Héctor Ramón Jiménez
88d4cd0970 Remove unnecessary pub(crate) use 2020-02-28 14:41:07 +01:00
Héctor Ramón Jiménez
4e7159c22c Stop creating image pipeline when unnecessary 2020-02-28 14:38:42 +01:00
FabianLars
767096b9bb disable word selection if is_secure == true 2020-02-27 12:13:47 +01:00
FabianLars
1ad83889be really small cleanup 2020-02-26 21:58:34 +01:00
Héctor Ramón Jiménez
fc55e3a3df Move Atlas::deallocate after allocate 2020-02-26 20:50:32 +01:00
Héctor Ramón Jiménez
bb397cc668 Move Debug implementation for vector::Svg 2020-02-26 20:49:40 +01:00
Héctor Ramón Jiménez
271725faa5 Derive Debug for raster::Memory 2020-02-26 20:47:27 +01:00
Héctor Ramón Jiménez
deedf6e8b6 Make new texture module private for now 2020-02-26 20:36:52 +01:00
Héctor Ramón Jiménez
6cb7fb6d52 Remove unused code warnings in iced_wgpu::image 2020-02-26 20:35:39 +01:00
Héctor Ramón Jiménez
883a9f22e2 Add env_logger to svg example 2020-02-26 20:11:01 +01:00
Héctor Ramón Jiménez
d06d06e050 Deallocate atlas entries and remove padding 2020-02-26 20:10:19 +01:00
Héctor Ramón Jiménez
48d70280eb Fix multiple issues from the refactoring
- Update texture view on grow
- Fix atlas texture coordinates
- Fix fragmented uploads
2020-02-26 18:50:13 +01:00
Héctor Ramón Jiménez
c58d94f3fd Avoid creating a vertex buffer every frame 2020-02-26 12:55:04 +01:00
Héctor Ramón Jiménez
59d45a5440 Refactor texture atlas
- Split into multiple modules
- Rename some concepts
- Change API details
2020-02-26 12:34:34 +01:00
FabianLars
0d8d236be6 More selection actions: (Ctrl +) Shift + Left/Right, Shift + Home/End 2020-02-25 17:03:52 +01:00
Héctor Ramón Jiménez
82f0a49062 Recompile image shaders 2020-02-25 13:27:43 +01:00
Malte Veerman
4617da2818 Implemented automatic deallocation of texture space for dropped allocations 2020-02-25 13:27:03 +01:00
Malte Veerman
8f9f44b9e8 When deallocating the last allocation in an allocator mark its layer as empty 2020-02-25 13:27:03 +01:00
Malte Veerman
2f695ef980 Updated shaders and removed debug_stub_derive dependency 2020-02-25 13:27:03 +01:00
Malte Veerman
c0996923c6 Batch image draw calls into one with multiple instances 2020-02-25 13:26:50 +01:00
Malte Veerman
3f38835105 Implement allocating large images across multiple texture array layers. 2020-02-25 13:26:50 +01:00
Malte Veerman
2f77a6bf5a Use array of atlases instead of one growing indefinitely. 2020-02-25 13:26:50 +01:00
Malte Veerman
8562a4c986 Fixed texture bleeding 2020-02-25 13:26:50 +01:00
Malte Veerman
82e0675c07 Some small debug changes 2020-02-25 13:26:50 +01:00
Malte Veerman
743637ebda Merged image and svg texture atlases into one owned by the image pipeline. 2020-02-25 13:26:50 +01:00
Malte Veerman
1bcfc9a5cc Implemented a texture atlas for images and svgs. 2020-02-25 13:26:33 +01:00
Héctor Ramón
69c81aa50d
Merge pull request #205 from hecrj/feature/wgpu-configurable-format
Make output format of `iced_wgpu` configurable
2020-02-25 11:14:34 +01:00
FabianLars
c47e30e960 double click fixed 2020-02-24 20:10:20 +01:00
Héctor Ramón Jiménez
be14aca075 Make output format of iced_wgpu configurable 2020-02-24 20:08:40 +01:00
FabianLars
c6c8cabdaf moved cursor into own file
moved click tracking as a new State struct to input::mouse
made cursor field of text_input state private
brought back cursor type(Index, Selection) representation with a state enum
cleaned out some stuff (but not enough/all)
TODO: Documentation (sigh)
TODO: Editor struct
TODO: some (hopefully) small improvements here and there
2020-02-24 18:03:42 +01:00
FabianLars
190dcef155 Text Selection completely rewritten 2020-02-24 04:14:32 +01:00
FabianLars
e8bf0fc099 styling example fixed (added selection_color) 2020-02-23 11:25:48 +01:00
Héctor Ramón
e680fd27e7
Merge pull request #201 from hecrj/fix/clip-primitive-intersection
Fix `Clip` primitive intersection in `iced_wgpu`
2020-02-23 09:20:21 +01:00
FabianLars
883843a72d max time window for double click 2020-02-23 01:23:57 +01:00
FabianLars
f72b1f8c45 double click for word selection
3 clicks to select all
2020-02-23 00:26:15 +01:00