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) -> Handle<'a, V>
pub fn lock_focus_to_within(self) -> Handle<'a, V>
Stop the user from tabbing out of a subtree, which is useful for modal dialogs.
sourcepub fn on_build<F>(self, callback: F) -> Handle<'a, V>where
F: Fn(&mut EventContext<'_>),
pub fn on_build<F>(self, callback: F) -> Handle<'a, V>where
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) -> Handle<'a, V>
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) -> Handle<'a, Badge>
pub fn placement(self, placement: BadgePlacement) -> Handle<'a, Badge>
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<'a> Handle<'a, Chip>
impl<'a> Handle<'a, Chip>
source§impl<'a> Handle<'a, Datepicker>
impl<'a> Handle<'a, Datepicker>
pub fn on_select<F>(self, callback: F) -> Handle<'a, Datepicker>
source§impl<'a> Handle<'a, Divider>
impl<'a> Handle<'a, Divider>
pub fn orientation( self, orientation: impl Res<Orientation>, ) -> Handle<'a, Divider>
source§impl<'a, L> Handle<'a, Knob<L>>
impl<'a, L> Handle<'a, Knob<L>>
pub fn on_changing<F>(self, callback: F) -> Handle<'a, Knob<L>>
source§impl Handle<'_, Label>
impl Handle<'_, Label>
sourcepub fn describing(
self,
entity_identifier: impl Into<String>,
) -> Handle<'_, Label>
pub fn describing( self, entity_identifier: impl Into<String>, ) -> Handle<'_, Label>
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<'v> Handle<'v, ScrollList>
impl<'v> Handle<'v, ScrollList>
pub fn on_select<F>(self, callback: F) -> Handle<'v, ScrollList>
source§impl<'a> Handle<'a, Popup>
impl<'a> Handle<'a, Popup>
sourcepub fn placement(self, placement: impl Res<Placement>) -> Handle<'a, Popup>
pub fn placement(self, placement: impl Res<Placement>) -> Handle<'a, Popup>
Sets the position where the tooltip should appear relative to its parent element.
Defaults to Placement::Bottom
.
sourcepub fn arrow(self, show_arrow: bool) -> Handle<'a, Popup>
pub fn arrow(self, show_arrow: bool) -> Handle<'a, Popup>
Sets whether the popup should include an arrow. Defaults to true.
sourcepub fn arrow_size(self, size: impl Into<Length>) -> Handle<'a, Popup>
pub fn arrow_size(self, size: impl Into<Length>) -> Handle<'a, Popup>
Sets the size of the popup arrow, or gap if the arrow is hidden.
sourcepub fn should_reposition(self, flag: bool) -> Handle<'a, Popup>
pub fn should_reposition(self, flag: bool) -> Handle<'a, Popup>
Set to whether the popup should reposition to always be visible.
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) -> Handle<'_, RadioButton>where
F: 'static + Fn(&mut EventContext<'_>),
pub fn on_select<F>(self, callback: F) -> Handle<'_, RadioButton>where
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> Handle<'a, ScrollView>
impl<'a> Handle<'a, ScrollView>
sourcepub fn on_scroll(
self,
callback: impl Fn(&mut EventContext<'_>, f32, f32) + Send + Sync + 'static,
) -> Handle<'a, ScrollView>
pub fn on_scroll( self, callback: impl Fn(&mut EventContext<'_>, f32, f32) + Send + Sync + 'static, ) -> Handle<'a, ScrollView>
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) -> Handle<'a, ScrollView>
pub fn scrollx(self, scrollx: impl Res<f32>) -> Handle<'a, ScrollView>
pub fn scrolly(self, scrollx: impl Res<f32>) -> Handle<'a, ScrollView>
source§impl<L> Handle<'_, Slider<L>>where
L: Lens,
impl<L> Handle<'_, Slider<L>>where
L: Lens,
sourcepub fn on_changing<F>(self, callback: F) -> Handle<'_, Slider<L>>
pub fn on_changing<F>(self, callback: F) -> Handle<'_, Slider<L>>
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>) -> Handle<'_, Slider<L>>
pub fn range(self, range: Range<f32>) -> Handle<'_, Slider<L>>
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) -> Handle<'_, Slider<L>>
source§impl Handle<'_, NamedSlider>
impl Handle<'_, NamedSlider>
pub fn on_changing<F>(self, callback: F) -> Handle<'_, NamedSlider>
pub fn range(self, range: Range<f32>) -> Handle<'_, NamedSlider>
pub fn keyboard_fraction( self, keyboard_fraction: f32, ) -> Handle<'_, NamedSlider>
source§impl<'a> Handle<'a, Spinbox>
impl<'a> Handle<'a, Spinbox>
pub fn on_increment<F>(self, callback: F) -> Handle<'a, Spinbox>
pub fn on_decrement<F>(self, callback: F) -> Handle<'a, Spinbox>
pub fn orientation( self, orientation: impl Res<Orientation>, ) -> Handle<'a, Spinbox>
pub fn icons(self, icons: impl Res<SpinboxIcons>) -> Handle<'a, Spinbox>
source§impl<'a, L> Handle<'a, Textbox<L>>where
L: Lens,
impl<'a, L> Handle<'a, Textbox<L>>where
L: Lens,
sourcepub fn on_edit<F>(self, callback: F) -> Handle<'a, Textbox<L>>
pub fn on_edit<F>(self, callback: F) -> Handle<'a, Textbox<L>>
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) -> Handle<'a, Textbox<L>>
pub fn on_submit<F>(self, callback: F) -> Handle<'a, Textbox<L>>
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) -> Handle<'a, Textbox<L>>
pub fn on_blur<F>(self, callback: F) -> Handle<'a, Textbox<L>>
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) -> Handle<'a, Textbox<L>>
pub fn on_cancel<F>(self, callback: F) -> Handle<'a, Textbox<L>>
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) -> Handle<'a, Textbox<L>>
pub fn validate<F>(self, is_valid: F) -> Handle<'a, Textbox<L>>
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>(self, text: impl Res<P>) -> Handle<'a, Textbox<L>>where
P: ToStringLocalized,
pub fn placeholder<P>(self, text: impl Res<P>) -> Handle<'a, Textbox<L>>where
P: ToStringLocalized,
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) -> Handle<'a, Tooltip>
pub fn placement(self, placement: Placement) -> Handle<'a, Tooltip>
Sets the position where the tooltip should appear relative to its parent element.
Defaults to Placement::Bottom
.
sourcepub fn arrow(self, show_arrow: bool) -> Handle<'a, Tooltip>
pub fn arrow(self, show_arrow: bool) -> Handle<'a, Tooltip>
Sets whether the tooltip should include an arrow. Defaults to true.
pub fn arrow_size(self, size: impl Into<Length>) -> Handle<'a, Tooltip>
source§impl<'a> Handle<'a, VirtualList>
impl<'a> Handle<'a, VirtualList>
pub fn scroll_to_cursor(self, flag: bool) -> Handle<'a, VirtualList>
Trait Implementations§
source§impl<'a, V> AbilityModifiers for Handle<'a, V>
impl<'a, V> AbilityModifiers for Handle<'a, V>
source§fn hoverable<U>(self, state: impl Res<U>) -> Self
fn hoverable<U>(self, state: impl Res<U>) -> Self
source§fn focusable<U>(self, state: impl Res<U>) -> Self
fn focusable<U>(self, state: impl Res<U>) -> Self
source§fn checkable<U>(self, state: impl Res<U>) -> Self
fn checkable<U>(self, state: impl Res<U>) -> Self
source§impl<'a, V> AccessibilityModifiers for Handle<'a, V>where
V: View,
impl<'a, V> AccessibilityModifiers for Handle<'a, V>where
V: View,
source§fn name<U>(self, name: impl Res<U>) -> Selfwhere
U: ToStringLocalized,
fn name<U>(self, name: impl Res<U>) -> Selfwhere
U: ToStringLocalized,
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>(self, value: impl Res<U>) -> Self
fn numeric_value<U>(self, value: impl Res<U>) -> Self
source§fn text_value<U>(self, value: impl Res<U>) -> Selfwhere
U: ToStringLocalized,
fn text_value<U>(self, value: impl Res<U>) -> Selfwhere
U: ToStringLocalized,
source§impl<'a, V> ActionModifiers<V> for Handle<'a, V>where
V: View,
impl<'a, V> ActionModifiers<V> for Handle<'a, V>where
V: View,
fn tooltip<C>(self, content: C) -> Handle<'a, V>
source§fn on_press_down<F>(self, action: F) -> Handle<'a, V>
fn on_press_down<F>(self, action: F) -> Handle<'a, V>
source§fn on_double_click<F>(self, action: F) -> Handle<'a, V>
fn on_double_click<F>(self, action: F) -> Handle<'a, V>
MouseDoubleClick
event. Read moresource§fn on_hover<F>(self, action: F) -> Handle<'a, V>
fn on_hover<F>(self, action: F) -> Handle<'a, V>
source§fn on_hover_out<F>(self, action: F) -> Handle<'a, V>
fn on_hover_out<F>(self, action: F) -> Handle<'a, V>
source§fn on_over<F>(self, action: F) -> Handle<'a, V>
fn on_over<F>(self, action: F) -> Handle<'a, V>
source§fn on_over_out<F>(self, action: F) -> Handle<'a, V>
fn on_over_out<F>(self, action: F) -> Handle<'a, V>
source§fn on_mouse_move<F>(self, action: F) -> Handle<'a, V>
fn on_mouse_move<F>(self, action: F) -> Handle<'a, V>
source§fn on_mouse_down<F>(self, action: F) -> Handle<'a, V>
fn on_mouse_down<F>(self, action: F) -> Handle<'a, V>
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) -> Handle<'a, V>
fn on_mouse_up<F>(self, action: F) -> Handle<'a, V>
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) -> Handle<'a, V>
fn on_focus_in<F>(self, action: F) -> Handle<'a, V>
source§fn on_focus_out<F>(self, action: F) -> Handle<'a, V>
fn on_focus_out<F>(self, action: F) -> Handle<'a, V>
source§fn on_geo_changed<F>(self, action: F) -> Handle<'a, V>
fn on_geo_changed<F>(self, action: F) -> Handle<'a, V>
fn on_drag<F>(self, action: F) -> Handle<'a, V>
fn on_drop<F>(self, action: F) -> Handle<'a, V>
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§fn variant<U>(self, variant: impl Res<U>) -> Handle<'a, ButtonGroup>where
U: Into<ButtonVariant>,
fn variant<U>(self, variant: impl Res<U>) -> Handle<'a, ButtonGroup>where
U: Into<ButtonVariant>,
source§impl<'a, V> DataContext for Handle<'a, V>
impl<'a, V> DataContext for Handle<'a, V>
source§fn data<T>(&self) -> Option<&T>where
T: 'static,
fn data<T>(&self) -> Option<&T>where
T: 'static,
None
if the data does not exist.fn as_context(&self) -> Option<LocalizationContext<'_>>
source§impl<'a, V> LayoutModifiers for Handle<'a, V>where
V: View,
impl<'a, V> LayoutModifiers for Handle<'a, V>where
V: View,
source§fn layout_type<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LayoutType>,
fn layout_type<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LayoutType>,
source§fn position_type<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<PositionType>,
fn position_type<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<PositionType>,
source§fn left<U>(self, value: impl Res<U>) -> Self
fn left<U>(self, value: impl Res<U>) -> Self
source§fn right<U>(self, value: impl Res<U>) -> Self
fn right<U>(self, value: impl Res<U>) -> Self
source§fn top<U>(self, value: impl Res<U>) -> Self
fn top<U>(self, value: impl Res<U>) -> Self
source§fn bottom<U>(self, value: impl Res<U>) -> Self
fn bottom<U>(self, value: impl Res<U>) -> Self
source§fn child_left<U>(self, value: impl Res<U>) -> Self
fn child_left<U>(self, value: impl Res<U>) -> Self
source§fn child_right<U>(self, value: impl Res<U>) -> Self
fn child_right<U>(self, value: impl Res<U>) -> Self
source§fn child_top<U>(self, value: impl Res<U>) -> Self
fn child_top<U>(self, value: impl Res<U>) -> Self
source§fn child_bottom<U>(self, value: impl Res<U>) -> Self
fn child_bottom<U>(self, value: impl Res<U>) -> Self
source§fn child_space<U>(self, value: impl Res<U>) -> Self
fn child_space<U>(self, value: impl Res<U>) -> Self
source§fn row_between<U>(self, value: impl Res<U>) -> Self
fn row_between<U>(self, value: impl Res<U>) -> Self
source§fn col_between<U>(self, value: impl Res<U>) -> Self
fn col_between<U>(self, value: impl Res<U>) -> Self
source§fn min_height<U>(self, value: impl Res<U>) -> Self
fn min_height<U>(self, value: impl Res<U>) -> Self
source§fn min_size<U>(self, value: impl Res<U>) -> Self
fn min_size<U>(self, value: impl Res<U>) -> Self
source§fn max_height<U>(self, value: impl Res<U>) -> Self
fn max_height<U>(self, value: impl Res<U>) -> Self
source§fn max_size<U>(self, value: impl Res<U>) -> Self
fn max_size<U>(self, value: impl Res<U>) -> Self
source§fn min_bottom<U>(self, value: impl Res<U>) -> Self
fn min_bottom<U>(self, value: impl Res<U>) -> Self
source§fn min_space<U>(self, value: impl Res<U>) -> Self
fn min_space<U>(self, value: impl Res<U>) -> Self
source§fn max_bottom<U>(self, value: impl Res<U>) -> Self
fn max_bottom<U>(self, value: impl Res<U>) -> Self
source§impl<'a, V> StyleModifiers for Handle<'a, V>where
V: View,
impl<'a, V> StyleModifiers for Handle<'a, V>where
V: View,
source§fn toggle_class(self, name: &str, applied: impl Res<bool>) -> Self
fn toggle_class(self, name: &str, applied: impl Res<bool>) -> Self
fn read_only<U>(self, state: impl Res<U>) -> Self
fn read_write<U>(self, state: impl Res<U>) -> Self
source§fn display<U>(self, value: impl Res<U>) -> Self
fn display<U>(self, value: impl Res<U>) -> Self
source§fn visibility<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<Visibility>,
fn visibility<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<Visibility>,
fn overflow<U>(self, value: impl Res<U>) -> Self
source§fn overflowx<U>(self, value: impl Res<U>) -> Self
fn overflowx<U>(self, value: impl Res<U>) -> Self
source§fn overflowy<U>(self, value: impl Res<U>) -> Self
fn overflowy<U>(self, value: impl Res<U>) -> Self
source§fn backdrop_filter<U>(self, value: impl Res<U>) -> Self
fn backdrop_filter<U>(self, value: impl Res<U>) -> Self
fn shadows<U>(self, value: impl Res<U>) -> Self
fn background_gradient<U>(self, value: impl Res<U>) -> Self
source§fn background_color<U>(self, value: impl Res<U>) -> Self
fn background_color<U>(self, value: impl Res<U>) -> Self
fn background_image<'i, U>(self, value: impl Res<U>) -> Selfwhere
U: Into<BackgroundImage<'i>>,
source§fn border_width<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn border_width<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn border_color<U>(self, value: impl Res<U>) -> Self
fn border_color<U>(self, value: impl Res<U>) -> Self
source§fn border_style<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<BorderStyleKeyword>,
fn border_style<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<BorderStyleKeyword>,
source§fn corner_top_left_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn corner_top_left_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn corner_top_right_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn corner_top_right_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn corner_bottom_left_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn corner_bottom_left_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn corner_bottom_right_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn corner_bottom_right_radius<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn corner_radius<U>(self, value: impl Res<U>) -> Self
fn corner_radius<U>(self, value: impl Res<U>) -> Self
source§fn corner_top_left_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
fn corner_top_left_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
source§fn corner_top_right_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
fn corner_top_right_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
source§fn corner_bottom_left_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
fn corner_bottom_left_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
source§fn corner_bottom_right_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
fn corner_bottom_right_shape<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CornerShape>,
source§fn corner_shape<U>(self, value: impl Res<U>) -> Self
fn corner_shape<U>(self, value: impl Res<U>) -> Self
source§fn corner_top_left_smoothing<U>(self, value: impl Res<U>) -> Self
fn corner_top_left_smoothing<U>(self, value: impl Res<U>) -> Self
source§fn corner_top_right_smoothing<U>(self, value: impl Res<U>) -> Self
fn corner_top_right_smoothing<U>(self, value: impl Res<U>) -> Self
source§fn corner_bottom_left_smoothing<U>(self, value: impl Res<U>) -> Self
fn corner_bottom_left_smoothing<U>(self, value: impl Res<U>) -> Self
source§fn corner_bottom_right_smoothing<U>(self, value: impl Res<U>) -> Self
fn corner_bottom_right_smoothing<U>(self, value: impl Res<U>) -> Self
source§fn corner_smoothing<U>(self, value: impl Res<U>) -> Self
fn corner_smoothing<U>(self, value: impl Res<U>) -> Self
source§fn outline_width<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn outline_width<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn outline_color<U>(self, value: impl Res<U>) -> Self
fn outline_color<U>(self, value: impl Res<U>) -> Self
source§fn outline_offset<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
fn outline_offset<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<LengthOrPercentage>,
source§fn cursor<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CursorIcon>,
fn cursor<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<CursorIcon>,
source§fn pointer_events<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<PointerEvents>,
fn pointer_events<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<PointerEvents>,
source§fn transform<U>(self, value: impl Res<U>) -> Self
fn transform<U>(self, value: impl Res<U>) -> Self
source§fn transform_origin<U>(self, value: impl Res<U>) -> Self
fn transform_origin<U>(self, value: impl Res<U>) -> Self
source§fn translate<U>(self, value: impl Res<U>) -> Self
fn translate<U>(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>(self, value: impl Res<T>) -> Selfwhere
T: ToStringLocalized,
fn text<T>(self, value: impl Res<T>) -> Selfwhere
T: ToStringLocalized,
source§fn font_family<U>(self, value: impl Res<U>) -> Self
fn font_family<U>(self, value: impl Res<U>) -> Self
source§fn font_weight<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<FontWeight>,
fn font_weight<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<FontWeight>,
source§fn font_slant<U>(self, value: impl Res<U>) -> Self
fn font_slant<U>(self, value: impl Res<U>) -> Self
source§fn font_width<U>(self, value: impl Res<U>) -> Self
fn font_width<U>(self, value: impl Res<U>) -> Self
source§fn font_variation_settings<U>(self, value: impl Res<U>) -> Self
fn font_variation_settings<U>(self, value: impl Res<U>) -> Self
source§fn caret_color<U>(self, value: impl Res<U>) -> Self
fn caret_color<U>(self, value: impl Res<U>) -> Self
source§fn selection_color<U>(self, value: impl Res<U>) -> Self
fn selection_color<U>(self, value: impl Res<U>) -> Self
source§fn text_wrap<U>(self, value: impl Res<U>) -> Self
fn text_wrap<U>(self, value: impl Res<U>) -> Self
source§fn text_align<U>(self, value: impl Res<U>) -> Self
fn text_align<U>(self, value: impl Res<U>) -> Self
source§fn text_overflow<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<TextOverflow>,
fn text_overflow<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<TextOverflow>,
source§fn line_clamp<U>(self, value: impl Res<U>) -> Self
fn line_clamp<U>(self, value: impl Res<U>) -> Self
source§fn text_decoration_line<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<TextDecorationLine>,
fn text_decoration_line<U>(self, value: impl Res<U>) -> Selfwhere
U: Into<TextDecorationLine>,
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, ) -> Handle<'a, ToggleButton>
source§impl<'a> WindowModifiers for Handle<'a, Window>
impl<'a> WindowModifiers for Handle<'a, Window>
fn on_close( self, callback: impl Fn(&mut EventContext<'_>) + 'static, ) -> Handle<'a, Window>
fn on_create( self, callback: impl Fn(&mut EventContext<'_>) + 'static, ) -> Handle<'a, Window>
source§fn title<T>(self, title: impl Res<T>) -> Handle<'a, Window>where
T: ToString,
fn title<T>(self, title: impl Res<T>) -> Handle<'a, Window>where
T: ToString,
ToString
. Read moresource§fn inner_size<S>(self, size: impl Res<S>) -> Handle<'a, Window>where
S: Into<WindowSize>,
fn inner_size<S>(self, size: impl Res<S>) -> Handle<'a, Window>where
S: Into<WindowSize>,
WindowSize
]. Read moresource§fn min_inner_size<S>(self, size: impl Res<Option<S>>) -> Handle<'a, Window>where
S: Into<WindowSize>,
fn min_inner_size<S>(self, size: impl Res<Option<S>>) -> Handle<'a, Window>where
S: Into<WindowSize>,
WindowSize
]. Read moresource§fn max_inner_size<S>(self, size: impl Res<Option<S>>) -> Handle<'a, Window>where
S: Into<WindowSize>,
fn max_inner_size<S>(self, size: impl Res<Option<S>>) -> Handle<'a, Window>where
S: Into<WindowSize>,
WindowSize
]. Read moresource§fn position<P>(self, position: impl Res<P>) -> Handle<'a, Window>where
P: Into<WindowPosition>,
fn position<P>(self, position: impl Res<P>) -> Handle<'a, Window>where
P: Into<WindowPosition>,
Position
]. Read moresource§fn resizable(self, flag: impl Res<bool>) -> Handle<'a, Window>
fn resizable(self, flag: impl Res<bool>) -> Handle<'a, Window>
source§fn minimized(self, flag: impl Res<bool>) -> Handle<'a, Window>
fn minimized(self, flag: impl Res<bool>) -> Handle<'a, Window>
source§fn maximized(self, flag: impl Res<bool>) -> Handle<'a, Window>
fn maximized(self, flag: impl Res<bool>) -> Handle<'a, Window>
source§fn visible(self, flag: bool) -> Handle<'a, Window>
fn visible(self, flag: bool) -> Handle<'a, Window>
source§fn transparent(self, flag: bool) -> Handle<'a, Window>
fn transparent(self, flag: bool) -> Handle<'a, Window>
source§fn decorations(self, flag: bool) -> Handle<'a, Window>
fn decorations(self, flag: bool) -> Handle<'a, Window>
source§fn always_on_top(self, flag: bool) -> Handle<'a, Window>
fn always_on_top(self, flag: bool) -> Handle<'a, Window>
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.