Skip to content

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

@bugadani

Description

@bugadani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions