Héctor Ramón
ddbb8445bf
Merge pull request #2587 from iced-rs/improve-api-reference
...
Add widget examples to API reference and update `README`
2024-09-19 06:59:05 +02:00
Héctor Ramón Jiménez
1ada297b08
Explain Action pattern a bit in The Pocket Guide
2024-09-18 22:08:43 +02:00
Héctor Ramón Jiménez
9e5afc54ce
Show Action pattern in The Pocket Guide
2024-09-18 22:00:40 +02:00
Héctor Ramón Jiménez
7f4a73e185
Implement executor method for Daemon
2024-09-18 21:47:36 +02:00
Héctor Ramón Jiménez
9306883618
Fix order of Program::theme implementation
2024-09-18 21:19:33 +02:00
Héctor Ramón Jiménez
d20ce8d82c
Import Executor directly from crate
2024-09-18 21:19:18 +02:00
mtkennerly
f9ee3229c1
Allow specifying a custom executor
2024-09-18 01:27:35 -04:00
Héctor Ramón Jiménez
8f33575719
Expose additional subscription types in advanced
2024-07-30 22:22:28 +02:00
Héctor Ramón Jiménez
f0036400a1
Remove unnecessary derive in "Scaling Applications" docs
2024-07-16 16:15:43 +02:00
Héctor Ramón Jiménez
964182e4b8
Fix grammar in "Passive Subscriptions" docs
2024-07-16 16:12:41 +02:00
Héctor Ramón Jiménez
eb6673bf00
Finish "The Pocket Guide"
2024-07-16 15:41:28 +02:00
Héctor Ramón Jiménez
143f4c86ca
Draft "The Pocket Guide" for the API reference
2024-07-16 01:14:26 +02:00
Héctor Ramón Jiménez
bdf0430880
Make run_with take a FnOnce
2024-07-15 13:34:22 +02:00
Héctor Ramón Jiménez
950bfc07d4
Export operate constructor in advanced::widget
2024-07-14 23:00:11 +02:00
Héctor Ramón Jiménez
fd0abe18d0
Implement application::Update for ()
2024-07-14 22:51:52 +02:00
Héctor Ramón Jiménez
7c3341760d
Improve Padding ergonomics
...
We expose free functions for creating a `Padding`
and methods with the same name to modify its fields.
2024-07-12 18:43:25 +02:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types
2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
47f9554a82
Introduce Task::abortable 🎉
2024-07-10 14:44:54 +02:00
Héctor Ramón Jiménez
e86920be5b
Remove load method from application and daemon
...
If you need to run a `Task` during boot, use
`run_with` instead!
2024-07-09 00:28:40 +02:00
Héctor Ramón Jiménez
c9e0ed7ca4
Expose from_recipe and into_recipes in advanced::subscription
2024-07-05 02:22:56 +02:00
Héctor Ramón Jiménez
8bc49cd886
Hide Subscription internals
...
.. and introduce `stream::channel` helper
2024-07-05 02:16:45 +02:00
Héctor Ramón Jiménez
cbeda38f0d
Inline documentation for application and daemon functions
2024-06-20 18:50:03 +02:00
Héctor Ramón Jiménez
0785b334e7
Add window method to Application
2024-06-20 18:35:10 +02:00
ryankopf
3334cf670b
feat: Add methods for window settings in Application
...
This commit adds new methods to the `Application` struct for setting various window settings such as resizable, decorations, position, and level. These methods allow for more customization and control over the appearance and behavior of the application window.
2024-06-20 00:40:37 -05:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes
2024-06-19 01:53:40 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support
2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
5d7dcf417c
Introduce subscription::Event
...
... and remove `PlatformSpecific` from `Event`
2024-06-11 19:41:05 +02:00
Héctor Ramón Jiménez
2645524f88
Update winit to 0.30
2024-05-07 16:07:56 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals
2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
...
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
JL710
f6c698b2dd
add missing derive(Debug) in lib.rs docs
2024-04-30 10:28:06 +02:00
saihaze
f3a2255f83
Fix typo
2024-04-19 14:53:38 +08:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml
2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
f5bcfec821
Use rustc-hash for most of our HashMap and HashSet instances
2024-04-01 12:00:15 +02:00
Héctor Ramón Jiménez
6a4f5ac208
Remove redundant text::Renderer bound in program
2024-03-24 08:45:11 +01:00
Héctor Ramón Jiménez
441e9237cd
Rename compositor::Renderer to Default
2024-03-22 19:35:19 +01:00
Héctor Ramón Jiménez
5137d655e6
Allow custom renderers in Program and Application
2024-03-22 07:09:51 +01:00
Héctor Ramón Jiménez
f409037c07
Simplify message names in overview docs
2024-03-18 19:15:25 +01:00
Héctor Ramón Jiménez
eb67aa5d71
Revert "Remove 'static' bound for P::State in Program::run_with"
...
This reverts commit cab9dec626 .
Wasm needs the `'static'` bound since the runtime
will run in a background task.
2024-03-17 19:53:02 +01:00
Héctor Ramón Jiménez
cab9dec626
Remove 'static' bound for P::State in Program::run_with
2024-03-17 19:42:43 +01:00
Héctor Ramón Jiménez
cdb18e610a
Move Application trait to advanced module
2024-03-17 19:38:42 +01:00
Héctor Ramón Jiménez
943b6c9657
Introduce Program::run_with to control the initial state
2024-03-17 19:15:31 +01:00
Héctor Ramón Jiménez
784fa80c0d
Use Program API in todos example
2024-03-17 17:57:24 +01:00
Héctor Ramón Jiménez
c4b4207f47
Support custom themes in Program API
2024-03-17 14:41:34 +01:00
Héctor Ramón Jiménez
a034e40f7c
Clarify chain nature of run function
2024-03-17 14:36:42 +01:00
Héctor Ramón Jiménez
8e1d0b51f1
Fix documentation of run function
2024-03-17 14:29:02 +01:00
Héctor Ramón Jiménez
54f44754eb
Move Program to application module
2024-03-17 14:19:12 +01:00
Héctor Ramón Jiménez
7e1ef7d150
Fix new doc test in root module
2024-03-17 13:57:53 +01:00
Héctor Ramón Jiménez
179e8863b3
Fix broken intra-doc links to Sandbox
2024-03-17 13:55:15 +01:00
Héctor Ramón Jiménez
846d76cd3f
Remove Sandbox trait 🎉
2024-03-17 13:46:52 +01:00