Struct gdk4_x11::X11Display
source · #[repr(transparent)]pub struct X11Display { /* private fields */ }
Expand description
Implementations§
source§impl X11Display
impl X11Display
sourcepub fn error_trap_pop(&self) -> i32
pub fn error_trap_pop(&self) -> i32
Pops the error trap pushed by gdk_x11_display_error_trap_push(). Will XSync() if necessary and will always block until the error is known to have occurred or not occurred, so the error code can be returned.
If you don’t need to use the return value, gdk_x11_display_error_trap_pop_ignored() would be more efficient.
Returns
X error code or 0 on success
sourcepub fn error_trap_pop_ignored(&self)
pub fn error_trap_pop_ignored(&self)
Pops the error trap pushed by gdk_x11_display_error_trap_push(). Does not block to see if an error occurred; merely records the range of requests to ignore errors for, and ignores those errors if they arrive asynchronously.
sourcepub fn error_trap_push(&self)
pub fn error_trap_push(&self)
Begins a range of X requests on @self for which X error events will be ignored. Unignored errors (when no trap is pushed) will abort the application. Use gdk_x11_display_error_trap_pop() or gdk_x11_display_error_trap_pop_ignored()to lift a trap pushed with this function.
sourcepub fn default_group(&self) -> Surface
pub fn default_group(&self) -> Surface
Returns the default group leader surface for all toplevel surfaces on @self. This surface is implicitly created by GDK. See gdk_x11_surface_set_group().
Returns
The default group leader surface for @self
sourcepub fn egl_version(&self) -> Option<(i32, i32)>
Available on crate feature v4_4
only.
pub fn egl_version(&self) -> Option<(i32, i32)>
v4_4
only.sourcepub fn glx_version(&self) -> Option<(i32, i32)>
pub fn glx_version(&self) -> Option<(i32, i32)>
sourcepub fn primary_monitor(&self) -> Monitor
pub fn primary_monitor(&self) -> Monitor
Gets the primary monitor for the display.
The primary monitor is considered the monitor where the “main desktop” lives. While normal application surfaces typically allow the window manager to place the surfaces, specialized desktop applications such as panels should place themselves on the primary monitor.
If no monitor is the designated primary monitor, any monitor (usually the first) may be returned.
Returns
the primary monitor, or any monitor if no primary monitor is configured by the user
sourcepub fn startup_notification_id(&self) -> GString
pub fn startup_notification_id(&self) -> GString
sourcepub fn user_time(&self) -> u32
pub fn user_time(&self) -> u32
Returns the timestamp of the last user interaction on @self. The timestamp is taken from events caused by user interaction such as key presses or pointer movements. See gdk_x11_surface_set_user_time().
Returns
the timestamp of the last user interaction
sourcepub fn grab(&self)
pub fn grab(&self)
Call XGrabServer() on @self. To ungrab the display again, use gdk_x11_display_ungrab().
gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.
sourcepub fn set_cursor_theme(&self, theme: Option<&str>, size: i32)
pub fn set_cursor_theme(&self, theme: Option<&str>, size: i32)
Sets the cursor theme from which the images for cursor should be taken.
If the windowing system supports it, existing cursors created
with gdk::Cursor::from_name()
are updated to reflect the theme
change. Custom cursors constructed with gdk::Cursor::from_texture()
will have to be handled by the application (GTK applications can learn
about cursor theme changes by listening for change notification
for the corresponding GtkSetting
).
theme
the name of the cursor theme to use, or None
to unset a previously set value
size
the cursor size to use, or 0 to keep the previous size
sourcepub fn set_startup_notification_id(&self, startup_id: &str)
pub fn set_startup_notification_id(&self, startup_id: &str)
Sets the startup notification ID for a display.
This is usually taken from the value of the DESKTOP_STARTUP_ID environment variable, but in some cases (such as the application not being launched using exec()) it can come from other sources.
If the ID contains the string “_TIME” then the portion following that string is taken to be the X11 timestamp of the event that triggered the application to be launched and the GDK current event time is set accordingly.
The startup ID is also what is used to signal that the startup is complete (for example, when opening a window or when calling gdk_display_notify_startup_complete()).
startup_id
the startup notification ID (must be valid utf8)
sourcepub fn set_surface_scale(&self, scale: i32)
pub fn set_surface_scale(&self, scale: i32)
Forces a specific window scale for all windows on this display, instead of using the default or user configured scale. This is can be used to disable scaling support by setting @scale to 1, or to programmatically set the window scale.
Once the scale is set by this call it will not change in response to later user configuration changes.
scale
The new scale value
sourcepub fn string_to_compound_text(&self, str: &str) -> (i32, GString, i32, Vec<u8>)
pub fn string_to_compound_text(&self, str: &str) -> (i32, GString, i32, Vec<u8>)
Convert a string from the encoding of the current locale into a form suitable for storing in a window property.
str
a nul-terminated string
Returns
0 upon success, non-zero upon failure
encoding
location to store the encoding (to be used as the type for the property)
format
location to store the format of the property
ctext
location to store newly allocated data for the property
source§impl X11Display
impl X11Display
sourcepub fn egl_display(&self) -> Option<Display>
Available on crate features v4_4
and egl
only.
pub fn egl_display(&self) -> Option<Display>
v4_4
and egl
only.Retrieves the EGL display connection object for the given GDK display.
This function returns NULL
if GDK is using GLX.
Returns
the EGL display object
sourcepub fn xcursor(&self, cursor: &Cursor) -> XCursor
pub fn xcursor(&self, cursor: &Cursor) -> XCursor
Returns the X cursor belonging to a gdk::Cursor
, potentially
creating the cursor.
Be aware that the returned cursor may not be unique to @cursor. It may for example be shared with its fallback cursor. On old X servers that don’t support the XCursor extension, all cursors may even fall back to a few default cursors.
cursor
Returns
an Xlib Cursor.
sourcepub fn xrootwindow(&self) -> XWindow
pub fn xrootwindow(&self) -> XWindow
sourcepub unsafe fn connect_xevent<F: Fn(&Self, *mut XEvent) -> Continue + 'static>(
&self,
f: F
) -> SignalHandlerId
Available on crate feature xlib
only.
pub unsafe fn connect_xevent<F: Fn(&Self, *mut XEvent) -> Continue + 'static>(
&self,
f: F
) -> SignalHandlerId
xlib
only.The ::xevent signal is a low level signal that is emitted whenever an XEvent has been received.
When handlers to this signal return true
, no other handlers will be
invoked. In particular, the default handler for this function is
GDK’s own event handling mechanism, so by returning true
for an event
that GDK expects to translate, you may break GDK and/or GTK+ in
interesting ways. You have been warned.
If you want this signal handler to queue a gdk::Event
, you can use
gdk_display_put_event().
If you are interested in X GenericEvents, bear in mind that XGetEventData() has been already called on the event, and XFreeEventData() will be called afterwards.
xevent
a pointer to the XEvent to process
Returns
true
to stop other handlers from being invoked for the event.
false
to propagate the event further.
sourcepub fn set_program_class(&self, program_class: &str)
pub fn set_program_class(&self, program_class: &str)
Sets the program class.
The X11 backend uses the program class to set the class name part
of the WM_CLASS
property on toplevel windows; see the ICCCM.
display
program_class
a string
Trait Implementations§
source§impl Clone for X11Display
impl Clone for X11Display
source§impl Debug for X11Display
impl Debug for X11Display
source§impl Display for X11Display
impl Display for X11Display
source§impl Hash for X11Display
impl Hash for X11Display
source§impl Ord for X11Display
impl Ord for X11Display
source§impl ParentClassIs for X11Display
impl ParentClassIs for X11Display
source§impl<OT: ObjectType> PartialEq<OT> for X11Display
impl<OT: ObjectType> PartialEq<OT> for X11Display
source§impl<OT: ObjectType> PartialOrd<OT> for X11Display
impl<OT: ObjectType> PartialOrd<OT> for X11Display
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for X11Display
impl StaticType for X11Display
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for X11Display
impl IsA<Display> for X11Display
Auto Trait Implementations§
impl RefUnwindSafe for X11Display
impl !Send for X11Display
impl !Sync for X11Display
impl Unpin for X11Display
impl UnwindSafe for X11Display
Blanket Implementations§
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<O> DisplayExt for Owhere
O: IsA<Display>,
impl<O> DisplayExt for Owhere
O: IsA<Display>,
source§fn close(&self)
fn close(&self)
source§fn app_launch_context(&self) -> AppLaunchContext
fn app_launch_context(&self) -> AppLaunchContext
AppLaunchContext
suitable for launching
applications on the given display. Read moresource§fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Monitor
fn monitor_at_surface(&self, surface: &impl IsA<Surface>) -> Monitor
source§fn monitors(&self) -> ListModel
fn monitors(&self) -> ListModel
source§fn primary_clipboard(&self) -> Clipboard
fn primary_clipboard(&self) -> Clipboard
source§fn startup_notification_id(&self) -> Option<GString>
fn startup_notification_id(&self) -> Option<GString>
source§fn is_composited(&self) -> bool
fn is_composited(&self) -> bool
source§fn is_rgba(&self) -> bool
fn is_rgba(&self) -> bool
source§fn notify_startup_complete(&self, startup_id: &str)
fn notify_startup_complete(&self, startup_id: &str)
source§fn put_event(&self, event: impl AsRef<Event>)
fn put_event(&self, event: impl AsRef<Event>)
fn supports_input_shapes(&self) -> bool
fn sync(&self)
fn is_input_shapes(&self) -> bool
fn connect_closed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, bool),
fn connect_opened<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_seat_added<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Seat),
fn connect_seat_removed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &Seat),
fn connect_setting_changed<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O, &str),
fn connect_composited_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_input_shapes_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
fn connect_rgba_notify<F>(&self, f: F) -> SignalHandlerIdwhere
F: 'static + Fn(&O),
source§impl<O> DisplayExtManual for Owhere
O: IsA<Display>,
impl<O> DisplayExtManual for Owhere
O: IsA<Display>,
source§fn translate_key(
&self,
keycode: u32,
state: ModifierType,
group: i32
) -> Option<(Key, i32, i32, ModifierType)>
fn translate_key(
&self,
keycode: u32,
state: ModifierType,
group: i32
) -> Option<(Key, i32, i32, ModifierType)>
GdkEventKey
into a keyval, effective group,
and level. Read moresource§fn get_setting(&self, name: &str) -> Option<Value>
fn get_setting(&self, name: &str) -> Option<Value>
source§fn map_keyval(&self, keyval: Key) -> Option<Vec<KeymapKey, Global>>
fn map_keyval(&self, keyval: Key) -> Option<Vec<KeymapKey, Global>>
source§impl<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>,
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn 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
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn 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,
source§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn 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 moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn 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.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe 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 moresource§unsafe 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 moresource§unsafe 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 moresource§unsafe 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 moresource§unsafe 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 moresource§unsafe 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 moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn 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 moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§unsafe 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 moresource§unsafe 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 moresource§fn 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 moresource§fn 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 moresource§fn 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.source§fn 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,
source§fn 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.source§fn 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,
source§fn 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>
source§fn 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,
source§fn 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>
source§fn 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,
source§fn 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>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn 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 moresource§fn 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 moresource§unsafe 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