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

ui: API change, made a UiPosition enum #774

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Sxmourai
Copy link

@Sxmourai Sxmourai commented Aug 6, 2024

This is the PR for the issue: #773
I think we could also add variants to the UiPosition enum with anchors, percents of parent, ...
Also we could do the same thing with size:
enum UiSize {
Absolute(Vec2),
/// Makes a size of maximum width and f32 height
FullWidth(f32),
/// Makes a size of maximum height and f32 width
FullHeight(f32),
/// Makes a size of maximum width and height
Full,
...
}
Changes are welcome

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

Successfully merging this pull request may close these issues.

1 participant