Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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