-
Notifications
You must be signed in to change notification settings - Fork 9.9k
raylib: label class #35571
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
base: master
Are you sure you want to change the base?
raylib: label class #35571
Conversation
@@ -26,6 +28,87 @@ | |||
} | |||
|
|||
|
|||
class Text(Widget): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore
font = gui_app.font(font_weight) | ||
text_size = measure_text_cached(font, text, font_size) | ||
display_text = text | ||
class Label(Widget): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deanlee what do you think instead of a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to open a PR to make the button and other functions widget classes?
This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity. |
No description provided.