Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a view wrapper (Border<V>?) compatibility struct that implements a box model #18

Open
bugadani opened this issue Mar 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bugadani
Copy link
Owner

bugadani commented Mar 14, 2021

Would enable support for margin, padding and border. Most efficient would be to use different single-property structs (i.e. separate Margin), and implement extension methods for View objects.

i.e.:

let view = SomeView(...).border(1, BinaryColor::On); // view: Border<SomeView, BinaryColor>

This single wrapper approach only requires a single spacing property (only margin or only padding) as well as enables multiple borders.

@bugadani bugadani added the enhancement New feature or request label Mar 14, 2021
@bugadani
Copy link
Owner Author

Would this better belong to a different crate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant