Struct veloren_voxygen::ui::ItemTooltip
source · pub struct ItemTooltip<'a> {Show 17 fields
common: CommonBuilder,
item: &'a dyn ItemDesc,
msm: &'a MaterialStatManifest,
rbm: &'a RecipeBookManifest,
prices: &'a Option<SitePrices>,
image: Option<Id>,
image_dims: Option<(f64, f64)>,
style: Style,
transparency: f32,
image_frame: ImageFrame,
client: &'a Client,
info: &'a HudInfo,
imgs: &'a Imgs,
item_imgs: &'a ItemImgs,
pulse: f32,
localized_strings: &'a Localization,
item_i18n: &'a ItemI18n,
}
Expand description
A widget for displaying tooltips
Fields§
§common: CommonBuilder
§item: &'a dyn ItemDesc
§msm: &'a MaterialStatManifest
§rbm: &'a RecipeBookManifest
§prices: &'a Option<SitePrices>
§image: Option<Id>
§image_dims: Option<(f64, f64)>
§style: Style
§transparency: f32
§image_frame: ImageFrame
§client: &'a Client
§info: &'a HudInfo
§imgs: &'a Imgs
§item_imgs: &'a ItemImgs
§pulse: f32
§localized_strings: &'a Localization
§item_i18n: &'a ItemI18n
Implementations§
source§impl<'a> ItemTooltip<'a>
impl<'a> ItemTooltip<'a>
sourcepub fn desc_text_color(self, desc_text_color: Color) -> Self
pub fn desc_text_color(self, desc_text_color: Color) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn title_font_size(self, title_font_size: FontSize) -> Self
pub fn title_font_size(self, title_font_size: FontSize) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn desc_font_size(self, desc_font_size: FontSize) -> Self
pub fn desc_font_size(self, desc_font_size: FontSize) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn title_justify(self, title_justify: Justify) -> Self
pub fn title_justify(self, title_justify: Justify) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn desc_justify(self, desc_justify: Justify) -> Self
pub fn desc_justify(self, desc_justify: Justify) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn title_line_spacing(self, title_line_spacing: Scalar) -> Self
pub fn title_line_spacing(self, title_line_spacing: Scalar) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcepub fn desc_line_spacing(self, desc_line_spacing: Scalar) -> Self
pub fn desc_line_spacing(self, desc_line_spacing: Scalar) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn image(self, image: Option<Id>) -> Self
fn image(self, image: Option<Id>) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn item(self, item: &'a dyn ItemDesc) -> Self
fn item(self, item: &'a dyn ItemDesc) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn prices(self, prices: &'a Option<SitePrices>) -> Self
fn prices(self, prices: &'a Option<SitePrices>) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn msm(self, msm: &'a MaterialStatManifest) -> Self
fn msm(self, msm: &'a MaterialStatManifest) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn rbm(self, rbm: &'a RecipeBookManifest) -> Self
fn rbm(self, rbm: &'a RecipeBookManifest) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn image_dims(self, image_dims: Option<(f64, f64)>) -> Self
fn image_dims(self, image_dims: Option<(f64, f64)>) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
sourcefn transparency(self, transparency: f32) -> Self
fn transparency(self, transparency: f32) -> Self
Build the type’s self.$($assignee).+ with the given $Type.
pub fn new( image_frame: ImageFrame, client: &'a Client, info: &'a HudInfo, imgs: &'a Imgs, item_imgs: &'a ItemImgs, pulse: f32, msm: &'a MaterialStatManifest, rbm: &'a RecipeBookManifest, localized_strings: &'a Localization, item_i18n: &'a ItemI18n, ) -> Self
sourcefn text_image_width(&self, total_width: f64) -> (f64, f64)
fn text_image_width(&self, total_width: f64) -> (f64, f64)
Align the text to the left of its bounding Rect’s x axis range. Align the text to the middle of its bounding Rect’s x axis range. Align the text to the right of its bounding Rect’s x axis range.
Trait Implementations§
source§impl<'a> Clone for ItemTooltip<'a>
impl<'a> Clone for ItemTooltip<'a>
source§fn clone(&self) -> ItemTooltip<'a>
fn clone(&self) -> ItemTooltip<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'a> Colorable for ItemTooltip<'a>
impl<'a> Colorable for ItemTooltip<'a>
source§impl<'a> Common for ItemTooltip<'a>
impl<'a> Common for ItemTooltip<'a>
source§impl<'a> Widget for ItemTooltip<'a>
impl<'a> Widget for ItemTooltip<'a>
source§fn default_x_dimension(&self, _ui: &Ui) -> Dimension
fn default_x_dimension(&self, _ui: &Ui) -> Dimension
Default width is based on the description font size unless the text is small enough to fit on a single line
§type Event = ()
type Event = ()
Widget::set
function. Read more§type Style = Style
type Style = 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
source§fn update(self, args: UpdateArgs<'_, '_, '_, '_, Self>)
fn update(self, args: UpdateArgs<'_, '_, '_, '_, Self>)
state
field within the UpdateArgs). Read moresource§fn default_y_dimension(&self, ui: &Ui) -> Dimension
fn default_y_dimension(&self, ui: &Ui) -> Dimension
§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 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) -> Self
fn and_mut<F>(self, mutate: F) -> 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<'a> Freeze for ItemTooltip<'a>
impl<'a> !RefUnwindSafe for ItemTooltip<'a>
impl<'a> !Send for ItemTooltip<'a>
impl<'a> !Sync for ItemTooltip<'a>
impl<'a> Unpin for ItemTooltip<'a>
impl<'a> !UnwindSafe for ItemTooltip<'a>
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for 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>
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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> 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<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
Direction
s).§fn align_middle_x(self) -> Self
fn align_middle_x(self) -> Self
Direction
s).§fn align_right(self) -> Self
fn align_right(self) -> Self
Direction
s).§fn align_top(self) -> Self
fn align_top(self) -> Self
Direction
s).§fn align_middle_y(self) -> Self
fn align_middle_y(self) -> Self
Direction
s).§fn align_bottom(self) -> Self
fn align_bottom(self) -> Self
Direction
s).§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
Direction
s).§fn align_middle_x_of(self, other: NodeIndex) -> Self
fn align_middle_x_of(self, other: NodeIndex) -> Self
Direction
s).§fn align_right_of(self, other: NodeIndex) -> Self
fn align_right_of(self, other: NodeIndex) -> Self
Direction
s).§fn align_top_of(self, other: NodeIndex) -> Self
fn align_top_of(self, other: NodeIndex) -> Self
Direction
s).§fn align_middle_y_of(self, other: NodeIndex) -> Self
fn align_middle_y_of(self, other: NodeIndex) -> Self
Direction
s).§fn align_bottom_of(self, other: NodeIndex) -> Self
fn align_bottom_of(self, other: NodeIndex) -> Self
Direction
s).§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.