Struct nativeshell::shell::platform::flutter::View [−][src]
pub struct View(_);
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for View
impl UnwindSafe for View
Blanket Implementations
Mutably borrows from an owned value. Read more
Upcasts an object to a superclass or interface T
. Read more
Upcasts an object to a reference of its superclass or interface T
. Read more
Tries to downcast to a subclass or interface implementor T
. Read more
Tries to downcast to a reference of its subclass or interface implementor T
. Read more
Tries to cast to an object of type T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
Tries to cast to reference to an object of type T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read more
Casts to T
unconditionally. Read more
Casts to &T
unconditionally. Read more
pub fn connect_set_focus_child<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Widget),
pub fn connect_border_width_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_resize_mode_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
Returns true
if the object is an instance of (can be cast to) T
.
pub fn set_properties_from_value(
&self,
property_values: &[(&str, Value)]
) -> Result<(), BoolError>
pub fn set_property<'a, N, V>(
&self,
property_name: N,
value: V
) -> Result<(), BoolError> where
V: ToValue,
N: Into<&'a str>,
pub fn set_property_from_value<'a, N>(
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError> where
N: Into<&'a str>,
Safety Read more
Safety Read more
Safety Read more
Safety Read more
pub fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
pub fn connect_notify_local<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&T, &ParamSpec),
pub unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId where
F: Fn(&T, &ParamSpec),
pub fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool where
N: Into<&'a str>,
pub fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec> where
N: Into<&'a str>,
pub fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
N: Into<&'a str>,
Same as connect
but takes a SignalId
instead of a signal name.
pub fn connect_local<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value> + 'static,
N: Into<&'a str>,
Same as connect_local
but takes a SignalId
instead of a signal name.
pub unsafe fn connect_unsafe<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError> where
F: Fn(&[Value]) -> Option<Value>,
N: Into<&'a str>,
Same as connect_unsafe
but takes a SignalId
instead of a signal name.
Emit signal by signal id.
Emit signal with details by signal id.
Emit signal by it’s name.
pub fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a> where
O: ObjectType,
N: Into<&'a str>,
M: Into<&'a str>,
Same as emit
but takes Value
for the arguments.
Same as emit_by_name
but takes Value
for the arguments.
Returns a SendValue
clone of self
.
pub fn add_accelerator<P>(
&self,
accel_signal: &str,
accel_group: &P,
accel_key: u32,
accel_mods: ModifierType,
accel_flags: AccelFlags
) where
P: IsA<AccelGroup>,
pub fn drag_begin_with_coordinates(
&self,
targets: &TargetList,
actions: DragAction,
button: i32,
event: Option<&Event>,
x: i32,
y: i32
) -> Option<DragContext>
pub fn drag_check_threshold(
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32
) -> bool
pub fn drag_dest_find_target(
&self,
context: &DragContext,
target_list: Option<&TargetList>
) -> Option<Atom>
pub fn drag_dest_set_proxy(
&self,
proxy_window: &Window,
protocol: DragProtocol,
use_coordinates: bool
)
pub fn drag_dest_set_proxy(
&self,
proxy_window: &Window,
protocol: DragProtocol,
use_coordinates: bool
)
Since 3.22
Since 3.22
pub fn remove_accelerator<P>(
&self,
accel_group: &P,
accel_key: u32,
accel_mods: ModifierType
) -> bool where
P: IsA<AccelGroup>,
Since 3.22
pub fn set_accel_path<P>(
&self,
accel_path: Option<&str>,
accel_group: Option<&P>
) where
P: IsA<AccelGroup>,
pub fn translate_coordinates<P>(
&self,
dest_widget: &P,
src_x: i32,
src_y: i32
) -> Option<(i32, i32)> where
P: IsA<Widget>,
pub fn connect_accel_closures_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_can_activate_accel<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, u32) -> bool,
pub fn connect_child_notify<F>(
&self,
detail: Option<&str>,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O, &ParamSpec),
pub fn connect_composited_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_composited_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
Since 3.22
Since 3.22
pub fn connect_configure_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventConfigure) -> bool,
pub fn connect_damage_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventExpose) -> bool,
pub fn connect_delete_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn connect_destroy_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn connect_direction_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, TextDirection),
pub fn connect_drag_begin<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext),
pub fn connect_drag_data_delete<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext),
pub fn connect_drag_data_get<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, &SelectionData, u32, u32),
pub fn connect_drag_data_received<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, i32, i32, &SelectionData, u32, u32),
pub fn connect_drag_drop<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, i32, i32, u32) -> bool,
pub fn connect_drag_end<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext),
pub fn connect_drag_failed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, DragResult) -> Inhibit,
pub fn connect_drag_leave<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, u32),
pub fn connect_drag_motion<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &DragContext, i32, i32, u32) -> bool,
pub fn connect_draw<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Context) -> Inhibit,
pub fn connect_enter_notify_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventCrossing) -> Inhibit,
pub fn connect_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn connect_event_after<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event),
pub fn connect_focus<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, DirectionType) -> Inhibit,
pub fn connect_focus_in_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventFocus) -> Inhibit,
pub fn connect_focus_out_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventFocus) -> Inhibit,
pub fn connect_grab_broken_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventGrabBroken) -> Inhibit,
pub fn connect_hierarchy_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, Option<&Widget>),
pub fn connect_key_press_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventKey) -> Inhibit,
pub fn connect_key_release_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventKey) -> Inhibit,
pub fn connect_leave_notify_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventCrossing) -> Inhibit,
pub fn connect_mnemonic_activate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, bool) -> Inhibit,
pub fn connect_motion_notify_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventMotion) -> Inhibit,
pub fn connect_move_focus<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, DirectionType),
pub fn connect_parent_set<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, Option<&Widget>),
pub fn connect_property_notify_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventProperty) -> Inhibit,
pub fn connect_proximity_in_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventProximity) -> Inhibit,
pub fn connect_proximity_out_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventProximity) -> Inhibit,
pub fn connect_query_tooltip<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, i32, i32, bool, &Tooltip) -> bool,
pub fn connect_screen_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, Option<&Screen>),
pub fn connect_scroll_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventScroll) -> Inhibit,
pub fn connect_selection_clear_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventSelection) -> Inhibit,
pub fn connect_selection_get<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &SelectionData, u32, u32),
pub fn connect_selection_notify_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventSelection) -> Inhibit,
pub fn connect_selection_received<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &SelectionData, u32),
pub fn connect_selection_request_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventSelection) -> Inhibit,
pub fn connect_show_help<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, WidgetHelpType) -> bool,
pub fn connect_size_allocate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Rectangle),
pub fn connect_state_flags_changed<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, StateFlags),
pub fn connect_touch_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn connect_window_state_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &EventWindowState) -> Inhibit,
pub fn connect_app_paintable_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_can_default_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_composite_child_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_focus_on_click_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_has_default_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_has_tooltip_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_height_request_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_hexpand_set_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_margin_bottom_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_margin_start_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_no_show_all_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_receives_default_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_scale_factor_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_tooltip_markup_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_tooltip_text_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_vexpand_set_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_width_request_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction
)
pub fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction
)
pub fn connect_map_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn connect_unmap_event<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &Event) -> Inhibit,
pub fn add_tick_callback<P>(&self, callback: P) -> TickCallbackId where
P: 'static + Fn(&O, &FrameClock) -> Continue,
impl<'a, T, C> FromValueOptional<'a> for T where
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,
T: FromValue<'a, Checker = C>,