bevy::picking integration and refactoring (#167)
* wip: seperating cursor event handling preparing to directly use bevy::picking instead * mark: removed all padding and offset from render code * bug: not rendering until focussed? * feat: text now follows horizontal alignment * add: example basic_sprite_editor * feat: now centers vertically as well * todo: get proper clicking input to work Translating from widget to buffer coord space is annoying ngl * feat: top_padding works correctly with click input * refactor: moved output under render_implemetations module * bug: for some reason, renders the same image to all editors? * fix: editors render properly now * mark: shift key supported in sprites * feat: all click funcionatlity for sprites work! * feat: primary input uses bevy::picking * refactor: moved `RelativeCoord` into render_implementations/coords.rs * refactor: moved `CosmicWidgetSize` into render_implementations/widget_size.rs * refactor: Seperating input.rs into submodules * wip: refactoring input into drag * todo: finish hover impl * todo: implement proper hovering * feat: cursor hovering is well behaved! * mark: doesn't deselect on dragend * add: input/cursor_visbility.rs and various module refactors * feat: focus_on_click observer * mark: doctests all pass * refactor: scan.rs in render_implementations and removed editor examples * fmt * fix: compiles on wasm now * fix: ui clicking works now * todo: use new EditorBuffer API * todo: finish refactor into editor_buffer.rs module * todo: refactor all code to use EditorBuffer * feat: all compiles! * todo: fix bug where cursor doesn't show on empty editors * fix: cursor blinks in empty wdigets now * add: veritcal scrolling only kicks in with canvas larger than render target * fix: infinite line works * chore: added CosmicWrap::InfiniteLine where removed before because of pancis * chore: minor privacy restrictions * fix: no warnings in examples
Showing
- .gitignore 2 additions, 1 deletion.gitignore
- Cargo.lock 37 additions, 0 deletionsCargo.lock
- Cargo.toml 5 additions, 3 deletionsCargo.toml
- examples/basic_sprite.rs 18 additions, 26 deletionsexamples/basic_sprite.rs
- examples/basic_ui.rs 2 additions, 8 deletionsexamples/basic_ui.rs
- examples/bevy_editor_pls.rs 0 additions, 73 deletionsexamples/bevy_editor_pls.rs
- examples/every_option.rs 48 additions, 42 deletionsexamples/every_option.rs
- examples/font_per_widget.rs 33 additions, 30 deletionsexamples/font_per_widget.rs
- examples/image_background.rs 19 additions, 17 deletionsexamples/image_background.rs
- examples/multiple_sprites.rs 23 additions, 21 deletionsexamples/multiple_sprites.rs
- examples/password.rs 20 additions, 18 deletionsexamples/password.rs
- examples/placeholder.rs 21 additions, 26 deletionsexamples/placeholder.rs
- examples/readonly.rs 18 additions, 16 deletionsexamples/readonly.rs
- examples/scroll.rs 69 additions, 0 deletionsexamples/scroll.rs
- examples/sprite_and_ui_clickable.rs 39 additions, 39 deletionsexamples/sprite_and_ui_clickable.rs
- src/cosmic_edit.rs 115 additions, 48 deletionssrc/cosmic_edit.rs
- src/cursor.rs 0 additions, 107 deletionssrc/cursor.rs
- src/debug.rs 45 additions, 0 deletionssrc/debug.rs
- src/double_click.rs 91 additions, 0 deletionssrc/double_click.rs
- src/editor_buffer.rs 172 additions, 0 deletionssrc/editor_buffer.rs
Loading
Please register or sign in to comment