Struct vizia_core::view::Handle
source · pub struct Handle<'a, V> { /* private fields */ }
Expand description
A handle to a view which has been built into the tree.
Implementations§
source§impl<'a, V> Handle<'a, V>
impl<'a, V> Handle<'a, V>
pub fn parent(&self) -> Entity
sourcepub fn lock_focus_to_within(self) -> Self
pub fn lock_focus_to_within(self) -> Self
Stop the user from tabbing out of a subtree, which is useful for modal dialogs.
sourcepub fn on_build<F>(self, callback: F) -> Selfwhere
F: Fn(&mut EventContext<'_>),
pub fn on_build<F>(self, callback: F) -> Selfwhere
F: Fn(&mut EventContext<'_>),
Callback which is run when the view is built/rebuilt.
pub fn bind<R, T, F>(self, res: R, closure: F) -> Self
sourcepub fn needs_relayout(&mut self)
pub fn needs_relayout(&mut self)
Marks the view as needing a relayout.
sourcepub fn needs_restyle(&mut self)
pub fn needs_restyle(&mut self)
Marks the view as needing a restyle.
sourcepub fn needs_redraw(&mut self)
pub fn needs_redraw(&mut self)
Marks the view as needing a redraw.
sourcepub fn bounds(&self) -> BoundingBox
pub fn bounds(&self) -> BoundingBox
Returns the bounding box of the view.
sourcepub fn scale_factor(&self) -> f32
pub fn scale_factor(&self) -> f32
Returns the scale factor of the device.
source§impl<'a> Handle<'a, Badge>
impl<'a> Handle<'a, Badge>
sourcepub fn placement(self, placement: BadgePlacement) -> Self
pub fn placement(self, placement: BadgePlacement) -> Self
Sets the placement of a badge relative to its parent when used with the badge
modifier.
source§impl<'a> Handle<'a, ButtonGroup>
impl<'a> Handle<'a, ButtonGroup>
source§impl Handle<'_, Checkbox>
impl Handle<'_, Checkbox>
sourcepub fn on_toggle<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
pub fn on_toggle<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
Set the callback triggered when the checkbox is pressed.
§Examples
Checkbox::new(cx, AppData::value).on_toggle(|cx| cx.emit(AppEvent::ToggleValue));
source§impl<'v, L1, L2, T> Handle<'v, ComboBox<L1, L2, T>>
impl<'v, L1, L2, T> Handle<'v, ComboBox<L1, L2, T>>
source§impl<'a> Handle<'a, Datepicker>
impl<'a> Handle<'a, Datepicker>
pub fn on_select<F: 'static + Fn(&mut EventContext<'_>, NaiveDate)>( self, callback: F, ) -> Self
source§impl<'a> Handle<'a, Divider>
impl<'a> Handle<'a, Divider>
pub fn orientation(self, orientation: impl Res<Orientation>) -> Self
source§impl<'a, L: Lens<Target = f32>> Handle<'a, Knob<L>>
impl<'a, L: Lens<Target = f32>> Handle<'a, Knob<L>>
pub fn on_changing<F>(self, callback: F) -> Self
source§impl Handle<'_, Label>
impl Handle<'_, Label>
sourcepub fn describing(self, entity_identifier: impl Into<String>) -> Self
pub fn describing(self, entity_identifier: impl Into<String>) -> Self
Which form element does this label describe.
§Examples
Checkbox::new(cx, AppData::value).on_toggle(|cx| cx.emit(AppEvent::ToggleValue)).id("checkbox_identifier");
Label::new(cx, "hello").describing("checkbox_identifier");
source§impl<'a> Handle<'a, Popup>
impl<'a> Handle<'a, Popup>
sourcepub fn placement(self, placement: impl Res<Placement>) -> Self
pub fn placement(self, placement: impl Res<Placement>) -> Self
Sets the position where the tooltip should appear relative to its parent element.
Defaults to Placement::Bottom
.
sourcepub fn arrow(self, show_arrow: bool) -> Self
pub fn arrow(self, show_arrow: bool) -> Self
Sets whether the popup should include an arrow. Defaults to true.
sourcepub fn arrow_size(self, size: impl Into<Length>) -> Self
pub fn arrow_size(self, size: impl Into<Length>) -> Self
Sets the size of the popup arrow, or gap if the arrow is hidden.
sourcepub fn should_reposition(self, flag: bool) -> Self
pub fn should_reposition(self, flag: bool) -> Self
Set to whether the popup should reposition to always be visible.
sourcepub fn on_blur<F>(self, f: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
pub fn on_blur<F>(self, f: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
Registers a callback for when the user clicks off of the popup, usually with the intent of closing it.
source§impl<'a> Handle<'a, ProgressBar>
impl<'a> Handle<'a, ProgressBar>
source§impl Handle<'_, RadioButton>
impl Handle<'_, RadioButton>
sourcepub fn on_select<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
pub fn on_select<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
Set the callback triggered when the radio button is selected.
§Examples
RadioButton::new(cx, AppData::value).on_select(|cx| cx.emit(AppEvent::ToggleValue));
source§impl<'a, L1: 'static + Lens<Target = f32>> Handle<'a, Scrollbar<L1>>
impl<'a, L1: 'static + Lens<Target = f32>> Handle<'a, Scrollbar<L1>>
pub fn scroll_to_cursor(self, scroll_to_cursor: impl Res<bool>) -> Self
source§impl<'a> Handle<'a, ScrollView>
impl<'a> Handle<'a, ScrollView>
sourcepub fn on_scroll(
self,
callback: impl Fn(&mut EventContext<'_>, f32, f32) + 'static + Send + Sync,
) -> Self
pub fn on_scroll( self, callback: impl Fn(&mut EventContext<'_>, f32, f32) + 'static + Send + Sync, ) -> Self
Sets a callback which will be called when a scrollview is scrolled, either with the mouse wheel, touchpad, or using the scroll bars.
pub fn scroll_to_cursor(self, scroll_to_cursor: bool) -> Self
pub fn scrollx(self, scrollx: impl Res<f32>) -> Self
pub fn scrolly(self, scrollx: impl Res<f32>) -> Self
source§impl<L: Lens> Handle<'_, Slider<L>>
impl<L: Lens> Handle<'_, Slider<L>>
sourcepub fn on_changing<F>(self, callback: F) -> Self
pub fn on_changing<F>(self, callback: F) -> Self
Sets the callback triggered when the slider value is changing (dragging).
Takes a closure which triggers when the slider value is changing, either by pressing the track or dragging the thumb along the track.
§Example
Slider::new(cx, AppData::value)
.on_changing(|cx, value| {
debug!("Slider on_changing: {}", value);
});
sourcepub fn range(self, range: Range<f32>) -> Self
pub fn range(self, range: Range<f32>) -> Self
Sets the range of the slider.
If the bound data is outside of the range then the slider will clip to min/max of the range.
§Example
Slider::new(cx, AppData::value)
.range(-20.0..50.0)
.on_changing(|cx, value| {
debug!("Slider on_changing: {}", value);
});
pub fn step(self, step: f32) -> Self
sourcepub fn keyboard_fraction(self, keyboard_fraction: f32) -> Self
pub fn keyboard_fraction(self, keyboard_fraction: f32) -> Self
Sets the fraction of a slider that a press of an arrow key will change.
§Example
Slider::new(cx, AppData::value)
.keyboard_fraction(0.05)
.on_changing(|cx, value| {
debug!("Slider on_changing: {}", value);
});
source§impl Handle<'_, NamedSlider>
impl Handle<'_, NamedSlider>
pub fn on_changing<F>(self, callback: F) -> Self
pub fn range(self, range: Range<f32>) -> Self
pub fn keyboard_fraction(self, keyboard_fraction: f32) -> Self
source§impl<'a> Handle<'a, Spinbox>
impl<'a> Handle<'a, Spinbox>
pub fn on_increment<F>(self, callback: F) -> Self
pub fn on_decrement<F>(self, callback: F) -> Self
pub fn orientation(self, orientation: impl Res<Orientation>) -> Self
pub fn icons(self, icons: impl Res<SpinboxIcons>) -> Self
source§impl Handle<'_, Switch>
impl Handle<'_, Switch>
sourcepub fn on_toggle<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
pub fn on_toggle<F>(self, callback: F) -> Selfwhere
F: 'static + Fn(&mut EventContext<'_>),
Set the callback triggered when the Switch is pressed.
§Examples
Switch::new(cx, AppData::value).on_toggle(|cx| cx.emit(AppEvent::ToggleValue));
source§impl<'a, L: Lens> Handle<'a, Textbox<L>>
impl<'a, L: Lens> Handle<'a, Textbox<L>>
sourcepub fn on_edit<F>(self, callback: F) -> Self
pub fn on_edit<F>(self, callback: F) -> Self
Sets the callback triggered when a textbox is edited, i.e. text is inserted/deleted.
Callback provides the current text of the textbox.
sourcepub fn on_submit<F>(self, callback: F) -> Self
pub fn on_submit<F>(self, callback: F) -> Self
Sets the callback triggered when a textbox is submitted, i.e. when the enter key is pressed with a single-line textbox or the textbox loses focus.
Callback provides the text of the textbox and a flag to indicate if the submit was due to a key press or a loss of focus.
sourcepub fn on_blur<F>(self, callback: F) -> Self
pub fn on_blur<F>(self, callback: F) -> Self
Sets the callback triggered when a textbox is blurred, i.e. the mouse is pressed outside of the textbox.
sourcepub fn on_cancel<F>(self, callback: F) -> Self
pub fn on_cancel<F>(self, callback: F) -> Self
Sets the callback triggered when a textbox edit is cancelled, i.e. the escape key is pressed while editing.
sourcepub fn validate<F>(self, is_valid: F) -> Self
pub fn validate<F>(self, is_valid: F) -> Self
Sets a validation closure which is called when the textbox is edited and sets the validity attribute to the output of the closure.
If a textbox is modified with the validate modifier then the on_submit
will not be called if the text is invalid.
sourcepub fn placeholder<P: ToStringLocalized>(self, text: impl Res<P>) -> Self
pub fn placeholder<P: ToStringLocalized>(self, text: impl Res<P>) -> Self
Sets the placeholder text that appears when the textbox has no value.
source§impl<'a> Handle<'a, Tooltip>
impl<'a> Handle<'a, Tooltip>
sourcepub fn placement(self, placement: Placement) -> Self
pub fn placement(self, placement: Placement) -> Self
Sets the position where the tooltip should appear relative to its parent element.
Defaults to Placement::Bottom
.
sourcepub fn arrow(self, show_arrow: bool) -> Self
pub fn arrow(self, show_arrow: bool) -> Self
Sets whether the tooltip should include an arrow. Defaults to true.
pub fn arrow_size(self, size: impl Into<Length>) -> Self
source§impl<'a> Handle<'a, VirtualList>
impl<'a> Handle<'a, VirtualList>
pub fn scroll_to_cursor(self, flag: bool) -> Self
Trait Implementations§
source§impl<'a, V> AbilityModifiers for Handle<'a, V>
impl<'a, V> AbilityModifiers for Handle<'a, V>
source§fn hoverable<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn hoverable<U: Into<bool>>(self, state: impl Res<U>) -> Self
source§fn focusable<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn focusable<U: Into<bool>>(self, state: impl Res<U>) -> Self
source§fn checkable<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn checkable<U: Into<bool>>(self, state: impl Res<U>) -> Self
source§impl<'a, V: View> AccessibilityModifiers for Handle<'a, V>
impl<'a, V: View> AccessibilityModifiers for Handle<'a, V>
source§fn name<U: ToStringLocalized>(self, name: impl Res<U>) -> Self
fn name<U: ToStringLocalized>(self, name: impl Res<U>) -> Self
source§fn default_action_verb(self, action_verb: DefaultActionVerb) -> Self
fn default_action_verb(self, action_verb: DefaultActionVerb) -> Self
source§fn live(self, live: Live) -> Self
fn live(self, live: Live) -> Self
source§fn numeric_value<U: Into<f64>>(self, value: impl Res<U>) -> Self
fn numeric_value<U: Into<f64>>(self, value: impl Res<U>) -> Self
source§fn text_value<U: ToStringLocalized>(self, value: impl Res<U>) -> Self
fn text_value<U: ToStringLocalized>(self, value: impl Res<U>) -> Self
source§impl<'a, V: View> ActionModifiers<V> for Handle<'a, V>
impl<'a, V: View> ActionModifiers<V> for Handle<'a, V>
fn tooltip<C: Fn(&mut Context) -> Handle<'_, Tooltip> + 'static>( self, content: C, ) -> Self
source§fn on_press_down<F>(self, action: F) -> Self
fn on_press_down<F>(self, action: F) -> Self
source§fn on_double_click<F>(self, action: F) -> Self
fn on_double_click<F>(self, action: F) -> Self
MouseDoubleClick
event. Read moresource§fn on_hover<F>(self, action: F) -> Self
fn on_hover<F>(self, action: F) -> Self
source§fn on_hover_out<F>(self, action: F) -> Self
fn on_hover_out<F>(self, action: F) -> Self
source§fn on_over<F>(self, action: F) -> Self
fn on_over<F>(self, action: F) -> Self
source§fn on_over_out<F>(self, action: F) -> Self
fn on_over_out<F>(self, action: F) -> Self
source§fn on_mouse_move<F>(self, action: F) -> Self
fn on_mouse_move<F>(self, action: F) -> Self
source§fn on_mouse_down<F>(self, action: F) -> Self
fn on_mouse_down<F>(self, action: F) -> Self
on_press
callback, this callback is triggered for all mouse buttons and not for any keyboard keys. Read moresource§fn on_mouse_up<F>(self, action: F) -> Self
fn on_mouse_up<F>(self, action: F) -> Self
on_release
callback, this callback is triggered for all mouse buttons and not for any keyboard keys. Read moresource§fn on_focus_in<F>(self, action: F) -> Self
fn on_focus_in<F>(self, action: F) -> Self
source§fn on_focus_out<F>(self, action: F) -> Self
fn on_focus_out<F>(self, action: F) -> Self
source§fn on_geo_changed<F>(self, action: F) -> Self
fn on_geo_changed<F>(self, action: F) -> Self
fn on_drag<F>(self, action: F) -> Self
fn on_drop<F>(self, action: F) -> Self
source§impl<'a> ButtonModifiers for Handle<'a, Button>
impl<'a> ButtonModifiers for Handle<'a, Button>
source§impl<'a> ButtonModifiers for Handle<'a, ButtonGroup>
impl<'a> ButtonModifiers for Handle<'a, ButtonGroup>
source§impl<'a, V> DataContext for Handle<'a, V>
impl<'a, V> DataContext for Handle<'a, V>
source§fn data<T: 'static>(&self) -> Option<&T>
fn data<T: 'static>(&self) -> Option<&T>
None
if the data does not exist.fn as_context(&self) -> Option<LocalizationContext<'_>>
source§impl<'a, V: View> LayoutModifiers for Handle<'a, V>
impl<'a, V: View> LayoutModifiers for Handle<'a, V>
source§fn layout_type<U: Into<LayoutType>>(self, value: impl Res<U>) -> Self
fn layout_type<U: Into<LayoutType>>(self, value: impl Res<U>) -> Self
source§fn position_type<U: Into<PositionType>>(self, value: impl Res<U>) -> Self
fn position_type<U: Into<PositionType>>(self, value: impl Res<U>) -> Self
source§fn left<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn left<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn right<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn right<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn top<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn top<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn space<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn space<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn size<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn size<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn child_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn child_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn child_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn child_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn child_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn child_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn child_bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn child_bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn child_space<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn child_space<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn row_between<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn row_between<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn col_between<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn col_between<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_width<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_width<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_height<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_height<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_size<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_size<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_width<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_width<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_height<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_height<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_size<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_size<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_bottom<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn min_space<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn min_space<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_left<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_right<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§fn max_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
fn max_top<U: Into<Units>>(self, value: impl Res<U>) -> Self
source§impl<'a, V: View> StyleModifiers for Handle<'a, V>
impl<'a, V: View> StyleModifiers for Handle<'a, V>
source§fn toggle_class(self, name: &str, applied: impl Res<bool>) -> Self
fn toggle_class(self, name: &str, applied: impl Res<bool>) -> Self
source§fn checked<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn checked<U: Into<bool>>(self, state: impl Res<U>) -> Self
source§fn focused<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn focused<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn read_only<U: Into<bool>>(self, state: impl Res<U>) -> Self
fn read_write<U: Into<bool>>(self, state: impl Res<U>) -> Self
source§fn disabled<U: Into<bool>>(self, value: impl Res<U>) -> Self
fn disabled<U: Into<bool>>(self, value: impl Res<U>) -> Self
source§fn display<U: Into<Display>>(self, value: impl Res<U>) -> Self
fn display<U: Into<Display>>(self, value: impl Res<U>) -> Self
source§fn visibility<U: Into<Visibility>>(self, value: impl Res<U>) -> Self
fn visibility<U: Into<Visibility>>(self, value: impl Res<U>) -> Self
source§fn opacity<U: Into<Opacity>>(self, value: impl Res<U>) -> Self
fn opacity<U: Into<Opacity>>(self, value: impl Res<U>) -> Self
source§fn z_index<U: Into<i32>>(self, value: impl Res<U>) -> Self
fn z_index<U: Into<i32>>(self, value: impl Res<U>) -> Self
source§fn clip_path<U: Into<ClipPath>>(self, value: impl Res<U>) -> Self
fn clip_path<U: Into<ClipPath>>(self, value: impl Res<U>) -> Self
fn overflow<U: Into<Overflow>>(self, value: impl Res<U>) -> Self
source§fn overflowx<U: Into<Overflow>>(self, value: impl Res<U>) -> Self
fn overflowx<U: Into<Overflow>>(self, value: impl Res<U>) -> Self
source§fn overflowy<U: Into<Overflow>>(self, value: impl Res<U>) -> Self
fn overflowy<U: Into<Overflow>>(self, value: impl Res<U>) -> Self
source§fn backdrop_filter<U: Into<Filter>>(self, value: impl Res<U>) -> Self
fn backdrop_filter<U: Into<Filter>>(self, value: impl Res<U>) -> Self
fn shadows<U: Into<Vec<Shadow>>>(self, value: impl Res<U>) -> Self
fn background_gradient<U: Into<Gradient>>(self, value: impl Res<U>) -> Self
source§fn background_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn background_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn background_image<'i, U: Into<BackgroundImage<'i>>>( self, value: impl Res<U>, ) -> Self
source§fn border_width<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
fn border_width<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
source§fn border_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn border_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
source§fn border_style<U: Into<BorderStyleKeyword>>(self, value: impl Res<U>) -> Self
fn border_style<U: Into<BorderStyleKeyword>>(self, value: impl Res<U>) -> Self
source§fn corner_top_left_radius<U: Into<LengthOrPercentage>>(
self,
value: impl Res<U>,
) -> Self
fn corner_top_left_radius<U: Into<LengthOrPercentage>>( self, value: impl Res<U>, ) -> Self
source§fn corner_top_right_radius<U: Into<LengthOrPercentage>>(
self,
value: impl Res<U>,
) -> Self
fn corner_top_right_radius<U: Into<LengthOrPercentage>>( self, value: impl Res<U>, ) -> Self
source§fn corner_bottom_left_radius<U: Into<LengthOrPercentage>>(
self,
value: impl Res<U>,
) -> Self
fn corner_bottom_left_radius<U: Into<LengthOrPercentage>>( self, value: impl Res<U>, ) -> Self
source§fn corner_bottom_right_radius<U: Into<LengthOrPercentage>>(
self,
value: impl Res<U>,
) -> Self
fn corner_bottom_right_radius<U: Into<LengthOrPercentage>>( self, value: impl Res<U>, ) -> Self
source§fn corner_radius<U: Debug + Into<CornerRadius>>(
self,
value: impl Res<U>,
) -> Self
fn corner_radius<U: Debug + Into<CornerRadius>>( self, value: impl Res<U>, ) -> Self
source§fn corner_top_left_shape<U: Into<CornerShape>>(self, value: impl Res<U>) -> Self
fn corner_top_left_shape<U: Into<CornerShape>>(self, value: impl Res<U>) -> Self
source§fn corner_top_right_shape<U: Into<CornerShape>>(
self,
value: impl Res<U>,
) -> Self
fn corner_top_right_shape<U: Into<CornerShape>>( self, value: impl Res<U>, ) -> Self
source§fn corner_bottom_left_shape<U: Into<CornerShape>>(
self,
value: impl Res<U>,
) -> Self
fn corner_bottom_left_shape<U: Into<CornerShape>>( self, value: impl Res<U>, ) -> Self
source§fn corner_bottom_right_shape<U: Into<CornerShape>>(
self,
value: impl Res<U>,
) -> Self
fn corner_bottom_right_shape<U: Into<CornerShape>>( self, value: impl Res<U>, ) -> Self
source§fn corner_shape<U: Debug + Into<Rect<CornerShape>>>(
self,
value: impl Res<U>,
) -> Self
fn corner_shape<U: Debug + Into<Rect<CornerShape>>>( self, value: impl Res<U>, ) -> Self
source§fn corner_top_left_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
fn corner_top_left_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
source§fn corner_top_right_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
fn corner_top_right_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
source§fn corner_bottom_left_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
fn corner_bottom_left_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
source§fn corner_bottom_right_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
fn corner_bottom_right_smoothing<U: Into<f32>>(self, value: impl Res<U>) -> Self
source§fn corner_smoothing<U: Debug + Into<Rect<f32>>>(
self,
value: impl Res<U>,
) -> Self
fn corner_smoothing<U: Debug + Into<Rect<f32>>>( self, value: impl Res<U>, ) -> Self
source§fn outline_width<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
fn outline_width<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
source§fn outline_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn outline_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
source§fn outline_offset<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
fn outline_offset<U: Into<LengthOrPercentage>>(self, value: impl Res<U>) -> Self
source§fn cursor<U: Into<CursorIcon>>(self, value: impl Res<U>) -> Self
fn cursor<U: Into<CursorIcon>>(self, value: impl Res<U>) -> Self
source§fn pointer_events<U: Into<PointerEvents>>(self, value: impl Res<U>) -> Self
fn pointer_events<U: Into<PointerEvents>>(self, value: impl Res<U>) -> Self
source§fn transform<U: Into<Vec<Transform>>>(self, value: impl Res<U>) -> Self
fn transform<U: Into<Vec<Transform>>>(self, value: impl Res<U>) -> Self
source§fn transform_origin<U: Into<Position>>(self, value: impl Res<U>) -> Self
fn transform_origin<U: Into<Position>>(self, value: impl Res<U>) -> Self
source§fn translate<U: Into<Translate>>(self, value: impl Res<U>) -> Self
fn translate<U: Into<Translate>>(self, value: impl Res<U>) -> Self
source§impl<'a, V> TextModifiers for Handle<'a, V>
impl<'a, V> TextModifiers for Handle<'a, V>
source§fn text<T: ToStringLocalized>(self, value: impl Res<T>) -> Self
fn text<T: ToStringLocalized>(self, value: impl Res<T>) -> Self
source§fn font_family<U: Into<Vec<FamilyOwned>>>(self, value: impl Res<U>) -> Self
fn font_family<U: Into<Vec<FamilyOwned>>>(self, value: impl Res<U>) -> Self
source§fn font_weight<U: Into<FontWeight>>(self, value: impl Res<U>) -> Self
fn font_weight<U: Into<FontWeight>>(self, value: impl Res<U>) -> Self
source§fn font_slant<U: Into<FontSlant>>(self, value: impl Res<U>) -> Self
fn font_slant<U: Into<FontSlant>>(self, value: impl Res<U>) -> Self
source§fn font_width<U: Into<FontWidth>>(self, value: impl Res<U>) -> Self
fn font_width<U: Into<FontWidth>>(self, value: impl Res<U>) -> Self
source§fn font_variation_settings<U: Into<Vec<FontVariation>>>(
self,
value: impl Res<U>,
) -> Self
fn font_variation_settings<U: Into<Vec<FontVariation>>>( self, value: impl Res<U>, ) -> Self
source§fn color<U: Clone + Into<Color>>(self, value: impl Res<U>) -> Self
fn color<U: Clone + Into<Color>>(self, value: impl Res<U>) -> Self
source§fn font_size<U: Into<FontSize>>(self, value: impl Res<U>) -> Self
fn font_size<U: Into<FontSize>>(self, value: impl Res<U>) -> Self
source§fn caret_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn caret_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
source§fn selection_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
fn selection_color<U: Into<Color>>(self, value: impl Res<U>) -> Self
source§fn text_wrap<U: Into<bool>>(self, value: impl Res<U>) -> Self
fn text_wrap<U: Into<bool>>(self, value: impl Res<U>) -> Self
source§fn text_align<U: Into<TextAlign>>(self, value: impl Res<U>) -> Self
fn text_align<U: Into<TextAlign>>(self, value: impl Res<U>) -> Self
source§fn text_overflow<U: Into<TextOverflow>>(self, value: impl Res<U>) -> Self
fn text_overflow<U: Into<TextOverflow>>(self, value: impl Res<U>) -> Self
source§fn text_decoration_line<U: Into<TextDecorationLine>>(
self,
value: impl Res<U>,
) -> Self
fn text_decoration_line<U: Into<TextDecorationLine>>( self, value: impl Res<U>, ) -> Self
source§impl<'a> ToggleButtonModifiers for Handle<'a, ToggleButton>
impl<'a> ToggleButtonModifiers for Handle<'a, ToggleButton>
fn on_toggle(self, callback: impl Fn(&mut EventContext<'_>) + 'static) -> Self
Auto Trait Implementations§
impl<'a, V> Freeze for Handle<'a, V>
impl<'a, V> !RefUnwindSafe for Handle<'a, V>
impl<'a, V> !Send for Handle<'a, V>
impl<'a, V> !Sync for Handle<'a, V>
impl<'a, V> Unpin for Handle<'a, V>where
V: Unpin,
impl<'a, V> !UnwindSafe for Handle<'a, V>
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> 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.