pub struct ImageSlider<T, K> {
    common: CommonBuilder,
    value: T,
    min: T,
    max: T,
    soft_max: T,
    skew: f32,
    track: Track,
    slider: Slider,
    kind: PhantomData<K>,
}Expand description
Linear value selection.
If the slider’s width is greater than its height, it will automatically become a horizontal slider, otherwise it will be a vertical slider.
Its reaction is triggered if the value is updated or if the mouse button is released while the cursor is above the rectangle.
Fields§
§common: CommonBuilder§value: T§min: T§max: T§soft_max: T§skew: f32The amount in which the slider’s display should be skewed.
Higher skew amounts (above 1.0) will weigh lower values.
Lower skew amounts (below 1.0) will weigh higher values.
All skew amounts should be greater than 0.0.
track: Track§slider: Slider§kind: PhantomData<K>Implementations§
Source§impl<T, K> ImageSlider<T, K>
 
impl<T, K> ImageSlider<T, K>
Sourcepub fn skew(self, skew: f32) -> Self
 
pub fn skew(self, skew: f32) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn soft_max(self, soft_max: T) -> Self
 
pub fn soft_max(self, soft_max: T) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn pad_track(self, pad_track: (f32, f32)) -> Self
 
pub fn pad_track(self, pad_track: (f32, f32)) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn hover_image(self, hover_image: Id) -> Self
 
pub fn hover_image(self, hover_image: Id) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn press_image(self, press_image: Id) -> Self
 
pub fn press_image(self, press_image: Id) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn track_breadth(self, track_breadth: f32) -> Self
 
pub fn track_breadth(self, track_breadth: f32) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn slider_length(self, slider_length: f32) -> Self
 
pub fn slider_length(self, slider_length: f32) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn track_color(self, track_color: Color) -> Self
 
pub fn track_color(self, track_color: Color) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn slider_color(self, slider_color: Color) -> Self
 
pub fn slider_color(self, slider_color: Color) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
fn new(
    value: T,
    min: T,
    max: T,
    slider_image_id: Id,
    track_image_id: Id,
) -> Selfwhere
    T: Copy,
Source§impl<T> ImageSlider<T, Continuous>where
    T: Float,
 
impl<T> ImageSlider<T, Continuous>where
    T: Float,
pub fn continuous( value: T, min: T, max: T, slider_image_id: Id, track_image_id: Id, ) -> Self
Trait Implementations§
Source§impl<T, K> Colorable for ImageSlider<T, K>
 
impl<T, K> Colorable for ImageSlider<T, K>
Source§impl<T, K> Common for ImageSlider<T, K>
 
impl<T, K> Common for ImageSlider<T, K>
Source§impl<T, K> Widget for ImageSlider<T, K>
 
impl<T, K> Widget for ImageSlider<T, K>
Source§fn update(self, args: UpdateArgs<'_, '_, '_, '_, Self>) -> Self::Event
 
fn update(self, args: UpdateArgs<'_, '_, '_, '_, Self>) -> Self::Event
Update the state of the Slider.
Source§type Event = Option<T>
 
type Event = Option<T>
Widget::set function. Read moreSource§type Style = ()
 
type Style = ()
Style type. This type is intended to
contain high-level styling information for the widget that can be optionally specified by
a user of the widget. Read moreSource§fn init_state(&self, id_gen: Generator<'_>) -> Self::State
 
fn init_state(&self, id_gen: Generator<'_>) -> Self::State
§fn default_x_position(&self, ui: &Ui) -> Position
 
fn default_x_position(&self, ui: &Ui) -> Position
§fn default_y_position(&self, ui: &Ui) -> Position
 
fn default_y_position(&self, ui: &Ui) -> Position
§fn default_x_dimension(&self, ui: &Ui) -> Dimension
 
fn default_x_dimension(&self, ui: &Ui) -> Dimension
§fn default_y_dimension(&self, ui: &Ui) -> Dimension
 
fn default_y_dimension(&self, ui: &Ui) -> Dimension
§fn drag_area(
    &self,
    _dim: [f64; 2],
    _style: &Self::Style,
    _theme: &Theme,
) -> Option<Rect>
 
fn drag_area( &self, _dim: [f64; 2], _style: &Self::Style, _theme: &Theme, ) -> Option<Rect>
§fn kid_area(&self, args: KidAreaArgs<'_, Self>) -> KidArea
 
fn kid_area(&self, args: KidAreaArgs<'_, Self>) -> KidArea
Place Position methods.§fn is_over(&self) -> fn(&Container, [f64; 2], &Theme) -> IsOver
 
fn is_over(&self) -> fn(&Container, [f64; 2], &Theme) -> IsOver
§fn parent(self, parent_id: NodeIndex) -> Self
 
fn parent(self, parent_id: NodeIndex) -> Self
§fn place_on_kid_area(self, b: bool) -> Self
 
fn place_on_kid_area(self, b: bool) -> Self
§fn graphics_for(self, id: NodeIndex) -> Self
 
fn graphics_for(self, id: NodeIndex) -> Self
§fn floating(self, is_floating: bool) -> Self
 
fn floating(self, is_floating: bool) -> Self
false).
A typical example of a floating widget would be a pop-up or alert window. Read more§fn crop_kids(self) -> Self
 
fn crop_kids(self) -> Self
kid_area of this widget.§fn scroll_kids(self) -> Self
 
fn scroll_kids(self) -> Self
KidArea scrollable. Read more§fn scroll_kids_vertically(self) -> Self
 
fn scroll_kids_vertically(self) -> Self
KidArea scrollable. Read more§fn scroll_kids_horizontally(self) -> Self
 
fn scroll_kids_horizontally(self) -> Self
KidArea is scrollable (the default is false). Read more§fn and<F>(self, build: F) -> Selfwhere
    F: FnOnce(Self) -> Self,
 
fn and<F>(self, build: F) -> Selfwhere
    F: FnOnce(Self) -> Self,
build function. Read more§fn and_mut<F>(self, mutate: F) -> Selfwhere
    F: FnOnce(&mut Self),
 
fn and_mut<F>(self, mutate: F) -> Selfwhere
    F: FnOnce(&mut Self),
mutate function. Read more§fn and_if<F>(self, cond: bool, build: F) -> Selfwhere
    F: FnOnce(Self) -> Self,
 
fn and_if<F>(self, cond: bool, build: F) -> Selfwhere
    F: FnOnce(Self) -> Self,
build function. Read moreAuto Trait Implementations§
impl<T, K> Freeze for ImageSlider<T, K>where
    T: Freeze,
impl<T, K> RefUnwindSafe for ImageSlider<T, K>where
    T: RefUnwindSafe,
    K: RefUnwindSafe,
impl<T, K> Send for ImageSlider<T, K>
impl<T, K> Sync for ImageSlider<T, K>
impl<T, K> Unpin for ImageSlider<T, K>
impl<T, K> UnwindSafe for ImageSlider<T, K>where
    T: UnwindSafe,
    K: UnwindSafe,
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
Source§impl<T> CheckedAs for T
 
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
 
fn checked_as<Dst>(self) -> Option<Dst>where
    T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
 
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
    Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
 
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Conv for T
 
impl<T> Conv for T
§impl<T> Downcast for Twhere
    T: Any,
 
impl<T> Downcast for Twhere
    T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
 
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
 
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
 
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
 
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
 
impl<T> DowncastSync for T
§impl<T> FmtForward for T
 
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
 
fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
 
fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
 
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
 
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
 
fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
 
fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
 
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
 
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
 
fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
§impl<S> FromSample<S> for S
 
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> GetSetFdFlags for T
 
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
    T: AsFilelike,
 
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
    T: AsFilelike,
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
    T: AsFilelike,
 
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
    T: AsFilelike,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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§impl<'src, T> IntoMaybe<'src, T> for Twhere
    T: 'src,
 
impl<'src, T> IntoMaybe<'src, T> for Twhere
    T: 'src,
§impl<F, T> IntoSample<T> for Fwhere
    T: FromSample<F>,
 
impl<F, T> IntoSample<T> for Fwhere
    T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<W> ItemTooltipable for Wwhere
    W: Widget,
 
impl<W> ItemTooltipable for Wwhere
    W: Widget,
fn with_item_tooltip<'a, I>( self, tooltip_manager: &'a mut ItemTooltipManager, items: I, prices: &'a Option<SitePrices>, tooltip: &'a ItemTooltip<'a>, ) -> ItemTooltipped<'a, W, I>
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
    Dst: LosslessTryFrom<Src>,
 
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
    Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
 
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
    Dst: LossyFrom<Src>,
 
impl<Src, Dst> LossyInto<Dst> for Srcwhere
    Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
 
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
 
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
    T: OverflowingCast<Dst>,
 
fn overflowing_as<Dst>(self) -> (Dst, bool)where
    T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
    Src: OverflowingCast<Dst>,
 
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
    Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
 
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pipe for Twhere
    T: ?Sized,
 
impl<T> Pipe for Twhere
    T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
 
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
 
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R,
) -> R
 
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
 
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
 
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
 
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> Pointee for T
 
impl<T> Pointee for T
Source§impl<W> Position for Wwhere
    W: Positionable,
 
impl<W> Position for Wwhere
    W: Positionable,
fn position(self, request: PositionSpecifier) -> W
§impl<W> Positionable for Wwhere
    W: Widget,
 
impl<W> Positionable for Wwhere
    W: Widget,
§fn x_position(self, x: Position) -> W
 
fn x_position(self, x: Position) -> W
§fn y_position(self, y: Position) -> W
 
fn y_position(self, y: Position) -> W
§fn get_x_position(&self, ui: &Ui) -> Position
 
fn get_x_position(&self, ui: &Ui) -> Position
§fn get_y_position(&self, ui: &Ui) -> Position
 
fn get_y_position(&self, ui: &Ui) -> Position
§fn depth(self, depth: f32) -> W
 
fn depth(self, depth: f32) -> W
§fn x_position_relative(self, x: Relative) -> Self
 
fn x_position_relative(self, x: Relative) -> Self
§fn y_position_relative(self, y: Relative) -> Self
 
fn y_position_relative(self, y: Relative) -> Self
§fn x_y_position_relative(self, x: Relative, y: Relative) -> Self
 
fn x_y_position_relative(self, x: Relative, y: Relative) -> Self
§fn x_position_relative_to(self, other: NodeIndex, x: Relative) -> Self
 
fn x_position_relative_to(self, other: NodeIndex, x: Relative) -> Self
§fn y_position_relative_to(self, other: NodeIndex, y: Relative) -> Self
 
fn y_position_relative_to(self, other: NodeIndex, y: Relative) -> Self
§fn x_y_position_relative_to(
    self,
    other: NodeIndex,
    x: Relative,
    y: Relative,
) -> Self
 
fn x_y_position_relative_to( self, other: NodeIndex, x: Relative, y: Relative, ) -> Self
§fn x_relative(self, x: f64) -> Self
 
fn x_relative(self, x: f64) -> Self
§fn y_relative(self, y: f64) -> Self
 
fn y_relative(self, y: f64) -> Self
§fn xy_relative(self, point: [f64; 2]) -> Self
 
fn xy_relative(self, point: [f64; 2]) -> Self
§fn x_y_relative(self, x: f64, y: f64) -> Self
 
fn x_y_relative(self, x: f64, y: f64) -> Self
§fn x_relative_to(self, other: NodeIndex, x: f64) -> Self
 
fn x_relative_to(self, other: NodeIndex, x: f64) -> Self
§fn y_relative_to(self, other: NodeIndex, y: f64) -> Self
 
fn y_relative_to(self, other: NodeIndex, y: f64) -> Self
§fn xy_relative_to(self, other: NodeIndex, xy: [f64; 2]) -> Self
 
fn xy_relative_to(self, other: NodeIndex, xy: [f64; 2]) -> Self
§fn x_y_relative_to(self, other: NodeIndex, x: f64, y: f64) -> Self
 
fn x_y_relative_to(self, other: NodeIndex, x: f64, y: f64) -> Self
§fn x_direction(self, direction: Direction, x: f64) -> Self
 
fn x_direction(self, direction: Direction, x: f64) -> Self
§fn y_direction(self, direction: Direction, y: f64) -> Self
 
fn y_direction(self, direction: Direction, y: f64) -> Self
§fn left(self, x: f64) -> Self
 
fn left(self, x: f64) -> Self
§fn right(self, x: f64) -> Self
 
fn right(self, x: f64) -> Self
§fn x_direction_from(
    self,
    other: NodeIndex,
    direction: Direction,
    x: f64,
) -> Self
 
fn x_direction_from( self, other: NodeIndex, direction: Direction, x: f64, ) -> Self
§fn y_direction_from(
    self,
    other: NodeIndex,
    direction: Direction,
    y: f64,
) -> Self
 
fn y_direction_from( self, other: NodeIndex, direction: Direction, y: f64, ) -> Self
§fn down_from(self, other: NodeIndex, y: f64) -> Self
 
fn down_from(self, other: NodeIndex, y: f64) -> Self
§fn up_from(self, other: NodeIndex, y: f64) -> Self
 
fn up_from(self, other: NodeIndex, y: f64) -> Self
§fn left_from(self, other: NodeIndex, x: f64) -> Self
 
fn left_from(self, other: NodeIndex, x: f64) -> Self
§fn right_from(self, other: NodeIndex, x: f64) -> Self
 
fn right_from(self, other: NodeIndex, x: f64) -> Self
§fn align_left(self) -> Self
 
fn align_left(self) -> Self
Directions).§fn align_middle_x(self) -> Self
 
fn align_middle_x(self) -> Self
Directions).§fn align_right(self) -> Self
 
fn align_right(self) -> Self
Directions).§fn align_top(self) -> Self
 
fn align_top(self) -> Self
Directions).§fn align_middle_y(self) -> Self
 
fn align_middle_y(self) -> Self
Directions).§fn align_bottom(self) -> Self
 
fn align_bottom(self) -> Self
Directions).§fn x_align_to(self, other: NodeIndex, align: Align) -> Self
 
fn x_align_to(self, other: NodeIndex, align: Align) -> Self
§fn y_align_to(self, other: NodeIndex, align: Align) -> Self
 
fn y_align_to(self, other: NodeIndex, align: Align) -> Self
§fn align_left_of(self, other: NodeIndex) -> Self
 
fn align_left_of(self, other: NodeIndex) -> Self
Directions).§fn align_middle_x_of(self, other: NodeIndex) -> Self
 
fn align_middle_x_of(self, other: NodeIndex) -> Self
Directions).§fn align_right_of(self, other: NodeIndex) -> Self
 
fn align_right_of(self, other: NodeIndex) -> Self
Directions).§fn align_top_of(self, other: NodeIndex) -> Self
 
fn align_top_of(self, other: NodeIndex) -> Self
Directions).§fn align_middle_y_of(self, other: NodeIndex) -> Self
 
fn align_middle_y_of(self, other: NodeIndex) -> Self
Directions).§fn align_bottom_of(self, other: NodeIndex) -> Self
 
fn align_bottom_of(self, other: NodeIndex) -> Self
Directions).§fn x_place_on(self, other: NodeIndex, place: Place) -> Self
 
fn x_place_on(self, other: NodeIndex, place: Place) -> Self
other Widget along the x axis.§fn y_place_on(self, other: NodeIndex, place: Place) -> Self
 
fn y_place_on(self, other: NodeIndex, place: Place) -> Self
other Widget along the y axis.§fn top_left_of(self, other: NodeIndex) -> Self
 
fn top_left_of(self, other: NodeIndex) -> Self
§fn top_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn top_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn top_left_with_margins_on(self, other: NodeIndex, top: f64, left: f64) -> Self
 
fn top_left_with_margins_on(self, other: NodeIndex, top: f64, left: f64) -> Self
§fn top_right_of(self, other: NodeIndex) -> Self
 
fn top_right_of(self, other: NodeIndex) -> Self
§fn top_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn top_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn top_right_with_margins_on(
    self,
    other: NodeIndex,
    top: f64,
    right: f64,
) -> Self
 
fn top_right_with_margins_on( self, other: NodeIndex, top: f64, right: f64, ) -> Self
§fn bottom_left_of(self, other: NodeIndex) -> Self
 
fn bottom_left_of(self, other: NodeIndex) -> Self
§fn bottom_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn bottom_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn bottom_left_with_margins_on(
    self,
    other: NodeIndex,
    bottom: f64,
    left: f64,
) -> Self
 
fn bottom_left_with_margins_on( self, other: NodeIndex, bottom: f64, left: f64, ) -> Self
§fn bottom_right_of(self, other: NodeIndex) -> Self
 
fn bottom_right_of(self, other: NodeIndex) -> Self
§fn bottom_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn bottom_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn bottom_right_with_margins_on(
    self,
    other: NodeIndex,
    bottom: f64,
    right: f64,
) -> Self
 
fn bottom_right_with_margins_on( self, other: NodeIndex, bottom: f64, right: f64, ) -> Self
§fn mid_top_of(self, other: NodeIndex) -> Self
 
fn mid_top_of(self, other: NodeIndex) -> Self
§fn mid_top_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn mid_top_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn mid_bottom_of(self, other: NodeIndex) -> Self
 
fn mid_bottom_of(self, other: NodeIndex) -> Self
§fn mid_bottom_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn mid_bottom_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn mid_left_of(self, other: NodeIndex) -> Self
 
fn mid_left_of(self, other: NodeIndex) -> Self
§fn mid_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn mid_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn mid_right_of(self, other: NodeIndex) -> Self
 
fn mid_right_of(self, other: NodeIndex) -> Self
§fn mid_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
 
fn mid_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
§fn x_place(self, place: Place) -> Self
 
fn x_place(self, place: Place) -> Self
§fn y_place(self, place: Place) -> Self
 
fn y_place(self, place: Place) -> Self
§fn top_left_with_margin(self, mgn: f64) -> Self
 
fn top_left_with_margin(self, mgn: f64) -> Self
§fn top_left_with_margins(self, top: f64, left: f64) -> Self
 
fn top_left_with_margins(self, top: f64, left: f64) -> Self
§fn top_right_with_margin(self, mgn: f64) -> Self
 
fn top_right_with_margin(self, mgn: f64) -> Self
§fn top_right_with_margins(self, top: f64, right: f64) -> Self
 
fn top_right_with_margins(self, top: f64, right: f64) -> Self
§fn bottom_left(self) -> Self
 
fn bottom_left(self) -> Self
§fn bottom_left_with_margin(self, mgn: f64) -> Self
 
fn bottom_left_with_margin(self, mgn: f64) -> Self
§fn bottom_left_with_margins(self, bottom: f64, left: f64) -> Self
 
fn bottom_left_with_margins(self, bottom: f64, left: f64) -> Self
§fn bottom_right(self) -> Self
 
fn bottom_right(self) -> Self
§fn bottom_right_with_margin(self, mgn: f64) -> Self
 
fn bottom_right_with_margin(self, mgn: f64) -> Self
§fn bottom_right_with_margins(self, bottom: f64, right: f64) -> Self
 
fn bottom_right_with_margins(self, bottom: f64, right: f64) -> Self
§fn mid_top(self) -> Self
 
fn mid_top(self) -> Self
§fn mid_top_with_margin(self, mgn: f64) -> Self
 
fn mid_top_with_margin(self, mgn: f64) -> Self
§fn mid_bottom(self) -> Self
 
fn mid_bottom(self) -> Self
§fn mid_bottom_with_margin(self, mgn: f64) -> Self
 
fn mid_bottom_with_margin(self, mgn: f64) -> Self
§fn mid_left(self) -> Self
 
fn mid_left(self) -> Self
§fn mid_left_with_margin(self, mgn: f64) -> Self
 
fn mid_left_with_margin(self, mgn: f64) -> Self
§fn mid_right(self) -> Self
 
fn mid_right(self) -> Self
§fn mid_right_with_margin(self, mgn: f64) -> Self
 
fn mid_right_with_margin(self, mgn: f64) -> Self
Source§impl<T> SaturatingAs for T
 
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
    T: SaturatingCast<Dst>,
 
fn saturating_as<Dst>(self) -> Dstwhere
    T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
    Src: SaturatingCast<Dst>,
 
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
    Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
 
fn saturating_cast_from(src: Src) -> Dst
§impl<W> Sizeable for Wwhere
    W: Widget,
 
impl<W> Sizeable for Wwhere
    W: Widget,
§fn get_x_dimension(&self, ui: &Ui) -> Dimension
 
fn get_x_dimension(&self, ui: &Ui) -> Dimension
We attempt to retrieve the x Dimension for the widget via the following:
- Check for specified value at maybe_x_dimension
- Otherwise, use the default returned by Widget::default_x_dimension.
§fn get_y_dimension(&self, ui: &Ui) -> Dimension
 
fn get_y_dimension(&self, ui: &Ui) -> Dimension
We attempt to retrieve the y Dimension for the widget via the following:
- Check for specified value at maybe_y_dimension
- Otherwise, use the default returned by Widget::default_y_dimension.
§fn x_dimension(self, w: Dimension) -> W
 
fn x_dimension(self, w: Dimension) -> W
§fn y_dimension(self, h: Dimension) -> W
 
fn y_dimension(self, h: Dimension) -> W
§fn padded_w_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_w_of(self, idx: NodeIndex, pad: f64) -> Self
§fn h_of(self, idx: NodeIndex) -> Self
 
fn h_of(self, idx: NodeIndex) -> Self
§fn padded_h_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_h_of(self, idx: NodeIndex, pad: f64) -> Self
§fn wh_of(self, idx: NodeIndex) -> Self
 
fn wh_of(self, idx: NodeIndex) -> Self
§fn padded_wh_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_wh_of(self, idx: NodeIndex, pad: f64) -> Self
§fn kid_area_w_of(self, idx: NodeIndex) -> Self
 
fn kid_area_w_of(self, idx: NodeIndex) -> Self
§fn padded_kid_area_w_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_kid_area_w_of(self, idx: NodeIndex, pad: f64) -> Self
KidArea width for the widget at the given index, padded at both ends
by the given scalar.§fn kid_area_h_of(self, idx: NodeIndex) -> Self
 
fn kid_area_h_of(self, idx: NodeIndex) -> Self
KidArea height of the widget at the given index.§fn padded_kid_area_h_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_kid_area_h_of(self, idx: NodeIndex, pad: f64) -> Self
KidArea height of the widget at the given index, padded at both
ends by the given scalar.§fn kid_area_wh_of(self, idx: NodeIndex) -> Self
 
fn kid_area_wh_of(self, idx: NodeIndex) -> Self
KidArea dimensions of the widget at the given index.§fn padded_kid_area_wh_of(self, idx: NodeIndex, pad: f64) -> Self
 
fn padded_kid_area_wh_of(self, idx: NodeIndex, pad: f64) -> Self
KidArea dimensions of the widget at the given index, padded at
all four edges by the given scalar.Source§impl<Context> SubContext<Context> for Context
 
impl<Context> SubContext<Context> for Context
fn sub_context(self) -> Context
§impl<T> Tap for T
 
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
 
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
 
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
 
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.