basalt icon indicating copy to clipboard operation
basalt copied to clipboard

Widgets [WIP]

Open AustinJ235 opened this issue 3 years ago • 3 comments

This pull request is for the new widgets and it related system. [WIP!]

Expected Features

  • All widgets will share a common WidgetTheme.
  • Positioning of widgets will be exactly the same as Bins. They will all implement Deref where the target is an Arc<Bin>. This Arc<Bin> will be the container Bin.

Planned Widgets

  • Button
  • Checkbox
  • Combo Box
  • Context Menu
  • Horizontal Scaler
  • Horizontal Scrollbar
  • Label
  • List Box
  • Menu Bar
  • Multi Line Entry
  • Pager
  • Progress bar
  • Radio Button
  • Single Line Entry
  • Spin Button
  • Status
  • Switch Button
  • Toggle Button
  • Vertical Scaler
  • Vertical Scrollbar

Notes

  • Existing Checkbox, OnOffButton, Scrollbar, and Slider will be deprecated.
  • Not recommended to use this branch as things will be changing as I implement more widgets/features. I have no set plan as to exactly how it'll be.
  • Expected release date is unknown. Hopefully in time for the next release. Text rendering is sub ideal currently but it works in its current state, so possibly the release after.

Final Thoughts

See something I missed? A widget you want implemented? Provide some feedback for this next major feature.

AustinJ235 avatar Jul 26 '21 10:07 AustinJ235

Should widgets impl Deref into Arc<Bin>? This could lead to confusion with how hooks should be handled. A particular widget may have want to have specific behavior not tied to just the container.

AustinJ235 avatar Jul 27 '21 10:07 AustinJ235

If there is better use those. This crate is mainly for my personal applications. If it doesn't work for you don't use it.

This specific pull request is not that important and has been set off to the side for now. That is why it isn't being updated.

AustinJ235 avatar Nov 29 '21 00:11 AustinJ235

If there is better use those. This crate is mainly for my personal applications. If it doesn't work for you don't use it.

This specific pull request is not that important and has been set off to the side for now. That is why it isn't being updated.

reasonably put, I agree.

CCCCC7 avatar Nov 29 '21 00:11 CCCCC7