mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Add doclinks to egui_extras::RetainedImage
This commit is contained in:
@@ -1513,8 +1513,8 @@ impl Ui {
|
||||
|
||||
/// Show an image here with the given size.
|
||||
///
|
||||
/// In order to display an image you must first acquire a [`TextureHandle`]
|
||||
/// using [`Context::load_texture`].
|
||||
/// In order to display an image you must first acquire a [`TextureHandle`].
|
||||
/// This is best done with [`egui_extras::RetainedImage`](https://docs.rs/egui_extras/latest/egui_extras/image/struct.RetainedImage.html) or [`Context::load_texture`].
|
||||
///
|
||||
/// ```
|
||||
/// struct MyImage {
|
||||
|
||||
@@ -3,8 +3,8 @@ use emath::Rot2;
|
||||
|
||||
/// An widget to show an image of a given size.
|
||||
///
|
||||
/// In order to display an image you must first acquire a [`TextureHandle`]
|
||||
/// using [`Context::load_texture`].
|
||||
/// In order to display an image you must first acquire a [`TextureHandle`].
|
||||
/// This is best done with [`egui_extras::RetainedImage`](https://docs.rs/egui_extras/latest/egui_extras/image/struct.RetainedImage.html) or [`Context::load_texture`].
|
||||
///
|
||||
/// ```
|
||||
/// struct MyImage {
|
||||
|
||||
Reference in New Issue
Block a user