pub struct ReversibleStackPanel { /* private fields */ }Expand description
Implements a panel which lays out its children horizontally or vertically and can reverse the order of its children.
Implementations§
Source§impl ReversibleStackPanel
impl ReversibleStackPanel
Sourcepub fn reverse_order_property() -> &'static StyledProperty<bool>
pub fn reverse_order_property() -> &'static StyledProperty<bool>
Defines the ReverseOrder property.
Source§impl ReversibleStackPanel
impl ReversibleStackPanel
Sourcepub fn construct() -> Self
pub fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
pub fn new() -> Ref<Self>
Sourcepub fn reverse_order(&self) -> bool
pub fn reverse_order(&self) -> bool
Whether the order of the children is reversed when they are arranged.
pub fn set_reverse_order(&self, value: bool)
Methods from Deref<Target = StackPanel>§
Sourcepub fn to_ref(&self) -> Ref<StackPanel>
pub fn to_ref(&self) -> Ref<StackPanel>
Returns a strong reference to this object.
Sourcepub fn arrange_child(
&self,
child: &Ref<Control>,
rect: Rect,
panel_size: Size,
orientation: Orientation,
)
pub fn arrange_child( &self, child: &Ref<Control>, rect: Rect, panel_size: Size, orientation: Orientation, )
Arranges a single child in the slot computed by the panel.
Sourcepub fn get_control_in_direction(
&self,
direction: NavigationDirection,
from: Option<&Ref<Control>>,
) -> Option<Ref<InputElement>>
pub fn get_control_in_direction( &self, direction: NavigationDirection, from: Option<&Ref<Control>>, ) -> Option<Ref<InputElement>>
Gets the next control in the specified direction.
from is the control from which movement begins.
pub fn set_spacing(&self, value: f64)
Sourcepub fn orientation(&self) -> Orientation
pub fn orientation(&self) -> Orientation
The orientation in which child controls will be layed out.
pub fn set_orientation(&self, value: Orientation)
Sourcepub fn horizontal_snap_points_changed(
&self,
handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn horizontal_snap_points_changed( &self, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the measurements for horizontal snap points change.
Sourcepub fn vertical_snap_points_changed(
&self,
handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn vertical_snap_points_changed( &self, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the measurements for vertical snap points change.
Sourcepub fn are_horizontal_snap_points_regular(&self) -> bool
pub fn are_horizontal_snap_points_regular(&self) -> bool
Whether the horizontal snap points for the panel are equidistant from each other.
pub fn set_are_horizontal_snap_points_regular(&self, value: bool)
Sourcepub fn are_vertical_snap_points_regular(&self) -> bool
pub fn are_vertical_snap_points_regular(&self) -> bool
Whether the vertical snap points for the panel are equidistant from each other.
pub fn set_are_vertical_snap_points_regular(&self, value: bool)
Sourcepub fn get_irregular_snap_points(
&self,
orientation: Orientation,
snap_points_alignment: SnapPointsAlignment,
) -> Vec<f64>
pub fn get_irregular_snap_points( &self, orientation: Orientation, snap_points_alignment: SnapPointsAlignment, ) -> Vec<f64>
Returns the set of distances between irregular snap points for a specified orientation and alignment.
Panics if the snap points of the orientation are regular.
Sourcepub fn get_regular_snap_points(
&self,
_orientation: Orientation,
snap_points_alignment: SnapPointsAlignment,
) -> (f64, f64)
pub fn get_regular_snap_points( &self, _orientation: Orientation, snap_points_alignment: SnapPointsAlignment, ) -> (f64, f64)
Gets the distance between regular snap points for a specified orientation and alignment, and the offset of the first snap point.
Panics if the snap points of the panel’s orientation are not regular.
Methods from Deref<Target = Panel>§
Sourcepub fn children_changed(
&self,
e: &NotifyCollectionChangedEventArgs<'_, Ref<Control>>,
)
pub fn children_changed( &self, e: &NotifyCollectionChangedEventArgs<'_, Ref<Control>>, )
Called when the children collection changes.
Sourcepub fn invalidate_measure_on_children_changed(&self)
pub fn invalidate_measure_on_children_changed(&self)
Invalidates the measure of the panel after its children changed.
Sourcepub fn background(&self) -> Option<Rc<dyn IBrush>>
pub fn background(&self) -> Option<Rc<dyn IBrush>>
A brush with which to paint the background.
pub fn set_background(&self, value: Option<Rc<dyn IBrush>>)
Sourcepub fn is_items_host(&self) -> bool
pub fn is_items_host(&self) -> bool
Whether this panel hosts the items created by an items presenter.
Sourcepub fn set_is_items_host(&self, value: bool)
pub fn set_is_items_host(&self, value: bool)
Marks the panel as the host of the items created by an items presenter: its children are then not its logical children.
Methods from Deref<Target = Control>§
Sourcepub fn find_data_template(
&self,
data: Option<&BoxedValue>,
primary: Option<&Rc<dyn IDataTemplate>>,
) -> Option<Rc<dyn IDataTemplate>>
pub fn find_data_template( &self, data: Option<&BoxedValue>, primary: Option<&Rc<dyn IDataTemplate>>, ) -> Option<Rc<dyn IDataTemplate>>
Find a data template that matches a piece of data.
primary is an optional primary template that can display the data.
Returns the data template or None if no matching data template was
found.
Sourcepub fn get_template_focus_target(&self) -> Option<Ref<Control>>
pub fn get_template_focus_target(&self) -> Option<Ref<Control>>
Gets the element that receives the focus adorner.
Sourcepub fn on_loaded(&self, e: &RoutedEventArgs)
pub fn on_loaded(&self, e: &RoutedEventArgs)
Raises the Loaded event.
Sourcepub fn on_unloaded(&self, e: &RoutedEventArgs)
pub fn on_unloaded(&self, e: &RoutedEventArgs)
Raises the Unloaded event.
Sourcepub fn on_size_changed(&self, e: &SizeChangedEventArgs)
pub fn on_size_changed(&self, e: &SizeChangedEventArgs)
Raises the SizeChanged event.
Sourcepub fn on_create_automation_peer(&self) -> Ref<AutomationPeer>
pub fn on_create_automation_peer(&self) -> Ref<AutomationPeer>
Returns a new, type-specific automation peer implementation for the control.
Sourcepub fn focus_adorner(&self) -> Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>
pub fn focus_adorner(&self) -> Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>
The control’s focus adorner.
pub fn set_focus_adorner( &self, value: Option<Rc<dyn ITemplateOf<Option<Ref<Control>>>>>, )
Sourcepub fn data_templates(&self) -> DataTemplates
pub fn data_templates(&self) -> DataTemplates
The data templates for the control.
Each control may define data templates which are applied to the control itself and its children.
Sourcepub fn is_data_templates_initialized(&self) -> bool
pub fn is_data_templates_initialized(&self) -> bool
Whether the data templates collection has been created.
A context menu to the control.
Sourcepub fn context_flyout(&self) -> Option<Ref<FlyoutBase>>
pub fn context_flyout(&self) -> Option<Ref<FlyoutBase>>
A context flyout to the control.
pub fn set_context_flyout(&self, value: impl Into<Nullable<FlyoutBase>>)
Sourcepub fn is_loaded(&self) -> bool
pub fn is_loaded(&self) -> bool
Whether the control is fully constructed in the visual tree and both layout and render are complete.
This is set to true while raising the Loaded event.
Sourcepub fn tag(&self) -> Option<BoxedValue>
pub fn tag(&self) -> Option<BoxedValue>
A user-defined object attached to the control.
pub fn set_tag(&self, value: Option<BoxedValue>)
Sourcepub fn loaded(
&self,
handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn loaded( &self, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the control has been fully constructed in the visual tree and both layout and render are complete.
This event is guaranteed to occur after the control template is
applied and references to objects created after the template is
applied are available. This makes it different from
on_attached_to_visual_tree which doesn’t have these references. This
event occurs at the latest possible time in the control creation
life-cycle.
Sourcepub fn unloaded(
&self,
handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn unloaded( &self, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the control is removed from the visual tree.
This is API symmetrical with loaded and exists for compatibility
with other XAML frameworks; however, it behaves the same as
on_detached_from_visual_tree.
Sourcepub fn size_changed(
&self,
handler: impl Fn(&Interactive, &SizeChangedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn size_changed( &self, handler: impl Fn(&Interactive, &SizeChangedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the bounds (actual size) of the control have changed.
Sourcepub fn ensure_initialized(&self)
pub fn ensure_initialized(&self)
Ensures that the control is initialized and laid out when it is used as the source of a visual brush while not attached to a visual root.
Sourcepub fn bring_into_view(&self)
pub fn bring_into_view(&self)
Tries to bring the control into view.
Sourcepub fn bring_into_view_rect(&self, rect: Rect)
pub fn bring_into_view_rect(&self, rect: Rect)
Tries to bring the control into view.
rect is the area of the control to being into view.
Sourcepub fn find_control<T: ObjectType>(&self, name: &str) -> Option<Ref<T>>
pub fn find_control<T: ObjectType>(&self, name: &str) -> Option<Ref<T>>
Finds the named control in the scope of the specified control.
Returns the control or None if not found; panics if the control has
no parent name scope or the named control is of a different class.
Sourcepub fn get_control<T: ObjectType>(&self, name: &str) -> Ref<T>
pub fn get_control<T: ObjectType>(&self, name: &str) -> Ref<T>
Gets the named control in the scope of the specified control.
Panics if the control has no parent name scope or the named control is not found.
Sourcepub fn set_pseudo_class_from(
&self,
name: &str,
trigger: &dyn IObservable<bool>,
) -> Rc<dyn IDisposable>
pub fn set_pseudo_class_from( &self, name: &str, trigger: &dyn IObservable<bool>, ) -> Rc<dyn IDisposable>
Sets a pseudoclass of the control depending on an observable trigger.
Returns a disposable used to cancel the subscription.
Methods from Deref<Target = InputElement>§
Sourcepub fn to_ref(&self) -> Ref<InputElement>
pub fn to_ref(&self) -> Ref<InputElement>
Returns a strong reference to this object.
Sourcepub fn is_enabled_core(&self) -> bool
pub fn is_enabled_core(&self) -> bool
Whether the control is enabled, as far as the control itself is
concerned. The default is the value of is_enabled; controls
with additional conditions (e.g. a command that cannot execute)
override this.
Sourcepub fn is_focus_scope(&self) -> bool
pub fn is_focus_scope(&self) -> bool
Whether the element is a focus scope: an element that remembers which of its descendants was focused last.
Sourcepub fn on_getting_focus(&self, e: &FocusChangingEventArgs)
pub fn on_getting_focus(&self, e: &FocusChangingEventArgs)
Called when the control or one of its child elements is about to get focus.
Sourcepub fn on_losing_focus(&self, e: &FocusChangingEventArgs)
pub fn on_losing_focus(&self, e: &FocusChangingEventArgs)
Called when the control or one of its child elements is about to lose focus.
Sourcepub fn on_got_focus(&self, e: &FocusChangedEventArgs)
pub fn on_got_focus(&self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements gets focus.
Sourcepub fn on_lost_focus(&self, e: &FocusChangedEventArgs)
pub fn on_lost_focus(&self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements loses focus.
Sourcepub fn on_key_down(&self, e: &KeyEventArgs)
pub fn on_key_down(&self, e: &KeyEventArgs)
Called before the key down event occurs.
Sourcepub fn on_key_up(&self, e: &KeyEventArgs)
pub fn on_key_up(&self, e: &KeyEventArgs)
Called before the key up event occurs.
Sourcepub fn on_text_input(&self, e: &TextInputEventArgs)
pub fn on_text_input(&self, e: &TextInputEventArgs)
Called before the text input event occurs.
Sourcepub fn on_pointer_entered(&self, e: &PointerEventArgs)
pub fn on_pointer_entered(&self, e: &PointerEventArgs)
Called before the pointer entered event occurs.
Sourcepub fn on_pointer_exited(&self, e: &PointerEventArgs)
pub fn on_pointer_exited(&self, e: &PointerEventArgs)
Called before the pointer exited event occurs.
Sourcepub fn on_pointer_moved(&self, e: &PointerEventArgs)
pub fn on_pointer_moved(&self, e: &PointerEventArgs)
Called before the pointer moved event occurs.
Sourcepub fn on_pointer_pressed(&self, e: &PointerPressedEventArgs)
pub fn on_pointer_pressed(&self, e: &PointerPressedEventArgs)
Called before the pointer pressed event occurs.
Sourcepub fn on_pointer_released(&self, e: &PointerReleasedEventArgs)
pub fn on_pointer_released(&self, e: &PointerReleasedEventArgs)
Called before the pointer released event occurs.
Sourcepub fn on_pointer_capture_changing(&self, e: &PointerCaptureChangingEventArgs)
pub fn on_pointer_capture_changing(&self, e: &PointerCaptureChangingEventArgs)
Called when the capture of a pointer is about to change on the control or one of its descendants.
Sourcepub fn on_pointer_capture_lost(&self, e: &PointerCaptureLostEventArgs)
pub fn on_pointer_capture_lost(&self, e: &PointerCaptureLostEventArgs)
Called before the pointer capture lost event occurs.
Sourcepub fn on_pointer_wheel_changed(&self, e: &PointerWheelEventArgs)
pub fn on_pointer_wheel_changed(&self, e: &PointerWheelEventArgs)
Called before the pointer wheel changed event occurs.
Sourcepub fn on_tapped(&self, e: &TappedEventArgs)
pub fn on_tapped(&self, e: &TappedEventArgs)
Called when a tap gesture occurs on the control.
Sourcepub fn on_right_tapped(&self, e: &TappedEventArgs)
pub fn on_right_tapped(&self, e: &TappedEventArgs)
Called when a right tap gesture occurs on the control.
Sourcepub fn on_double_tapped(&self, e: &TappedEventArgs)
pub fn on_double_tapped(&self, e: &TappedEventArgs)
Called when a double-tap gesture occurs on the control.
Sourcepub fn on_holding(&self, e: &HoldingRoutedEventArgs)
pub fn on_holding(&self, e: &HoldingRoutedEventArgs)
Called when a hold gesture occurs on the control.
Sourcepub fn on_access_key(&self, e: &(dyn IRoutedEventArgs + 'static))
pub fn on_access_key(&self, e: &(dyn IRoutedEventArgs + 'static))
Called when the access key of the control is pressed. The default focuses the control.
Sourcepub fn get_next_tab_stop_override(&self) -> Option<Ref<InputElement>>
pub fn get_next_tab_stop_override(&self) -> Option<Ref<InputElement>>
Called when focus is moving forward out of this element: lets it name the element that should receive focus next.
Sourcepub fn get_previous_tab_stop_override(&self) -> Option<Ref<InputElement>>
pub fn get_previous_tab_stop_override(&self) -> Option<Ref<InputElement>>
Called when focus is moving backward out of this element: lets it name the element that should receive focus next.
Sourcepub fn get_first_focusable_element_override(&self) -> Option<Ref<InputElement>>
pub fn get_first_focusable_element_override(&self) -> Option<Ref<InputElement>>
Lets the element name the first focusable element within it.
Sourcepub fn get_last_focusable_element_override(&self) -> Option<Ref<InputElement>>
pub fn get_last_focusable_element_override(&self) -> Option<Ref<InputElement>>
Lets the element name the last focusable element within it.
Sourcepub fn process_tab_stop_override(
&self,
focused_element: Option<&Ref<InputElement>>,
candidate_tab_stop_element: Option<&Ref<InputElement>>,
is_reverse: bool,
did_cycle_focus_at_root_visual: bool,
new_tab_stop: &mut Option<Ref<InputElement>>,
) -> bool
pub fn process_tab_stop_override( &self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, did_cycle_focus_at_root_visual: bool, new_tab_stop: &mut Option<Ref<InputElement>>, ) -> bool
Lets the element (an ancestor of the focused element) override
the tab stop chosen by tab navigation. Returns true when the tab
stop is overridden; the override is written to new_tab_stop.
Sourcepub fn process_candidate_tab_stop_override(
&self,
focused_element: Option<&Ref<InputElement>>,
candidate_tab_stop_element: Option<&Ref<InputElement>>,
overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>,
is_reverse: bool,
new_tab_stop: &mut Option<Ref<InputElement>>,
) -> bool
pub fn process_candidate_tab_stop_override( &self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, new_tab_stop: &mut Option<Ref<InputElement>>, ) -> bool
Lets the element (an ancestor of the candidate tab stop)
override the tab stop chosen by tab navigation. Returns true
when the tab stop is overridden; the override is written to
new_tab_stop.
The element as a custom keyboard navigation handler, if it is one.
Sourcepub fn as_scrollable(&self) -> Option<&dyn IScrollable>
pub fn as_scrollable(&self) -> Option<&dyn IScrollable>
The element as a scrollable, if it is one.
Sourcepub fn as_hosted_visual_tree_root(&self) -> Option<&dyn IHostedVisualTreeRoot>
pub fn as_hosted_visual_tree_root(&self) -> Option<&dyn IHostedVisualTreeRoot>
The element as the root of a hosted visual tree (such as a popup root), if it is one.
Sourcepub fn got_focus(
&self,
handler: impl Fn(&Interactive, &FocusChangedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn got_focus( &self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the control receives focus.
Sourcepub fn getting_focus(
&self,
handler: impl Fn(&Interactive, &FocusChangingEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn getting_focus( &self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs before the control receives focus.
Sourcepub fn lost_focus(
&self,
handler: impl Fn(&Interactive, &FocusChangedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn lost_focus( &self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the control loses focus.
Sourcepub fn losing_focus(
&self,
handler: impl Fn(&Interactive, &FocusChangingEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn losing_focus( &self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs before the control loses focus.
Sourcepub fn key_down(
&self,
handler: impl Fn(&Interactive, &KeyEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn key_down( &self, handler: impl Fn(&Interactive, &KeyEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when a key is pressed while the control has focus.
Sourcepub fn key_up(
&self,
handler: impl Fn(&Interactive, &KeyEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn key_up( &self, handler: impl Fn(&Interactive, &KeyEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when a key is released while the control has focus.
Sourcepub fn text_input(
&self,
handler: impl Fn(&Interactive, &TextInputEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn text_input( &self, handler: impl Fn(&Interactive, &TextInputEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when a user typed some text while the control has focus.
Sourcepub fn text_input_method_client_requested(
&self,
handler: impl Fn(&Interactive, &TextInputMethodClientRequestedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn text_input_method_client_requested( &self, handler: impl Fn(&Interactive, &TextInputMethodClientRequestedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when an input element gains input focus and the input method is looking for the corresponding client.
Sourcepub fn pointer_entered(
&self,
handler: impl Fn(&Interactive, &PointerEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_entered( &self, handler: impl Fn(&Interactive, &PointerEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the pointer enters the control.
Sourcepub fn pointer_exited(
&self,
handler: impl Fn(&Interactive, &PointerEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_exited( &self, handler: impl Fn(&Interactive, &PointerEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the pointer leaves the control.
Sourcepub fn pointer_moved(
&self,
handler: impl Fn(&Interactive, &PointerEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_moved( &self, handler: impl Fn(&Interactive, &PointerEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the pointer moves over the control.
Sourcepub fn pointer_pressed(
&self,
handler: impl Fn(&Interactive, &PointerPressedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_pressed( &self, handler: impl Fn(&Interactive, &PointerPressedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the pointer is pressed over the control.
Sourcepub fn pointer_released(
&self,
handler: impl Fn(&Interactive, &PointerReleasedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_released( &self, handler: impl Fn(&Interactive, &PointerReleasedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the pointer is released over the control.
Sourcepub fn pointer_capture_changing(
&self,
handler: impl Fn(&Interactive, &PointerCaptureChangingEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_capture_changing( &self, handler: impl Fn(&Interactive, &PointerCaptureChangingEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the capture of a pointer is about to change on the control.
Sourcepub fn pointer_capture_lost(
&self,
handler: impl Fn(&Interactive, &PointerCaptureLostEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_capture_lost( &self, handler: impl Fn(&Interactive, &PointerCaptureLostEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the control or its child control loses the pointer capture for any reason; the event will not be triggered for a parent control if capture was transferred to another child of that parent control.
Sourcepub fn pointer_wheel_changed(
&self,
handler: impl Fn(&Interactive, &PointerWheelEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_wheel_changed( &self, handler: impl Fn(&Interactive, &PointerWheelEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the mouse is scrolled over the control.
Sourcepub fn context_requested(
&self,
handler: impl Fn(&Interactive, &ContextRequestedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn context_requested( &self, handler: impl Fn(&Interactive, &ContextRequestedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user has completed a context input gesture, such as a right-click.
Sourcepub fn context_canceled(
&self,
handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn context_canceled( &self, handler: impl Fn(&Interactive, &RoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the context input gesture continues into another gesture, to notify the element that the context flyout should not be opened.
pub fn set_focusable(&self, value: bool)
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether the control is enabled for user interaction.
pub fn set_is_enabled(&self, value: bool)
pub fn set_cursor(&self, value: Option<Rc<Cursor>>)
Sourcepub fn is_keyboard_focus_within(&self) -> bool
pub fn is_keyboard_focus_within(&self) -> bool
Whether keyboard focus is anywhere within the element or its visual tree child elements.
Sourcepub fn is_focused(&self) -> bool
pub fn is_focused(&self) -> bool
Whether the control is focused.
Sourcepub fn is_hit_test_visible(&self) -> bool
pub fn is_hit_test_visible(&self) -> bool
Whether the control is considered for hit testing.
pub fn set_is_hit_test_visible(&self, value: bool)
Sourcepub fn is_pointer_over(&self) -> bool
pub fn is_pointer_over(&self) -> bool
Whether the pointer is currently over the control.
Sourcepub fn is_tab_stop(&self) -> bool
pub fn is_tab_stop(&self) -> bool
Whether the control is included in tab navigation.
pub fn set_is_tab_stop(&self, value: bool)
Sourcepub fn is_effectively_enabled(&self) -> bool
pub fn is_effectively_enabled(&self) -> bool
Whether this control and all its parents are enabled.
Sourcepub fn tab_index(&self) -> i32
pub fn tab_index(&self) -> i32
A value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.
pub fn set_tab_index(&self, value: i32)
Sourcepub fn key_bindings(&self) -> FerroList<Ref<KeyBinding>>
pub fn key_bindings(&self) -> FerroList<Ref<KeyBinding>>
The key bindings for this input element.
The list is returned by handle: clones refer to the same list.
Sourcepub fn gesture_recognizers(&self) -> GestureRecognizerCollection
pub fn gesture_recognizers(&self) -> GestureRecognizerCollection
The gesture recognizers attached to this input element.
Sourcepub fn focus(&self) -> bool
pub fn focus(&self) -> bool
Focuses the control, with an unspecified navigation method and no key modifiers. Returns whether the control was focused.
Sourcepub fn focus_with(
&self,
method: NavigationMethod,
key_modifiers: KeyModifiers,
) -> bool
pub fn focus_with( &self, method: NavigationMethod, key_modifiers: KeyModifiers, ) -> bool
Focuses the control.
method is the method by which focus was changed and
key_modifiers any key modifiers active at the time of focus.
Returns whether the control was focused.
Sourcepub fn update_is_effectively_enabled(&self)
pub fn update_is_effectively_enabled(&self)
Updates the is_effectively_enabled property based on the parent’s
is_effectively_enabled.
Sourcepub fn pinch(
&self,
handler: impl Fn(&Interactive, &PinchEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pinch( &self, handler: impl Fn(&Interactive, &PinchEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user moves two contact points closer together.
Sourcepub fn pinch_ended(
&self,
handler: impl Fn(&Interactive, &PinchEndedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pinch_ended( &self, handler: impl Fn(&Interactive, &PinchEndedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user releases both contact points used in a pinch gesture.
Sourcepub fn pull_gesture(
&self,
handler: impl Fn(&Interactive, &PullGestureEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pull_gesture( &self, handler: impl Fn(&Interactive, &PullGestureEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user drags from the edge of a control.
Sourcepub fn pull_gesture_ended(
&self,
handler: impl Fn(&Interactive, &PullGestureEndedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pull_gesture_ended( &self, handler: impl Fn(&Interactive, &PullGestureEndedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user releases the pointer after a pull gesture.
Sourcepub fn scroll_gesture(
&self,
handler: impl Fn(&Interactive, &ScrollGestureEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn scroll_gesture( &self, handler: impl Fn(&Interactive, &ScrollGestureEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user continuously moves the pointer in the same direction within the control’s boundaries.
Sourcepub fn scroll_gesture_inertia_starting(
&self,
handler: impl Fn(&Interactive, &ScrollGestureInertiaStartingEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn scroll_gesture_inertia_starting( &self, handler: impl Fn(&Interactive, &ScrollGestureInertiaStartingEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs within the control’s boundaries when a scroll gesture’s inertia begins.
Sourcepub fn scroll_gesture_ended(
&self,
handler: impl Fn(&Interactive, &ScrollGestureEndedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn scroll_gesture_ended( &self, handler: impl Fn(&Interactive, &ScrollGestureEndedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when a scroll gesture ends.
Sourcepub fn pointer_touch_pad_gesture_magnify(
&self,
handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_touch_pad_gesture_magnify( &self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user moves two contact points away from each other on a touchpad.
Sourcepub fn pointer_touch_pad_gesture_rotate(
&self,
handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_touch_pad_gesture_rotate( &self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user places two contact points and moves them in a circular motion on a touchpad.
Sourcepub fn swipe_gesture(
&self,
handler: impl Fn(&Interactive, &SwipeGestureEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn swipe_gesture( &self, handler: impl Fn(&Interactive, &SwipeGestureEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user rapidly drags the pointer in a single direction across the control.
Sourcepub fn swipe_gesture_ended(
&self,
handler: impl Fn(&Interactive, &SwipeGestureEndedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn swipe_gesture_ended( &self, handler: impl Fn(&Interactive, &SwipeGestureEndedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when a swipe gesture ends on the control.
Sourcepub fn pointer_touch_pad_gesture_swipe(
&self,
handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn pointer_touch_pad_gesture_swipe( &self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user rapidly drags the pointer in a single direction on a touchpad.
Sourcepub fn tapped(
&self,
handler: impl Fn(&Interactive, &TappedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn tapped( &self, handler: impl Fn(&Interactive, &TappedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases a single point on the control.
Sourcepub fn right_tapped(
&self,
handler: impl Fn(&Interactive, &TappedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn right_tapped( &self, handler: impl Fn(&Interactive, &TappedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases a single point on the control using the secondary action.
Sourcepub fn holding(
&self,
handler: impl Fn(&Interactive, &HoldingRoutedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn holding( &self, handler: impl Fn(&Interactive, &HoldingRoutedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user makes a single contact, then maintains contact beyond a given time threshold without releasing or making another contact.
Sourcepub fn double_tapped(
&self,
handler: impl Fn(&Interactive, &TappedEventArgs) + 'static,
) -> RoutedEventHandlerToken
pub fn double_tapped( &self, handler: impl Fn(&Interactive, &TappedEventArgs) + 'static, ) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases twice on a single point, without significant movement between contacts.
Sourcepub fn get_input_elements_at(&self, p: Point) -> Vec<Ref<InputElement>>
pub fn get_input_elements_at(&self, p: Point) -> Vec<Ref<InputElement>>
Returns the active input elements at a point on the element, in the element’s coordinates, topmost first. Only enabled elements are considered.
Sourcepub fn get_input_elements_at_with(
&self,
p: Point,
enabled_elements_only: bool,
) -> Vec<Ref<InputElement>>
pub fn get_input_elements_at_with( &self, p: Point, enabled_elements_only: bool, ) -> Vec<Ref<InputElement>>
Returns the active input elements at a point on the element, in the element’s coordinates, topmost first.
enabled_elements_only tells whether only enabled elements should
be considered.
Sourcepub fn get_input_elements_at_geometry(
&self,
geometry: &Geometry,
enabled_elements_only: bool,
) -> Vec<GeometryHitTestResult>
pub fn get_input_elements_at_geometry( &self, geometry: &Geometry, enabled_elements_only: bool, ) -> Vec<GeometryHitTestResult>
Returns the active input elements intersecting a geometry on the element, in the element’s coordinates, topmost first, with the details of the intersections.
enabled_elements_only tells whether only enabled elements should
be considered.
Sourcepub fn input_hit_test(&self, p: Point) -> Option<Ref<InputElement>>
pub fn input_hit_test(&self, p: Point) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element, in the element’s coordinates. Only enabled elements are considered.
Sourcepub fn input_hit_test_with(
&self,
p: Point,
enabled_elements_only: bool,
) -> Option<Ref<InputElement>>
pub fn input_hit_test_with( &self, p: Point, enabled_elements_only: bool, ) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element, in the element’s coordinates.
enabled_elements_only tells whether only enabled elements should
be considered.
Sourcepub fn input_hit_test_geometry(
&self,
geometry: &Geometry,
enabled_elements_only: bool,
) -> Option<GeometryHitTestResult>
pub fn input_hit_test_geometry( &self, geometry: &Geometry, enabled_elements_only: bool, ) -> Option<GeometryHitTestResult>
Returns the topmost active input element intersecting a geometry on the element, in the element’s coordinates, with the details of the intersection.
enabled_elements_only tells whether only enabled elements should
be considered.
Sourcepub fn input_hit_test_filtered(
&self,
p: Point,
filter: &dyn Fn(&Visual) -> bool,
enabled_elements_only: bool,
) -> Option<Ref<InputElement>>
pub fn input_hit_test_filtered( &self, p: Point, filter: &dyn Fn(&Visual) -> bool, enabled_elements_only: bool, ) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element that also passes a filter, in the element’s coordinates.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results. enabled_elements_only
tells whether only enabled elements should be considered.
Sourcepub fn input_hit_test_geometry_filtered(
&self,
geometry: &Geometry,
filter: &dyn Fn(&Visual) -> bool,
enabled_elements_only: bool,
) -> Option<Ref<InputElement>>
pub fn input_hit_test_geometry_filtered( &self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool, enabled_elements_only: bool, ) -> Option<Ref<InputElement>>
Returns the topmost active input element intersecting a geometry on the element that also passes a filter, in the element’s coordinates.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results. enabled_elements_only
tells whether only enabled elements should be considered.
Methods from Deref<Target = Interactive>§
Sourcepub fn to_ref(&self) -> Ref<Interactive>
pub fn to_ref(&self) -> Ref<Interactive>
Returns a strong reference to this object.
Sourcepub fn interactive_parent(&self) -> Option<Ref<Interactive>>
pub fn interactive_parent(&self) -> Option<Ref<Interactive>>
The interactive parent of the object for bubbling and tunneling events. By default this is the visual parent, when it is an interactive.
Sourcepub fn add_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
) -> RoutedEventHandlerTokenwhere
TEventArgs: IRoutedEventArgs,
pub fn add_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
) -> RoutedEventHandlerTokenwhere
TEventArgs: IRoutedEventArgs,
Adds a handler for a routed event, listening to the direct and bubble routes of unhandled events.
Returns a token for remove_handler.
Sourcepub fn add_handler_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: IRoutedEventArgs,
pub fn add_handler_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: IRoutedEventArgs,
Adds a handler for a routed event.
routes selects the routing strategies to listen to, and
handled_events_too whether the handler is also invoked for events
that are already handled. The handler receives the element it is
attached to and the event args.
Sourcepub fn add_handler_as<THandlerArgs, TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &THandlerArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
THandlerArgs: IRoutedEventArgs,
TEventArgs: ?Sized,
pub fn add_handler_as<THandlerArgs, TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &THandlerArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
THandlerArgs: IRoutedEventArgs,
TEventArgs: ?Sized,
Adds a handler written against args type THandlerArgs to any
routed event whose args type is THandlerArgs or derives from it.
This is how a handler taking the base
RoutedEventArgs is attached to an event
with more specific args, and how handlers are attached to an untyped
RoutedEvent.
Panics if the event’s args type does not derive from THandlerArgs.
Sourcepub fn add_handler_untyped<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: MarkupDelegate,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: ?Sized,
pub fn add_handler_untyped<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: MarkupDelegate,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: ?Sized,
Adds an untyped handler for a routed event: what markup attaches for an event attribute.
The handler is called with two untyped values: the element it is
attached to (a Ref<Interactive>) and a shared handle to the event
args (an Rc<dyn IRoutedEventArgs>, see
IRoutedEventArgs::share). The handle refers to the live args:
marking it as handled marks the event as handled for the handlers
further along the route.
Sourcepub fn add_route_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: Rc<dyn Fn(&Interactive, &(dyn IRoutedEventArgs + 'static))>,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: ?Sized,
pub fn add_route_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: Rc<dyn Fn(&Interactive, &(dyn IRoutedEventArgs + 'static))>,
routes: RoutingStrategies,
handled_events_too: bool,
) -> RoutedEventHandlerTokenwhere
TEventArgs: ?Sized,
Adds an already adapted handler for a routed event.
Sourcepub fn remove_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: RoutedEventHandlerToken,
) -> boolwhere
TEventArgs: ?Sized,
pub fn remove_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: RoutedEventHandlerToken,
) -> boolwhere
TEventArgs: ?Sized,
Removes a handler for a routed event. Returns whether the handler was attached.
Sourcepub fn raise_event(&self, e: &(dyn IRoutedEventArgs + 'static))
pub fn raise_event(&self, e: &(dyn IRoutedEventArgs + 'static))
Raises a routed event.
Panics if the args have no routed event.
Sourcepub fn build_event_route<TEventArgs>(
&self,
e: &RoutedEvent<TEventArgs>,
) -> EventRoutewhere
TEventArgs: ?Sized,
pub fn build_event_route<TEventArgs>(
&self,
e: &RoutedEvent<TEventArgs>,
) -> EventRoutewhere
TEventArgs: ?Sized,
Builds an event route for a routed event: the handlers the event would visit if raised on this object, in bubbling order.
Sourcepub fn add_disposable_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
) -> Rc<dyn IDisposable>where
TEventArgs: IRoutedEventArgs,
pub fn add_disposable_handler<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
) -> Rc<dyn IDisposable>where
TEventArgs: IRoutedEventArgs,
Adds a handler for a routed event (direct and bubble routes, unhandled events) and returns a disposable that removes the handler when disposed.
Sourcepub fn add_disposable_handler_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> Rc<dyn IDisposable>where
TEventArgs: IRoutedEventArgs,
pub fn add_disposable_handler_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
handler: impl Fn(&Interactive, &TEventArgs) + 'static,
routes: RoutingStrategies,
handled_events_too: bool,
) -> Rc<dyn IDisposable>where
TEventArgs: IRoutedEventArgs,
Adds a handler for a routed event and returns a disposable that removes the handler when disposed.
Sourcepub fn get_interactive_parent(&self) -> Option<Ref<Interactive>>
pub fn get_interactive_parent(&self) -> Option<Ref<Interactive>>
The interactive parent of the object for bubbling and tunneling events.
Sourcepub fn get_observable<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
) -> Rc<dyn IObservable<TEventArgs>>where
TEventArgs: IRoutedEventArgs + Clone,
pub fn get_observable<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
) -> Rc<dyn IObservable<TEventArgs>>where
TEventArgs: IRoutedEventArgs + Clone,
Gets an observable for a routed event (direct and bubble routes, unhandled events).
See get_observable_with.
Sourcepub fn get_observable_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
routes: RoutingStrategies,
handled_events_too: bool,
) -> Rc<dyn IObservable<TEventArgs>>where
TEventArgs: IRoutedEventArgs + Clone,
pub fn get_observable_with<TEventArgs>(
&self,
routed_event: &RoutedEvent<TEventArgs>,
routes: RoutingStrategies,
handled_events_too: bool,
) -> Rc<dyn IObservable<TEventArgs>>where
TEventArgs: IRoutedEventArgs + Clone,
Gets an observable for a routed event.
Observers receive a copy of the args of every raise. The copy reflects the routing state at the time of the notification; marking the copy as handled does not affect the event being routed. Use a handler for that.
Methods from Deref<Target = Layoutable>§
Sourcepub fn to_ref(&self) -> Ref<Layoutable>
pub fn to_ref(&self) -> Ref<Layoutable>
Returns a strong reference to this object.
Sourcepub fn apply_template(&self)
pub fn apply_template(&self)
Creates the visual children of the control, if necessary.
Sourcepub fn measure_core(&self, available_size: Size) -> Size
pub fn measure_core(&self, available_size: Size) -> Size
The default implementation of the control’s measure pass.
This calculates the desired size taking into account the control’s
margin and min/max/explicit size, and calls measure_override for
the content. Usually measure_override is what you want to
override.
Sourcepub fn measure_override(&self, available_size: Size) -> Size
pub fn measure_override(&self, available_size: Size) -> Size
Measures the control and its child elements as part of a layout pass. Returns the size the control would like to be.
Sourcepub fn arrange_core(&self, final_rect: Rect)
pub fn arrange_core(&self, final_rect: Rect)
The default implementation of the control’s arrange pass.
This calculates the final bounds taking into account the control’s
margin, alignment and size constraints, and calls
arrange_override for the content. Usually arrange_override is
what you want to override.
Sourcepub fn arrange_override(&self, final_size: Size) -> Size
pub fn arrange_override(&self, final_size: Size) -> Size
Positions child elements as part of a layout pass. Returns the size used.
Sourcepub fn on_measure_invalidated(&self)
pub fn on_measure_invalidated(&self)
Called by invalidate_measure.
Sourcepub fn effective_viewport_changed(
&self,
handler: impl Fn(&EffectiveViewportChangedEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn effective_viewport_changed( &self, handler: impl Fn(&EffectiveViewportChangedEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Occurs when the element’s effective viewport changes.
Sourcepub fn layout_updated(
&self,
handler: impl Fn() + 'static,
) -> Rc<dyn IDisposable>
pub fn layout_updated( &self, handler: impl Fn() + 'static, ) -> Rc<dyn IDisposable>
Occurs when a layout pass completes for the control.
Sourcepub fn update_layout(&self)
pub fn update_layout(&self)
Executes a layout pass.
You should not usually need to call this method explicitly: the layout manager schedules layout passes itself.
pub fn set_width(&self, value: f64)
pub fn set_height(&self, value: f64)
pub fn set_min_width(&self, value: f64)
pub fn set_max_width(&self, value: f64)
Sourcepub fn min_height(&self) -> f64
pub fn min_height(&self) -> f64
The minimum height of the element.
pub fn set_min_height(&self, value: f64)
Sourcepub fn max_height(&self) -> f64
pub fn max_height(&self) -> f64
The maximum height of the element.
pub fn set_max_height(&self, value: f64)
pub fn set_margin(&self, value: Thickness)
Sourcepub fn horizontal_alignment(&self) -> HorizontalAlignment
pub fn horizontal_alignment(&self) -> HorizontalAlignment
The element’s preferred horizontal alignment in its parent.
pub fn set_horizontal_alignment(&self, value: HorizontalAlignment)
Sourcepub fn vertical_alignment(&self) -> VerticalAlignment
pub fn vertical_alignment(&self) -> VerticalAlignment
The element’s preferred vertical alignment in its parent.
pub fn set_vertical_alignment(&self, value: VerticalAlignment)
Sourcepub fn desired_size(&self) -> Size
pub fn desired_size(&self) -> Size
The size that this element computed during the measure pass of the layout process.
Sourcepub fn is_measure_valid(&self) -> bool
pub fn is_measure_valid(&self) -> bool
Whether the control’s layout measure is valid.
Sourcepub fn is_arrange_valid(&self) -> bool
pub fn is_arrange_valid(&self) -> bool
Whether the control’s layout arrange is valid.
Sourcepub fn use_layout_rounding(&self) -> bool
pub fn use_layout_rounding(&self) -> bool
Whether the control’s layout should be snapped to pixel boundaries.
pub fn set_use_layout_rounding(&self, value: bool)
Sourcepub fn previous_measure(&self) -> Option<Size>
pub fn previous_measure(&self) -> Option<Size>
The available size passed in the previous layout pass, if any.
Sourcepub fn previous_arrange(&self) -> Option<Rect>
pub fn previous_arrange(&self) -> Option<Rect>
The rect passed in the previous layout pass, if any.
Sourcepub fn invalidate_measure(&self)
pub fn invalidate_measure(&self)
Invalidates the measurement of the control and queues a new layout pass.
Sourcepub fn invalidate_arrange(&self)
pub fn invalidate_arrange(&self)
Invalidates the arrangement of the control and queues a new layout pass.
Methods from Deref<Target = Visual>§
Sourcepub fn calculate_distance_from_ancestor(
&self,
ancestor: Option<&Visual>,
) -> Option<usize>
pub fn calculate_distance_from_ancestor( &self, ancestor: Option<&Visual>, ) -> Option<usize>
Calculates the distance from a visual’s ancestor.
Returns the number of steps from the visual to the ancestor, or
None if this visual is not a descendent of ancestor. With no
ancestor given, never matches and returns None.
Sourcepub fn calculate_distance_from_root(&self) -> usize
pub fn calculate_distance_from_root(&self) -> usize
Calculates the distance from a visual’s root.
Sourcepub fn find_common_visual_ancestor(
&self,
target: &Visual,
) -> Option<Ref<Visual>>
pub fn find_common_visual_ancestor( &self, target: &Visual, ) -> Option<Ref<Visual>>
Tries to get the first common ancestor of two visuals.
Sourcepub fn get_visual_ancestors(&self) -> VisualAncestors ⓘ
pub fn get_visual_ancestors(&self) -> VisualAncestors ⓘ
Enumerates the ancestors of the visual in the visual tree.
Sourcepub fn get_self_and_visual_ancestors(&self) -> VisualAncestors ⓘ
pub fn get_self_and_visual_ancestors(&self) -> VisualAncestors ⓘ
Enumerates the visual and its ancestors in the visual tree.
Sourcepub fn find_ancestor_of_type<T>(&self, include_self: bool) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_ancestor_of_type<T>(&self, include_self: bool) -> Option<Ref<T>>where
T: ObjectType,
Finds the first ancestor of class T, optionally starting with the
visual itself.
Sourcepub fn find_ancestor_of_type_where<T>(
&self,
include_self: bool,
predicate: impl Fn(&T) -> bool,
) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_ancestor_of_type_where<T>(
&self,
include_self: bool,
predicate: impl Fn(&T) -> bool,
) -> Option<Ref<T>>where
T: ObjectType,
Finds the first ancestor of class T that matches a predicate,
optionally starting with the visual itself.
Sourcepub fn find_descendant_of_type<T>(&self, include_self: bool) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_descendant_of_type<T>(&self, include_self: bool) -> Option<Ref<T>>where
T: ObjectType,
Finds the first descendant of class T (depth first), optionally
starting with the visual itself.
Sourcepub fn find_descendant_of_type_where<T>(
&self,
include_self: bool,
predicate: impl Fn(&T) -> bool,
) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_descendant_of_type_where<T>(
&self,
include_self: bool,
predicate: impl Fn(&T) -> bool,
) -> Option<Ref<T>>where
T: ObjectType,
Finds the first descendant of class T that matches a predicate
(depth first), optionally starting with the visual itself.
Sourcepub fn get_transformed_bounds(&self) -> Option<TransformedBounds>
pub fn get_transformed_bounds(&self) -> Option<TransformedBounds>
Gets the bounds of the visual in the coordinate space of its root,
with the clip applied by its ancestors. Returns None if the visual
or one of its ancestors is invisible.
Sourcepub fn get_visual_at(&self, p: Point) -> Option<Ref<Visual>>
pub fn get_visual_at(&self, p: Point) -> Option<Ref<Visual>>
Gets the first visible visual at a point, in the coordinates of this visual.
Sourcepub fn get_visual_at_filtered(
&self,
p: Point,
filter: &dyn Fn(&Visual) -> bool,
) -> Option<Ref<Visual>>
pub fn get_visual_at_filtered( &self, p: Point, filter: &dyn Fn(&Visual) -> bool, ) -> Option<Ref<Visual>>
Gets the first visual at a point, in the coordinates of this visual.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results.
Sourcepub fn get_visual_at_geometry(
&self,
geometry: &Geometry,
) -> Option<GeometryHitTestResult>
pub fn get_visual_at_geometry( &self, geometry: &Geometry, ) -> Option<GeometryHitTestResult>
Gets the first visible visual intersecting a geometry, in the coordinates of this visual, with the details of the intersection.
Sourcepub fn get_visual_at_geometry_filtered(
&self,
geometry: &Geometry,
filter: &dyn Fn(&Visual) -> bool,
) -> Option<GeometryHitTestResult>
pub fn get_visual_at_geometry_filtered( &self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool, ) -> Option<GeometryHitTestResult>
Gets the first visual intersecting a geometry, in the coordinates of this visual, with the details of the intersection.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results.
Sourcepub fn get_visuals_at(&self, p: Point) -> Vec<Ref<Visual>>
pub fn get_visuals_at(&self, p: Point) -> Vec<Ref<Visual>>
Enumerates the visible visuals at a point, in the coordinates of this visual, topmost first.
Sourcepub fn get_visuals_at_filtered(
&self,
p: Point,
filter: &dyn Fn(&Visual) -> bool,
) -> Vec<Ref<Visual>>
pub fn get_visuals_at_filtered( &self, p: Point, filter: &dyn Fn(&Visual) -> bool, ) -> Vec<Ref<Visual>>
Enumerates the visuals at a point, in the coordinates of this visual, topmost first.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results.
Sourcepub fn get_visuals_at_geometry(
&self,
geometry: &Geometry,
) -> Vec<GeometryHitTestResult>
pub fn get_visuals_at_geometry( &self, geometry: &Geometry, ) -> Vec<GeometryHitTestResult>
Enumerates the visible visuals intersecting a geometry, in the coordinates of this visual, topmost first, with the details of the intersections.
Sourcepub fn get_visuals_at_geometry_filtered(
&self,
geometry: &Geometry,
filter: &dyn Fn(&Visual) -> bool,
) -> Vec<GeometryHitTestResult>
pub fn get_visuals_at_geometry_filtered( &self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool, ) -> Vec<GeometryHitTestResult>
Enumerates the visuals intersecting a geometry, in the coordinates of this visual, topmost first, with the details of the intersections.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results.
Sourcepub fn get_visual_children(&self) -> Rc<Vec<Ref<Visual>>>
pub fn get_visual_children(&self) -> Rc<Vec<Ref<Visual>>>
Gets a snapshot of the visual children of the visual.
Sourcepub fn get_visual_descendants(&self) -> VisualDescendants ⓘ
pub fn get_visual_descendants(&self) -> VisualDescendants ⓘ
Enumerates the descendants of the visual in the visual tree, in depth-first pre-order.
Sourcepub fn get_self_and_visual_descendants(&self) -> VisualDescendants ⓘ
pub fn get_self_and_visual_descendants(&self) -> VisualDescendants ⓘ
Enumerates the visual and its descendants in the visual tree, in depth-first pre-order.
Sourcepub fn get_visual_parent(&self) -> Option<Ref<Visual>>
pub fn get_visual_parent(&self) -> Option<Ref<Visual>>
Gets the visual parent of the visual.
Sourcepub fn get_visual_parent_of_type<T>(&self) -> Option<Ref<T>>where
T: ObjectType,
pub fn get_visual_parent_of_type<T>(&self) -> Option<Ref<T>>where
T: ObjectType,
Gets the visual parent of the visual, if it is of class T.
Sourcepub fn get_presentation_source(&self) -> Option<Rc<dyn IPresentationSource>>
pub fn get_presentation_source(&self) -> Option<Rc<dyn IPresentationSource>>
The presentation source the visual is attached to.
Sourcepub fn get_visual_root(&self) -> Option<Ref<Visual>>
pub fn get_visual_root(&self) -> Option<Ref<Visual>>
The root visual of the presentation source the visual is attached to.
Sourcepub fn get_layout_root(&self) -> Option<Rc<dyn ILayoutRoot>>
pub fn get_layout_root(&self) -> Option<Rc<dyn ILayoutRoot>>
The layout root of the tree the visual is attached to.
Sourcepub fn get_layout_manager(&self) -> Option<Rc<dyn ILayoutManager>>
pub fn get_layout_manager(&self) -> Option<Rc<dyn ILayoutManager>>
The layout manager of the presentation source of the visual, or
None when the visual is not attached to a visual root.
Sourcepub fn get_input_root(&self) -> Option<Rc<dyn IInputRoot>>
pub fn get_input_root(&self) -> Option<Rc<dyn IInputRoot>>
The input root of the tree the visual is attached to.
Sourcepub fn get_platform_settings(&self) -> Option<Rc<dyn IPlatformSettings>>
pub fn get_platform_settings(&self) -> Option<Rc<dyn IPlatformSettings>>
The platform settings of the tree the visual is attached to.
Sourcepub fn is_visual_ancestor_of(&self, target: &Visual) -> bool
pub fn is_visual_ancestor_of(&self, target: &Visual) -> bool
Tests whether this visual is an ancestor of target.
Sourcepub fn point_to_client(&self, point: PixelPoint) -> Point
pub fn point_to_client(&self, point: PixelPoint) -> Point
Converts a point from screen to client coordinates.
Panics if the visual does not belong to a visual tree.
Sourcepub fn point_to_screen(&self, point: Point) -> PixelPoint
pub fn point_to_screen(&self, point: Point) -> PixelPoint
Converts a point from client to screen coordinates.
Panics if the visual does not belong to a visual tree.
Sourcepub fn transform_to_visual(&self, to: &Visual) -> Option<Matrix>
pub fn transform_to_visual(&self, to: &Visual) -> Option<Matrix>
Returns a transform that transforms the visual’s coordinates into
the coordinates of the specified to visual, or None if the
visuals don’t share a common ancestor.
Sourcepub fn translate_point(
&self,
point: Point,
relative_to: &Visual,
) -> Option<Point>
pub fn translate_point( &self, point: Point, relative_to: &Visual, ) -> Option<Point>
Translates a point relative to this visual to coordinates that are
relative to the specified visual, or returns None if the visuals
don’t share a common ancestor.
Sourcepub fn render(&self, context: &mut DrawingContext<'_>)
pub fn render(&self, context: &mut DrawingContext<'_>)
Renders the visual to a drawing context.
Sourcepub fn on_attached_to_visual_tree_core(&self, e: &VisualTreeAttachmentEventArgs)
pub fn on_attached_to_visual_tree_core(&self, e: &VisualTreeAttachmentEventArgs)
Calls the on_attached_to_visual_tree method for this control and
all of its visual descendants.
Sourcepub fn on_detached_from_visual_tree_core(
&self,
e: &VisualTreeAttachmentEventArgs,
)
pub fn on_detached_from_visual_tree_core( &self, e: &VisualTreeAttachmentEventArgs, )
Calls the on_detached_from_visual_tree method for this control
and all of its visual descendants.
Sourcepub fn on_attached_to_visual_tree(&self, e: &VisualTreeAttachmentEventArgs)
pub fn on_attached_to_visual_tree(&self, e: &VisualTreeAttachmentEventArgs)
Called when the control is added to a rooted visual tree.
Sourcepub fn on_detached_from_visual_tree(&self, e: &VisualTreeAttachmentEventArgs)
pub fn on_detached_from_visual_tree(&self, e: &VisualTreeAttachmentEventArgs)
Called when the control is removed from a rooted visual tree.
Sourcepub fn on_visual_parent_changed(
&self,
old_parent: Option<&Ref<Visual>>,
new_parent: Option<&Ref<Visual>>,
)
pub fn on_visual_parent_changed( &self, old_parent: Option<&Ref<Visual>>, new_parent: Option<&Ref<Visual>>, )
Called when the control’s visual parent changes.
Sourcepub fn bypass_flow_direction_policies(&self) -> bool
pub fn bypass_flow_direction_policies(&self) -> bool
Whether the control ignores the flow direction policies, i.e. is never mirrored.
Sourcepub fn invalidate_mirror_transform(&self)
pub fn invalidate_mirror_transform(&self)
Computes the has_mirror_transform value according to the flow
direction of this visual and its parent.
Sourcepub fn clip_to_bounds_radius(&self) -> Option<CornerRadius>
pub fn clip_to_bounds_radius(&self) -> Option<CornerRadius>
The corner radius the visual clips its content with when
clip_to_bounds is set; None for a plain rectangular clip.
(Upstream: the IVisualWithRoundRectClip interface.)
Sourcepub fn custom_hit_test(&self, point: Point) -> Option<bool>
pub fn custom_hit_test(&self, point: Point) -> Option<bool>
The custom hit test of the visual at a point in its own
coordinates; None when the visual has none and is hit by what
it occupies or draws. (Upstream: the ICustomHitTest interface;
a class implementing it overrides this and the geometry form.)
Sourcepub fn custom_hit_test_geometry(
&self,
geometry: &Ref<Geometry>,
) -> Option<IntersectionResult>
pub fn custom_hit_test_geometry( &self, geometry: &Ref<Geometry>, ) -> Option<IntersectionResult>
The custom hit test of the visual against a geometry in its own
coordinates; None when the visual has none.
Sourcepub fn ensure_initialized_for_visual_brush(&self)
pub fn ensure_initialized_for_visual_brush(&self)
Ensures that the visual is ready to use as the visual in a
visual brush. (Upstream: the IVisualBrushInitialize interface;
a class implementing it overrides this.)
Sourcepub fn create_composition_visual(
&self,
compositor: &Rc<Compositor>,
) -> CompositionDrawListVisual
pub fn create_composition_visual( &self, compositor: &Rc<Compositor>, ) -> CompositionDrawListVisual
Creates the composition visual of the visual on compositor.
Sourcepub fn detach_from_compositor(&self)
pub fn detach_from_compositor(&self)
Releases the composition visual of the visual.
Sourcepub fn synchronize_composition_child_visuals(&self)
pub fn synchronize_composition_child_visuals(&self)
Makes the children of the composition visual match the visual children (in Z order) and the child composition visual.
Sourcepub fn synchronize_composition_properties(&self)
pub fn synchronize_composition_properties(&self)
Copies the properties of the visual to its composition visual.
Sourcepub fn attached_to_visual_tree(
&self,
handler: impl Fn(&VisualTreeAttachmentEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn attached_to_visual_tree( &self, handler: impl Fn(&VisualTreeAttachmentEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised when the control is attached to a rooted visual tree.
Sourcepub fn detached_from_visual_tree(
&self,
handler: impl Fn(&VisualTreeAttachmentEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn detached_from_visual_tree( &self, handler: impl Fn(&VisualTreeAttachmentEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised when the control is detached from a rooted visual tree.
Sourcepub fn is_effectively_visible_changed(
&self,
handler: impl Fn() + 'static,
) -> Rc<dyn IDisposable>
pub fn is_effectively_visible_changed( &self, handler: impl Fn() + 'static, ) -> Rc<dyn IDisposable>
Raised when is_effectively_visible changes.
Sourcepub fn set_bounds(&self, value: Rect)
pub fn set_bounds(&self, value: Rect)
Sets the bounds of the control. Called by the layout system.
Sourcepub fn clip_to_bounds(&self) -> bool
pub fn clip_to_bounds(&self) -> bool
Whether the control should be clipped to its bounds.
pub fn set_clip_to_bounds(&self, value: bool)
pub fn set_clip(&self, value: impl Into<Nullable<Geometry>>)
Sourcepub fn cache_mode(&self) -> Option<Ref<CacheMode>>
pub fn cache_mode(&self) -> Option<Ref<CacheMode>>
The cache mode of the visual.
pub fn set_cache_mode(&self, value: impl Into<Nullable<CacheMode>>)
pub fn set_effect(&self, value: Option<Rc<dyn IEffect>>)
Sourcepub fn opacity_mask(&self) -> Option<Rc<dyn IBrush>>
pub fn opacity_mask(&self) -> Option<Rc<dyn IBrush>>
The opacity mask of the control.
pub fn set_opacity_mask(&self, value: Option<Rc<dyn IBrush>>)
Sourcepub fn render_transform(&self) -> Option<Rc<dyn ITransform>>
pub fn render_transform(&self) -> Option<Rc<dyn ITransform>>
The render transform of the control.
pub fn set_render_transform(&self, value: Option<Rc<dyn ITransform>>)
Sourcepub fn render_transform_origin(&self) -> RelativePoint
pub fn render_transform_origin(&self) -> RelativePoint
The transform origin of the control.
pub fn set_render_transform_origin(&self, value: RelativePoint)
Sourcepub fn is_effectively_visible(&self) -> bool
pub fn is_effectively_visible(&self) -> bool
Whether this control and all its parents are visible.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Whether this control is visible.
pub fn set_is_visible(&self, value: bool)
pub fn set_opacity(&self, value: f64)
Sourcepub fn has_mirror_transform(&self) -> bool
pub fn has_mirror_transform(&self) -> bool
Whether the control is mirrored relative to its parent because of its flow direction.
Sourcepub fn set_has_mirror_transform(&self, value: bool)
pub fn set_has_mirror_transform(&self, value: bool)
Sets the mirror transform flag.
Sourcepub fn flow_direction(&self) -> FlowDirection
pub fn flow_direction(&self) -> FlowDirection
The text flow direction.
pub fn set_flow_direction(&self, value: FlowDirection)
Sourcepub fn z_index(&self) -> i32
pub fn z_index(&self) -> i32
The Z index of the control.
Controls with a higher Z index appear in front of controls with a lower one. Among controls with the same value, order of appearance in the visual children decides.
pub fn set_z_index(&self, value: i32)
Sourcepub fn visual_children(&self) -> &FerroList<Ref<Visual>>
pub fn visual_children(&self) -> &FerroList<Ref<Visual>>
The control’s child visuals.
Sourcepub fn visual_children_count(&self) -> usize
pub fn visual_children_count(&self) -> usize
The number of visual children, without creating the collection.
Sourcepub fn visual_children_snapshot(&self) -> Option<Rc<Vec<Ref<Visual>>>>
pub fn visual_children_snapshot(&self) -> Option<Rc<Vec<Ref<Visual>>>>
A snapshot of the visual children, without creating the collection.
Sourcepub fn presentation_source(&self) -> Option<Rc<dyn IPresentationSource>>
pub fn presentation_source(&self) -> Option<Rc<dyn IPresentationSource>>
The presentation source the visual is attached to.
Sourcepub fn visual_root(&self) -> Option<Ref<Visual>>
pub fn visual_root(&self) -> Option<Ref<Visual>>
The root of the visual tree, if the control is attached to one.
Sourcepub fn composition_visual(&self) -> Option<CompositionDrawListVisual>
pub fn composition_visual(&self) -> Option<CompositionDrawListVisual>
The composition visual of the visual, while it is attached to a visual tree rendered by a compositor.
Sourcepub fn child_composition_visual(&self) -> Option<Rc<CompositionVisual>>
pub fn child_composition_visual(&self) -> Option<Rc<CompositionVisual>>
The composition visual shown as the last child of the composition
visual of this visual (see ElementComposition).
pub fn set_child_composition_visual(&self, value: Option<Rc<CompositionVisual>>)
Sourcepub fn attach_to_compositor(
&self,
compositor: &Rc<Compositor>,
) -> CompositionDrawListVisual
pub fn attach_to_compositor( &self, compositor: &Rc<Compositor>, ) -> CompositionDrawListVisual
Makes sure the visual has a composition visual on compositor and
returns it.
Sourcepub fn has_non_uniform_z_index_children(&self) -> bool
pub fn has_non_uniform_z_index_children(&self) -> bool
Whether any child has a non-default Z index.
Sourcepub fn is_attached_to_visual_tree(&self) -> bool
pub fn is_attached_to_visual_tree(&self) -> bool
Whether this control is attached to a visual root.
Sourcepub fn visual_parent(&self) -> Option<Ref<Visual>>
pub fn visual_parent(&self) -> Option<Ref<Visual>>
The control’s parent visual.
Sourcepub fn invalidate_visual(&self)
pub fn invalidate_visual(&self)
Invalidates the visual and queues a repaint.
Sourcepub fn set_presentation_source_for_root_visual(
&self,
presentation_source: Option<Rc<dyn IPresentationSource>>,
)
pub fn set_presentation_source_for_root_visual( &self, presentation_source: Option<Rc<dyn IPresentationSource>>, )
Attaches or detaches the root visual of a presentation source.
Methods from Deref<Target = StyledElement>§
Sourcepub fn get_logical_ancestors(&self) -> LogicalAncestors ⓘ
pub fn get_logical_ancestors(&self) -> LogicalAncestors ⓘ
Enumerates the ancestors of the element in the logical tree, from its parent to the root.
Sourcepub fn get_self_and_logical_ancestors(&self) -> LogicalAncestors ⓘ
pub fn get_self_and_logical_ancestors(&self) -> LogicalAncestors ⓘ
Enumerates the element and its ancestors in the logical tree.
Sourcepub fn find_logical_ancestor_of_type<T>(
&self,
include_self: bool,
) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_logical_ancestor_of_type<T>(
&self,
include_self: bool,
) -> Option<Ref<T>>where
T: ObjectType,
Finds the first logical ancestor of class T, optionally starting
with the element itself.
Sourcepub fn get_logical_children(&self) -> Rc<Vec<Ref<StyledElement>>>
pub fn get_logical_children(&self) -> Rc<Vec<Ref<StyledElement>>>
The logical children of the element.
Sourcepub fn get_logical_descendants(&self) -> LogicalDescendants ⓘ
pub fn get_logical_descendants(&self) -> LogicalDescendants ⓘ
Enumerates the descendants of the element in the logical tree, in depth-first pre-order.
Sourcepub fn get_self_and_logical_descendants(&self) -> LogicalDescendants ⓘ
pub fn get_self_and_logical_descendants(&self) -> LogicalDescendants ⓘ
Enumerates the element and its descendants in the logical tree, in depth-first pre-order.
Sourcepub fn find_logical_descendant_of_type<T>(
&self,
include_self: bool,
) -> Option<Ref<T>>where
T: ObjectType,
pub fn find_logical_descendant_of_type<T>(
&self,
include_self: bool,
) -> Option<Ref<T>>where
T: ObjectType,
Finds the first logical descendant of class T (depth first),
optionally starting with the element itself.
Sourcepub fn get_logical_parent(&self) -> Option<Ref<StyledElement>>
pub fn get_logical_parent(&self) -> Option<Ref<StyledElement>>
The logical parent of the element.
Sourcepub fn get_logical_parent_of_type<T>(&self) -> Option<Ref<T>>where
T: ObjectType,
pub fn get_logical_parent_of_type<T>(&self) -> Option<Ref<T>>where
T: ObjectType,
The logical parent of the element, if it is of class T.
Sourcepub fn get_logical_siblings(&self) -> Rc<Vec<Ref<StyledElement>>>
pub fn get_logical_siblings(&self) -> Rc<Vec<Ref<StyledElement>>>
The children of the logical parent of the element, including the element itself; empty when the element has no logical parent.
Sourcepub fn is_logical_ancestor_of(&self, target: Option<&StyledElement>) -> bool
pub fn is_logical_ancestor_of(&self, target: Option<&StyledElement>) -> bool
Whether the element is a logical ancestor of target.
Sourcepub fn to_ref(&self) -> Ref<StyledElement>
pub fn to_ref(&self) -> Ref<StyledElement>
Returns a strong reference to this object.
Sourcepub fn begin_init(&self)
pub fn begin_init(&self)
Signals the beginning of a batch of initialization: styling is
deferred until the matching end_init.
Sourcepub fn try_end_init(&self) -> Result<(), InitializationError>
pub fn try_end_init(&self) -> Result<(), InitializationError>
Signals the end of a batch of initialization: the element is
styled (if it is attached to a rooted logical tree) and
initialized. A style or control theme that cannot be applied (two
setters for the same property) is an error, the counterpart of
the invalid operation EndInit raises in the managed original;
what follows the failure is skipped. This is the overridable
member; end_init is the form that
panics on the error.
Sourcepub fn logical_children_collection_changed(
&self,
e: &NotifyCollectionChangedEventArgs<'_, Ref<StyledElement>>,
)
pub fn logical_children_collection_changed( &self, e: &NotifyCollectionChangedEventArgs<'_, Ref<StyledElement>>, )
Called when the logical children collection changes.
Sourcepub fn on_attached_to_logical_tree(&self, e: &LogicalTreeAttachmentEventArgs)
pub fn on_attached_to_logical_tree(&self, e: &LogicalTreeAttachmentEventArgs)
Called when the styled element is added to a rooted logical tree.
Sourcepub fn on_detached_from_logical_tree(&self, e: &LogicalTreeAttachmentEventArgs)
pub fn on_detached_from_logical_tree(&self, e: &LogicalTreeAttachmentEventArgs)
Called when the styled element is removed from a rooted logical tree.
Sourcepub fn on_data_context_changed(&self)
pub fn on_data_context_changed(&self)
Called when the data context changes.
Sourcepub fn on_data_context_begin_update(&self)
pub fn on_data_context_begin_update(&self)
Called when the data context begins updating.
Sourcepub fn on_data_context_end_update(&self)
pub fn on_data_context_end_update(&self)
Called when the data context finishes updating.
Sourcepub fn on_initialized(&self)
pub fn on_initialized(&self)
Called when the control finishes initialization.
Sourcepub fn style_key_override(&self) -> &'static TypeInfo
pub fn style_key_override(&self) -> &'static TypeInfo
The type by which the element is styled. Defaults to the element’s own type; override to be styled as a base class.
Sourcepub fn on_control_theme_changed(&self)
pub fn on_control_theme_changed(&self)
Called when the control theme changes.
Sourcepub fn on_templated_parent_control_theme_changed(&self)
pub fn on_templated_parent_control_theme_changed(&self)
Called when the templated parent’s control theme changes.
Sourcepub fn invalidate_styles(&self, recurse: bool)
pub fn invalidate_styles(&self, recurse: bool)
Detaches all styles from the element (and optionally from its inheritance children) so that they are re-applied.
Sourcepub fn is_logical_root(&self) -> bool
pub fn is_logical_root(&self) -> bool
Whether the element is the root of a logical tree.
Sourcepub fn styling_parent(&self) -> Option<StyleHostRef>
pub fn styling_parent(&self) -> Option<StyleHostRef>
The parent style host of the element: by default the inheritance parent, when it is a styled element. The root of a tree overrides this to return the host of the global styles.
Sourcepub fn notify_child_resources_changed(&self, e: ResourcesChangedEventArgs)
pub fn notify_child_resources_changed(&self, e: ResourcesChangedEventArgs)
Notifies the children of the element that the resources visible to them have changed. The base method notifies the logical children.
Sourcepub fn child_index_provider(&self) -> Option<Rc<dyn IChildIndexProvider>>
pub fn child_index_provider(&self) -> Option<Rc<dyn IChildIndexProvider>>
The child index provider implemented by the element, if any. Used to match the children of the element by their position.
Sourcepub fn is_theme_variant_root(&self) -> bool
pub fn is_theme_variant_root(&self) -> bool
Whether the element is a root of theme variant resolution: at a root the default theme variant resolves to the variant of the platform instead of being inherited.
Sourcepub fn attached_to_logical_tree(
&self,
handler: impl Fn(&LogicalTreeAttachmentEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn attached_to_logical_tree( &self, handler: impl Fn(&LogicalTreeAttachmentEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised when the styled element is attached to a rooted logical tree.
Sourcepub fn detached_from_logical_tree(
&self,
handler: impl Fn(&LogicalTreeAttachmentEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn detached_from_logical_tree( &self, handler: impl Fn(&LogicalTreeAttachmentEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised when the styled element is detached from a rooted logical tree.
Sourcepub fn data_context_changed(
&self,
handler: impl Fn() + 'static,
) -> Rc<dyn IDisposable>
pub fn data_context_changed( &self, handler: impl Fn() + 'static, ) -> Rc<dyn IDisposable>
Occurs when the data context property changes.
Sourcepub fn initialized(&self, handler: impl Fn() + 'static) -> Rc<dyn IDisposable>
pub fn initialized(&self, handler: impl Fn() + 'static) -> Rc<dyn IDisposable>
Occurs when the styled element has finished initialization.
Sourcepub fn resources_changed(
&self,
handler: impl Fn(&ResourcesChangedEventArgs) + 'static,
) -> Rc<dyn IDisposable>
pub fn resources_changed( &self, handler: impl Fn(&ResourcesChangedEventArgs) + 'static, ) -> Rc<dyn IDisposable>
Raised when the resources change on the element or an ancestor of the element.
Sourcepub fn actual_theme_variant_changed(
&self,
handler: impl Fn() + 'static,
) -> Rc<dyn IDisposable>
pub fn actual_theme_variant_changed( &self, handler: impl Fn() + 'static, ) -> Rc<dyn IDisposable>
Raised when the theme variant in effect for the element changes.
Sourcepub fn name(&self) -> Option<String>
pub fn name(&self) -> Option<String>
The name of the styled element.
An element’s name is used to uniquely identify it within its name scope. Once the element has been styled its name may not be changed.
pub fn set_name(&self, value: Option<String>)
Sourcepub fn classes(&self) -> Classes
pub fn classes(&self) -> Classes
The styled element’s classes.
The collection is returned by handle: clones refer to the same collection.
Sourcepub fn pseudo_classes(&self) -> &dyn IPseudoClasses
pub fn pseudo_classes(&self) -> &dyn IPseudoClasses
The pseudoclasses of the element, settable by the control itself.
Sourcepub fn data_context(&self) -> Option<Rc<dyn AnyValue>>
pub fn data_context(&self) -> Option<Rc<dyn AnyValue>>
The control’s data context.
The data context is an inherited property that specifies the default object that will be used for data binding.
pub fn set_data_context(&self, value: Option<Rc<dyn AnyValue>>)
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Whether the element has finished initialization.
For more information about when this happens, see the initialized
event.
Sourcepub fn styles(&self) -> Ref<Styles>
pub fn styles(&self) -> Ref<Styles>
The styles for the styled element.
Styles for the entire application are added to the application’s styles collection.
Sourcepub fn is_styles_initialized(&self) -> bool
pub fn is_styles_initialized(&self) -> bool
Whether the styles collection of the element has been created.
Sourcepub fn resources(&self) -> Ref<ResourceDictionary>
pub fn resources(&self) -> Ref<ResourceDictionary>
The styled element’s resource dictionary.
pub fn set_resources(&self, value: Ref<ResourceDictionary>)
Sourcepub fn theme(&self) -> Option<Ref<ControlTheme>>
pub fn theme(&self) -> Option<Ref<ControlTheme>>
The theme to be applied to the element.
By default the theme is looked up as a resource keyed by the element’s style key; setting this property takes precedence over that lookup.
pub fn set_theme(&self, value: impl Into<Nullable<ControlTheme>>)
Sourcepub fn actual_theme_variant(&self) -> Option<ThemeVariant>
pub fn actual_theme_variant(&self) -> Option<ThemeVariant>
The UI theme variant that is currently used by the element, which
might be different than the requested theme variant. None until a
theme variant has been established for the element or an ancestor.
Sourcepub fn has_resources(&self) -> bool
pub fn has_resources(&self) -> bool
Whether the element or its styles have resources.
Sourcepub fn try_get_resource(
&self,
key: &ResourceKey,
theme: Option<&ThemeVariant>,
) -> Option<Option<Rc<dyn AnyValue>>>
pub fn try_get_resource( &self, key: &ResourceKey, theme: Option<&ThemeVariant>, ) -> Option<Option<Rc<dyn AnyValue>>>
Tries to find a resource within the element: in its resource dictionary, then in its styles.
Sourcepub fn try_find_resource(
&self,
key: &ResourceKey,
theme: Option<&ThemeVariant>,
) -> Option<Option<Rc<dyn AnyValue>>>
pub fn try_find_resource( &self, key: &ResourceKey, theme: Option<&ThemeVariant>, ) -> Option<Option<Rc<dyn AnyValue>>>
Tries to find a resource by searching up the logical tree and then the global styles.
Sourcepub fn find_resource(&self, key: &ResourceKey) -> Option<Rc<dyn AnyValue>>
pub fn find_resource(&self, key: &ResourceKey) -> Option<Rc<dyn AnyValue>>
Finds a resource by searching up the logical tree and then the global styles. Returns the unset value marker if it is not found.
Sourcepub fn templated_parent(&self) -> Option<Ref<FerroObject>>
pub fn templated_parent(&self) -> Option<Ref<FerroObject>>
The styled element whose lookless template this element is part of.
Sourcepub fn set_templated_parent(&self, value: impl Into<Nullable<FerroObject>>)
pub fn set_templated_parent(&self, value: impl Into<Nullable<FerroObject>>)
Sets the templated parent. Called by the template that creates the element.
Sourcepub fn logical_children(&self) -> &FerroList<Ref<StyledElement>>
pub fn logical_children(&self) -> &FerroList<Ref<StyledElement>>
The styled element’s logical children.
Sourcepub fn is_attached_to_logical_tree(&self) -> bool
pub fn is_attached_to_logical_tree(&self) -> bool
Whether the element is attached to a rooted logical tree.
Sourcepub fn parent(&self) -> Option<Ref<StyledElement>>
pub fn parent(&self) -> Option<Ref<StyledElement>>
The styled element’s logical parent.
Sourcepub fn apply_styling(&self) -> bool
pub fn apply_styling(&self) -> bool
Applies styling to the control if the control is initialized and styling is not already applied.
The styling system will automatically apply styling when required, so this method need only be called by tests or in rare special cases.
Returns true if styling is applied to the control, false if the control is still initializing.
Sourcepub fn try_apply_styling(&self) -> Result<bool, DuplicateSetterError>
pub fn try_apply_styling(&self) -> Result<bool, DuplicateSetterError>
As apply_styling, reporting a style or
control theme that cannot be applied (two setters for the same
property: the invalid operation of the managed original) instead of
panicking. After an error the styling pass is ended and the element
is not marked as styled, as when the managed original throws.
Sourcepub fn end_init(&self)
pub fn end_init(&self)
Signals the end of a batch of initialization
(try_end_init). A style or control theme that
cannot be applied panics with the message of the error.
Sourcepub fn initialize_if_needed(&self)
pub fn initialize_if_needed(&self)
Marks the element as initialized and raises the initialization notifications, if initialization is complete.
Sourcepub fn set_parent(&self, parent: impl Into<Nullable<StyledElement>>)
pub fn set_parent(&self, parent: impl Into<Nullable<StyledElement>>)
Sets the element’s logical parent.
You should not usually need to call this method: it is called when an element is added to or removed from a logical children collection.
Sourcepub fn notify_attached_to_logical_tree(
&self,
e: &LogicalTreeAttachmentEventArgs,
)
pub fn notify_attached_to_logical_tree( &self, e: &LogicalTreeAttachmentEventArgs, )
Notifies the element that it has been attached to a rooted logical tree. Called by a parent for children that are part of its logical tree without being in its logical children collection (the template child of a templated control).
Sourcepub fn notify_detached_from_logical_tree(
&self,
e: &LogicalTreeAttachmentEventArgs,
)
pub fn notify_detached_from_logical_tree( &self, e: &LogicalTreeAttachmentEventArgs, )
Notifies the element that it has been detached from a rooted logical
tree. See notify_attached_to_logical_tree.
Sourcepub fn get_effective_theme(&self) -> Option<Ref<ControlTheme>>
pub fn get_effective_theme(&self) -> Option<Ref<ControlTheme>>
The theme in effect for the element: the Theme property if set,
otherwise the control theme resource keyed by the element’s style key
that is visible to the element (a resource holding a
Ref<ControlTheme>).
Sourcepub fn styles_added(&self, styles: &[Rc<dyn IStyle>])
pub fn styles_added(&self, styles: &[Rc<dyn IStyle>])
Called when styles are added to the styles collection of the element or a nested styles collection.
Sourcepub fn styles_removed(&self, styles: &[Rc<dyn IStyle>])
pub fn styles_removed(&self, styles: &[Rc<dyn IStyle>])
Called when styles are removed from the styles collection of the element or a nested styles collection.
Sourcepub fn notify_resources_changed(
&self,
e: ResourcesChangedEventArgs,
propagate: bool,
)
pub fn notify_resources_changed( &self, e: ResourcesChangedEventArgs, propagate: bool, )
Notifies the element, and with propagate its children, that the
resources visible to it have changed.
Sourcepub fn set_data_context_with_priority(
&self,
value: Option<Rc<dyn AnyValue>>,
priority: BindingPriority,
) -> Option<Rc<dyn IDisposable>>
pub fn set_data_context_with_priority( &self, value: Option<Rc<dyn AnyValue>>, priority: BindingPriority, ) -> Option<Rc<dyn IDisposable>>
The priority-aware setter used by templates.
Sourcepub fn bind_class(
&self,
class_name: &str,
source: &dyn BindingBase,
anchor: Option<&Ref<FerroObject>>,
) -> Rc<dyn BindingExpressionBase>
pub fn bind_class( &self, class_name: &str, source: &dyn BindingBase, anchor: Option<&Ref<FerroObject>>, ) -> Rc<dyn BindingExpressionBase>
Binds the presence of the class class_name on this element to
source. anchor provides the context the binding locates its source
with when the element cannot.
Methods from Deref<Target = Animatable>§
Sourcepub fn to_ref(&self) -> Ref<Animatable>
pub fn to_ref(&self) -> Ref<Animatable>
Returns a strong reference to this object.
Sourcepub fn clock(&self) -> Option<Rc<dyn IClock>>
pub fn clock(&self) -> Option<Rc<dyn IClock>>
The clock which controls the animations and transitions on the object and, by inheritance, on its descendants. The global clock is used when there is none.
pub fn set_clock(&self, value: Option<Rc<dyn IClock>>)
Sourcepub fn transitions(&self) -> Option<Transitions>
pub fn transitions(&self) -> Option<Transitions>
The property transitions of the object.
pub fn set_transitions(&self, value: Option<Transitions>)
Sourcepub fn enable_transitions(&self)
pub fn enable_transitions(&self)
Enables transitions for the object.
This is called when the object is attached to the visual tree, so that transitions do not run on its initial property values.
Sourcepub fn disable_transitions(&self)
pub fn disable_transitions(&self)
Disables transitions for the object.
This is called when the object is detached from the visual tree.
Sourcepub fn try_get_transition_instance(
&self,
transition: &Rc<dyn ITransition>,
) -> Option<Rc<TransitionInstance>>
pub fn try_get_transition_instance( &self, transition: &Rc<dyn ITransition>, ) -> Option<Rc<TransitionInstance>>
The progress of the transition that transition is currently
running on this object: the instance created when the transition was
last applied. None when the transition is not one of the object’s
transitions or has not been applied.
Methods from Deref<Target = FerroObject>§
Sourcepub fn dispatcher(&self) -> &Arc<Dispatcher> ⓘ
pub fn dispatcher(&self) -> &Arc<Dispatcher> ⓘ
Returns the Dispatcher that this object is associated with: the
dispatcher of the thread that owns the object.
Sourcepub fn check_access(&self) -> bool
pub fn check_access(&self) -> bool
Returns whether the calling thread is the thread that owns this object.
Sourcepub fn verify_access(&self)
pub fn verify_access(&self)
Sourcepub fn to_ref(&self) -> Ref<FerroObject>
pub fn to_ref(&self) -> Ref<FerroObject>
A strong reference to this object.
Sourcepub fn to_weak(&self) -> WeakRef<FerroObject>
pub fn to_weak(&self) -> WeakRef<FerroObject>
A weak reference to this object.
Sourcepub fn is<T>(&self) -> boolwhere
T: ObjectType,
pub fn is<T>(&self) -> boolwhere
T: ObjectType,
Whether the object is of class T or a class derived from it.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Returns the object viewed as class T if it is one.
Sourcepub fn on_property_changed(&self, change: &FerroPropertyChangedEventArgs<'_>)
pub fn on_property_changed(&self, change: &FerroPropertyChangedEventArgs<'_>)
Invokes the on_property_changed virtual member.
Sourcepub fn inheritance_parent(&self) -> Option<Ref<FerroObject>>
pub fn inheritance_parent(&self) -> Option<Ref<FerroObject>>
The parent object that inherited property values are inherited from.
Sourcepub fn set_inheritance_parent(&self, value: impl Into<Nullable<FerroObject>>)
pub fn set_inheritance_parent(&self, value: impl Into<Nullable<FerroObject>>)
Sets the parent object that inherited property values are inherited from.
Sourcepub fn clear_value<T>(&self, property: &'static StyledProperty<T>)where
T: PropertyValue,
pub fn clear_value<T>(&self, property: &'static StyledProperty<T>)where
T: PropertyValue,
Clears a property’s local value.
Sourcepub fn get_value<T>(&self, property: &'static StyledProperty<T>) -> Twhere
T: PropertyValue,
pub fn get_value<T>(&self, property: &'static StyledProperty<T>) -> Twhere
T: PropertyValue,
Gets a property value.
Sourcepub fn get_base_value<T>(
&self,
property: &'static StyledProperty<T>,
) -> Option<T>where
T: PropertyValue,
pub fn get_base_value<T>(
&self,
property: &'static StyledProperty<T>,
) -> Option<T>where
T: PropertyValue,
Gets a property’s base value: the value excluding animated values.
Returns None if the value comes from inheritance or the default.
Sourcepub fn is_animating(&self, property: &FerroProperty) -> bool
pub fn is_animating(&self, property: &FerroProperty) -> bool
Checks whether a property is animating.
Sourcepub fn is_set(&self, property: &FerroProperty) -> bool
pub fn is_set(&self, property: &FerroProperty) -> bool
Checks whether a styled property has a value assigned to it or a binding targeting it.
Sourcepub fn set_value<T>(&self, property: &'static StyledProperty<T>, value: T)where
T: PropertyValue,
pub fn set_value<T>(&self, property: &'static StyledProperty<T>, value: T)where
T: PropertyValue,
Sets a property value with local value priority.
Sourcepub fn set_value_with_priority<T>(
&self,
property: &'static StyledProperty<T>,
value: T,
priority: BindingPriority,
) -> Option<Rc<dyn IDisposable>>where
T: PropertyValue,
pub fn set_value_with_priority<T>(
&self,
property: &'static StyledProperty<T>,
value: T,
priority: BindingPriority,
) -> Option<Rc<dyn IDisposable>>where
T: PropertyValue,
Sets a property value with the given priority. For priorities other than local value, disposing the returned handle removes the value.
Sourcepub fn set_current_value<T>(
&self,
property: &'static StyledProperty<T>,
value: T,
)where
T: PropertyValue,
pub fn set_current_value<T>(
&self,
property: &'static StyledProperty<T>,
value: T,
)where
T: PropertyValue,
Sets the value of a property without changing its value source.
This is used by a component that programmatically sets the value of one of its own properties without disabling an application’s declared use of the property: the effective value changes, but existing bindings and styles continue to work. The new value has the property’s current priority.
Sourcepub fn bind_binding(
&self,
property: &'static FerroProperty,
binding: &dyn BindingBase,
) -> Rc<dyn BindingExpressionBase>
pub fn bind_binding( &self, property: &'static FerroProperty, binding: &dyn BindingBase, ) -> Rc<dyn BindingExpressionBase>
Binds a property to a binding. Returns the binding expression which represents the binding instance on this object.
Sourcepub fn bind_binding_with_anchor(
&self,
property: &'static FerroProperty,
binding: &dyn BindingBase,
anchor: Option<&Ref<FerroObject>>,
) -> Rc<dyn BindingExpressionBase>
pub fn bind_binding_with_anchor( &self, property: &'static FerroProperty, binding: &dyn BindingBase, anchor: Option<&Ref<FerroObject>>, ) -> Rc<dyn BindingExpressionBase>
Binds a property to a binding.
Some bindings need context to locate their source: a data context,
named elements or resources. If this object is not an element, or is
not yet attached to the tree, anchor provides that context.
Sourcepub fn indexer(&self, binding: &IndexerDescriptor) -> IndexerBinding
pub fn indexer(&self, binding: &IndexerDescriptor) -> IndexerBinding
Gets a binding to a property of this object: the indexer taking an
IndexerDescriptor
(source[!Property] is source.indexer(&Property.bind())).
Sourcepub fn bind_indexer(
&self,
binding: &IndexerDescriptor,
value: &dyn BindingBase,
) -> Rc<dyn BindingExpressionBase>
pub fn bind_indexer( &self, binding: &IndexerDescriptor, value: &dyn BindingBase, ) -> Rc<dyn BindingExpressionBase>
Binds the property of an
IndexerDescriptor to a binding:
the setter of the indexer (target[!Property] = binding is
target.bind_indexer(&Property.bind(), &binding)).
Sourcepub fn bind<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<T>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<T>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a property to an observable.
Sourcepub fn bind_value<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<BindingValue<T>>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind_value<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<BindingValue<T>>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a property to an observable of binding values.
Sourcepub fn bind_untyped<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<Rc<dyn AnyValue>>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind_untyped<T>(
&self,
property: &'static StyledProperty<T>,
source: Rc<dyn IObservable<Rc<dyn AnyValue>>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a property to an observable of untyped values.
Sourcepub fn coerce_value(&self, property: &'static FerroProperty)
pub fn coerce_value(&self, property: &'static FerroProperty)
Coerces the specified property.
Sourcepub fn get_direct_value<T>(&self, property: &'static DirectPropertyBase<T>) -> Twhere
T: PropertyValue,
pub fn get_direct_value<T>(&self, property: &'static DirectPropertyBase<T>) -> Twhere
T: PropertyValue,
Gets a direct property value.
Sourcepub fn set_direct_value<T>(
&self,
property: &'static DirectPropertyBase<T>,
value: T,
)where
T: PropertyValue,
pub fn set_direct_value<T>(
&self,
property: &'static DirectPropertyBase<T>,
value: T,
)where
T: PropertyValue,
Sets a direct property value.
Sourcepub fn clear_direct_value<T>(&self, property: &'static DirectPropertyBase<T>)where
T: PropertyValue,
pub fn clear_direct_value<T>(&self, property: &'static DirectPropertyBase<T>)where
T: PropertyValue,
Resets a direct property to its unset value.
Sourcepub fn bind_direct<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<T>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind_direct<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<T>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a direct property to an observable.
Sourcepub fn bind_direct_value<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<BindingValue<T>>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind_direct_value<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<BindingValue<T>>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a direct property to an observable of binding values.
Sourcepub fn bind_direct_untyped<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<Rc<dyn AnyValue>>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
pub fn bind_direct_untyped<T>(
&self,
property: &'static DirectPropertyBase<T>,
source: Rc<dyn IObservable<Rc<dyn AnyValue>>>,
) -> Rc<dyn IDisposable>where
T: PropertyValue,
Binds a direct property to an observable of untyped values.
Sourcepub fn set_and_raise<T>(
&self,
property: &'static DirectPropertyBase<T>,
field: &RefCell<T>,
value: T,
) -> boolwhere
T: PropertyValue,
pub fn set_and_raise<T>(
&self,
property: &'static DirectPropertyBase<T>,
field: &RefCell<T>,
value: T,
) -> boolwhere
T: PropertyValue,
Sets the backing field of a direct property, raising a change notification if the value changed. Returns true if it changed.
Sourcepub fn set_and_raise_cell<T>(
&self,
property: &'static DirectPropertyBase<T>,
field: &Cell<T>,
value: T,
) -> boolwhere
T: PropertyValue + Copy,
pub fn set_and_raise_cell<T>(
&self,
property: &'static DirectPropertyBase<T>,
field: &Cell<T>,
value: T,
) -> boolwhere
T: PropertyValue + Copy,
set_and_raise for Copy values stored in a
Cell.
Sourcepub fn get_value_untyped(
&self,
property: &'static FerroProperty,
) -> Rc<dyn AnyValue>
pub fn get_value_untyped( &self, property: &'static FerroProperty, ) -> Rc<dyn AnyValue>
Gets a property value as an untyped value.
Sourcepub fn set_value_untyped(
&self,
property: &'static FerroProperty,
value: &(dyn Any + 'static),
priority: BindingPriority,
) -> Option<Rc<dyn IDisposable>>
pub fn set_value_untyped( &self, property: &'static FerroProperty, value: &(dyn Any + 'static), priority: BindingPriority, ) -> Option<Rc<dyn IDisposable>>
Sets a property from an untyped value, which must hold exactly the property’s value type or the unset marker.
Sourcepub fn set_current_value_untyped(
&self,
property: &'static FerroProperty,
value: &(dyn Any + 'static),
)
pub fn set_current_value_untyped( &self, property: &'static FerroProperty, value: &(dyn Any + 'static), )
set_current_value with an untyped value.
Sourcepub fn clear_value_untyped(&self, property: &'static FerroProperty)
pub fn clear_value_untyped(&self, property: &'static FerroProperty)
Clears a property’s local value.
Sourcepub fn bind_property_untyped(
&self,
property: &'static FerroProperty,
source: Rc<dyn IObservable<Rc<dyn AnyValue>>>,
priority: BindingPriority,
) -> Rc<dyn IDisposable>
pub fn bind_property_untyped( &self, property: &'static FerroProperty, source: Rc<dyn IObservable<Rc<dyn AnyValue>>>, priority: BindingPriority, ) -> Rc<dyn IDisposable>
Binds a property to an observable of untyped values.
Sourcepub fn property_changed(
&self,
handler: impl Fn(&FerroPropertyChangedEventArgs<'_>) + 'static,
) -> Rc<dyn IDisposable>
pub fn property_changed( &self, handler: impl Fn(&FerroPropertyChangedEventArgs<'_>) + 'static, ) -> Rc<dyn IDisposable>
Subscribes to property changes on this object. Disposing the returned handle unsubscribes.
Sourcepub fn add_property_changed_handler(
&self,
handler: Rc<dyn Fn(&FerroPropertyChangedEventArgs<'_>)>,
) -> u64
pub fn add_property_changed_handler( &self, handler: Rc<dyn Fn(&FerroPropertyChangedEventArgs<'_>)>, ) -> u64
Subscribes handler to property changes on this object and returns
the token that remove_property_changed_handler
takes: property_changed for a subscriber
that keeps the object and the token itself, so that no handle is made.
Sourcepub fn remove_property_changed_handler(&self, token: u64) -> bool
pub fn remove_property_changed_handler(&self, token: u64) -> bool
Ends a subscription of add_property_changed_handler.
Sourcepub fn property_changed_subscriber_count(&self) -> usize
pub fn property_changed_subscriber_count(&self) -> usize
The number of subscribers to property changes on this object (a diagnostics member, used by tests to verify that subscriptions are released).
Sourcepub fn raise_property_changed<T>(
&self,
property: &'static FerroProperty,
old_value: Option<&T>,
new_value: &T,
priority: BindingPriority,
is_effective_value: bool,
)where
T: PropertyValue,
pub fn raise_property_changed<T>(
&self,
property: &'static FerroProperty,
old_value: Option<&T>,
new_value: &T,
priority: BindingPriority,
is_effective_value: bool,
)where
T: PropertyValue,
Raises a property changed notification.
Sourcepub fn raise_direct_property_changed<T>(
&self,
property: &'static DirectPropertyBase<T>,
old_value: &T,
new_value: &T,
)where
T: PropertyValue,
pub fn raise_direct_property_changed<T>(
&self,
property: &'static DirectPropertyBase<T>,
old_value: &T,
new_value: &T,
)where
T: PropertyValue,
Raises a property changed notification for a direct property.
Trait Implementations§
Source§impl ControlImpl for ReversibleStackPanel
impl ControlImpl for ReversibleStackPanel
Source§fn get_template_focus_target(this: &Self) -> Option<Ref<Control>>
fn get_template_focus_target(this: &Self) -> Option<Ref<Control>>
Source§fn on_loaded(this: &Self, e: &RoutedEventArgs)
fn on_loaded(this: &Self, e: &RoutedEventArgs)
Loaded event.Source§fn on_unloaded(this: &Self, e: &RoutedEventArgs)
fn on_unloaded(this: &Self, e: &RoutedEventArgs)
Unloaded event.Source§fn on_size_changed(this: &Self, e: &SizeChangedEventArgs)
fn on_size_changed(this: &Self, e: &SizeChangedEventArgs)
SizeChanged event.Source§fn on_create_automation_peer(this: &Self) -> Ref<AutomationPeer>
fn on_create_automation_peer(this: &Self) -> Ref<AutomationPeer>
Source§impl Deref for ReversibleStackPanel
impl Deref for ReversibleStackPanel
Source§type Target = StackPanel
type Target = StackPanel
Source§fn deref(&self) -> &StackPanel
fn deref(&self) -> &StackPanel
Source§impl FerroObjectImpl for ReversibleStackPanel
impl FerroObjectImpl for ReversibleStackPanel
Source§fn constructed(this: &Self)
fn constructed(this: &Self)
parent_constructed first.Source§fn on_property_changed_core(
this: &Self,
change: &FerroPropertyChangedEventArgs<'_>,
)
fn on_property_changed_core( this: &Self, change: &FerroPropertyChangedEventArgs<'_>, )
on_property_changed instead.Source§fn on_property_changed(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
fn on_property_changed(this: &Self, change: &FerroPropertyChangedEventArgs<'_>)
Source§fn update_data_validation(
this: &Self,
property: &'static FerroProperty,
state: BindingValueType,
error: Option<&BindingError>,
)
fn update_data_validation( this: &Self, property: &'static FerroProperty, state: BindingValueType, error: Option<&BindingError>, )
Source§impl InputElementImpl for ReversibleStackPanel
impl InputElementImpl for ReversibleStackPanel
Source§fn is_enabled_core(this: &Self) -> bool
fn is_enabled_core(this: &Self) -> bool
is_enabled; controls
with additional conditions (e.g. a command that cannot execute)
override this.Source§fn is_focus_scope(this: &Self) -> bool
fn is_focus_scope(this: &Self) -> bool
Source§fn on_getting_focus(this: &Self, e: &FocusChangingEventArgs)
fn on_getting_focus(this: &Self, e: &FocusChangingEventArgs)
Source§fn on_losing_focus(this: &Self, e: &FocusChangingEventArgs)
fn on_losing_focus(this: &Self, e: &FocusChangingEventArgs)
Source§fn on_got_focus(this: &Self, e: &FocusChangedEventArgs)
fn on_got_focus(this: &Self, e: &FocusChangedEventArgs)
Source§fn on_lost_focus(this: &Self, e: &FocusChangedEventArgs)
fn on_lost_focus(this: &Self, e: &FocusChangedEventArgs)
Source§fn on_key_down(this: &Self, e: &KeyEventArgs)
fn on_key_down(this: &Self, e: &KeyEventArgs)
Source§fn on_key_up(this: &Self, e: &KeyEventArgs)
fn on_key_up(this: &Self, e: &KeyEventArgs)
Source§fn on_text_input(this: &Self, e: &TextInputEventArgs)
fn on_text_input(this: &Self, e: &TextInputEventArgs)
Source§fn on_pointer_entered(this: &Self, e: &PointerEventArgs)
fn on_pointer_entered(this: &Self, e: &PointerEventArgs)
Source§fn on_pointer_exited(this: &Self, e: &PointerEventArgs)
fn on_pointer_exited(this: &Self, e: &PointerEventArgs)
Source§fn on_pointer_moved(this: &Self, e: &PointerEventArgs)
fn on_pointer_moved(this: &Self, e: &PointerEventArgs)
Source§fn on_pointer_pressed(this: &Self, e: &PointerPressedEventArgs)
fn on_pointer_pressed(this: &Self, e: &PointerPressedEventArgs)
Source§fn on_pointer_released(this: &Self, e: &PointerReleasedEventArgs)
fn on_pointer_released(this: &Self, e: &PointerReleasedEventArgs)
Source§fn on_pointer_capture_changing(this: &Self, e: &PointerCaptureChangingEventArgs)
fn on_pointer_capture_changing(this: &Self, e: &PointerCaptureChangingEventArgs)
Source§fn on_pointer_capture_lost(this: &Self, e: &PointerCaptureLostEventArgs)
fn on_pointer_capture_lost(this: &Self, e: &PointerCaptureLostEventArgs)
Source§fn on_pointer_wheel_changed(this: &Self, e: &PointerWheelEventArgs)
fn on_pointer_wheel_changed(this: &Self, e: &PointerWheelEventArgs)
Source§fn on_tapped(this: &Self, e: &TappedEventArgs)
fn on_tapped(this: &Self, e: &TappedEventArgs)
Source§fn on_right_tapped(this: &Self, e: &TappedEventArgs)
fn on_right_tapped(this: &Self, e: &TappedEventArgs)
Source§fn on_double_tapped(this: &Self, e: &TappedEventArgs)
fn on_double_tapped(this: &Self, e: &TappedEventArgs)
Source§fn on_holding(this: &Self, e: &HoldingRoutedEventArgs)
fn on_holding(this: &Self, e: &HoldingRoutedEventArgs)
Source§fn on_access_key(this: &Self, e: &(dyn IRoutedEventArgs + 'static))
fn on_access_key(this: &Self, e: &(dyn IRoutedEventArgs + 'static))
Source§fn get_next_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
fn get_next_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
Source§fn get_previous_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
fn get_previous_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
Source§fn get_first_focusable_element_override(
this: &Self,
) -> Option<Ref<InputElement>>
fn get_first_focusable_element_override( this: &Self, ) -> Option<Ref<InputElement>>
Source§fn get_last_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
fn get_last_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
Source§fn process_tab_stop_override(
this: &Self,
focused_element: Option<&Ref<InputElement>>,
candidate_tab_stop_element: Option<&Ref<InputElement>>,
is_reverse: bool,
did_cycle_focus_at_root_visual: bool,
new_tab_stop: &mut Option<Ref<InputElement>>,
) -> bool
fn process_tab_stop_override( this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, did_cycle_focus_at_root_visual: bool, new_tab_stop: &mut Option<Ref<InputElement>>, ) -> bool
new_tab_stop.Source§fn process_candidate_tab_stop_override(
this: &Self,
focused_element: Option<&Ref<InputElement>>,
candidate_tab_stop_element: Option<&Ref<InputElement>>,
overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>,
is_reverse: bool,
new_tab_stop: &mut Option<Ref<InputElement>>,
) -> bool
fn process_candidate_tab_stop_override( this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, new_tab_stop: &mut Option<Ref<InputElement>>, ) -> bool
new_tab_stop.Source§fn as_scrollable(this: &Self) -> Option<&dyn IScrollable>
fn as_scrollable(this: &Self) -> Option<&dyn IScrollable>
Source§fn as_hosted_visual_tree_root(this: &Self) -> Option<&dyn IHostedVisualTreeRoot>
fn as_hosted_visual_tree_root(this: &Self) -> Option<&dyn IHostedVisualTreeRoot>
Source§impl InteractiveImpl for ReversibleStackPanel
impl InteractiveImpl for ReversibleStackPanel
Source§fn interactive_parent(this: &Self) -> Option<Ref<Interactive>>
fn interactive_parent(this: &Self) -> Option<Ref<Interactive>>
Source§impl LayoutableImpl for ReversibleStackPanel
impl LayoutableImpl for ReversibleStackPanel
Source§fn arrange_override(this: &Self, final_size: Size) -> Size
fn arrange_override(this: &Self, final_size: Size) -> Size
Source§fn apply_template(this: &Self)
fn apply_template(this: &Self)
Source§fn measure_core(this: &Self, available_size: Size) -> Size
fn measure_core(this: &Self, available_size: Size) -> Size
Source§fn measure_override(this: &Self, available_size: Size) -> Size
fn measure_override(this: &Self, available_size: Size) -> Size
Source§fn arrange_core(this: &Self, final_rect: Rect)
fn arrange_core(this: &Self, final_rect: Rect)
Source§fn on_measure_invalidated(this: &Self)
fn on_measure_invalidated(this: &Self)
invalidate_measure.Source§impl ObjectType for ReversibleStackPanel
impl ObjectType for ReversibleStackPanel
Source§type Parent = StackPanel
type Parent = StackPanel
Source§type VTable = <StackPanel as ObjectType>::VTable
type VTable = <StackPanel as ObjectType>::VTable
Source§fn vtable() -> &'static Self::VTable
fn vtable() -> &'static Self::VTable
Self.Source§fn register_class()
fn register_class()
Source§impl PanelImpl for ReversibleStackPanel
impl PanelImpl for ReversibleStackPanel
Source§fn children_changed(
this: &Self,
e: &NotifyCollectionChangedEventArgs<'_, Ref<Control>>,
)
fn children_changed( this: &Self, e: &NotifyCollectionChangedEventArgs<'_, Ref<Control>>, )
children collection changes.Source§fn invalidate_measure_on_children_changed(this: &Self)
fn invalidate_measure_on_children_changed(this: &Self)
Source§impl StackPanelImpl for ReversibleStackPanel
impl StackPanelImpl for ReversibleStackPanel
Source§fn arrange_child(
this: &Self,
child: &Ref<Control>,
rect: Rect,
panel_size: Size,
orientation: Orientation,
)
fn arrange_child( this: &Self, child: &Ref<Control>, rect: Rect, panel_size: Size, orientation: Orientation, )
Source§fn get_control_in_direction(
this: &Self,
direction: NavigationDirection,
from: Option<&Ref<Control>>,
) -> Option<Ref<InputElement>>
fn get_control_in_direction( this: &Self, direction: NavigationDirection, from: Option<&Ref<Control>>, ) -> Option<Ref<InputElement>>
Source§impl StaticType for ReversibleStackPanel
impl StaticType for ReversibleStackPanel
Source§impl StyledElementImpl for ReversibleStackPanel
impl StyledElementImpl for ReversibleStackPanel
Source§fn begin_init(this: &Self)
fn begin_init(this: &Self)
end_init.Source§fn try_end_init(this: &Self) -> Result<(), InitializationError>
fn try_end_init(this: &Self) -> Result<(), InitializationError>
EndInit raises in the managed original;
what follows the failure is skipped. This is the overridable
member; end_init is the form that
panics on the error.Source§fn logical_children_collection_changed(
this: &Self,
e: &NotifyCollectionChangedEventArgs<'_, Ref<StyledElement>>,
)
fn logical_children_collection_changed( this: &Self, e: &NotifyCollectionChangedEventArgs<'_, Ref<StyledElement>>, )
Source§fn on_attached_to_logical_tree(this: &Self, e: &LogicalTreeAttachmentEventArgs)
fn on_attached_to_logical_tree(this: &Self, e: &LogicalTreeAttachmentEventArgs)
Source§fn on_detached_from_logical_tree(
this: &Self,
e: &LogicalTreeAttachmentEventArgs,
)
fn on_detached_from_logical_tree( this: &Self, e: &LogicalTreeAttachmentEventArgs, )
Source§fn on_data_context_changed(this: &Self)
fn on_data_context_changed(this: &Self)
Source§fn on_data_context_begin_update(this: &Self)
fn on_data_context_begin_update(this: &Self)
Source§fn on_data_context_end_update(this: &Self)
fn on_data_context_end_update(this: &Self)
Source§fn on_initialized(this: &Self)
fn on_initialized(this: &Self)
Source§fn style_key_override(this: &Self) -> &'static TypeInfo
fn style_key_override(this: &Self) -> &'static TypeInfo
Source§fn on_control_theme_changed(this: &Self)
fn on_control_theme_changed(this: &Self)
Source§fn on_templated_parent_control_theme_changed(this: &Self)
fn on_templated_parent_control_theme_changed(this: &Self)
Source§fn invalidate_styles(this: &Self, recurse: bool)
fn invalidate_styles(this: &Self, recurse: bool)
Source§fn is_logical_root(this: &Self) -> bool
fn is_logical_root(this: &Self) -> bool
Source§fn styling_parent(this: &Self) -> Option<StyleHostRef>
fn styling_parent(this: &Self) -> Option<StyleHostRef>
Source§fn notify_child_resources_changed(this: &Self, e: ResourcesChangedEventArgs)
fn notify_child_resources_changed(this: &Self, e: ResourcesChangedEventArgs)
Source§fn child_index_provider(this: &Self) -> Option<Rc<dyn IChildIndexProvider>>
fn child_index_provider(this: &Self) -> Option<Rc<dyn IChildIndexProvider>>
Source§fn is_theme_variant_root(this: &Self) -> bool
fn is_theme_variant_root(this: &Self) -> bool
impl<T> Subclassable<T> for ReversibleStackPanelwhere
StackPanel: Subclassable<T>,
Source§impl Upcast<ReversibleStackPanel> for ReversibleStackPanel
impl Upcast<ReversibleStackPanel> for ReversibleStackPanel
fn upcast(&self) -> &ReversibleStackPanel
Source§impl<T: ?Sized> Upcast<T> for ReversibleStackPanelwhere
StackPanel: Upcast<T>,
impl<T: ?Sized> Upcast<T> for ReversibleStackPanelwhere
StackPanel: Upcast<T>,
Source§impl VisualImpl for ReversibleStackPanel
impl VisualImpl for ReversibleStackPanel
Source§fn render(this: &Self, context: &mut DrawingContext<'_>)
fn render(this: &Self, context: &mut DrawingContext<'_>)
Source§fn on_attached_to_visual_tree_core(
this: &Self,
e: &VisualTreeAttachmentEventArgs,
)
fn on_attached_to_visual_tree_core( this: &Self, e: &VisualTreeAttachmentEventArgs, )
on_attached_to_visual_tree method for this control and
all of its visual descendants.Source§fn on_detached_from_visual_tree_core(
this: &Self,
e: &VisualTreeAttachmentEventArgs,
)
fn on_detached_from_visual_tree_core( this: &Self, e: &VisualTreeAttachmentEventArgs, )
on_detached_from_visual_tree method for this control
and all of its visual descendants.Source§fn on_attached_to_visual_tree(this: &Self, e: &VisualTreeAttachmentEventArgs)
fn on_attached_to_visual_tree(this: &Self, e: &VisualTreeAttachmentEventArgs)
Source§fn on_detached_from_visual_tree(this: &Self, e: &VisualTreeAttachmentEventArgs)
fn on_detached_from_visual_tree(this: &Self, e: &VisualTreeAttachmentEventArgs)
Source§fn on_visual_parent_changed(
this: &Self,
old_parent: Option<&Ref<Visual>>,
new_parent: Option<&Ref<Visual>>,
)
fn on_visual_parent_changed( this: &Self, old_parent: Option<&Ref<Visual>>, new_parent: Option<&Ref<Visual>>, )
Source§fn bypass_flow_direction_policies(this: &Self) -> bool
fn bypass_flow_direction_policies(this: &Self) -> bool
Source§fn invalidate_mirror_transform(this: &Self)
fn invalidate_mirror_transform(this: &Self)
has_mirror_transform value according to the flow
direction of this visual and its parent.Source§fn clip_to_bounds_radius(this: &Self) -> Option<CornerRadius>
fn clip_to_bounds_radius(this: &Self) -> Option<CornerRadius>
clip_to_bounds is set; None for a plain rectangular clip.
(Upstream: the IVisualWithRoundRectClip interface.)Source§fn custom_hit_test(this: &Self, point: Point) -> Option<bool>
fn custom_hit_test(this: &Self, point: Point) -> Option<bool>
None when the visual has none and is hit by what
it occupies or draws. (Upstream: the ICustomHitTest interface;
a class implementing it overrides this and the geometry form.)Source§fn custom_hit_test_geometry(
this: &Self,
geometry: &Ref<Geometry>,
) -> Option<IntersectionResult>
fn custom_hit_test_geometry( this: &Self, geometry: &Ref<Geometry>, ) -> Option<IntersectionResult>
None when the visual has none.Source§fn ensure_initialized_for_visual_brush(this: &Self)
fn ensure_initialized_for_visual_brush(this: &Self)
IVisualBrushInitialize interface;
a class implementing it overrides this.)Source§fn create_composition_visual(
this: &Self,
compositor: &Rc<Compositor>,
) -> CompositionDrawListVisual
fn create_composition_visual( this: &Self, compositor: &Rc<Compositor>, ) -> CompositionDrawListVisual
compositor.Source§fn detach_from_compositor(this: &Self)
fn detach_from_compositor(this: &Self)
Source§fn synchronize_composition_child_visuals(this: &Self)
fn synchronize_composition_child_visuals(this: &Self)
Source§fn synchronize_composition_properties(this: &Self)
fn synchronize_composition_properties(this: &Self)
Auto Trait Implementations§
impl !Freeze for ReversibleStackPanel
impl !RefUnwindSafe for ReversibleStackPanel
impl !Send for ReversibleStackPanel
impl !Sync for ReversibleStackPanel
impl !UnwindSafe for ReversibleStackPanel
impl Unpin for ReversibleStackPanel
impl UnsafeUnpin for ReversibleStackPanel
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more