ZIm/crates/ui2/src/fixed.rs
Nate Butler a8bf0834e6
Button2 – Part1 (#3420)
## TODO

- [x] Remove `InteractionState`
- [ ] `Selectable` should use `Selection` instead of a boolean
- [x] Clean out ui2 prelude
- [ ] Build out button2 button types
- [ ] Port old buttons

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
2023-11-29 12:23:09 -05:00

6 lines
136 B
Rust

use gpui::DefiniteLength;
pub trait FixedWidth {
fn width(self, width: DefiniteLength) -> Self;
fn full_width(self) -> Self;
}