Commit graph

243 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
Nikolai Vazquez
62725a76ef Add From impls for Length, Point, and Size 2019-11-29 20:52:26 -05:00
Héctor Ramón Jiménez
cdd34e1e4b Implement image viewer example 2019-11-30 02:14:56 +01:00
Héctor Ramón Jiménez
3a678561f2 Fix documentation for Axis 2019-11-23 12:00:50 +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
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
d3553adf27 Write documentation for iced_core 2019-11-18 07:16:19 +01:00
Héctor Ramón Jiménez
a803ab240b Rename Command::attempt to Command::perform 2019-11-18 00:10:40 +01:00
Héctor Ramón Jiménez
e640b87590 Derive Clone for text_input::State 2019-11-17 07:03:22 +01:00
Héctor Ramón Jiménez
e0bdb203f2 Implement future-based Command in iced_core 2019-11-17 07:02:38 +01:00
Héctor Ramón Jiménez
be5466a0a7 Remove argument from text_input::State::focused 2019-11-13 07:57:22 +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
2337029602 Remove default styling of Button
- A background will only show if explicitly set.
- `iced_wgpu` won't apply a `min_width` of 100 units anymore.
2019-11-13 07:36:50 +01:00
Héctor Ramón Jiménez
6857829dc3 Draft Font type and implement Text::font 2019-11-13 07:22:21 +01:00
Héctor Ramón Jiménez
860a6923bb Split text measurements cache from rendering cache
This speeds up layouting in the most common scenario considerably!
🎉
2019-11-11 06:07:31 +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
b31a80f2c0
Merge pull request #45 from memoryruins/smol-changes
Minor clean-up
2019-11-08 00:54:05 +01:00
memoryruins
b9398d2df8 minor changes to text_input's use of iterators 2019-11-07 01:07:00 -05:00
memoryruins
58bd0824bf impl From<Array> for Color 2019-11-07 01:02:20 -05:00
Héctor Ramón Jiménez
db716b3bdf Apply HiDPI to text, images, and clip primitives
Quads are a bit trickier to handle. We may need to change the shaders a
bit.
2019-11-05 05:26:20 +01:00
Héctor Ramón Jiménez
470266f540 Add horizontal offset to Primitive::Clip 2019-11-05 03:16:46 +01:00
Héctor Ramón Jiménez
ba470a2b2a Remove unnecessary code in Value 2019-11-05 02:58:42 +01:00
Héctor Ramón Jiménez
d3cdee1d9b Render TextInput cursor inside the clipping area 2019-10-31 04:43:53 +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
29588f604a Implement scrollbar interactions! 🎉 2019-10-29 05:09:54 +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
7fdd7f5952 Remove unused Align in core::Text 2019-10-23 02:35:08 +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
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
c9510db551 Render colored quads 2019-10-07 03:56:16 +02:00
Héctor Ramón Jiménez
5e28f80af8 Improve documentation 2019-09-24 15:15:34 +02:00
Héctor Ramón Jiménez
a975754ab0 Remove stretch optional dependency in core 2019-09-24 14:39:43 +02:00
Héctor Ramón Jiménez
b9e0f74948 Create iced_core and iced_native 2019-09-20 19:15:31 +02:00
Héctor Ramón Jiménez
a97401aed2 Rethink workspace structure 2019-09-14 19:16:06 +02:00
Héctor Ramón Jiménez
8b8f7563ad Switch to workspace layout 2019-09-10 19:41:49 +02:00