ControlImpl
trait · ferroui-controls · v0.5.0
trait ControlImpl: InputElementImpl + $crate::Upcast<Control>
The overridable members introduced by the class.
Members
get_template_focus_targeton_loadedon_unloadedon_size_changedon_create_automation_peereffective_context_flyoutcontext_request_generation
get_template_focus_target
fn get_template_focus_target(this: &Self) -> Option<Ref<Control>>
Gets the element that receives the focus adorner.
on_loaded
fn on_loaded(this: &Self, e: &RoutedEventArgs)
Raises the Loaded event.
on_unloaded
fn on_unloaded(this: &Self, e: &RoutedEventArgs)
Raises the Unloaded event.
on_size_changed
fn on_size_changed(this: &Self, e: &SizeChangedEventArgs)
Raises the SizeChanged event.
on_create_automation_peer
fn on_create_automation_peer(this: &Self) -> Ref<AutomationPeer>
Returns a new, type-specific automation peer implementation for the control.
effective_context_flyout
fn effective_context_flyout(this: &Self, for_request: bool) -> Option<Ref<FlyoutBase>>
The flyout a context request on the control shows (for_request), or
that its keys and cancellation dismiss: ContextFlyout by default. A
control whose context flyout belongs to another element (a linked text
container) resolves it here, and may show none for a request. An
addition (docs/porting/DEVIATIONS.md, Popup).
context_request_generation
fn context_request_generation(this: &Self) -> Option<u64>
A counter the control advances when it raises a newer context request
of its own while an older one is being handled; None by default. The
context menu and flyout drop the older request when it changed. An
addition (docs/porting/DEVIATIONS.md, Popup).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.