Commit graph

41 commits

Author SHA1 Message Date
Nikolai Vazquez
267e242238 Make many functions const
The point is to set up repeated components or boilerplate before their
use sites.

The majority of these make sense as `const`. However, some functions
such as those regarding state may not make sense as `const`.
2019-11-29 21:24:52 -05:00
Héctor Ramón Jiménez
cfe975938b Increase scrolling speed in Scrollable 2019-11-24 12:54:31 +01:00
Héctor Ramón Jiménez
5629716120 Fix rounding error when scrolling 2019-11-24 12:12:08 +01:00
Héctor Ramón Jiménez
47196c9007 Display widget images in documentation 2019-11-24 10:48:29 +01:00
Héctor Ramón Jiménez
f943764a29 Fix iced_native widget examples 2019-11-24 10:44:55 +01:00
Héctor Ramón Jiménez
048909b45d Fix Button example in iced_native 2019-11-22 22:13:54 +01:00
Héctor Ramón Jiménez
d136b7ce64 Uncomment missing debug implementations rule 2019-11-22 21:16:40 +01:00
Héctor Ramón Jiménez
a7dba612f0 Write docs for iced and iced_native 2019-11-22 19:36:57 +01:00
Héctor Ramón Jiménez
428509c84a Merge branch 'master' into improvement/docs 2019-11-21 13:53:02 +01:00
Héctor Ramón Jiménez
65eb218d3d Move widgets from core to native and web
Also made fields private and improved `Renderer` traits.
2019-11-21 13:47:20 +01:00
Héctor Ramón Jiménez
6cdf69e76b Make width and height required methods 2019-11-16 22:08:49 +01:00
Héctor Ramón Jiménez
657e513651 Implement text_input::State::focused 2019-11-13 07:38:06 +01:00
Héctor Ramón Jiménez
621e5a55b7 Loosen layout::Limits for Container children 2019-11-13 07:37:42 +01:00
Héctor Ramón Jiménez
ef15a6b027 Fix Widget::width implementation of Checkbox 2019-11-13 07:37:13 +01:00
Héctor Ramón Jiménez
d4d14b68f4 Remove padding from Container for now 2019-11-11 05:37:51 +01:00
Héctor Ramón Jiménez
ceb02f4a36 Implement Container widget
Remove `align_self` and `justify_content` methods
2019-11-11 05:26:08 +01:00
Héctor Ramón Jiménez
0240c3981b Draft custom layout engine based on druid 2019-11-11 03:08:00 +01:00
Héctor Ramón Jiménez
2303111e09 Draft new layout API 2019-11-10 01:55:32 +01:00
Héctor Ramón Jiménez
c427ce0cec Reduce Copy constraint to Clone in Message 2019-11-02 02:15:17 +01:00
Héctor Ramón Jiménez
1242b334fe Merge branch 'feature/scrollables' into feature/text-input 2019-11-02 01:50:29 +01:00
Héctor Ramón Jiménez
85dab04965 Scale scrollbar movement by content ratio 2019-11-02 01:46:45 +01:00
Héctor Ramón Jiménez
51a0e99097 Implement cursor movement in TextInput 2019-10-31 03:50:40 +01:00
Héctor Ramón Jiménez
fedcab6f4f Handle some TextInput events 2019-10-30 05:00:12 +01:00
Héctor Ramón Jiménez
63cd0fd8eb Draft TextInput widget structure
Also started a `todos` example to showcase it!
2019-10-30 03:31:07 +01:00
Héctor Ramón Jiménez
bd5d871eb6 Handle touchpad scroll events 2019-10-29 19:00:46 +01:00
Héctor Ramón Jiménez
29588f604a Implement scrollbar interactions! 🎉 2019-10-29 05:09:54 +01:00
Héctor Ramón Jiménez
9dabbf7885 Provide Renderer to Widget::on_event
This allows us to implement configurable event processing that adapts to
different rendering strategies.
2019-10-29 03:34:21 +01:00
Héctor Ramón Jiménez
6602c1517c Complete Scrollable::hash_layout 2019-10-29 03:29:29 +01:00
Héctor Ramón Jiménez
a3c55f7517 Stop leaking impl details in scrollable Renderer 2019-10-29 02:13:22 +01:00
Héctor Ramón Jiménez
82c2aa6bfd Align items properly inside a Scrollable 2019-10-27 02:59:25 +01:00
Héctor Ramón Jiménez
63c10b67ab Remove Scrollable::justify_content method 2019-10-27 01:37:40 +02:00
Héctor Ramón Jiménez
09bd2c46c0 Expose scrollable offset properly 2019-10-27 01:24:08 +02:00
Héctor Ramón Jiménez
719c073fc6 Draft Scrollable widget (no clipping yet!) 2019-10-25 03:47:34 +02:00
Héctor Ramón Jiménez
f8a232c8af Remove generic handle in Image
For now, we will simply assume images will be loaded from a given path.
2019-10-22 23:20:24 +02:00
Héctor Ramón Jiménez
ccc463a7c0 Draw checkbox in iced_wgpu 2019-10-13 18:10:12 +02:00
Héctor Ramón Jiménez
8846a239cf Rename Renderer::Primitive to Renderer::Output 2019-10-11 22:15:39 +02:00
Héctor Ramón Jiménez
10e10e5e06 Make iced_core::Button customizable
Now it supports:
  - Any kind of content
  - Custom border radius
  - Custom background
2019-10-08 03:13:41 +02:00
Héctor Ramón Jiménez
a90f7fcb98 Move MouseCursor to iced_wgpu 2019-10-05 03:58:23 +02:00
Héctor Ramón Jiménez
a7d1194403 Add Renderer and Primitive concepts 2019-10-05 03:56:18 +02:00
Héctor Ramón Jiménez
eda1048dbc Complete some hash_layout implementations 2019-09-20 19:31:49 +02:00
Héctor Ramón Jiménez
b9e0f74948 Create iced_core and iced_native 2019-09-20 19:15:31 +02:00