pub struct RadioToolButton { /* private fields */ }Expand description
A RadioToolButton is a ToolItem that contains a radio button,
that is, a button that is part of a group of toggle buttons where only
one button can be active at a time.
Use new() to create a new GtkRadioToolButton. Use
from_widget() to create a new GtkRadioToolButton
that is part of the same group as an existing GtkRadioToolButton.
§CSS nodes
GtkRadioToolButton has a single CSS node with name toolbutton.
§Properties
§group
Sets a new group for a radio tool button.
Writable
ToolButton
§icon-name
The name of the themed icon displayed on the item.
This property only has an effect if not overridden by
label-widget, icon-widget or
stock-id properties.
Readable | Writable
§icon-widget
Readable | Writable
§label
Readable | Writable
§label-widget
Readable | Writable
§stock-id
Readable | Writable
§use-underline
Readable | Writable
ToolItem
§is-important
Readable | Writable
§visible-horizontal
Readable | Writable
§visible-vertical
Readable | Writable
Widget
§app-paintable
Readable | Writable
§can-default
Readable | Writable
§can-focus
Readable | Writable
§composite-child
Readable
§double-buffered
Whether the widget is double buffered.
Readable | Writable
§events
Readable | Writable
§expand
Whether to expand in both directions. Setting this sets both hexpand and vexpand
Readable | Writable
§focus-on-click
Whether the widget should grab focus when it is clicked with the mouse.
This property is only relevant for widgets that can take focus.
Before 3.20, several widgets (GtkButton, GtkFileChooserButton, GtkComboBox) implemented this property individually.
Readable | Writable
§halign
How to distribute horizontal space if widget gets extra space, see Align
Readable | Writable
§has-default
Readable | Writable
§has-focus
Readable | Writable
§has-tooltip
Enables or disables the emission of query-tooltip on widget.
A value of true indicates that widget can have a tooltip, in this case
the widget will be queried using query-tooltip to determine
whether it will provide a tooltip or not.
Note that setting this property to true for the first time will change
the event masks of the GdkWindows of this widget to include leave-notify
and motion-notify events. This cannot and will not be undone when the
property is set to false again.
Readable | Writable
§height-request
Readable | Writable
§hexpand
Whether to expand horizontally. See WidgetExt::set_hexpand().
Readable | Writable
§hexpand-set
Whether to use the hexpand property. See WidgetExt::is_hexpand_set().
Readable | Writable
§is-focus
Readable | Writable
§margin
Sets all four sides’ margin at once. If read, returns max margin on any side.
Readable | Writable
§margin-bottom
Margin on bottom side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§margin-end
Margin on end of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§margin-left
Margin on left side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§margin-right
Margin on right side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§margin-start
Margin on start of widget, horizontally. This property supports left-to-right and right-to-left text directions.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§margin-top
Margin on top side of widget.
This property adds margin outside of the widget’s normal size
request, the margin will be added in addition to the size from
WidgetExt::set_size_request() for example.
Readable | Writable
§name
Readable | Writable
§no-show-all
Readable | Writable
§opacity
The requested opacity of the widget. See WidgetExt::set_opacity() for
more details about window opacity.
Before 3.8 this was only available in GtkWindow
Readable | Writable
§parent
Readable | Writable
§receives-default
Readable | Writable
§scale-factor
The scale factor of the widget. See WidgetExt::scale_factor() for
more details about widget scaling.
Readable
§sensitive
Readable | Writable
§style
The style of the widget, which contains information about how it will look (colors, etc).
Readable | Writable
§tooltip-markup
Sets the text of tooltip to be the given string, which is marked up
with the [Pango text markup language][PangoMarkupFormat].
Also see Tooltip::set_markup().
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None: has-tooltip
will automatically be set to true and there will be taken care of
query-tooltip in the default signal handler.
Note that if both tooltip-text and tooltip-markup
are set, the last one wins.
Readable | Writable
§tooltip-text
Sets the text of tooltip to be the given string.
Also see Tooltip::set_text().
This is a convenience property which will take care of getting the
tooltip shown if the given string is not None: has-tooltip
will automatically be set to true and there will be taken care of
query-tooltip in the default signal handler.
Note that if both tooltip-text and tooltip-markup
are set, the last one wins.
Readable | Writable
§valign
How to distribute vertical space if widget gets extra space, see Align
Readable | Writable
§vexpand
Whether to expand vertically. See WidgetExt::set_vexpand().
Readable | Writable
§vexpand-set
Whether to use the vexpand property. See WidgetExt::is_vexpand_set().
Readable | Writable
§visible
Readable | Writable
§width-request
Readable | Writable
§window
The widget’s window if it is realized, None otherwise.
Readable
Activatable
§related-action
call gtk_activatable_do_set_related_action() when it changes.
Readable | Writable
§use-action-appearance
widget when it changes.
Readable | Writable
§Implements
RadioToolButtonExt, ToggleToolButtonExt, ToolButtonExt, ToolItemExt, BinExt, ContainerExt, WidgetExt, [trait@glib::ObjectExt], BuildableExt, ActionableExt, ContainerExtManual, WidgetExtManual, BuildableExtManual
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl RadioToolButton
impl RadioToolButton
pub const NONE: Option<&'static RadioToolButton> = None
Sourcepub fn from_widget(group: &impl IsA<RadioToolButton>) -> RadioToolButton
pub fn from_widget(group: &impl IsA<RadioToolButton>) -> RadioToolButton
Creates a new RadioToolButton adding it to the same group as gruup
§group
An existing RadioToolButton, or None
§Returns
The new RadioToolButton
Sourcepub fn builder() -> RadioToolButtonBuilder
pub fn builder() -> RadioToolButtonBuilder
Creates a new builder-pattern struct instance to construct RadioToolButton objects.
This method returns an instance of RadioToolButtonBuilder which can be used to create RadioToolButton objects.
Source§impl RadioToolButton
impl RadioToolButton
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RadioToolButton, adding it to group.
§group
An
existing radio button group, or None if you are creating a new group
§Returns
The new RadioToolButton
pub fn from_stock(stock_id: &str) -> Self
pub fn join_group(&self, group: Option<&RadioToolButton>)
Trait Implementations§
Source§impl Clone for RadioToolButton
impl Clone for RadioToolButton
Source§impl Debug for RadioToolButton
impl Debug for RadioToolButton
Source§impl Default for RadioToolButton
impl Default for RadioToolButton
impl Eq for RadioToolButton
Source§impl HasParamSpec for RadioToolButton
impl HasParamSpec for RadioToolButton
type ParamSpec = ParamSpecObject
Source§type SetValue = RadioToolButton
type SetValue = RadioToolButton
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, RadioToolButton>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for RadioToolButton
impl Hash for RadioToolButton
impl IsA<Actionable> for RadioToolButton
impl IsA<Bin> for RadioToolButton
impl IsA<Buildable> for RadioToolButton
impl IsA<Container> for RadioToolButton
impl IsA<ToggleToolButton> for RadioToolButton
impl IsA<ToolButton> for RadioToolButton
impl IsA<ToolItem> for RadioToolButton
impl IsA<Widget> for RadioToolButton
Source§impl Ord for RadioToolButton
impl Ord for RadioToolButton
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 ParentClassIs for RadioToolButton
impl ParentClassIs for RadioToolButton
type Parent = ToggleToolButton
Source§impl<OT: ObjectType> PartialEq<OT> for RadioToolButton
impl<OT: ObjectType> PartialEq<OT> for RadioToolButton
Source§impl<OT: ObjectType> PartialOrd<OT> for RadioToolButton
impl<OT: ObjectType> PartialOrd<OT> for RadioToolButton
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 RadioToolButton
impl StaticType for RadioToolButton
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for RadioToolButton
impl !Sync for RadioToolButton
impl Freeze for RadioToolButton
impl RefUnwindSafe for RadioToolButton
impl Unpin for RadioToolButton
impl UnsafeUnpin for RadioToolButton
impl UnwindSafe for RadioToolButton
Blanket Implementations§
Source§impl<O> ActionableExt for Owhere
O: IsA<Actionable>,
impl<O> ActionableExt for Owhere
O: IsA<Actionable>,
Source§fn action_target_value(&self) -> Option<Variant>
fn action_target_value(&self) -> Option<Variant>
self. Read moreSource§fn set_action_name(&self, action_name: Option<&str>)
fn set_action_name(&self, action_name: Option<&str>)
Source§fn set_action_target_value(&self, target_value: Option<&Variant>)
fn set_action_target_value(&self, target_value: Option<&Variant>)
Source§fn set_detailed_action_name(&self, detailed_action_name: &str)
fn set_detailed_action_name(&self, detailed_action_name: &str)
fn connect_action_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_action_target_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
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<O> ContainerExt for O
impl<O> ContainerExt for O
Source§fn add(&self, widget: &impl IsA<Widget>)
fn add(&self, widget: &impl IsA<Widget>)
widget to self. Typically used for simple containers
such as Window, Frame, or Button; for more complicated
layout containers such as Box or Grid, this function will
pick default packing parameters that may not be correct. So
consider functions such as BoxExt::pack_start() and
GridExt::attach() as an alternative to add() in
those cases. A widget may be added to only one container at a time;
you can’t place the same widget inside two different containers. Read morefn check_resize(&self)
Source§fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
child-notify signal for the
[child property][child-properties]
child_property on the child. Read moreSource§fn child_notify_by_pspec(
&self,
child: &impl IsA<Widget>,
pspec: impl AsRef<ParamSpec>,
)
fn child_notify_by_pspec( &self, child: &impl IsA<Widget>, pspec: impl AsRef<ParamSpec>, )
child-notify signal for the
[child property][child-properties] specified by
pspec on the child. Read moreSource§fn child_type(&self) -> Type
fn child_type(&self) -> Type
Source§fn forall<P: FnMut(&Widget)>(&self, callback: P)
fn forall<P: FnMut(&Widget)>(&self, callback: P)
callback on each direct child of self, including
children that are considered “internal” (implementation details
of the container). “Internal” children generally weren’t added
by the user of the container, but were added by the container
implementation itself. Read moreSource§fn border_width(&self) -> u32
fn border_width(&self) -> u32
set_border_width(). Read moreSource§fn focus_child(&self) -> Option<Widget>
fn focus_child(&self) -> Option<Widget>
self. This is not the
currently focused widget. That can be obtained by calling
GtkWindowExt::focused_widget(). Read moreSource§fn focus_hadjustment(&self) -> Option<Adjustment>
fn focus_hadjustment(&self) -> Option<Adjustment>
Source§fn focus_vadjustment(&self) -> Option<Adjustment>
fn focus_vadjustment(&self) -> Option<Adjustment>
set_focus_vadjustment(). Read moreSource§fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
child. Read moreSource§fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
draw calls to all children that don’t have their
own GdkWindows. This function provides a convenient way of doing this.
A container, when it receives a call to its draw function,
calls propagate_draw() once for each child, passing in
the cr the container received. Read moreSource§fn remove(&self, widget: &impl IsA<Widget>)
fn remove(&self, widget: &impl IsA<Widget>)
widget from self. widget must be inside self.
Note that self will own a reference to widget, and that this
may be the last reference held; so removing a widget from its
container can destroy that widget. If you want to use widget
again, you need to add a reference to it before removing it from
a container, using g_object_ref(). If you don’t want to use widget
again it’s usually more efficient to simply destroy it directly
using gtk_widget_destroy() since this will remove it from the
container and help break any circular reference count cycles. Read moreSource§fn set_border_width(&self, border_width: u32)
fn set_border_width(&self, border_width: u32)
Source§fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_chain(&self, focusable_widgets: &[Widget])
Since 3.24
Source§fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::hadjustment() for a typical way of obtaining
the adjustment and set_focus_vadjustment() for setting
the vertical adjustment. Read moreSource§fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::vadjustment() for a typical way of obtaining
the adjustment and set_focus_hadjustment() for setting
the horizontal adjustment. Read moreSource§fn unset_focus_chain(&self)
fn unset_focus_chain(&self)
Since 3.24
set_focus_chain(). Read morefn set_child<P: IsA<Widget>>(&self, child: Option<&P>)
fn resize_mode(&self) -> ResizeMode
fn set_resize_mode(&self, resize_mode: ResizeMode)
fn connect_add<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_check_resize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_remove<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_set_focus_child<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_border_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_resize_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> ContainerExtManual for O
impl<O> ContainerExtManual for O
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<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<O> RadioToolButtonExt for Owhere
O: IsA<RadioToolButton>,
impl<O> RadioToolButtonExt for Owhere
O: IsA<RadioToolButton>,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<O> ToggleToolButtonExt for Owhere
O: IsA<ToggleToolButton>,
impl<O> ToggleToolButtonExt for Owhere
O: IsA<ToggleToolButton>,
Source§fn is_active(&self) -> bool
fn is_active(&self) -> bool
ToggleToolButton and returns its current state.
Returns true if the toggle button is pressed in and false if it is raised. Read moreSource§fn set_active(&self, is_active: bool)
fn set_active(&self, is_active: bool)
Source§fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§impl<O> ToolButtonExt for Owhere
O: IsA<ToolButton>,
impl<O> ToolButtonExt for Owhere
O: IsA<ToolButton>,
Source§fn icon_name(&self) -> Option<GString>
fn icon_name(&self) -> Option<GString>
set_icon_name(). Read moreSource§fn icon_widget(&self) -> Option<Widget>
fn icon_widget(&self) -> Option<Widget>
Source§fn label_widget(&self) -> Option<Widget>
fn label_widget(&self) -> Option<Widget>
Source§fn uses_underline(&self) -> bool
fn uses_underline(&self) -> bool
set_use_underline(). Read moreSource§fn set_icon_name(&self, icon_name: Option<&str>)
fn set_icon_name(&self, icon_name: Option<&str>)
IconTheme for more details.
The icon-name property only has an effect if not
overridden by non-None label-widget,
icon-widget and stock-id properties. Read moreSource§fn set_label(&self, label: Option<&str>)
fn set_label(&self, label: Option<&str>)
label as the label used for the tool button. The label
property only has an effect if not overridden by a non-None
label-widget property. If both the label-widget
and label properties are None, the label is determined by the
stock-id property. If the stock-id property is
also None, self will not have a label. Read moreSource§fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>)
fn set_label_widget(&self, label_widget: Option<&impl IsA<Widget>>)
label_widget as the widget that will be used as the label
for self. If label_widget is None the label property is used
as label. If label is also None, the label in the stock item
determined by the stock-id property is used as label. If
stock-id is also None, self does not have a label. Read moreSource§fn set_use_underline(&self, use_underline: bool)
fn set_use_underline(&self, use_underline: bool)
use_underline is true,
the label on the tool button will be “Open” and the item on the overflow
menu will have an underlined “O”. Read moreSource§fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_clicked<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_clicked(&self)
fn connect_icon_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_icon_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_label_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_label_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> ToolItemExt for O
impl<O> ToolItemExt for O
Source§fn ellipsize_mode(&self) -> EllipsizeMode
fn ellipsize_mode(&self) -> EllipsizeMode
Source§fn is_homogeneous(&self) -> bool
fn is_homogeneous(&self) -> bool
Source§fn is_important(&self) -> bool
fn is_important(&self) -> bool
Source§fn orientation(&self) -> Orientation
fn orientation(&self) -> Orientation
menu_item_id matches the string passed to
set_proxy_menu_item() return the corresponding MenuItem. Read moreSource§fn relief_style(&self) -> ReliefStyle
fn relief_style(&self) -> ReliefStyle
self. See ButtonExt::set_relief().
Custom subclasses of ToolItem should call this function in the handler
of the toolbar_reconfigured signal to find out the
relief style of buttons. Read moreSource§fn text_alignment(&self) -> f32
fn text_alignment(&self) -> f32
Source§fn text_orientation(&self) -> Orientation
fn text_orientation(&self) -> Orientation
Source§fn text_size_group(&self) -> Option<SizeGroup>
fn text_size_group(&self) -> Option<SizeGroup>
Source§fn toolbar_style(&self) -> ToolbarStyle
fn toolbar_style(&self) -> ToolbarStyle
Source§fn uses_drag_window(&self) -> bool
fn uses_drag_window(&self) -> bool
Source§fn is_visible_horizontal(&self) -> bool
fn is_visible_horizontal(&self) -> bool
self is visible on toolbars that are
docked horizontally. Read moreSource§fn is_visible_vertical(&self) -> bool
fn is_visible_vertical(&self) -> bool
self is visible when the toolbar is docked vertically.
See set_visible_vertical(). Read moreself has changed. If the
overflow menu is visible when this function it called,
the menu will be rebuilt. Read moreMenuItem that was last set by
set_proxy_menu_item(), ie. the MenuItem
that is going to appear in the overflow menu. Read moreSource§fn set_expand(&self, expand: bool)
fn set_expand(&self, expand: bool)
self is allocated extra space when there
is more room on the toolbar then needed for the items. The
effect is that the item gets bigger when the toolbar gets bigger
and smaller when the toolbar gets smaller. Read moreSource§fn set_homogeneous(&self, homogeneous: bool)
fn set_homogeneous(&self, homogeneous: bool)
self is to be allocated the same size as other
homogeneous items. The effect is that all homogeneous items will have
the same width as the widest of the items. Read moreSource§fn set_is_important(&self, is_important: bool)
fn set_is_important(&self, is_important: bool)
self should be considered important. The ToolButton
class uses this property to determine whether to show or hide its label
when the toolbar style is ToolbarStyle::BothHoriz. The result is that
only tool buttons with the “is_important” property set have labels, an
effect known as “priority text” Read moreMenuItem used in the toolbar overflow menu. The
menu_item_id is used to identify the caller of this function and
should also be used with proxy_menu_item(). Read moreSource§fn set_tooltip_markup(&self, markup: &str)
fn set_tooltip_markup(&self, markup: &str)
WidgetExt::set_tooltip_markup(). Read moreSource§fn set_tooltip_text(&self, text: &str)
fn set_tooltip_text(&self, text: &str)
WidgetExt::set_tooltip_text(). Read moreSource§fn set_use_drag_window(&self, use_drag_window: bool)
fn set_use_drag_window(&self, use_drag_window: bool)
self has a drag window. When true the
toolitem can be used as a drag source through WidgetExtManual::drag_source_set().
When self has a drag window it will intercept all events,
even those that would otherwise be sent to a child of self. Read moreSource§fn set_visible_horizontal(&self, visible_horizontal: bool)
fn set_visible_horizontal(&self, visible_horizontal: bool)
self is visible when the toolbar is docked horizontally. Read moreSource§fn set_visible_vertical(&self, visible_vertical: bool)
fn set_visible_vertical(&self, visible_vertical: bool)
Source§fn toolbar_reconfigured(&self)
fn toolbar_reconfigured(&self)
toolbar_reconfigured on self.
Toolbar and other ToolShell implementations use this function
to notify children, when some aspect of their configuration changes.tool_item
about whether the item should appear in the toolbar overflow menu. In
response the tool item should either Read moreSource§fn connect_toolbar_reconfigured<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_toolbar_reconfigured<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_is_important_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_horizontal_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_vertical_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
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