Struct webkit2gtk::Settings
source · pub struct Settings { /* private fields */ }
Implementations§
source§impl Settings
impl Settings
pub const NONE: Option<&'static Settings> = None
pub fn new() -> Settings
sourcepub fn builder() -> SettingsBuilder
pub fn builder() -> SettingsBuilder
Creates a new builder-pattern struct instance to construct Settings
objects.
This method returns an instance of SettingsBuilder
which can be used to create Settings
objects.
pub fn font_size_to_pixels(points: u32) -> u32
Available on crate feature
v2_20
only.pub fn font_size_to_points(pixels: u32) -> u32
Available on crate feature
v2_20
only.Trait Implementations§
source§impl HasParamSpec for Settings
impl HasParamSpec for Settings
source§impl Ord for Settings
impl Ord for Settings
source§impl<OT: ObjectType> PartialEq<OT> for Settings
impl<OT: ObjectType> PartialEq<OT> for Settings
source§impl<OT: ObjectType> PartialOrd<OT> for Settings
impl<OT: ObjectType> PartialOrd<OT> for Settings
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Settings
impl StaticType for Settings
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Settings
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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>,
Upcasts an object to a superclass or interface
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>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where T: ObjectType, Self: MayDowncastTo<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where T: ObjectType, Self: MayDowncastTo<T>,
Tries to downcast to a reference of its subclass or interface implementor
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,
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 upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where T: ObjectType,
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 moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere T: ObjectType,
Casts to
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere T: ObjectType,
Casts to
&T
unconditionally. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
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,
Returns
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>
Returns the
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,
Returns the class of the object in the given type
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where U: IsInterface,
Returns the interface
T
of the object. Read moresource§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)])
Sets multiple properties of the object at once. Read more
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Sets multiple properties of the object at once. Read more
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere V: for<'b> FromValue<'b> + 'static,
Gets the property
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
Gets the property
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>
Get the type of the property
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>
Get the
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Freeze all property notifications until the return guard object is dropped. Read more
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,
Set arbitrary data on this object with the given
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,
Return previously set arbitrary data of this object with the given
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,
Retrieve previously set arbitrary data of this object with the given
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,
Set arbitrary data on this object with the given
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,
Return previously set arbitrary data of this object with the given
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,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Stop emission of the currently emitted signal.
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Stop emission of the currently emitted signal by the (possibly detailed) signal name.
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
Connect to the signal
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
Connect to the signal
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
Connect to the signal
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: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
Connect to the signal
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>,
Connect to the signal
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>,
Connect to the signal
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
Connect a closure to the signal
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
Connect a closure to the signal
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
Limits the lifetime of
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,
Emit signal by signal id. Read more
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>
Same as
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,
Emit signal by its name. Read more
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>
Emit signal by its name. Read more
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,
Emit signal by its name with details. Read more
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>
Emit signal by its name with details. Read more
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,
Emit signal by signal id with details. Read more
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>
Emit signal by signal id with details. Read more
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Disconnect a previously connected signal handler.
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
Connect to the
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + 'static,
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + 'static,
Connect to the
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),
Connect to the
notify
signal of the object. Read moresource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Notify that the given property has changed its value. Read more
source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + Send + 'static,
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + Send + 'static,
Add a callback to be notified when the Object is disposed.
source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where F: FnOnce() + 'static,
Add a callback to be notified when the Object is disposed. Read more
source§fn bind_property<'f, 't, O, 'a>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'f, 't, O, 'a>( &'a self, source_property: &'a str, target: &'a O, target_property: &'a str ) -> BindingBuilder<'a, 'f, 't>where O: ObjectType,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere T: HasParamSpec,
source§impl<O> SettingsExt for Owhere
O: IsA<Settings>,
impl<O> SettingsExt for Owhere O: IsA<Settings>,
source§fn allows_file_access_from_file_urls(&self) -> bool
fn allows_file_access_from_file_urls(&self) -> bool
Available on crate feature
v2_10
only.fn allows_modal_dialogs(&self) -> bool
Available on crate feature
v2_28
only.source§fn allows_universal_access_from_file_urls(&self) -> bool
fn allows_universal_access_from_file_urls(&self) -> bool
Available on crate feature
v2_14
only.fn is_auto_load_images(&self) -> bool
fn cursive_font_family(&self) -> Option<GString>
fn default_charset(&self) -> Option<GString>
fn default_font_family(&self) -> Option<GString>
fn default_font_size(&self) -> u32
fn default_monospace_font_size(&self) -> u32
source§fn is_disable_web_security(&self) -> bool
fn is_disable_web_security(&self) -> bool
Available on crate feature
v2_40
only.fn draws_compositing_indicators(&self) -> bool
source§fn enables_accelerated_2d_canvas(&self) -> bool
fn enables_accelerated_2d_canvas(&self) -> bool
👎Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn enables_caret_browsing(&self) -> bool
fn enables_developer_extras(&self) -> bool
fn enables_dns_prefetching(&self) -> bool
source§fn enables_encrypted_media(&self) -> bool
fn enables_encrypted_media(&self) -> bool
Available on crate feature
v2_20
only.source§fn enables_frame_flattening(&self) -> bool
fn enables_frame_flattening(&self) -> bool
👎Deprecated: Since 2.38
fn enables_fullscreen(&self) -> bool
fn enables_html5_database(&self) -> bool
fn enables_html5_local_storage(&self) -> bool
fn enables_hyperlink_auditing(&self) -> bool
source§fn enables_java(&self) -> bool
fn enables_java(&self) -> bool
👎Deprecated: Since 2.38
fn enables_javascript(&self) -> bool
source§fn enables_javascript_markup(&self) -> bool
fn enables_javascript_markup(&self) -> bool
Available on crate feature
v2_24
only.source§fn enables_media(&self) -> bool
fn enables_media(&self) -> bool
Available on crate feature
v2_26
only.source§fn enables_media_capabilities(&self) -> bool
fn enables_media_capabilities(&self) -> bool
Available on crate feature
v2_22
only.source§fn enables_media_stream(&self) -> bool
fn enables_media_stream(&self) -> bool
Available on crate feature
v2_4
only.source§fn enables_mediasource(&self) -> bool
fn enables_mediasource(&self) -> bool
Available on crate feature
v2_4
only.source§fn enables_mock_capture_devices(&self) -> bool
fn enables_mock_capture_devices(&self) -> bool
Available on crate feature
v2_24
only.fn enables_offline_web_application_cache(&self) -> bool
fn enables_page_cache(&self) -> bool
source§fn enables_plugins(&self) -> bool
fn enables_plugins(&self) -> bool
👎Deprecated: Since 2.32
source§fn enables_private_browsing(&self) -> bool
fn enables_private_browsing(&self) -> bool
👎Deprecated: Since 2.16
fn enables_resizable_text_areas(&self) -> bool
fn enables_site_specific_quirks(&self) -> bool
fn enables_smooth_scrolling(&self) -> bool
Available on crate feature
v2_2
only.fn enables_tabs_to_links(&self) -> bool
fn enables_webaudio(&self) -> bool
fn enables_webgl(&self) -> bool
source§fn enables_webrtc(&self) -> bool
fn enables_webrtc(&self) -> bool
Available on crate feature
v2_38
only.source§fn enables_write_console_messages_to_stdout(&self) -> bool
fn enables_write_console_messages_to_stdout(&self) -> bool
Available on crate feature
v2_2
only.source§fn enables_xss_auditor(&self) -> bool
fn enables_xss_auditor(&self) -> bool
👎Deprecated: Since 2.38
fn fantasy_font_family(&self) -> Option<GString>
source§fn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy
fn hardware_acceleration_policy(&self) -> HardwareAccelerationPolicy
Available on crate feature
v2_16
only.fn is_javascript_can_access_clipboard(&self) -> bool
fn is_javascript_can_open_windows_automatically(&self) -> bool
fn is_load_icons_ignoring_image_load_setting(&self) -> bool
source§fn media_content_types_requiring_hardware_support(&self) -> Option<GString>
fn media_content_types_requiring_hardware_support(&self) -> Option<GString>
Available on crate feature
v2_30
only.fn is_media_playback_allows_inline(&self) -> bool
fn is_media_playback_requires_user_gesture(&self) -> bool
fn minimum_font_size(&self) -> u32
fn monospace_font_family(&self) -> Option<GString>
fn pictograph_font_family(&self) -> Option<GString>
fn is_print_backgrounds(&self) -> bool
fn sans_serif_font_family(&self) -> Option<GString>
fn serif_font_family(&self) -> Option<GString>
fn user_agent(&self) -> Option<GString>
fn is_zoom_text_only(&self) -> bool
source§fn set_allow_file_access_from_file_urls(&self, allowed: bool)
fn set_allow_file_access_from_file_urls(&self, allowed: bool)
Available on crate feature
v2_10
only.fn set_allow_modal_dialogs(&self, allowed: bool)
Available on crate feature
v2_28
only.source§fn set_allow_universal_access_from_file_urls(&self, allowed: bool)
fn set_allow_universal_access_from_file_urls(&self, allowed: bool)
Available on crate feature
v2_14
only.fn set_auto_load_images(&self, enabled: bool)
fn set_cursive_font_family(&self, cursive_font_family: &str)
fn set_default_charset(&self, default_charset: &str)
fn set_default_font_family(&self, default_font_family: &str)
fn set_default_font_size(&self, font_size: u32)
fn set_default_monospace_font_size(&self, font_size: u32)
source§fn set_disable_web_security(&self, disabled: bool)
fn set_disable_web_security(&self, disabled: bool)
Available on crate feature
v2_40
only.fn set_draw_compositing_indicators(&self, enabled: bool)
source§fn set_enable_accelerated_2d_canvas(&self, enabled: bool)
fn set_enable_accelerated_2d_canvas(&self, enabled: bool)
👎Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn set_enable_caret_browsing(&self, enabled: bool)
fn set_enable_developer_extras(&self, enabled: bool)
fn set_enable_dns_prefetching(&self, enabled: bool)
source§fn set_enable_encrypted_media(&self, enabled: bool)
fn set_enable_encrypted_media(&self, enabled: bool)
Available on crate feature
v2_20
only.source§fn set_enable_frame_flattening(&self, enabled: bool)
fn set_enable_frame_flattening(&self, enabled: bool)
👎Deprecated: Since 2.38
fn set_enable_fullscreen(&self, enabled: bool)
fn set_enable_html5_database(&self, enabled: bool)
fn set_enable_html5_local_storage(&self, enabled: bool)
fn set_enable_hyperlink_auditing(&self, enabled: bool)
source§fn set_enable_java(&self, enabled: bool)
fn set_enable_java(&self, enabled: bool)
👎Deprecated: Since 2.38
fn set_enable_javascript(&self, enabled: bool)
source§fn set_enable_javascript_markup(&self, enabled: bool)
fn set_enable_javascript_markup(&self, enabled: bool)
Available on crate feature
v2_24
only.source§fn set_enable_media(&self, enabled: bool)
fn set_enable_media(&self, enabled: bool)
Available on crate feature
v2_26
only.source§fn set_enable_media_capabilities(&self, enabled: bool)
fn set_enable_media_capabilities(&self, enabled: bool)
Available on crate feature
v2_22
only.source§fn set_enable_media_stream(&self, enabled: bool)
fn set_enable_media_stream(&self, enabled: bool)
Available on crate feature
v2_4
only.source§fn set_enable_mediasource(&self, enabled: bool)
fn set_enable_mediasource(&self, enabled: bool)
Available on crate feature
v2_4
only.source§fn set_enable_mock_capture_devices(&self, enabled: bool)
fn set_enable_mock_capture_devices(&self, enabled: bool)
Available on crate feature
v2_4
only.fn set_enable_offline_web_application_cache(&self, enabled: bool)
fn set_enable_page_cache(&self, enabled: bool)
source§fn set_enable_plugins(&self, enabled: bool)
fn set_enable_plugins(&self, enabled: bool)
👎Deprecated: Since 2.32
source§fn set_enable_private_browsing(&self, enabled: bool)
fn set_enable_private_browsing(&self, enabled: bool)
👎Deprecated: Since 2.16
fn set_enable_resizable_text_areas(&self, enabled: bool)
fn set_enable_site_specific_quirks(&self, enabled: bool)
fn set_enable_smooth_scrolling(&self, enabled: bool)
Available on crate feature
v2_2
only.fn set_enable_tabs_to_links(&self, enabled: bool)
fn set_enable_webaudio(&self, enabled: bool)
fn set_enable_webgl(&self, enabled: bool)
source§fn set_enable_webrtc(&self, enabled: bool)
fn set_enable_webrtc(&self, enabled: bool)
Available on crate feature
v2_38
only.source§fn set_enable_write_console_messages_to_stdout(&self, enabled: bool)
fn set_enable_write_console_messages_to_stdout(&self, enabled: bool)
Available on crate feature
v2_2
only.source§fn set_enable_xss_auditor(&self, enabled: bool)
fn set_enable_xss_auditor(&self, enabled: bool)
👎Deprecated: Since 2.38
fn set_fantasy_font_family(&self, fantasy_font_family: &str)
source§fn set_hardware_acceleration_policy(&self, policy: HardwareAccelerationPolicy)
fn set_hardware_acceleration_policy(&self, policy: HardwareAccelerationPolicy)
Available on crate feature
v2_16
only.fn set_javascript_can_access_clipboard(&self, enabled: bool)
fn set_javascript_can_open_windows_automatically(&self, enabled: bool)
fn set_load_icons_ignoring_image_load_setting(&self, enabled: bool)
source§fn set_media_content_types_requiring_hardware_support(
&self,
content_types: Option<&str>
)
fn set_media_content_types_requiring_hardware_support( &self, content_types: Option<&str> )
Available on crate feature
v2_30
only.fn set_media_playback_allows_inline(&self, enabled: bool)
fn set_media_playback_requires_user_gesture(&self, enabled: bool)
fn set_minimum_font_size(&self, font_size: u32)
fn set_monospace_font_family(&self, monospace_font_family: &str)
fn set_pictograph_font_family(&self, pictograph_font_family: &str)
fn set_print_backgrounds(&self, print_backgrounds: bool)
fn set_sans_serif_font_family(&self, sans_serif_font_family: &str)
fn set_serif_font_family(&self, serif_font_family: &str)
fn set_user_agent(&self, user_agent: Option<&str>)
fn set_user_agent_with_application_details( &self, application_name: Option<&str>, application_version: Option<&str> )
fn set_zoom_text_only(&self, zoom_text_only: bool)
source§fn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_allow_file_access_from_file_urls_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_10
only.fn connect_allow_modal_dialogs_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_28
only.source§fn connect_allow_universal_access_from_file_urls_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_allow_universal_access_from_file_urls_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_14
only.fn connect_auto_load_images_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_cursive_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_charset_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_default_monospace_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_disable_web_security_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_disable_web_security_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_40
only.fn connect_draw_compositing_indicators_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_accelerated_2d_canvas_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.32
Available on crate feature
v2_2
only.Available on crate feature
v2_24
only.fn connect_enable_caret_browsing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_developer_extras_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_dns_prefetching_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_encrypted_media_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_20
only.source§fn connect_enable_frame_flattening_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_frame_flattening_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.38
fn connect_enable_fullscreen_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_html5_database_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_html5_local_storage_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_hyperlink_auditing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_java_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_java_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.38
fn connect_enable_javascript_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_javascript_markup_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_24
only.source§fn connect_enable_media_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_26
only.source§fn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_capabilities_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_22
only.source§fn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_media_stream_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_4
only.source§fn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_mediasource_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_4
only.source§fn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_mock_capture_devices_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_24
only.fn connect_enable_offline_web_application_cache_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_page_cache_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_plugins_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_plugins_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.32
source§fn connect_enable_private_browsing_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_private_browsing_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.16
fn connect_enable_resizable_text_areas_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_site_specific_quirks_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_smooth_scrolling_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_4
only.fn connect_enable_tabs_to_links_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_webaudio_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_enable_webgl_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_webrtc_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_38
only.source§fn connect_enable_write_console_messages_to_stdout_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_write_console_messages_to_stdout_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_2
only.source§fn connect_enable_xss_auditor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_enable_xss_auditor_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
👎Deprecated: Since 2.38
fn connect_fantasy_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_hardware_acceleration_policy_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_16
only.fn connect_javascript_can_access_clipboard_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_javascript_can_open_windows_automatically_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_load_icons_ignoring_image_load_setting_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_media_content_types_requiring_hardware_support_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_media_content_types_requiring_hardware_support_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
Available on crate feature
v2_30
only.fn connect_media_playback_allows_inline_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_media_playback_requires_user_gesture_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_minimum_font_size_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_monospace_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_pictograph_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_print_backgrounds_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_sans_serif_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_serif_font_family_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_user_agent_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
fn connect_zoom_text_only_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.