pub struct Scrollbar { /* private fields */ }Expand description
scrollbar[.fine-tune] ╰── contents ├── [button.up] ├── [button.down] ├── trough │ ╰── slider ├── [button.up] ╰── [button.down] ]|
GtkScrollbar has a main CSS node with name scrollbar and a subnode for its contents, with subnodes named trough and slider.
The main node gets the style class .fine-tune added when the scrollbar is in ‘fine-tuning’ mode.
If steppers are enabled, they are represented by up to four additional subnodes with name button. These get the style classes .up and .down to indicate in which direction they are moving.
Other style classes that may be added to scrollbars inside ScrolledWindow
include the positional classes (.left, .right, .top, .bottom) and style
classes related to overlay scrolling (.overlay-indicator, .dragging, .hovering).
§Implements
RangeExt, WidgetExt, [trait@glib::ObjectExt], BuildableExt, OrientableExt, WidgetExtManual, BuildableExtManual
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl Scrollbar
impl Scrollbar
pub const NONE: Option<&'static Scrollbar> = None
Sourcepub fn new(
orientation: Orientation,
adjustment: Option<&impl IsA<Adjustment>>,
) -> Scrollbar
pub fn new( orientation: Orientation, adjustment: Option<&impl IsA<Adjustment>>, ) -> Scrollbar
Sourcepub fn builder() -> ScrollbarBuilder
pub fn builder() -> ScrollbarBuilder
Creates a new builder-pattern struct instance to construct Scrollbar objects.
This method returns an instance of ScrollbarBuilder which can be used to create Scrollbar objects.
Trait Implementations§
impl Eq for Scrollbar
Source§impl HasParamSpec for Scrollbar
impl HasParamSpec for Scrollbar
impl IsA<Buildable> for Scrollbar
impl IsA<Orientable> for Scrollbar
impl IsA<Range> for Scrollbar
impl IsA<Widget> for Scrollbar
Source§impl Ord for Scrollbar
impl Ord for Scrollbar
Source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<OT: ObjectType> PartialEq<OT> for Scrollbar
impl<OT: ObjectType> PartialEq<OT> for Scrollbar
Source§impl<OT: ObjectType> PartialOrd<OT> for Scrollbar
impl<OT: ObjectType> PartialOrd<OT> for Scrollbar
Source§fn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
Partial comparison for two GObjects.
Compares the memory addresses of the provided objects.
Source§impl StaticType for Scrollbar
impl StaticType for Scrollbar
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for Scrollbar
impl !Sync for Scrollbar
impl Freeze for Scrollbar
impl RefUnwindSafe for Scrollbar
impl Unpin for Scrollbar
impl UnsafeUnpin for Scrollbar
impl UnwindSafe for Scrollbar
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
Source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
Source§fn add_child(
&self,
builder: &impl IsA<Builder>,
child: &impl IsA<Object>,
type_: Option<&str>,
)
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str>, )
self. type_ is an optional string
describing how the child should be added. Read moreSource§fn parser_finished(&self, builder: &impl IsA<Builder>)
fn parser_finished(&self, builder: &impl IsA<Builder>)
gtk_builder_add_from_file() or BuilderExtManual::add_from_string()
is called on a builder. Read moreSource§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
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: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
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>,
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 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,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
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>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
impl<'a, T, C, E> FromValueOptional<'a> for Twhere
T: FromValue<'a, Checker = C>,
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>,
E: Error + Send + 'static,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
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>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
impl<Super, Sub> MayDowncastTo<Sub> for Super
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_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: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
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 has_property(&self, property_name: &str) -> bool
fn has_property(&self, property_name: &str) -> bool
property_name.Source§fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
property_name of the given type_.Source§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,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id on this object. Read moreSource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id on this object. Read moreSource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name on this object. Read moreSource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
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) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify signal of the object. Read moreSource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify signal of the object. Read moreSource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
notify signal of the object. Read moreSource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
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,
Source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'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)
Source§impl<O> OrientableExt for Owhere
O: IsA<Orientable>,
impl<O> OrientableExt for Owhere
O: IsA<Orientable>,
Source§fn orientation(&self) -> Orientation
fn orientation(&self) -> Orientation
self. Read moreSource§fn set_orientation(&self, orientation: Orientation)
fn set_orientation(&self, orientation: Orientation)
self. Read morefn connect_orientation_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<O> RangeExt for O
impl<O> RangeExt for O
Source§fn adjustment(&self) -> Adjustment
fn adjustment(&self) -> Adjustment
Adjustment which is the “model” object for Range.
See set_adjustment() for details.
The return value does not have a reference added, so should not
be unreferenced. Read moreSource§fn fill_level(&self) -> f64
fn fill_level(&self) -> f64
Source§fn is_flippable(&self) -> bool
fn is_flippable(&self) -> bool
set_flippable(). Read moreSource§fn is_inverted(&self) -> bool
fn is_inverted(&self) -> bool
set_inverted(). Read moreSource§fn lower_stepper_sensitivity(&self) -> SensitivityType
fn lower_stepper_sensitivity(&self) -> SensitivityType
Source§fn range_rect(&self) -> Rectangle
fn range_rect(&self) -> Rectangle
Source§fn restricts_to_fill_level(&self) -> bool
fn restricts_to_fill_level(&self) -> bool
Source§fn round_digits(&self) -> i32
fn round_digits(&self) -> i32
change-value. Read moreSource§fn shows_fill_level(&self) -> bool
fn shows_fill_level(&self) -> bool
Source§fn is_slider_size_fixed(&self) -> bool
fn is_slider_size_fixed(&self) -> bool
Source§fn upper_stepper_sensitivity(&self) -> SensitivityType
fn upper_stepper_sensitivity(&self) -> SensitivityType
Source§fn set_adjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_adjustment(&self, adjustment: &impl IsA<Adjustment>)
Scale and nonzero for Scrollbar, and
indicates the size of the visible area of the widget being scrolled.
The page size affects the size of the scrollbar slider. Read moreSource§fn set_fill_level(&self, fill_level: f64)
fn set_fill_level(&self, fill_level: f64)
Source§fn set_flippable(&self, flippable: bool)
fn set_flippable(&self, flippable: bool)
TextDirection::Rtl. Read moreSource§fn set_increments(&self, step: f64, page: f64)
fn set_increments(&self, step: f64, page: f64)
Source§fn set_inverted(&self, setting: bool)
fn set_inverted(&self, setting: bool)
Source§fn set_lower_stepper_sensitivity(&self, sensitivity: SensitivityType)
fn set_lower_stepper_sensitivity(&self, sensitivity: SensitivityType)
Source§fn set_restrict_to_fill_level(&self, restrict_to_fill_level: bool)
fn set_restrict_to_fill_level(&self, restrict_to_fill_level: bool)
set_fill_level() for a general description of the fill
level concept. Read moreSource§fn set_round_digits(&self, round_digits: i32)
fn set_round_digits(&self, round_digits: i32)
change-value. Read moreSource§fn set_show_fill_level(&self, show_fill_level: bool)
fn set_show_fill_level(&self, show_fill_level: bool)
set_fill_level() for a general description of the fill
level concept. Read moreSource§fn set_slider_size_fixed(&self, size_fixed: bool)
fn set_slider_size_fixed(&self, size_fixed: bool)
Source§fn set_upper_stepper_sensitivity(&self, sensitivity: SensitivityType)
fn set_upper_stepper_sensitivity(&self, sensitivity: SensitivityType)
Source§fn set_value(&self, value: f64)
fn set_value(&self, value: f64)
value-changed signal if the
value changes. Read moreSource§fn connect_adjust_bounds<F: Fn(&Self, f64) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_adjust_bounds<F: Fn(&Self, f64) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_change_value<F: Fn(&Self, ScrollType, f64) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_change_value<F: Fn(&Self, ScrollType, f64) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
change-value signal is emitted when a scroll action is
performed on a range. It allows an application to determine the
type of scroll event that occurred and the resultant new value.
The application can handle the event itself and return true to
prevent further processing. Or, by returning false, it can pass
the event to other handlers until the default GTK+ handler is
reached. Read moreSource§fn connect_move_slider<F: Fn(&Self, ScrollType) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_move_slider<F: Fn(&Self, ScrollType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_slider(&self, step: ScrollType)
Source§fn connect_value_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_value_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_adjustment_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_inverted_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_lower_stepper_sensitivity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_restrict_to_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_round_digits_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_show_fill_level_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_upper_stepper_sensitivity_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()
Source§impl<T> TransparentType for Twhere
T: TransparentPtrType,
impl<T> TransparentType for Twhere
T: TransparentPtrType,
type GlibType = <T as GlibPtrDefault>::GlibType
Source§impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
Source§impl<O> WidgetExt for O
impl<O> WidgetExt for O
Source§fn add_accelerator(
&self,
accel_signal: &str,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
accel_flags: AccelFlags,
)
fn add_accelerator( &self, accel_signal: &str, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, accel_flags: AccelFlags, )
self in accel_group that causes
accel_signal to be emitted if the accelerator is activated.
The accel_group needs to be added to the widget’s toplevel via
GtkWindowExt::add_accel_group(), and the signal must be of type G_SIGNAL_ACTION.
Accelerators added through this function are not user changeable during
runtime. If you want to support accelerators that can be changed by the
user, use gtk_accel_map_add_entry() and set_accel_path() or
GtkMenuItemExt::set_accel_path() instead. Read moreSource§fn add_device_events(&self, device: &Device, events: EventMask)
fn add_device_events(&self, device: &Device, events: EventMask)
events to the event mask for
self. See set_device_events() for details. Read moreSource§fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). Note the
list of mnemonic labels for the widget is cleared when the
widget is destroyed, so the caller must make sure to update
its internal state at this point as well, by using a connection
to the destroy signal or a weak notifier. Read moreSource§fn can_activate_accel(&self, signal_id: u32) -> bool
fn can_activate_accel(&self, signal_id: u32) -> bool
signal_id can currently be activated.
This is done by emitting the can-activate-accel
signal on self; if the signal isn’t overridden by a
handler or in a derived widget, then the default check is
that the widget must be sensitive, and the widget and all
its ancestors mapped. Read moreSource§fn child_focus(&self, direction: DirectionType) -> bool
fn child_focus(&self, direction: DirectionType) -> bool
grab_focus() to move the focus
to a particular widget, and ContainerExt::set_focus_chain() to
change the focus tab order. So you may want to investigate those
functions instead. Read moreSource§fn child_notify(&self, child_property: &str)
fn child_notify(&self, child_property: &str)
child-notify signal for the
[child property][child-properties] child_property
on self. Read moreSource§fn compute_expand(&self, orientation: Orientation) -> bool
fn compute_expand(&self, orientation: Orientation) -> bool
hexpands() or vexpands(). Read moreSource§fn create_pango_context(&self) -> Context
fn create_pango_context(&self) -> Context
pango::Context with the appropriate font map,
font options, font description, and base direction for drawing
text for this widget. See also pango_context(). Read moreSource§fn create_pango_layout(&self, text: Option<&str>) -> Layout
fn create_pango_layout(&self, text: Option<&str>) -> Layout
pango::Layout with the appropriate font map,
font description, and base direction for drawing text for
this widget. Read moreSource§fn device_is_shadowed(&self, device: &Device) -> bool
fn device_is_shadowed(&self, device: &Device) -> bool
true if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending
events to self. This may be used in the
grab-notify signal to check for specific
devices. See device_grab_add(). Read moreSource§fn drag_begin_with_coordinates(
&self,
targets: &TargetList,
actions: DragAction,
button: i32,
event: Option<&Event>,
x: i32,
y: i32,
) -> Option<DragContext>
fn drag_begin_with_coordinates( &self, targets: &TargetList, actions: DragAction, button: i32, event: Option<&Event>, x: i32, y: i32, ) -> Option<DragContext>
WidgetExtManual::drag_source_set() is used. Read moreSource§fn drag_check_threshold(
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32,
) -> bool
fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32, ) -> bool
start_x, start_y) and ending
at (current_x, current_y) has passed the GTK+ drag threshold, and thus
should trigger the beginning of a drag-and-drop operation. Read moreSource§fn drag_dest_add_image_targets(&self)
fn drag_dest_add_image_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_text_targets(&self)
fn drag_dest_add_text_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_uri_targets(&self)
fn drag_dest_add_uri_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_dest_set_target_list().Source§fn drag_dest_find_target(
&self,
context: &DragContext,
target_list: Option<&TargetList>,
) -> Option<Atom>
fn drag_dest_find_target( &self, context: &DragContext, target_list: Option<&TargetList>, ) -> Option<Atom>
context and the
dest_target_list, returning the first matching target, otherwise
returning GDK_NONE. dest_target_list should usually be the return
value from drag_dest_get_target_list(), but some widgets may
have different valid targets for different parts of the widget; in
that case, they will have to implement a drag_motion handler that
passes the correct target list to this function. Read moreSource§fn drag_dest_get_target_list(&self) -> Option<TargetList>
fn drag_dest_get_target_list(&self) -> Option<TargetList>
Source§fn drag_dest_get_track_motion(&self) -> bool
fn drag_dest_get_track_motion(&self) -> bool
drag-motion signals. Read moreSource§fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_dest_set(). Read moreSource§fn drag_dest_set_track_motion(&self, track_motion: bool)
fn drag_dest_set_track_motion(&self, track_motion: bool)
drag-motion and
drag-leave events regardless of the targets and the
DestDefaults::MOTION flag. Read moreSource§fn drag_dest_unset(&self)
fn drag_dest_unset(&self)
WidgetExtManual::drag_dest_set(). The widget will no longer receive
notification of drags.Source§fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
drag-data-received signal. Failure of the retrieval
is indicated by the length field of the selection_data
signal parameter being negative. However, when drag_get_data()
is called implicitely because the DestDefaults::DROP was set,
then the widget will not receive notification of failed
drops. Read moreSource§fn drag_highlight(&self)
fn drag_highlight(&self)
drag_unhighlight().
GTK+ calls this automatically if DestDefaults::HIGHLIGHT is set.Source§fn drag_source_add_image_targets(&self)
fn drag_source_add_image_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_source_set_target_list().Source§fn drag_source_add_text_targets(&self)
fn drag_source_add_text_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_source_set_target_list().Source§fn drag_source_add_uri_targets(&self)
fn drag_source_add_uri_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_source_set_target_list().Source§fn drag_source_get_target_list(&self) -> Option<TargetList>
fn drag_source_get_target_list(&self) -> Option<TargetList>
Source§fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
Source§fn drag_source_set_icon_name(&self, icon_name: &str)
fn drag_source_set_icon_name(&self, icon_name: &str)
Source§fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
gdk_pixbuf::Pixbuf. GTK+ retains a reference for pixbuf and will
release it when it is no longer needed. Read moreSource§fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_source_set(). Read moreSource§fn drag_source_unset(&self)
fn drag_source_unset(&self)
WidgetExtManual::drag_source_set().Source§fn drag_unhighlight(&self)
fn drag_unhighlight(&self)
drag_highlight() from
a widget.Source§fn draw(&self, cr: &Context)
fn draw(&self, cr: &Context)
self to cr. The top left corner of the widget will be
drawn to the currently set origin point of cr. Read moreSource§fn error_bell(&self)
fn error_bell(&self)
gtk-error-bell setting is true, it calls
Window::beep(), otherwise it does nothing. Read moreSource§fn event(&self, event: &Event) -> bool
fn event(&self, event: &Event) -> bool
main_do_event() so the event will behave as if
it were in the event queue. Don’t synthesize expose events; instead,
use Window::invalidate_rect() to invalidate a region of the
window. Read moreSource§fn freeze_child_notify(&self)
fn freeze_child_notify(&self)
child-notify signals on self. The
signals are queued until thaw_child_notify() is called
on self. Read moreSource§fn accessible(&self) -> Option<Object>
fn accessible(&self) -> Option<Object>
Source§fn action_group(&self, prefix: &str) -> Option<ActionGroup>
fn action_group(&self, prefix: &str) -> Option<ActionGroup>
gio::ActionGroup that was registered using prefix. The resulting
gio::ActionGroup may have been registered to self or any Widget in its
ancestry. Read moreSource§fn allocated_baseline(&self) -> i32
fn allocated_baseline(&self) -> i32
self.
This function is intended to be used when implementing handlers
for the draw function, and when allocating child
widgets in size_allocate. Read moreSource§fn allocated_height(&self) -> i32
fn allocated_height(&self) -> i32
Source§fn allocated_size(&self) -> (Allocation, i32)
fn allocated_size(&self) -> (Allocation, i32)
Source§fn allocated_width(&self) -> i32
fn allocated_width(&self) -> i32
Source§fn allocation(&self) -> Allocation
fn allocation(&self) -> Allocation
Source§fn ancestor(&self, widget_type: Type) -> Option<Widget>
fn ancestor(&self, widget_type: Type) -> Option<Widget>
self with type widget_type. For example,
gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets
the first Box that’s an ancestor of self. No reference will be
added to the returned widget; it should not be unreferenced. See note
about checking for a toplevel Window in the docs for
toplevel(). Read moreSource§fn is_app_paintable(&self) -> bool
fn is_app_paintable(&self) -> bool
Source§fn can_default(&self) -> bool
fn can_default(&self) -> bool
Source§fn is_child_visible(&self) -> bool
fn is_child_visible(&self) -> bool
set_child_visible().
If you feel a need to use this function, your code probably
needs reorganization. Read moreSource§fn clip(&self) -> Allocation
fn clip(&self) -> Allocation
Source§fn clipboard(&self, selection: &Atom) -> Clipboard
fn clipboard(&self, selection: &Atom) -> Clipboard
self. self must have a gdk::Display
associated with it, so must be attached to a toplevel
window. Read moreSource§fn device_is_enabled(&self, device: &Device) -> bool
fn device_is_enabled(&self, device: &Device) -> bool
Source§fn device_events(&self, device: &Device) -> EventMask
fn device_events(&self, device: &Device) -> EventMask
device operates on it. Read moreSource§fn direction(&self) -> TextDirection
fn direction(&self) -> TextDirection
set_direction(). Read moreSource§fn display(&self) -> Display
fn display(&self) -> Display
gdk::Display for the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window at the top. Read moreSource§fn is_double_buffered(&self) -> bool
fn is_double_buffered(&self) -> bool
Source§fn gets_focus_on_click(&self) -> bool
fn gets_focus_on_click(&self) -> bool
set_focus_on_click(). Read moreSource§fn font_map(&self) -> Option<FontMap>
fn font_map(&self) -> Option<FontMap>
set_font_map(). Read moreSource§fn font_options(&self) -> Option<FontOptions>
fn font_options(&self) -> Option<FontOptions>
cairo::FontOptions used for Pango rendering. When not set,
the defaults font options for the gdk::Screen will be used. Read moreSource§fn frame_clock(&self) -> Option<FrameClock>
fn frame_clock(&self) -> Option<FrameClock>
FrameClock::frame_time(), in order to get a time to use for
animating. For example you might record the start of the animation
with an initial value from FrameClock::frame_time(), and
then update the animation by calling
FrameClock::frame_time() again during each repaint. Read moreSource§fn has_tooltip(&self) -> bool
fn has_tooltip(&self) -> bool
has-tooltip for more information. Read moreSource§fn has_window(&self) -> bool
fn has_window(&self) -> bool
Source§fn is_hexpand_set(&self) -> bool
fn is_hexpand_set(&self) -> bool
set_hexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn margin_bottom(&self) -> i32
fn margin_bottom(&self) -> i32
margin-bottom property. Read moreSource§fn margin_end(&self) -> i32
fn margin_end(&self) -> i32
margin-end property. Read moreSource§fn margin_start(&self) -> i32
fn margin_start(&self) -> i32
margin-start property. Read moreSource§fn margin_top(&self) -> i32
fn margin_top(&self) -> i32
margin-top property. Read moreSource§fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
self’s windowing system backend
uses for a particular purpose. Read moreSource§fn widget_name(&self) -> GString
fn widget_name(&self) -> GString
set_widget_name() for the
significance of widget names. Read moreSource§fn is_no_show_all(&self) -> bool
fn is_no_show_all(&self) -> bool
no-show-all property,
which determines whether calls to show_all()
will affect this widget. Read moreSource§fn opacity(&self) -> f64
fn opacity(&self) -> f64
set_opacity(). Read moreSource§fn pango_context(&self) -> Context
fn pango_context(&self) -> Context
pango::Context with the appropriate font map, font description,
and base direction for this widget. Unlike the context returned
by create_pango_context(), this context is owned by
the widget (it can be used until the screen for the widget changes
or the widget is removed from its toplevel), and will be updated to
match any changes to the widget’s attributes. This can be tracked
by using the screen-changed signal on the widget. Read moreSource§fn parent_window(&self) -> Option<Window>
fn parent_window(&self) -> Option<Window>
Source§fn path(&self) -> WidgetPath
fn path(&self) -> WidgetPath
WidgetPath representing self, if the widget
is not connected to a toplevel widget, a partial path will be
created. Read moreSource§fn preferred_height(&self) -> (i32, i32)
fn preferred_height(&self) -> (i32, i32)
Source§fn preferred_height_and_baseline_for_width(
&self,
width: i32,
) -> (i32, i32, i32, i32)
fn preferred_height_and_baseline_for_width( &self, width: i32, ) -> (i32, i32, i32, i32)
width, or the default height if width is -1. The baselines may be -1 which means
that no baseline is requested for this widget. Read moreSource§fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
width. Read moreSource§fn preferred_size(&self) -> (Requisition, Requisition)
fn preferred_size(&self) -> (Requisition, Requisition)
Source§fn preferred_width(&self) -> (i32, i32)
fn preferred_width(&self) -> (i32, i32)
Source§fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
height. Read moreSource§fn is_realized(&self) -> bool
fn is_realized(&self) -> bool
self is realized. Read moreSource§fn receives_default(&self) -> bool
fn receives_default(&self) -> bool
self is always treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn request_mode(&self) -> SizeRequestMode
fn request_mode(&self) -> SizeRequestMode
Source§fn scale_factor(&self) -> i32
fn scale_factor(&self) -> i32
Source§fn screen(&self) -> Option<Screen>
fn screen(&self) -> Option<Screen>
gdk::Screen from the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window
at the top. Read moreSource§fn get_sensitive(&self) -> bool
fn get_sensitive(&self) -> bool
set_sensitive()). Read moreSource§fn settings(&self) -> Option<Settings>
fn settings(&self) -> Option<Settings>
Source§fn size_request(&self) -> (i32, i32)
fn size_request(&self) -> (i32, i32)
set_size_request(). A value of -1 stored in width or
height indicates that that dimension has not been set explicitly
and the natural requisition of the widget will be used instead. See
set_size_request(). To get the size a widget will
actually request, call preferred_size() instead of
this function. Read moreSource§fn state_flags(&self) -> StateFlags
fn state_flags(&self) -> StateFlags
StateFlags::INSENSITIVE state will be
returned, that is, also based on parent insensitivity, even if
self itself is sensitive. Read moreSource§fn style_context(&self) -> StyleContext
fn style_context(&self) -> StyleContext
self. The returned object is
guaranteed to be the same for the lifetime of self. Read moreSource§fn supports_multidevice(&self) -> bool
fn supports_multidevice(&self) -> bool
true if self is multiple pointer aware. See
set_support_multidevice() for more information. Read moreSource§fn tooltip_markup(&self) -> Option<GString>
fn tooltip_markup(&self) -> Option<GString>
self. Read moreSource§fn tooltip_text(&self) -> Option<GString>
fn tooltip_text(&self) -> Option<GString>
self. Read moreSource§fn tooltip_window(&self) -> Option<Window>
fn tooltip_window(&self) -> Option<Window>
Window of the current tooltip. This can be the
GtkWindow created by default, or the custom tooltip window set
using set_tooltip_window(). Read moreSource§fn toplevel(&self) -> Option<Widget>
fn toplevel(&self) -> Option<Widget>
Source§fn valign_with_baseline(&self) -> Align
fn valign_with_baseline(&self) -> Align
Source§fn vexpands(&self) -> bool
fn vexpands(&self) -> bool
Source§fn is_vexpand_set(&self) -> bool
fn is_vexpand_set(&self) -> bool
set_vexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn get_visible(&self) -> bool
fn get_visible(&self) -> bool
is_visible() instead. Read moreSource§fn visual(&self) -> Option<Visual>
fn visual(&self) -> Option<Visual>
self. Read moreSource§fn grab_default(&self)
fn grab_default(&self)
self to become the default widget. self must be able to be
a default widget; typically you would ensure this yourself
by calling set_can_default() with a true value.
The default widget is activated when
the user presses Enter in a window. Default widgets must be
activatable, that is, activate() should affect them. Note
that Entry widgets require the “activates-default” property
set to true before they activate the default widget when Enter
is pressed and the Entry is focused.Source§fn grab_focus(&self)
fn grab_focus(&self)
Source§fn grab_remove(&self)
fn grab_remove(&self)
Source§fn has_default(&self) -> bool
fn has_default(&self) -> bool
self is the current default widget within its
toplevel. See set_can_default(). Read moreSource§fn has_focus(&self) -> bool
fn has_focus(&self) -> bool
is_focus() for the difference between having the global
input focus, and only having the focus within a toplevel. Read moreSource§fn has_grab(&self) -> bool
fn has_grab(&self) -> bool
Source§fn has_screen(&self) -> bool
fn has_screen(&self) -> bool
gdk::Screen is associated with
this widget. All toplevel widgets have an associated
screen, and all widgets added into a hierarchy with a toplevel
window at the top. Read moreSource§fn has_visible_focus(&self) -> bool
fn has_visible_focus(&self) -> bool
self. See GtkWindowExt::gets_focus_visible() for more information
about focus indication. Read moreSource§fn hide(&self)
fn hide(&self)
show(), causing the widget to be
hidden (invisible to the user).Source§fn in_destruction(&self) -> bool
fn in_destruction(&self) -> bool
Source§fn init_template(&self)
fn init_template(&self)
gtk_widget_class_set_template() Read moreSource§fn input_shape_combine_region(&self, region: Option<&Region>)
fn input_shape_combine_region(&self, region: Option<&Region>)
Window::input_shape_combine_region() for more information. Read moreSource§fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
group into self. Children of self that implement
Actionable can then be associated with actions in group by
setting their “action-name” to
prefix.action-name. Read moreSource§fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
self is somewhere inside ancestor, possibly with
intermediate containers. Read moreSource§fn is_drawable(&self) -> bool
fn is_drawable(&self) -> bool
self can be drawn to. A widget can be drawn
to if it is mapped and visible. Read moreSource§fn is_sensitive(&self) -> bool
fn is_sensitive(&self) -> bool
Source§fn is_toplevel(&self) -> bool
fn is_toplevel(&self) -> bool
self is a toplevel widget. Read moreSource§fn is_visible(&self) -> bool
fn is_visible(&self) -> bool
keynav-failed signal on the widget and its return
value should be interpreted in a way similar to the return value of
child_focus(): Read moreSource§fn list_accel_closures(&self) -> Vec<Closure>
fn list_accel_closures(&self) -> Vec<Closure>
self for accelerator group connections
with AccelGroupExtManual::connect_accel_group_by_path() or AccelGroupExtManual::connect_accel_group().
The closures can be used to monitor accelerator changes on self,
by connecting to the AccelGroup signal of the
AccelGroup of a closure which can be found out with
AccelGroup::from_accel_closure(). Read moreSource§fn list_action_prefixes(&self) -> Vec<GString>
fn list_action_prefixes(&self) -> Vec<GString>
None-terminated array of strings containing the prefixes of
gio::ActionGroup’s available to self. Read moreSource§fn list_mnemonic_labels(&self) -> Vec<Widget>
fn list_mnemonic_labels(&self) -> Vec<Widget>
LabelExt::set_mnemonic_widget()). Read moreSource§fn map(&self)
fn map(&self)
Source§fn mnemonic_activate(&self, group_cycling: bool) -> bool
fn mnemonic_activate(&self, group_cycling: bool) -> bool
mnemonic-activate signal. Read moreSource§fn queue_allocate(&self)
fn queue_allocate(&self)
Source§fn queue_compute_expand(&self)
fn queue_compute_expand(&self)
self as needing to recompute its expand flags. Call
this function when setting legacy expand child properties
on the child of a container. Read moreSource§fn queue_draw(&self)
fn queue_draw(&self)
queue_draw_area() for the
entire area of a widget.Source§fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
Source§fn queue_draw_region(&self, region: &Region)
fn queue_draw_region(&self, region: &Region)
self defined by region by calling
Window::invalidate_region() on the widget’s window and all its
child windows. Once the main loop becomes idle (after the current
batch of events has been processed, roughly), the window will
receive expose events for the union of all regions that have been
invalidated. Read moreSource§fn queue_resize(&self)
fn queue_resize(&self)
Label, Label
queues a resize to ensure there’s enough space for the new text. Read moreSource§fn queue_resize_no_redraw(&self)
fn queue_resize_no_redraw(&self)
queue_resize(),
except that the widget is not invalidated.Source§fn realize(&self)
fn realize(&self)
Source§fn register_window(&self, window: &Window)
fn register_window(&self, window: &Window)
gdk::Window with the widget and sets it up so that
the widget receives events for it. Call unregister_window()
when destroying the window. Read moreSource§fn remove_accelerator(
&self,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
) -> bool
fn remove_accelerator( &self, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, ) -> bool
Source§fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). The widget
must have previously been added to the list with
add_mnemonic_label(). Read moreSource§fn reset_style(&self)
fn reset_style(&self)
self and all descendants
by updating its widget path. GtkContainers may want
to use this on a child when reordering it in a way that a different
style might apply to it. See also ContainerExt::path_for_child().Source§fn set_accel_path(
&self,
accel_path: Option<&str>,
accel_group: Option<&impl IsA<AccelGroup>>,
)
fn set_accel_path( &self, accel_path: Option<&str>, accel_group: Option<&impl IsA<AccelGroup>>, )
accel_group, and an accelerator path,
accel_path, sets up an accelerator in accel_group so whenever the
key binding that is defined for accel_path is pressed, self
will be activated. This removes any accelerators (for any
accelerator group) installed by previous calls to
set_accel_path(). Associating accelerators with
paths allows them to be modified by the user and the modifications
to be saved for future use. (See gtk_accel_map_save().) Read moreSource§fn set_allocation(&self, allocation: &Allocation)
fn set_allocation(&self, allocation: &Allocation)
Source§fn set_app_paintable(&self, app_paintable: bool)
fn set_app_paintable(&self, app_paintable: bool)
Source§fn set_can_default(&self, can_default: bool)
fn set_can_default(&self, can_default: bool)
self can be a default widget. See
grab_default() for details about the meaning of
“default”. Read moreSource§fn set_can_focus(&self, can_focus: bool)
fn set_can_focus(&self, can_focus: bool)
self can own the input focus. See
grab_focus() for actually setting the input focus on a
widget. Read moreSource§fn set_child_visible(&self, is_visible: bool)
fn set_child_visible(&self, is_visible: bool)
Source§fn set_clip(&self, clip: &Allocation)
fn set_clip(&self, clip: &Allocation)
set_allocation() (or after chaining up
to the parent class), because that function resets the clip. Read moreSource§fn set_device_enabled(&self, device: &Device, enabled: bool)
fn set_device_enabled(&self, device: &Device, enabled: bool)
Source§fn set_device_events(&self, device: &Device, events: EventMask)
fn set_device_events(&self, device: &Device, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive from device. Keep
in mind that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider add_device_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with windowless widgets (which return
false from has_window());
to get events on those widgets, place them inside a EventBox
and receive events on the event box. Read moreSource§fn set_direction(&self, dir: TextDirection)
fn set_direction(&self, dir: TextDirection)
Source§fn set_focus_on_click(&self, focus_on_click: bool)
fn set_focus_on_click(&self, focus_on_click: bool)
Source§fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
Source§fn set_font_options(&self, options: Option<&FontOptions>)
fn set_font_options(&self, options: Option<&FontOptions>)
cairo::FontOptions used for Pango rendering in this widget.
When not set, the default font options for the gdk::Screen will be used. Read moreSource§fn set_halign(&self, align: Align)
fn set_halign(&self, align: Align)
Source§fn set_has_tooltip(&self, has_tooltip: bool)
fn set_has_tooltip(&self, has_tooltip: bool)
self to has_tooltip. See
has-tooltip for more information. Read moreSource§fn set_has_window(&self, has_window: bool)
fn set_has_window(&self, has_window: bool)
self has a gdk::Window of its own. Note that
all realized widgets have a non-None “window” pointer
(window() never returns a None window when a widget
is realized), but for many of them it’s actually the gdk::Window of
one of its parent widgets. Widgets that do not create a window for
themselves in realize must announce this by
calling this function with has_window = false. Read moreSource§fn set_hexpand(&self, expand: bool)
fn set_hexpand(&self, expand: bool)
Source§fn set_hexpand_set(&self, set: bool)
fn set_hexpand_set(&self, set: bool)
hexpands()) will
be used. Read moreSource§fn set_mapped(&self, mapped: bool)
fn set_mapped(&self, mapped: bool)
Source§fn set_margin_bottom(&self, margin: i32)
fn set_margin_bottom(&self, margin: i32)
Source§fn set_margin_end(&self, margin: i32)
fn set_margin_end(&self, margin: i32)
Source§fn set_margin_start(&self, margin: i32)
fn set_margin_start(&self, margin: i32)
Source§fn set_margin_top(&self, margin: i32)
fn set_margin_top(&self, margin: i32)
Source§fn set_widget_name(&self, name: &str)
fn set_widget_name(&self, name: &str)
Source§fn set_no_show_all(&self, no_show_all: bool)
fn set_no_show_all(&self, no_show_all: bool)
no-show-all property, which determines whether
calls to show_all() will affect this widget. Read moreSource§fn set_opacity(&self, opacity: f64)
fn set_opacity(&self, opacity: f64)
self to be rendered partially transparent,
with opacity 0 being fully transparent and 1 fully opaque. (Opacity values
are clamped to the [0,1] range.).
This works on both toplevel widget, and child widgets, although there
are some limitations: Read moreSource§fn set_parent(&self, parent: &impl IsA<Widget>)
fn set_parent(&self, parent: &impl IsA<Widget>)
Container.
Sets the container as the parent of self, and takes care of
some details such as updating the state and style of the child
to reflect its new location. The opposite function is
unparent(). Read moreSource§fn set_parent_window(&self, parent_window: &Window)
fn set_parent_window(&self, parent_window: &Window)
self. Read moreSource§fn set_realized(&self, realized: bool)
fn set_realized(&self, realized: bool)
GdkWindows for the self have been created
and registered. Read moreSource§fn set_receives_default(&self, receives_default: bool)
fn set_receives_default(&self, receives_default: bool)
self will be treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
Source§fn set_sensitive(&self, sensitive: bool)
fn set_sensitive(&self, sensitive: bool)
Source§fn set_size_request(&self, width: i32, height: i32)
fn set_size_request(&self, width: i32, height: i32)
width by height. You can use this
function to force a widget to be larger than it normally would be. Read moreSource§fn set_state_flags(&self, flags: StateFlags, clear: bool)
fn set_state_flags(&self, flags: StateFlags, clear: bool)
Source§fn set_support_multidevice(&self, support_multidevice: bool)
fn set_support_multidevice(&self, support_multidevice: bool)
true,
self will start receiving multiple, per device enter/leave events. Note
that if custom GdkWindows are created in realize,
Window::set_support_multidevice() will have to be called manually on them. Read moreSource§fn set_tooltip_markup(&self, markup: Option<&str>)
fn set_tooltip_markup(&self, markup: Option<&str>)
markup as the contents of the tooltip, which is marked up with
the [Pango text markup language][PangoMarkupFormat]. Read moreSource§fn set_tooltip_text(&self, text: Option<&str>)
fn set_tooltip_text(&self, text: Option<&str>)
text as the contents of the tooltip. This function will take
care of setting has-tooltip to true and of the default
handler for the query-tooltip signal. Read moreSource§fn set_valign(&self, align: Align)
fn set_valign(&self, align: Align)
Source§fn set_vexpand(&self, expand: bool)
fn set_vexpand(&self, expand: bool)
Source§fn set_vexpand_set(&self, set: bool)
fn set_vexpand_set(&self, set: bool)
vexpands()) will
be used. Read moreSource§fn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
self. Note that setting this to
true doesn’t mean the widget is actually viewable, see
get_visible(). Read moreSource§fn set_visual(&self, visual: Option<&Visual>)
fn set_visual(&self, visual: Option<&Visual>)
GdkWindows. The visual must be on the same gdk::Screen as
returned by screen(), so handling the
screen-changed signal is necessary. Read moreSource§fn set_window(&self, window: Window)
fn set_window(&self, window: Window)
realize implementation. The window passed is
usually either new window created with gdk::Window::new(), or the
window of its parent widget as returned by
parent_window(). Read moreSource§fn shape_combine_region(&self, region: Option<&Region>)
fn shape_combine_region(&self, region: Option<&Region>)
Window::shape_combine_region()
for more information. Read moreSource§fn show(&self)
fn show(&self)
show_all() on the
container, instead of individually showing the widgets. Read moreSource§fn show_all(&self)
fn show_all(&self)
Source§fn show_now(&self)
fn show_now(&self)
Window that has not yet been shown), enter the main
loop and wait for the window to actually be mapped. Be careful;
because the main loop is running, anything can happen during
this function.Source§fn size_allocate(&self, allocation: &Allocation)
fn size_allocate(&self, allocation: &Allocation)
Source§fn size_allocate_with_baseline(
&self,
allocation: &mut Allocation,
baseline: i32,
)
fn size_allocate_with_baseline( &self, allocation: &mut Allocation, baseline: i32, )
Source§fn style_get_property(&self, property_name: &str) -> Value
fn style_get_property(&self, property_name: &str) -> Value
self. Read moreSource§fn thaw_child_notify(&self)
fn thaw_child_notify(&self)
freeze_child_notify().
This causes all queued child-notify signals on self to be
emitted.Source§fn translate_coordinates(
&self,
dest_widget: &impl IsA<Widget>,
src_x: i32,
src_y: i32,
) -> Option<(i32, i32)>
fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: i32, src_y: i32, ) -> Option<(i32, i32)>
self’s allocation to coordinates
relative to dest_widget’s allocations. In order to perform this
operation, both widgets must be realized, and must share a common
toplevel. Read moreSource§fn trigger_tooltip_query(&self)
fn trigger_tooltip_query(&self)
self
is located. See Tooltip::trigger_tooltip_query() for more
information.Source§fn unmap(&self)
fn unmap(&self)
Source§fn unparent(&self)
fn unparent(&self)
Container, to dissociate a child from the container.Source§fn unregister_window(&self, window: &Window)
fn unregister_window(&self, window: &Window)
gdk::Window from the widget that was previously set up with
register_window(). You need to call this when the window is
no longer used by the widget, such as when you destroy it. Read moreSource§fn unset_state_flags(&self, flags: StateFlags)
fn unset_state_flags(&self, flags: StateFlags)
set_state_flags(). Read morefn is_composite_child(&self) -> bool
Source§fn set_expand(&self, expand: bool)
fn set_expand(&self, expand: bool)
fn set_has_default(&self, has_default: bool)
fn set_has_focus(&self, has_focus: bool)
fn height_request(&self) -> i32
fn set_height_request(&self, height_request: i32)
fn set_is_focus(&self, is_focus: bool)
Source§fn margin(&self) -> i32
fn margin(&self) -> i32
Source§fn set_margin(&self, margin: i32)
fn set_margin(&self, margin: i32)
fn width_request(&self) -> i32
fn set_width_request(&self, width_request: i32)
fn connect_accel_closures_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
Source§fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has changed. Read moreSource§fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets drawn into.
The region/area members of the event shows what area of the redirected
drawable was drawn into. Read moreSource§fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
WidgetExtManual::hide_on_delete() to
this signal will cause the window to be hidden instead, so that
it can later be shown again without reconstructing it. Read moreSource§fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window is destroyed.
You rarely get this signal, because most widgets disconnect themselves
from their window before they destroy it, so no widget owns the
window at destroy time. Read moreSource§fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag_source_set_icon_pixbuf(). Read moreSource§fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::DragAction::MOVE is successfully completed. The signal
handler is responsible for deleting the data that has been dropped. What
“delete” means depends on the context of the drag operation. Read moreSource§fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
data with the data in the format which
is indicated by info. See SelectionData::set() and
SelectionData::set_text(). Read moreSource§fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
false and no further processing is necessary.
Otherwise, the handler returns true. In this case, the handler must
ensure that gtk_drag_finish() is called to let the source know that
the drop is done. The call to gtk_drag_finish() can be done either
directly or in a drag-data-received handler which gets
triggered by calling drag_get_data() to receive the data for one
or more of the supported targets. Read moreSource§fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-begin. Read moreSource§fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
true is the failure has
been already handled (not showing the default “drag operation failed”
animation), otherwise it returns false. Read moreSource§fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-motion, e.g. undo highlighting
with drag_unhighlight(). Read moreSource§fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s top left corner must be painted at the origin of
the passed in context and be sized to the values returned by
allocated_width() and
allocated_height(). Read moreSource§fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
key-press-event) and finally a generic
event-after signal. Read moreSource§fn connect_event_after<F: Fn(&Self, &Event) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event_after<F: Fn(&Self, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets broken. Read morefn connect_grab_focus<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_grab_focus(&self)
Source§fn connect_grab_notify<F: Fn(&Self, bool) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_notify<F: Fn(&Self, bool) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is hidden, for example with
hide().Source§fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
keynav_failed() for details. Read moreSource§fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be mapped, that is
when the widget is visible (which is controlled with
set_visible()) and all its parents up to the toplevel widget
are also visible. Once the map has occurred, map-event will
be emitted. Read moreSource§fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window. Read morefn connect_move_focus<F: Fn(&Self, DirectionType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_focus(&self, direction: DirectionType)
Source§fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Entry widget creates
a menu with clipboard commands. See the
[Popup Menu Migration Checklist][checklist-popup-menu]
for an example of how to use this signal. Read moreSource§fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has been changed or deleted. Read moreSource§fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_IN_MASK mask. Read moreSource§fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_OUT_MASK mask. Read moreSource§fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
has-tooltip is true and the hover timeout
has expired with the cursor hovering “above” widget; or emitted when widget got
focus in keyboard mode. Read moreSource§fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is associated with a
gdk::Window, which means that realize() has been called or the
widget has been mapped (that is, it is going to be drawn).Source§fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has lost ownership of a selection. Read morefn connect_selection_get<F: Fn(&Self, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_selection_received<F: Fn(&Self, &SelectionData, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is shown, for example with
show().Source§fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_show_help(&self, help_type: WidgetHelpType) -> bool
Source§fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>( &self, f: F, ) -> SignalHandlerId
allocation Read moreSource§fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>( &self, f: F, ) -> SignalHandlerId
state_flags(). Read moreSource§fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
changed signal is emitted on the widget’s associated
StyleContext as returned by style_context(). Read morefn connect_touch_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel widget have
been set as hidden. Read moreSource§fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
gdk::Window associated with
widget is destroyed, which means that unrealize() has been
called or the widget has been unmapped (that is, it is going to be
hidden).Source§fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget changes. Read morefn connect_app_paintable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_composite_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_events_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_expand_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_focus_on_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_halign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_has_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_height_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_is_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_margin_bottom_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_end_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_start_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_top_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_no_show_all_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_opacity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_receives_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_scale_factor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_sensitive_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_markup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_valign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_vexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_vexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_width_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_window_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§impl<O> WidgetExtManual for O
impl<O> WidgetExtManual for O
Source§fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_dest_set( &self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction, )
Source§fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_source_set( &self, start_button_mask: ModifierType, targets: &[TargetEntry], actions: DragAction, )
Source§fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
mapped. A window is mapped when it becomes visible on the screen. Read moreSource§fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
unmapped. A window is unmapped when it becomes invisible on the screen. Read moreSource§fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>(
&self,
callback: P,
) -> TickCallbackId
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>( &self, callback: P, ) -> TickCallbackId
Label),
then you will have to call WidgetExt::queue_resize() or
WidgetExt::queue_draw_area() yourself. Read moreSource§fn add_events(&self, events: EventMask)
fn add_events(&self, events: EventMask)
events to the event mask for
self. See WidgetExtManual::set_events() and the
[input handling overview][event-masks] for details. Read moreSource§fn events(&self) -> EventMask
fn events(&self) -> EventMask
gdk::EventMask) for the widget. These are the
events that the widget will receive. Read moreSource§fn set_events(&self, events: EventMask)
fn set_events(&self, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive. Keep in mind
that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider WidgetExtManual::add_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with widgets that have no window.
(See WidgetExt::has_window()). To get events on those widgets,
place them inside a EventBox and receive events on the event
box. Read moreSource§fn hide_on_delete(&self) -> Propagation
fn hide_on_delete(&self) -> Propagation
delete-event
signal on a Window. The function calls WidgetExt::hide() on its
argument, then returns true. If connected to ::delete-event, the
result is that clicking the close button for a window (on the
window frame, top right corner usually) will hide but not destroy
the window. By default, GTK+ destroys windows when ::delete-event
is received. Read more