pub struct ImageButtonDeprecated { /* private fields */ }
Implementations§
Source§impl ImageButtonDeprecated
impl ImageButtonDeprecated
Sourcepub fn size(self, size: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
👎Deprecated: just set the size in the new
constructor.
pub fn size(self, size: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
new
constructor.Sets the image button size
Sourcepub fn uv0(self, uv0: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
pub fn uv0(self, uv0: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
Sets uv0 (default [0.0, 0.0]
)
Sourcepub fn uv1(self, uv1: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
pub fn uv1(self, uv1: impl Into<Vector2<f32>>) -> ImageButtonDeprecated
Sets uv1 (default [1.0, 1.0]
)
Sourcepub fn background_col(
self,
bg_col: impl Into<Vector4<f32>>,
) -> ImageButtonDeprecated
pub fn background_col( self, bg_col: impl Into<Vector4<f32>>, ) -> ImageButtonDeprecated
Sets the background color (default: no background color)
Sourcepub fn tint_col(
self,
tint_col: impl Into<Vector4<f32>>,
) -> ImageButtonDeprecated
pub fn tint_col( self, tint_col: impl Into<Vector4<f32>>, ) -> ImageButtonDeprecated
Sets the tint color (default: no tint color)
Sourcepub fn frame_padding(self, frame_padding: i32) -> ImageButtonDeprecated
pub fn frame_padding(self, frame_padding: i32) -> ImageButtonDeprecated
Sets the frame padding (default: uses frame padding from style).
< 0
: uses frame padding from style (default)= 0
: no framing> 0
: set framing size
Trait Implementations§
Source§impl Clone for ImageButtonDeprecated
impl Clone for ImageButtonDeprecated
Source§fn clone(&self) -> ImageButtonDeprecated
fn clone(&self) -> ImageButtonDeprecated
Returns a duplicate 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 ImageButtonDeprecated
impl Debug for ImageButtonDeprecated
impl Copy for ImageButtonDeprecated
Auto Trait Implementations§
impl Freeze for ImageButtonDeprecated
impl RefUnwindSafe for ImageButtonDeprecated
impl Send for ImageButtonDeprecated
impl Sync for ImageButtonDeprecated
impl Unpin for ImageButtonDeprecated
impl UnwindSafe for ImageButtonDeprecated
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more