-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add Label::halign
#4975
Merged
Merged
Add Label::halign
#4975
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustbasic
changed the title
Function to specify
Function to specify Aug 18, 2024
Align
to Lable
Align
to Label
maybe change the function name to text_align as this only aligns the text inside the label not the label itself |
Yes, that would be great too. Let's wait for emilk's review. |
emilk
requested changes
Aug 26, 2024
emilk
reviewed
Aug 26, 2024
emilk
approved these changes
Aug 26, 2024
486c
pushed a commit
to 486c/egui
that referenced
this pull request
Oct 9, 2024
Function to specify `Align` to `Label` There are cases where you want to display `Label` on the left or right regardless of other `Layout` specifications. Before : Note the part showing the rust source code. ![20240818-1](https://github.com/user-attachments/assets/a08f7594-1ec1-4c6a-b96d-1a5f735d02c1) After : Note the part showing the rust source code. ![20240818-2](https://github.com/user-attachments/assets/807ff9cf-f8cd-4415-9c78-b62869d1696d) --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
Function to specify `Align` to `Label` There are cases where you want to display `Label` on the left or right regardless of other `Layout` specifications. Before : Note the part showing the rust source code. ![20240818-1](https://github.com/user-attachments/assets/a08f7594-1ec1-4c6a-b96d-1a5f735d02c1) After : Note the part showing the rust source code. ![20240818-2](https://github.com/user-attachments/assets/807ff9cf-f8cd-4415-9c78-b62869d1696d) --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Function to specify
Align
toLabel
There are cases where you want to display
Label
on the left or right regardless of otherLayout
specifications.Before : Note the part showing the rust source code.
After : Note the part showing the rust source code.