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

pin widget #2673

Merged
merged 2 commits into from
Nov 24, 2024
Merged

pin widget #2673

merged 2 commits into from
Nov 24, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Nov 22, 2024

This PR introduces a new widget: pin.

A pin widget can be used to position a widget at some fixed coordinates inside its bounds. For instance:

container(pin("• (50, 50)").x(50).y(50))
    .width(500)
    .height(500)
    .style(container::bordered_box)

@hecrj hecrj added feature New feature or request widget layout addition labels Nov 22, 2024
@hecrj hecrj added this to the 0.14 milestone Nov 22, 2024
@hecrj hecrj merged commit e8f8216 into master Nov 24, 2024
30 checks passed
@hecrj hecrj deleted the feature/pin-widget branch November 24, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants