Commit graph

23 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
59403b6ca8 Remove OutOfBounds variant from MouseCursor 2020-04-29 03:11:15 +02:00
Héctor Ramón Jiménez
b549b509c9 Align text in iced_wgpu on a case-by-case basis 2020-04-10 01:39:36 +02:00
Héctor Ramón Jiménez
d3dee849b7 Fix unnecessary clip of text input in iced_wgpu
It should only produce a `Clip` primitive when the contents overflow the
input now.
2020-04-09 05:17:06 +02:00
Héctor Ramón Jiménez
9afa31899f Fix measure_value for text input in iced_wgpu
It accounts for spaces at the start of text now.
2020-04-09 05:01:09 +02:00
Héctor Ramón Jiménez
79fed3d695 Remove unnecessary conversion in iced_wgpu 2020-03-29 15:21:18 +02:00
Héctor Ramón Jiménez
30f02345a8 Implement Renderer::find_cursor_position 2020-03-25 13:57:02 +01:00
Héctor Ramón Jiménez
6b89dd7db9 Improve text_input::cursor API 2020-03-24 20:23:31 +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
b2344a852e inital patch by Finnerale 2020-02-22 21:33:45 +01:00
sumibi-yakitori
713ed3aca1 Custom fonts can be set in the text input. 2020-01-27 04:28:40 +09:00
Héctor Ramón Jiménez
5af4159848 Draft basic styling for TextInput 2020-01-01 18:26:49 +01:00
Héctor Ramón Jiménez
9ab7c47dc7 Add border_width and border_color to Quad 2019-12-31 21:38:52 +01:00
Héctor Ramón Jiménez
36e7ac2048 Fix cursor positioning in TextInput on overflow 2019-12-21 05:30:48 +01:00
Héctor Ramón Jiménez
14fb7e13fb Place TextInput cursor position on click 2019-12-05 03:09:39 +01:00
Héctor Ramón Jiménez
0b5409c53d Fix TextInput inner border radius in iced_wgpu 2019-12-03 07:40:56 +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
6857829dc3 Draft Font type and implement Text::font 2019-11-13 07:22:21 +01:00
Héctor Ramón Jiménez
f0b1e65ba4 Move text logic in iced_wgpu to a text module 2019-11-13 03:54:36 +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
memoryruins
e7bd24c13e use Color's From impl in more places 2019-11-07 01:03:29 -05:00
Héctor Ramón Jiménez
b68ac3aa47 Merge branch 'master' into feature/performance-metrics 2019-11-05 03:43:54 +01:00
Héctor Ramón Jiménez
ef056d8489 Move Target to its own module 2019-11-02 20:20:35 +01:00
Renamed from wgpu/src/renderer/text_input.rs (Browse further)