Struct arcdps_imgui::ImageButton
source · pub struct ImageButton { /* private fields */ }
Expand description
Builder for an image button widget
Implementations§
source§impl ImageButton
impl ImageButton
sourcepub fn new(texture_id: TextureId, size: [f32; 2]) -> ImageButton
pub fn new(texture_id: TextureId, size: [f32; 2]) -> ImageButton
Creates a new image button builder with the given texture and size
sourcepub fn frame_padding(self, frame_padding: i32) -> Self
pub fn frame_padding(self, frame_padding: i32) -> Self
Sets the frame padding (default: uses frame padding from style).
< 0
: uses frame padding from style (default)= 0
: no framing> 0
: set framing size
sourcepub fn background_col(self, bg_col: [f32; 4]) -> Self
pub fn background_col(self, bg_col: [f32; 4]) -> Self
Sets the background color (default: no background color)
Trait Implementations§
source§impl Clone for ImageButton
impl Clone for ImageButton
source§fn clone(&self) -> ImageButton
fn clone(&self) -> ImageButton
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageButton
impl Debug for ImageButton
impl Copy for ImageButton
Auto Trait Implementations§
impl Freeze for ImageButton
impl RefUnwindSafe for ImageButton
impl Send for ImageButton
impl Sync for ImageButton
impl Unpin for ImageButton
impl UnwindSafe for ImageButton
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)