gtk4::prelude

Trait ActionableExtManual

Source
pub trait ActionableExtManual:
    Sealed
    + IsA<Actionable>
    + 'static {
    // Provided method
    fn set_action_target(&self, target: Option<impl Into<Variant>>) { ... }
}
Expand description

Trait containing manually implemented methods of Actionable.

Provided Methods§

Source

fn set_action_target(&self, target: Option<impl Into<Variant>>)

Sets the target of an actionable widget.

This is a convenience function that calls GLib::Variant::new() for @format_string and uses the result to call ActionableExt::set_action_target_value().

If you are setting a string-valued target and want to set the action name at the same time, you can use ActionableExt::set_detailed_action_name().

§format_string

a glib::Variant format string

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§