#[repr(transparent)]pub struct Display { /* private fields */ }
Expand description
Display
objects purpose are two fold:
-
To manage and provide information about input devices (pointers and keyboards)
-
To manage and provide information about the available
GdkScreens
GdkDisplay objects are the GDK representation of an X Display, which can be described as a workstation consisting of a keyboard, a pointing device (such as a mouse) and one or more screens. It is used to open and keep track of various GdkScreen objects currently instantiated by the application. It is also used to access the keyboard(s) and mouse pointer(s) of the display.
Most of the input device handling has been factored out into
the separate DeviceManager
object. Every display has a
device manager, which you can obtain using
gdk_display_get_device_manager()
.
Implements
Implementations
sourceimpl Display
impl Display
sourcepub fn close(&self)
pub fn close(&self)
Closes the connection to the windowing system for the given display, and cleans up associated resources.
sourcepub fn device_is_grabbed(&self, device: &Device) -> bool
pub fn device_is_grabbed(&self, device: &Device) -> bool
sourcepub fn flush(&self)
pub fn flush(&self)
Flushes any requests queued for the windowing system; this happens automatically when the main loop blocks waiting for new events, but if your application is drawing without returning control to the main loop, you may need to call this function explicitly. A common case where this function needs to be called is when an application is executing drawing commands from a thread other than the thread where the main loop is running.
This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing.
sourcepub fn app_launch_context(&self) -> Option<AppLaunchContext>
pub fn app_launch_context(&self) -> Option<AppLaunchContext>
Returns a AppLaunchContext
suitable for launching
applications on the given display.
Returns
a new AppLaunchContext
for self
.
Free with g_object_unref()
when done
sourcepub fn default_cursor_size(&self) -> u32
pub fn default_cursor_size(&self) -> u32
sourcepub fn default_group(&self) -> Window
pub fn default_group(&self) -> Window
Returns the default group leader window for all toplevel windows
on self
. This window is implicitly created by GDK.
See Window::set_group()
.
Returns
The default group leader window
for self
sourcepub fn default_screen(&self) -> Screen
pub fn default_screen(&self) -> Screen
sourcepub fn default_seat(&self) -> Option<Seat>
pub fn default_seat(&self) -> Option<Seat>
sourcepub fn maximal_cursor_size(&self) -> (u32, u32)
pub fn maximal_cursor_size(&self) -> (u32, u32)
sourcepub fn monitor(&self, monitor_num: i32) -> Option<Monitor>
pub fn monitor(&self, monitor_num: i32) -> Option<Monitor>
Gets a monitor associated with this display.
monitor_num
number of the monitor
Returns
the Monitor
, or None
if
monitor_num
is not a valid monitor number
sourcepub fn monitor_at_window(&self, window: &Window) -> Option<Monitor>
pub fn monitor_at_window(&self, window: &Window) -> Option<Monitor>
sourcepub fn n_monitors(&self) -> i32
pub fn n_monitors(&self) -> i32
Gets the number of monitors that belong to self
.
The returned number is valid until the next emission of the
signal::Display::monitor-added
or signal::Display::monitor-removed
signal.
Returns
the number of monitors
sourcepub fn name(&self) -> GString
pub fn name(&self) -> GString
Gets the name of the display.
Returns
a string representing the display name. This string is owned by GDK and should not be modified or freed.
sourcepub fn primary_monitor(&self) -> Option<Monitor>
pub fn primary_monitor(&self) -> Option<Monitor>
Gets the primary monitor for the display.
The primary monitor is considered the monitor where the “main desktop” lives. While normal application windows typically allow the window manager to place the windows, specialized desktop applications such as panels should place themselves on the primary monitor.
Returns
the primary monitor, or None
if no primary
monitor is configured by the user
sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
sourcepub fn list_seats(&self) -> Vec<Seat>
pub fn list_seats(&self) -> Vec<Seat>
sourcepub fn notify_startup_complete(&self, startup_id: &str)
pub fn notify_startup_complete(&self, startup_id: &str)
Indicates to the GUI environment that the application has finished loading, using a given identifier.
GTK+ will call this function automatically for GtkWindow
with custom startup-notification identifier unless
gtk_window_set_auto_startup_notification()
is called to
disable that feature.
startup_id
a startup-notification identifier, for which notification process should be completed
sourcepub fn peek_event(&self) -> Option<Event>
pub fn peek_event(&self) -> Option<Event>
Gets a copy of the first GdkEvent
in the self
’s event queue, without
removing the event from the queue. (Note that this function will
not get more events from the windowing system. It only checks the events
that have already been moved to the GDK event queue.)
Returns
a copy of the first GdkEvent
on the event
queue, or None
if no events are in the queue. The returned
GdkEvent
should be freed with gdk_event_free()
.
sourcepub fn request_selection_notification(&self, selection: &Atom) -> bool
pub fn request_selection_notification(&self, selection: &Atom) -> bool
Request EventOwnerChange
events for ownership changes
of the selection named by the given atom.
selection
the Atom
naming the selection for which
ownership change notification is requested
Returns
whether EventOwnerChange
events will
be sent.
sourcepub fn set_double_click_distance(&self, distance: u32)
pub fn set_double_click_distance(&self, distance: u32)
Sets the double click distance (two clicks within this distance
count as a double click and result in a [EventType::_2buttonPress
][crate::EventType::_2buttonPress] event).
See also set_double_click_time()
.
Applications should not set this, it is a global
user-configured setting.
distance
distance in pixels
sourcepub fn set_double_click_time(&self, msec: u32)
pub fn set_double_click_time(&self, msec: u32)
Sets the double click time (two clicks within this time interval
count as a double click and result in a [EventType::_2buttonPress
][crate::EventType::_2buttonPress] event).
Applications should not set this, it is a global
user-configured setting.
msec
double click time in milliseconds (thousandths of a second)
sourcepub fn store_clipboard(
&self,
clipboard_window: &Window,
time_: u32,
targets: &[Atom]
)
pub fn store_clipboard(
&self,
clipboard_window: &Window,
time_: u32,
targets: &[Atom]
)
Issues a request to the clipboard manager to store the clipboard data. On X11, this is a special program that works according to the FreeDesktop Clipboard Specification.
clipboard_window
a Window
belonging to the clipboard owner
time_
a timestamp
targets
an array of targets
that should be saved, or None
if all available targets should be saved.
sourcepub fn supports_clipboard_persistence(&self) -> bool
pub fn supports_clipboard_persistence(&self) -> bool
sourcepub fn supports_cursor_alpha(&self) -> bool
pub fn supports_cursor_alpha(&self) -> bool
sourcepub fn supports_cursor_color(&self) -> bool
pub fn supports_cursor_color(&self) -> bool
sourcepub fn supports_input_shapes(&self) -> bool
pub fn supports_input_shapes(&self) -> bool
sourcepub fn supports_selection_notification(&self) -> bool
pub fn supports_selection_notification(&self) -> bool
Returns whether EventOwnerChange
events will be
sent when the owner of a selection changes.
Returns
whether EventOwnerChange
events will
be sent.
sourcepub fn supports_shapes(&self) -> bool
pub fn supports_shapes(&self) -> bool
sourcepub fn sync(&self)
pub fn sync(&self)
Flushes any requests queued for the windowing system and waits until all
requests have been handled. This is often used for making sure that the
display is synchronized with the current state of the program. Calling
sync()
before error_trap_pop()
makes sure that any errors
generated from earlier requests are handled before the error trap is
removed.
This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing.
sourcepub fn open(display_name: &str) -> Option<Display>
pub fn open(display_name: &str) -> Option<Display>
sourcepub fn connect_closed<F: Fn(&Self, bool) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_closed<F: Fn(&Self, bool) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcepub fn connect_monitor_added<F: Fn(&Self, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_monitor_added<F: Fn(&Self, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
The ::monitor-added signal is emitted whenever a monitor is added.
monitor
the monitor that was just added
sourcepub fn connect_monitor_removed<F: Fn(&Self, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_monitor_removed<F: Fn(&Self, &Monitor) + 'static>(
&self,
f: F
) -> SignalHandlerId
The ::monitor-removed signal is emitted whenever a monitor is removed.
monitor
the monitor that was just removed
sourcepub fn connect_opened<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
pub fn connect_opened<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::opened signal is emitted when the connection to the windowing
system for display
is opened.
sourcepub fn connect_seat_added<F: Fn(&Self, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_seat_added<F: Fn(&Self, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
The ::seat-added signal is emitted whenever a new seat is made known to the windowing system.
seat
the seat that was just added
sourcepub fn connect_seat_removed<F: Fn(&Self, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_seat_removed<F: Fn(&Self, &Seat) + 'static>(
&self,
f: F
) -> SignalHandlerId
The ::seat-removed signal is emitted whenever a seat is removed by the windowing system.
seat
the seat that was just removed
Trait Implementations
sourceimpl Ord for Display
impl Ord for Display
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl ParentClassIs for Display
impl ParentClassIs for Display
sourceimpl<OT: ObjectType> PartialOrd<OT> for Display
impl<OT: ObjectType> PartialOrd<OT> for Display
sourcefn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl StaticType for Display
impl StaticType for Display
sourcefn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Display
Auto Trait Implementations
impl RefUnwindSafe for Display
impl !Send for Display
impl !Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
T
. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
T
. Read moresourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
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 moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
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 moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresourceimpl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
sourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.sourcefn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresourcefn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresourcefn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresourcefn set_property<V>(&self, property_name: &str, value: V)where
V: ToValue,
fn set_property<V>(&self, property_name: &str, value: V)where
V: ToValue,
sourcefn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
sourcefn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
sourcefn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
sourcefn property<V>(&self, property_name: &str) -> Vwhere
V: 'static + for<'b> FromValue<'b>,
fn property<V>(&self, property_name: &str) -> Vwhere
V: 'static + for<'b> FromValue<'b>,
property_name
of the object and cast it to the type V. Read moresourcefn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresourcefn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresourcefn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.sourcefn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.sourcefn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
sourceunsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresourceunsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresourceunsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresourceunsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresourceunsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresourceunsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresourcefn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
sourcefn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
sourcefn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
sourcefn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
sourcefn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
signal_name
on this object. Read moresourcefn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
signal_id
on this object. Read moresourcefn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value>,
fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value>,
signal_name
on this object. Read moresourcefn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value>,
fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: 'static + Fn(&[Value]) -> Option<Value>,
signal_id
on this object. Read moresourceunsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
signal_name
on this object. Read moresourceunsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
signal_id
on this object. Read moresourcefn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
signal_name
on this object. Read moresourcefn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
signal_id
on this object. Read moresourcefn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures. Read moresourcefn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
sourcefn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.sourcefn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
sourcefn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
sourcefn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
sourcefn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
sourcefn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
sourcefn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
sourcefn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
sourcefn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
notify
signal of the object. Read moresourcefn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&T, &ParamSpec),
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&T, &ParamSpec),
notify
signal of the object. Read moresourceunsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec),
notify
signal of the object. Read more