[−][src]Struct imgui::ImageButton
Builder for an image button widget
Implementations
impl ImageButton
[src]
pub fn new(texture_id: TextureId, size: [f32; 2]) -> ImageButton
[src]
Creates a new image button builder with the given texture and size
pub fn size(self, size: [f32; 2]) -> Self
[src]
Sets the image button size
pub fn uv0(self, uv0: [f32; 2]) -> Self
[src]
Sets uv0 (default [0.0, 0.0]
)
pub fn uv1(self, uv1: [f32; 2]) -> Self
[src]
Sets uv1 (default [1.0, 1.0]
)
pub fn frame_padding(self, frame_padding: i32) -> Self
[src]
Sets the frame padding (default: uses frame padding from style).
< 0
: uses frame padding from style (default)= 0
: no framing> 0
: set framing size
pub fn background_col(self, bg_col: [f32; 4]) -> Self
[src]
Sets the background color (default: no background color)
pub fn tint_col(self, tint_col: [f32; 4]) -> Self
[src]
Sets the tint color (default: no tint color)
pub fn build(self, _: &Ui) -> bool
[src]
Builds the image button
Trait Implementations
impl Clone for ImageButton
[src]
fn clone(&self) -> ImageButton
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageButton
[src]
impl Debug for ImageButton
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageButton
impl Send for ImageButton
impl Sync for ImageButton
impl Unpin for ImageButton
impl UnwindSafe for ImageButton
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,