pub struct DropDownList<'a, T>where
T: 'a,{ /* private fields */ }Expand description
Displays a given Vec<String> as a selectable drop down menu.
It’s reaction is triggered upon selection of a list item.
Implementations§
Source§impl<'a, T> DropDownList<'a, T>
impl<'a, T> DropDownList<'a, T>
Sourcepub fn new(items: &'a [T], selected: Option<usize>) -> DropDownList<'a, T>
pub fn new(items: &'a [T], selected: Option<usize>) -> DropDownList<'a, T>
Construct a new DropDownList.
Sourcepub fn enabled(self, enabled: bool) -> DropDownList<'a, T>
pub fn enabled(self, enabled: bool) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Sourcepub fn max_visible_items(self, num: usize) -> DropDownList<'a, T>
pub fn max_visible_items(self, num: usize) -> DropDownList<'a, T>
Set the maximum height of the DropDownList (before the scrollbar appears) as a number of items.
Sourcepub fn max_visible_height(self, height: f64) -> DropDownList<'a, T>
pub fn max_visible_height(self, height: f64) -> DropDownList<'a, T>
Set the maximum height of the DropDownList (before the scrollbar appears) as a scalar height.
Sourcepub fn scrollbar_next_to(self) -> DropDownList<'a, T>
pub fn scrollbar_next_to(self) -> DropDownList<'a, T>
Specifies that the list should be scrollable and should provide a Scrollbar to the right
of the items.
Sourcepub fn scrollbar_on_top(self) -> DropDownList<'a, T>
pub fn scrollbar_on_top(self) -> DropDownList<'a, T>
Specifies that the list should be scrollable and should provide a Scrollbar that hovers
above the right edge of the items and automatically hides when the user is not scrolling.
Sourcepub fn no_scrollbar(self) -> DropDownList<'a, T>
pub fn no_scrollbar(self) -> DropDownList<'a, T>
Even in the case that the list is scrollable, do not display a Scrollbar.
Sourcepub fn scrollbar_width(self, w: f64) -> DropDownList<'a, T>
pub fn scrollbar_width(self, w: f64) -> DropDownList<'a, T>
Specify the width of the scrollbar.
Sourcepub fn label_font_id(self, font_id: Id) -> DropDownList<'a, T>
pub fn label_font_id(self, font_id: Id) -> DropDownList<'a, T>
Specify the font used for displaying the label.
Sourcepub fn left_justify_label(self) -> DropDownList<'a, T>
pub fn left_justify_label(self) -> DropDownList<'a, T>
Align the labels to the left of their Buttons’ surface.
Sourcepub fn right_justify_label(self) -> DropDownList<'a, T>
pub fn right_justify_label(self) -> DropDownList<'a, T>
Align the labels to the right of their Buttons’ surface.
Sourcepub fn center_justify_label(self) -> DropDownList<'a, T>
pub fn center_justify_label(self) -> DropDownList<'a, T>
Center the labels to the their Buttons’ surface.
Sourcepub fn label_x(self, x: Relative) -> DropDownList<'a, T>
pub fn label_x(self, x: Relative) -> DropDownList<'a, T>
Specify the label’s position relatively to Button along the x axis.
Sourcepub fn label_y(self, y: Relative) -> DropDownList<'a, T>
pub fn label_y(self, y: Relative) -> DropDownList<'a, T>
Specify the label’s position relatively to Button along the y axis.
Trait Implementations§
Source§impl<'a, T> Borderable for DropDownList<'a, T>
impl<'a, T> Borderable for DropDownList<'a, T>
Source§fn border(self, border: f64) -> DropDownList<'a, T>
fn border(self, border: f64) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn border_color(self, border_color: Color) -> DropDownList<'a, T>
fn border_color(self, border_color: Color) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn border_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
fn border_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Source§fn border_rgb(self, r: f32, g: f32, b: f32) -> Self
fn border_rgb(self, r: f32, g: f32, b: f32) -> Self
Source§impl<'a, T> Colorable for DropDownList<'a, T>
impl<'a, T> Colorable for DropDownList<'a, T>
Source§fn color(self, color: Color) -> DropDownList<'a, T>
fn color(self, color: Color) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
fn rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Source§impl<'a, T> Common for DropDownList<'a, T>where
T: 'a,
impl<'a, T> Common for DropDownList<'a, T>where
T: 'a,
Source§fn common(&self) -> &CommonBuilder
fn common(&self) -> &CommonBuilder
CommonBuilder field.Source§fn common_mut(&mut self) -> &mut CommonBuilder
fn common_mut(&mut self) -> &mut CommonBuilder
CommonBuilder field.Source§impl<'a, T> Labelable<'a> for DropDownList<'a, T>
impl<'a, T> Labelable<'a> for DropDownList<'a, T>
Source§fn label(self, label: &'a str) -> DropDownList<'a, T>
fn label(self, label: &'a str) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn label_color(self, label_color: Color) -> DropDownList<'a, T>
fn label_color(self, label_color: Color) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn label_font_size(self, label_font_size: u32) -> DropDownList<'a, T>
fn label_font_size(self, label_font_size: u32) -> DropDownList<'a, T>
Build the type’s self.$($assignee).+ with the given $Type.
Source§fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
fn label_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self
Source§fn label_rgb(self, r: f32, g: f32, b: f32) -> Self
fn label_rgb(self, r: f32, g: f32, b: f32) -> Self
Source§fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
fn label_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self
Source§fn label_hsl(self, h: f32, s: f32, l: f32) -> Self
fn label_hsl(self, h: f32, s: f32, l: f32) -> Self
Source§fn small_font(self, ui: &Ui) -> Self
fn small_font(self, ui: &Ui) -> Self
Source§fn medium_font(self, ui: &Ui) -> Self
fn medium_font(self, ui: &Ui) -> Self
Source§fn large_font(self, ui: &Ui) -> Self
fn large_font(self, ui: &Ui) -> Self
Source§impl<'a, T> Widget for DropDownList<'a, T>
impl<'a, T> Widget for DropDownList<'a, T>
Source§fn update(
self,
args: UpdateArgs<'_, '_, '_, '_, DropDownList<'a, T>>,
) -> <DropDownList<'a, T> as Widget>::Event
fn update( self, args: UpdateArgs<'_, '_, '_, '_, DropDownList<'a, T>>, ) -> <DropDownList<'a, T> as Widget>::Event
Update the state of the DropDownList.
Source§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§type Event = Option<usize>
type Event = Option<usize>
Widget::set function. Read moreSource§fn init_state(
&self,
id_gen: Generator<'_>,
) -> <DropDownList<'a, T> as Widget>::State
fn init_state( &self, id_gen: Generator<'_>, ) -> <DropDownList<'a, T> as Widget>::State
Source§fn style(&self) -> <DropDownList<'a, T> as Widget>::Style
fn style(&self) -> <DropDownList<'a, T> as Widget>::Style
Source§fn default_x_position(&self, ui: &Ui) -> Position
fn default_x_position(&self, ui: &Ui) -> Position
Source§fn default_y_position(&self, ui: &Ui) -> Position
fn default_y_position(&self, ui: &Ui) -> Position
Source§fn default_x_dimension(&self, ui: &Ui) -> Dimension
fn default_x_dimension(&self, ui: &Ui) -> Dimension
Source§fn default_y_dimension(&self, ui: &Ui) -> Dimension
fn default_y_dimension(&self, ui: &Ui) -> Dimension
Source§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>
Source§fn kid_area(&self, args: KidAreaArgs<'_, Self>) -> KidArea
fn kid_area(&self, args: KidAreaArgs<'_, Self>) -> KidArea
Place Position methods.Source§fn is_over(&self) -> fn(&Container, [f64; 2], &Theme) -> IsOver
fn is_over(&self) -> fn(&Container, [f64; 2], &Theme) -> IsOver
Source§fn parent(self, parent_id: NodeIndex) -> Self
fn parent(self, parent_id: NodeIndex) -> Self
Source§fn place_on_kid_area(self, b: bool) -> Self
fn place_on_kid_area(self, b: bool) -> Self
Source§fn graphics_for(self, id: NodeIndex) -> Self
fn graphics_for(self, id: NodeIndex) -> Self
Source§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 moreSource§fn crop_kids(self) -> Self
fn crop_kids(self) -> Self
kid_area of this widget.Source§fn scroll_kids(self) -> Self
fn scroll_kids(self) -> Self
KidArea scrollable. Read moreSource§fn scroll_kids_vertically(self) -> Self
fn scroll_kids_vertically(self) -> Self
KidArea scrollable. Read moreSource§fn scroll_kids_horizontally(self) -> Self
fn scroll_kids_horizontally(self) -> Self
KidArea is scrollable (the default is false). Read moreSource§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 moreSource§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 moreSource§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, T> Freeze for DropDownList<'a, T>
impl<'a, T> RefUnwindSafe for DropDownList<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for DropDownList<'a, T>where
T: Sync,
impl<'a, T> Sync for DropDownList<'a, T>where
T: Sync,
impl<'a, T> Unpin for DropDownList<'a, T>
impl<'a, T> UnwindSafe for DropDownList<'a, T>where
T: RefUnwindSafe,
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<W> Positionable for Wwhere
W: Widget,
impl<W> Positionable for Wwhere
W: Widget,
Source§fn x_position(self, x: Position) -> W
fn x_position(self, x: Position) -> W
Source§fn y_position(self, y: Position) -> W
fn y_position(self, y: Position) -> W
Source§fn get_x_position(&self, ui: &Ui) -> Position
fn get_x_position(&self, ui: &Ui) -> Position
Source§fn get_y_position(&self, ui: &Ui) -> Position
fn get_y_position(&self, ui: &Ui) -> Position
Source§fn depth(self, depth: f32) -> W
fn depth(self, depth: f32) -> W
Source§fn x_position_relative(self, x: Relative) -> Self
fn x_position_relative(self, x: Relative) -> Self
Source§fn y_position_relative(self, y: Relative) -> Self
fn y_position_relative(self, y: Relative) -> Self
Source§fn x_y_position_relative(self, x: Relative, y: Relative) -> Self
fn x_y_position_relative(self, x: Relative, y: Relative) -> Self
Source§fn x_position_relative_to(self, other: NodeIndex, x: Relative) -> Self
fn x_position_relative_to(self, other: NodeIndex, x: Relative) -> Self
Source§fn y_position_relative_to(self, other: NodeIndex, y: Relative) -> Self
fn y_position_relative_to(self, other: NodeIndex, y: Relative) -> Self
Source§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
Source§fn x_relative(self, x: f64) -> Self
fn x_relative(self, x: f64) -> Self
Source§fn y_relative(self, y: f64) -> Self
fn y_relative(self, y: f64) -> Self
Source§fn xy_relative(self, point: [f64; 2]) -> Self
fn xy_relative(self, point: [f64; 2]) -> Self
Source§fn x_y_relative(self, x: f64, y: f64) -> Self
fn x_y_relative(self, x: f64, y: f64) -> Self
Source§fn x_relative_to(self, other: NodeIndex, x: f64) -> Self
fn x_relative_to(self, other: NodeIndex, x: f64) -> Self
Source§fn y_relative_to(self, other: NodeIndex, y: f64) -> Self
fn y_relative_to(self, other: NodeIndex, y: f64) -> Self
Source§fn xy_relative_to(self, other: NodeIndex, xy: [f64; 2]) -> Self
fn xy_relative_to(self, other: NodeIndex, xy: [f64; 2]) -> Self
Source§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
Source§fn x_direction(self, direction: Direction, x: f64) -> Self
fn x_direction(self, direction: Direction, x: f64) -> Self
Source§fn y_direction(self, direction: Direction, y: f64) -> Self
fn y_direction(self, direction: Direction, y: f64) -> Self
Source§fn left(self, x: f64) -> Self
fn left(self, x: f64) -> Self
Source§fn right(self, x: f64) -> Self
fn right(self, x: f64) -> Self
Source§fn x_direction_from(
self,
other: NodeIndex,
direction: Direction,
x: f64,
) -> Self
fn x_direction_from( self, other: NodeIndex, direction: Direction, x: f64, ) -> Self
Source§fn y_direction_from(
self,
other: NodeIndex,
direction: Direction,
y: f64,
) -> Self
fn y_direction_from( self, other: NodeIndex, direction: Direction, y: f64, ) -> Self
Source§fn down_from(self, other: NodeIndex, y: f64) -> Self
fn down_from(self, other: NodeIndex, y: f64) -> Self
Source§fn up_from(self, other: NodeIndex, y: f64) -> Self
fn up_from(self, other: NodeIndex, y: f64) -> Self
Source§fn left_from(self, other: NodeIndex, x: f64) -> Self
fn left_from(self, other: NodeIndex, x: f64) -> Self
Source§fn right_from(self, other: NodeIndex, x: f64) -> Self
fn right_from(self, other: NodeIndex, x: f64) -> Self
Source§fn align_left(self) -> Self
fn align_left(self) -> Self
Directions).Source§fn align_middle_x(self) -> Self
fn align_middle_x(self) -> Self
Directions).Source§fn align_right(self) -> Self
fn align_right(self) -> Self
Directions).Source§fn align_top(self) -> Self
fn align_top(self) -> Self
Directions).Source§fn align_middle_y(self) -> Self
fn align_middle_y(self) -> Self
Directions).Source§fn align_bottom(self) -> Self
fn align_bottom(self) -> Self
Directions).Source§fn x_align_to(self, other: NodeIndex, align: Align) -> Self
fn x_align_to(self, other: NodeIndex, align: Align) -> Self
Source§fn y_align_to(self, other: NodeIndex, align: Align) -> Self
fn y_align_to(self, other: NodeIndex, align: Align) -> Self
Source§fn align_left_of(self, other: NodeIndex) -> Self
fn align_left_of(self, other: NodeIndex) -> Self
Directions).Source§fn align_middle_x_of(self, other: NodeIndex) -> Self
fn align_middle_x_of(self, other: NodeIndex) -> Self
Directions).Source§fn align_right_of(self, other: NodeIndex) -> Self
fn align_right_of(self, other: NodeIndex) -> Self
Directions).Source§fn align_top_of(self, other: NodeIndex) -> Self
fn align_top_of(self, other: NodeIndex) -> Self
Directions).Source§fn align_middle_y_of(self, other: NodeIndex) -> Self
fn align_middle_y_of(self, other: NodeIndex) -> Self
Directions).Source§fn align_bottom_of(self, other: NodeIndex) -> Self
fn align_bottom_of(self, other: NodeIndex) -> Self
Directions).Source§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.Source§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.Source§fn middle_of(self, other: NodeIndex) -> Self
fn middle_of(self, other: NodeIndex) -> Self
Source§fn top_left_of(self, other: NodeIndex) -> Self
fn top_left_of(self, other: NodeIndex) -> Self
Source§fn top_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn top_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§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
Source§fn top_right_of(self, other: NodeIndex) -> Self
fn top_right_of(self, other: NodeIndex) -> Self
Source§fn top_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn top_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§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
Source§fn bottom_left_of(self, other: NodeIndex) -> Self
fn bottom_left_of(self, other: NodeIndex) -> Self
Source§fn bottom_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn bottom_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§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
Source§fn bottom_right_of(self, other: NodeIndex) -> Self
fn bottom_right_of(self, other: NodeIndex) -> Self
Source§fn bottom_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn bottom_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§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
Source§fn mid_top_of(self, other: NodeIndex) -> Self
fn mid_top_of(self, other: NodeIndex) -> Self
Source§fn mid_top_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn mid_top_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§fn mid_bottom_of(self, other: NodeIndex) -> Self
fn mid_bottom_of(self, other: NodeIndex) -> Self
Source§fn mid_bottom_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn mid_bottom_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§fn mid_left_of(self, other: NodeIndex) -> Self
fn mid_left_of(self, other: NodeIndex) -> Self
Source§fn mid_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn mid_left_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§fn mid_right_of(self, other: NodeIndex) -> Self
fn mid_right_of(self, other: NodeIndex) -> Self
Source§fn mid_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
fn mid_right_with_margin_on(self, other: NodeIndex, mgn: f64) -> Self
Source§fn x_place(self, place: Place) -> Self
fn x_place(self, place: Place) -> Self
Source§fn y_place(self, place: Place) -> Self
fn y_place(self, place: Place) -> Self
Source§fn top_left(self) -> Self
fn top_left(self) -> Self
Source§fn top_left_with_margin(self, mgn: f64) -> Self
fn top_left_with_margin(self, mgn: f64) -> Self
Source§fn top_left_with_margins(self, top: f64, left: f64) -> Self
fn top_left_with_margins(self, top: f64, left: f64) -> Self
Source§fn top_right(self) -> Self
fn top_right(self) -> Self
Source§fn top_right_with_margin(self, mgn: f64) -> Self
fn top_right_with_margin(self, mgn: f64) -> Self
Source§fn top_right_with_margins(self, top: f64, right: f64) -> Self
fn top_right_with_margins(self, top: f64, right: f64) -> Self
Source§fn bottom_left(self) -> Self
fn bottom_left(self) -> Self
Source§fn bottom_left_with_margin(self, mgn: f64) -> Self
fn bottom_left_with_margin(self, mgn: f64) -> Self
Source§fn bottom_left_with_margins(self, bottom: f64, left: f64) -> Self
fn bottom_left_with_margins(self, bottom: f64, left: f64) -> Self
Source§fn bottom_right(self) -> Self
fn bottom_right(self) -> Self
Source§fn bottom_right_with_margin(self, mgn: f64) -> Self
fn bottom_right_with_margin(self, mgn: f64) -> Self
Source§fn bottom_right_with_margins(self, bottom: f64, right: f64) -> Self
fn bottom_right_with_margins(self, bottom: f64, right: f64) -> Self
Source§fn mid_top(self) -> Self
fn mid_top(self) -> Self
Source§fn mid_top_with_margin(self, mgn: f64) -> Self
fn mid_top_with_margin(self, mgn: f64) -> Self
Source§fn mid_bottom(self) -> Self
fn mid_bottom(self) -> Self
Source§fn mid_bottom_with_margin(self, mgn: f64) -> Self
fn mid_bottom_with_margin(self, mgn: f64) -> Self
Source§fn mid_left(self) -> Self
fn mid_left(self) -> Self
Source§fn mid_left_with_margin(self, mgn: f64) -> Self
fn mid_left_with_margin(self, mgn: f64) -> Self
Source§fn mid_right(self) -> Self
fn mid_right(self) -> Self
Source§fn mid_right_with_margin(self, mgn: f64) -> Self
fn mid_right_with_margin(self, mgn: f64) -> Self
Source§impl<W> Sizeable for Wwhere
W: Widget,
impl<W> Sizeable for Wwhere
W: Widget,
Source§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.
Source§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.
Source§fn x_dimension(self, w: Dimension) -> W
fn x_dimension(self, w: Dimension) -> W
Source§fn y_dimension(self, h: Dimension) -> W
fn y_dimension(self, h: Dimension) -> W
Source§fn w_of(self, idx: NodeIndex) -> Self
fn w_of(self, idx: NodeIndex) -> Self
Source§fn padded_w_of(self, idx: NodeIndex, pad: f64) -> Self
fn padded_w_of(self, idx: NodeIndex, pad: f64) -> Self
Source§fn h_of(self, idx: NodeIndex) -> Self
fn h_of(self, idx: NodeIndex) -> Self
Source§fn padded_h_of(self, idx: NodeIndex, pad: f64) -> Self
fn padded_h_of(self, idx: NodeIndex, pad: f64) -> Self
Source§fn wh_of(self, idx: NodeIndex) -> Self
fn wh_of(self, idx: NodeIndex) -> Self
Source§fn padded_wh_of(self, idx: NodeIndex, pad: f64) -> Self
fn padded_wh_of(self, idx: NodeIndex, pad: f64) -> Self
Source§fn kid_area_w_of(self, idx: NodeIndex) -> Self
fn kid_area_w_of(self, idx: NodeIndex) -> Self
Source§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.Source§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.Source§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.Source§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.Source§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.