Skip to content

Typeclass for size #18

Open
Open
@RageYL

Description

@RageYL

Hi

I want to create a typeclass that would provide function to get/set the size/width/height.
At first i was thinking about RenderTexture and RenderWindow only. (one issue is that RenderTexture cannot set the size, so making two typeclasses would probably be better)
while i was looking at the source i found that some types, like RectangleShape already had setSize/getSize. it would be nice to make those types instance of the typeclass. but RectangleShape have size expressed in Float and RenderWindow in Int. the only way to make it works (that i know) would be to use MultiParamTypeClasses, but i don't know if you would accept such a flag.

I just wanted to have your thoughs about that: should i stop, should i try another approach...
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions