You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Not a issue just additional functionality.
Describe the solution you'd like
Essentially i'd like to be able to display images in the title section of a tab, i'd like to be able to also control if the image + Title, just image or just title were shown.
to the TabViewer trait returning null as default.
if Null - behave as is
if not null - show the image to the left of the text in the title.
Describe alternatives you've considered
Also considered passing in having the proposed title_image method return Option<&RetainedImage> but this would require the egui_extras crate which is unnecessary and would make it a bit opinionated.
Additional context
Happy to make a PR if this is something you're interested in?
The text was updated successfully, but these errors were encountered:
The if the user wanted to have title and string, it'd be provided in the Image variant.
If not provided it could continue with the default title that is currently used?
alternatively, could add the additional method as mentioned in the initial comment, and if both title and image methods return values both will be used?
also happy with a different approach if you have a different preference?
Is your feature request related to a problem? Please describe.
Not a issue just additional functionality.
Describe the solution you'd like
Essentially i'd like to be able to display images in the title section of a tab, i'd like to be able to also control if the image + Title, just image or just title were shown.
i'm considering adding something like
fn title_image(&mut self, _tab: &mut Self::Tab, _ui: &mut Ui) -> Option<Image>:
to the TabViewer trait returning null as default.
if Null - behave as is
if not null - show the image to the left of the text in the title.
Describe alternatives you've considered
Also considered passing in having the proposed title_image method return Option<&RetainedImage> but this would require the egui_extras crate which is unnecessary and would make it a bit opinionated.
Additional context
Happy to make a PR if this is something you're interested in?
The text was updated successfully, but these errors were encountered: