Struct arcdps_imgui::Image
source · pub struct Image { /* private fields */ }
Expand description
Builder for an image widget
Implementations§
source§impl Image
impl Image
sourcepub const fn new(texture_id: TextureId, size: [f32; 2]) -> Image
pub const fn new(texture_id: TextureId, size: [f32; 2]) -> Image
Creates a new image builder with the given texture and size
sourcepub const fn tint_col(self, tint_col: [f32; 4]) -> Self
pub const fn tint_col(self, tint_col: [f32; 4]) -> Self
Sets the tint color (default: no tint color)
sourcepub const fn border_col(self, border_col: [f32; 4]) -> Self
pub const fn border_col(self, border_col: [f32; 4]) -> Self
Sets the border color (default: no border)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more