pub struct AppChooserButton { /* private fields */ }Expand description
The AppChooserButton is a widget that lets the user select
an application. It implements the AppChooser interface.
Initially, a AppChooserButton selects the first application
in its list, which will either be the most-recently used application
or, if show-default-item is true, the
default application.
The list of applications shown in a AppChooserButton includes
the recommended applications for the given content type. When
show-default-item is set, the default application
is also included. To let the user chooser other applications,
you can set the show-dialog-item property,
which allows to open a full AppChooserDialog.
It is possible to add custom items to the list, using
AppChooserButtonExt::append_custom_item(). These items cause
the custom-item-activated signal to be
emitted when they are selected.
To track changes in the selected application, use the
changed signal.
§Properties
§heading
The text to show at the top of the dialog that can be opened from the button. The string may contain Pango markup.
Readable | Writable
§show-default-item
The show-default-item property determines
whether the dropdown menu should show the default application
on top for the provided content type.
Readable | Writable | Construct
§show-dialog-item
The show-dialog-item property determines
whether the dropdown menu should show an item that triggers
a AppChooserDialog when clicked.
Readable | Writable | Construct
ComboBox
§active
The item which is currently active. If the model is a non-flat treemodel,
and the active item is not an immediate child of the root of the tree,
this property has the value
gtk_tree_path_get_indices (path)[0],
where path is the TreePath of the active item.
Readable | Writable
§active-id
The value of the ID column of the active row.
Readable | Writable
§add-tearoffs
The add-tearoffs property controls whether generated menus have tearoff menu items.
Note that this only affects menu style combo boxes.
Readable | Writable
§button-sensitivity
Whether the dropdown button is sensitive when the model is empty.
Readable | Writable
§cell-area
The CellArea used to layout cell renderers for this combo box.
If no area is specified when creating the combo box with ComboBox::with_area()
a horizontally oriented CellAreaBox will be used.
Readable | Writable | Construct Only
§column-span-column
If this is set to a non-negative value, it must be the index of a column
of type G_TYPE_INT in the model. The value in that column for each item
will determine how many columns that item will span in the popup.
Therefore, values in this column must be greater than zero, and the sum of
an item’s column position + span should not exceed wrap-width.
Readable | Writable
§entry-text-column
The column in the combo box’s model to associate with strings from the entry
if the combo was created with has-entry = true.
Readable | Writable
§has-entry
Whether the combo box has an entry.
Readable | Writable | Construct Only
§has-frame
The has-frame property controls whether a frame is drawn around the entry.
Readable | Writable
§id-column
The column in the combo box’s model that provides string IDs for the values in the model, if != -1.
Readable | Writable
§model
The model from which the combo box takes the values shown in the list.
Readable | Writable
§popup-fixed-width
Whether the popup’s width should be a fixed width matching the allocated width of the combo box.
Readable | Writable
§popup-shown
Whether the combo boxes dropdown is popped up. Note that this property is mainly useful, because it allows you to connect to notify::popup-shown.
Readable
§row-span-column
If this is set to a non-negative value, it must be the index of a column
of type G_TYPE_INT in the model. The value in that column for each item
will determine how many rows that item will span in the popup. Therefore,
values in this column must be greater than zero.
Readable | Writable
§tearoff-title
A title that may be displayed by the window manager when the popup is torn-off.
Readable | Writable
§wrap-width
If wrap-width is set to a positive value, items in the popup will be laid out along multiple columns, starting a new row on reaching the wrap width.
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
CellEditable
§editing-canceled
Indicates whether editing on the cell has been canceled.
Readable | Writable
AppChooser
§content-type
The content type of the AppChooser object.
See [GContentType][gio-GContentType] for more information about content types.
Readable | Writable | Construct Only
§Signals
§custom-item-activated
Emitted when a custom item, previously added with
AppChooserButtonExt::append_custom_item(), is activated from the
dropdown menu.
Detailed
ComboBox
§changed
The changed signal is emitted when the active
item is changed. The can be due to the user selecting
a different item from the list, or due to a
call to ComboBoxExt::set_active_iter().
It will also be emitted while typing into the entry of a combo box
with an entry.
§format-entry-text
value, -1);
return g_strdup_printf (“g”, value);
}
]|
§move-active
The ::move-active signal is a [keybinding signal][GtkBindingSignal] which gets emitted to move the active selection.
Action
§popdown
The ::popdown signal is a [keybinding signal][GtkBindingSignal] which gets emitted to popdown the combo box list.
The default bindings for this signal are Alt+Up and Escape.
Action
§popup
The ::popup signal is a [keybinding signal][GtkBindingSignal] which gets emitted to popup the combo box list.
The default binding for this signal is Alt+Down.
Action
Widget
§accel-closures-changed
§button-press-event
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed.
To receive this signal, the gdk::Window associated to the
widget needs to enable the gdk::EventMask::BUTTON_PRESS_MASK mask.
This signal will be sent to the grab widget if there is one.
§button-release-event
The ::button-release-event signal will be emitted when a button (typically from a mouse) is released.
To receive this signal, the gdk::Window associated to the
widget needs to enable the gdk::EventMask::BUTTON_RELEASE_MASK mask.
This signal will be sent to the grab widget if there is one.
§can-activate-accel
Determines whether an accelerator that activates the signal
identified by signal_id can currently be activated.
This signal is present to allow applications and derived
widgets to override the default Widget handling
for determining whether an accelerator can be activated.
§child-notify
The ::child-notify signal is emitted for each [child property][child-properties] that has changed on an object. The signal’s detail holds the property name.
Detailed
§composited-changed
The ::composited-changed signal is emitted when the composited
status of widgets screen changes.
See Screen::is_composited().
Action
§configure-event
The ::configure-event signal will be emitted when the size, position or
stacking of the widget’s window has changed.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::STRUCTURE_MASK mask. GDK will enable this mask
automatically for all new windows.
§damage-event
Emitted when a redirected window belonging to widget gets drawn into.
The region/area members of the event shows what area of the redirected
drawable was drawn into.
§delete-event
The ::delete-event signal is emitted if a user requests that
a toplevel window is closed. The default handler for this signal
destroys the window. Connecting 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.
§destroy
Signals that all holders of a reference to the widget should release the reference that they hold. May result in finalization of the widget if all references are released.
This signal is not suitable for saving widget state.
§destroy-event
The ::destroy-event signal is emitted when a 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.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::STRUCTURE_MASK mask. GDK will enable this mask
automatically for all new windows.
§direction-changed
The ::direction-changed signal is emitted when the text direction of a widget changes.
§drag-begin
The ::drag-begin signal is emitted on the drag source when a drag is
started. A typical reason to connect to this signal is to set up a
custom drag icon with e.g. WidgetExt::drag_source_set_icon_pixbuf().
Note that some widgets set up a drag icon in the default handler of
this signal, so you may have to use g_signal_connect_after() to
override what the default handler did.
§drag-data-delete
The ::drag-data-delete signal is emitted on the drag source when a drag
with the action 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.
§drag-data-get
The ::drag-data-get signal is emitted on the drag source when the drop
site requests the data which is dragged. It is the responsibility of
the signal handler to fill data with the data in the format which
is indicated by info. See SelectionData::set() and
SelectionData::set_text().
§drag-data-received
format == 8)) { GdkDragAction action;
// handle data here
action = gdk_drag_context_get_selected_action (context); if (action == GDK_ACTION_ASK) { GtkWidget *dialog; gint response;
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_YES_NO, “Move the data ?\n”); response = gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog);
if (response == GTK_RESPONSE_YES) action = GDK_ACTION_MOVE; else action = GDK_ACTION_COPY; }
gtk_drag_finish (context, TRUE, action == GDK_ACTION_MOVE, time); } else gtk_drag_finish (context, FALSE, FALSE, time); } ]|
§drag-drop
The ::drag-drop signal is emitted on the drop site when the user drops
the data onto the widget. The signal handler must determine whether
the cursor position is in a drop zone or not. If it is not in a drop
zone, it returns 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 WidgetExt::drag_get_data() to receive the data for one
or more of the supported targets.
§drag-end
The ::drag-end signal is emitted on the drag source when a drag is
finished. A typical reason to connect to this signal is to undo
things done in drag-begin.
§drag-failed
The ::drag-failed signal is emitted on the drag source when a drag has
failed. The signal handler may hook custom code to handle a failed DnD
operation based on the type of error, it returns true is the failure has
been already handled (not showing the default “drag operation failed”
animation), otherwise it returns false.
§drag-leave
The ::drag-leave signal is emitted on the drop site when the cursor
leaves the widget. A typical reason to connect to this signal is to
undo things done in drag-motion, e.g. undo highlighting
with WidgetExt::drag_unhighlight().
Likewise, the drag-leave signal is also emitted before the
::drag-drop signal, for instance to allow cleaning up of a preview item
created in the drag-motion signal handler.
§drag-motion
suggested_action, time); } else { // accept the drop } } ]|
§draw
This signal is emitted when a widget is supposed to render itself.
The widget’s top left corner must be painted at the origin of
the passed in context and be sized to the values returned by
WidgetExt::allocated_width() and
WidgetExt::allocated_height().
Signal handlers connected to this signal can modify the cairo
context passed as cr in any way they like and don’t need to
restore it. The signal emission takes care of calling cairo_save()
before and cairo_restore() after invoking the handler.
The signal handler will get a cr with a clip region already set to the
widget’s dirty region, i.e. to the area that needs repainting. Complicated
widgets that want to avoid redrawing themselves completely can get the full
extents of the clip region with gdk_cairo_get_clip_rectangle(), or they can
get a finer-grained representation of the dirty region with
cairo_copy_clip_rectangle_list().
§enter-notify-event
The ::enter-notify-event will be emitted when the pointer enters
the widget’s window.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::ENTER_NOTIFY_MASK mask.
This signal will be sent to the grab widget if there is one.
§event
The GTK+ main loop will emit three signals for each GDK event delivered
to a widget: one generic ::event signal, another, more specific,
signal that matches the type of event delivered (e.g.
key-press-event) and finally a generic
event-after signal.
§event-after
After the emission of the event signal and (optionally)
the second more specific signal, ::event-after will be emitted
regardless of the previous two signals handlers return values.
§focus
§focus-in-event
The ::focus-in-event signal will be emitted when the keyboard focus
enters the widget’s window.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::FOCUS_CHANGE_MASK mask.
§focus-out-event
The ::focus-out-event signal will be emitted when the keyboard focus
leaves the widget’s window.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::FOCUS_CHANGE_MASK mask.
§grab-broken-event
Emitted when a pointer or keyboard grab on a window belonging
to widget gets broken.
On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again.
§grab-focus
Action
§grab-notify
The ::grab-notify signal is emitted when a widget becomes shadowed by a GTK+ grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed.
A widget is shadowed by a WidgetExt::grab_add() when the topmost
grab widget in the grab stack of its window group is not
its ancestor.
§hide
The ::hide signal is emitted when widget is hidden, for example with
WidgetExt::hide().
§hierarchy-changed
The ::hierarchy-changed signal is emitted when the
anchored state of a widget changes. A widget is
“anchored” when its toplevel
ancestor is a Window. This signal is emitted when
a widget changes from un-anchored to anchored or vice-versa.
§key-press-event
The ::key-press-event signal is emitted when a key is pressed. The signal emission will reoccur at the key-repeat rate when the key is kept pressed.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::KEY_PRESS_MASK mask.
This signal will be sent to the grab widget if there is one.
§key-release-event
The ::key-release-event signal is emitted when a key is released.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::KEY_RELEASE_MASK mask.
This signal will be sent to the grab widget if there is one.
§keynav-failed
Gets emitted if keyboard navigation fails.
See WidgetExt::keynav_failed() for details.
§leave-notify-event
The ::leave-notify-event will be emitted when the pointer leaves
the widget’s window.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::LEAVE_NOTIFY_MASK mask.
This signal will be sent to the grab widget if there is one.
§map
The ::map signal is emitted when widget is going to be mapped, that is
when the widget is visible (which is controlled with
WidgetExt::set_visible()) and all its parents up to the toplevel widget
are also visible. Once the map has occurred, map-event will
be emitted.
The ::map signal can be used to determine whether a widget will be drawn,
for instance it can resume an animation that was stopped during the
emission of unmap.
§map-event
The ::map-event signal will be emitted when the widget’s window is
mapped. A window is mapped when it becomes visible on the screen.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::STRUCTURE_MASK mask. GDK will enable this mask
automatically for all new windows.
§mnemonic-activate
The default handler for this signal activates widget if group_cycling
is false, or just makes widget grab focus if group_cycling is true.
§motion-notify-event
The ::motion-notify-event signal is emitted when the pointer moves
over the widget’s gdk::Window.
To receive this signal, the gdk::Window associated to the widget
needs to enable the gdk::EventMask::POINTER_MOTION_MASK mask.
This signal will be sent to the grab widget if there is one.
§move-focus
Action
§parent-set
The ::parent-set signal is emitted when a new parent has been set on a widget.
§popup-menu
This signal gets emitted whenever a widget should pop up a context
menu. This usually happens through the standard key binding mechanism;
by pressing a certain key while a widget is focused, the user can cause
the widget to pop up a menu. For example, the 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.
Action
§property-notify-event
The ::property-notify-event signal will be emitted when a property on
the widget’s window has been changed or deleted.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROPERTY_CHANGE_MASK mask.
§proximity-in-event
To receive this signal the gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_IN_MASK mask.
This signal will be sent to the grab widget if there is one.
§proximity-out-event
To receive this signal the gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_OUT_MASK mask.
This signal will be sent to the grab widget if there is one.
§query-tooltip
Emitted when 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.
Using the given coordinates, the signal handler should determine
whether a tooltip should be shown for widget. If this is the case
true should be returned, false otherwise. Note that if
keyboard_mode is true, the values of x and y are undefined and
should not be used.
The signal handler is free to manipulate tooltip with the therefore
destined function calls.
§realize
The ::realize signal is emitted when widget is associated with a
gdk::Window, which means that WidgetExt::realize() has been called or the
widget has been mapped (that is, it is going to be drawn).
§screen-changed
The ::screen-changed signal gets emitted when the screen of a widget has changed.
§scroll-event
The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::SCROLL_MASK mask.
This signal will be sent to the grab widget if there is one.
§selection-clear-event
The ::selection-clear-event signal will be emitted when the
the widget’s window has lost ownership of a selection.
§selection-get
§selection-notify-event
§selection-received
§selection-request-event
The ::selection-request-event signal will be emitted when
another client requests ownership of the selection owned by
the widget’s window.
§show
The ::show signal is emitted when widget is shown, for example with
WidgetExt::show().
§show-help
Action
§size-allocate
§state-changed
The ::state-changed signal is emitted when the widget state changes.
See gtk_widget_get_state().
§state-flags-changed
The ::state-flags-changed signal is emitted when the widget state
changes, see WidgetExt::state_flags().
§style-set
The ::style-set signal is emitted when a new style has been set
on a widget. Note that style-modifying functions like
gtk_widget_modify_base() also cause this signal to be emitted.
Note that this signal is emitted for changes to the deprecated
GtkStyle. To track changes to the StyleContext associated
with a widget, use the style-updated signal.
§style-updated
The ::style-updated signal is a convenience signal that is emitted when the
changed signal is emitted on the widget’s associated
StyleContext as returned by WidgetExt::style_context().
Note that style-modifying functions like gtk_widget_override_color() also
cause this signal to be emitted.
§touch-event
§unmap
The ::unmap signal is emitted when 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.
As ::unmap indicates that a widget will not be shown any longer, it can be used to, for example, stop an animation on the widget.
§unmap-event
The ::unmap-event signal will be emitted when the widget’s window is
unmapped. A window is unmapped when it becomes invisible on the screen.
To receive this signal, the gdk::Window associated to the widget needs
to enable the gdk::EventMask::STRUCTURE_MASK mask. GDK will enable this mask
automatically for all new windows.
§unrealize
The ::unrealize signal is emitted when the gdk::Window associated with
widget is destroyed, which means that WidgetExt::unrealize() has been
called or the widget has been unmapped (that is, it is going to be
hidden).
§visibility-notify-event
The ::visibility-notify-event will be emitted when the widget’s
window is obscured or unobscured.
To receive this signal the gdk::Window associated to the widget needs
to enable the gdk::EventMask::VISIBILITY_NOTIFY_MASK mask.
§window-state-event
The ::window-state-event will be emitted when the state of the
toplevel window associated to the widget changes.
To receive this signal the gdk::Window associated to the widget
needs to enable the gdk::EventMask::STRUCTURE_MASK mask. GDK will enable
this mask automatically for all new windows.
CellEditable
§editing-done
This signal is a sign for the cell renderer to update its
value from the cell_editable.
Implementations of CellEditable are responsible for
emitting this signal when they are done editing, e.g.
Entry emits this signal when the user presses Enter. Typical things to
do in a handler for ::editing-done are to capture the edited value,
disconnect the cell_editable from signals on the CellRenderer, etc.
CellEditableExt::editing_done() is a convenience method
for emitting editing-done.
§remove-widget
This signal is meant to indicate that the cell is finished
editing, and the cell_editable widget is being removed and may
subsequently be destroyed.
Implementations of CellEditable are responsible for
emitting this signal when they are done editing. It must
be emitted after the editing-done signal,
to give the cell renderer a chance to update the cell’s value
before the widget is removed.
CellEditableExt::remove_widget() is a convenience method
for emitting remove-widget.
§Implements
AppChooserButtonExt, ComboBoxExt, BinExt, ContainerExt, WidgetExt, [trait@glib::ObjectExt], BuildableExt, CellEditableExt, CellLayoutExt, AppChooserExt, ComboBoxExtManual, ContainerExtManual, WidgetExtManual, BuildableExtManual
GLib type: GObject with reference counted clone semantics.
Implementations§
Source§impl AppChooserButton
impl AppChooserButton
pub const NONE: Option<&'static AppChooserButton> = None
Sourcepub fn new(content_type: &str) -> AppChooserButton
pub fn new(content_type: &str) -> AppChooserButton
Creates a new AppChooserButton for applications
that can handle content of the given type.
§content_type
the content type to show applications for
§Returns
a newly created AppChooserButton
Sourcepub fn builder() -> AppChooserButtonBuilder
pub fn builder() -> AppChooserButtonBuilder
Creates a new builder-pattern struct instance to construct AppChooserButton objects.
This method returns an instance of AppChooserButtonBuilder which can be used to create AppChooserButton objects.
Trait Implementations§
Source§impl Clone for AppChooserButton
impl Clone for AppChooserButton
Source§impl Debug for AppChooserButton
impl Debug for AppChooserButton
Source§impl Default for AppChooserButton
impl Default for AppChooserButton
impl Eq for AppChooserButton
Source§impl HasParamSpec for AppChooserButton
impl HasParamSpec for AppChooserButton
type ParamSpec = ParamSpecObject
Source§type SetValue = AppChooserButton
type SetValue = AppChooserButton
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, AppChooserButton>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for AppChooserButton
impl Hash for AppChooserButton
impl IsA<AppChooser> for AppChooserButton
impl IsA<Bin> for AppChooserButton
impl IsA<Buildable> for AppChooserButton
impl IsA<CellEditable> for AppChooserButton
impl IsA<CellLayout> for AppChooserButton
impl IsA<ComboBox> for AppChooserButton
impl IsA<Container> for AppChooserButton
impl IsA<Widget> for AppChooserButton
Source§impl Ord for AppChooserButton
impl Ord for AppChooserButton
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 AppChooserButton
impl ParentClassIs for AppChooserButton
Source§impl<OT: ObjectType> PartialEq<OT> for AppChooserButton
impl<OT: ObjectType> PartialEq<OT> for AppChooserButton
Source§impl<OT: ObjectType> PartialOrd<OT> for AppChooserButton
impl<OT: ObjectType> PartialOrd<OT> for AppChooserButton
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 AppChooserButton
impl StaticType for AppChooserButton
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for AppChooserButton
impl !Sync for AppChooserButton
impl Freeze for AppChooserButton
impl RefUnwindSafe for AppChooserButton
impl Unpin for AppChooserButton
impl UnsafeUnpin for AppChooserButton
impl UnwindSafe for AppChooserButton
Blanket Implementations§
Source§impl<O> AppChooserButtonExt for Owhere
O: IsA<AppChooserButton>,
impl<O> AppChooserButtonExt for Owhere
O: IsA<AppChooserButton>,
Source§fn append_custom_item(&self, name: &str, label: &str, icon: &impl IsA<Icon>)
fn append_custom_item(&self, name: &str, label: &str, icon: &impl IsA<Icon>)
custom-item-activated signal, to add a
callback for the activation of a particular custom item in the list.
See also append_separator(). Read moreSource§fn append_separator(&self)
fn append_separator(&self)
Source§fn heading(&self) -> Option<GString>
fn heading(&self) -> Option<GString>
Source§fn shows_default_item(&self) -> bool
fn shows_default_item(&self) -> bool
show-default-item
property. Read moreSource§fn shows_dialog_item(&self) -> bool
fn shows_dialog_item(&self) -> bool
show-dialog-item
property. Read moreSource§fn set_active_custom_item(&self, name: &str)
fn set_active_custom_item(&self, name: &str)
append_custom_item(). Read moreSource§fn set_heading(&self, heading: &str)
fn set_heading(&self, heading: &str)
Source§fn set_show_default_item(&self, setting: bool)
fn set_show_default_item(&self, setting: bool)
Source§fn set_show_dialog_item(&self, setting: bool)
fn set_show_dialog_item(&self, setting: bool)
AppChooserDialog. Read moreSource§fn connect_custom_item_activated<F: Fn(&Self, &str) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_custom_item_activated<F: Fn(&Self, &str) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
append_custom_item(), is activated from the
dropdown menu. Read morefn connect_heading_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_show_default_item_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_show_dialog_item_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> AppChooserExt for Owhere
O: IsA<AppChooser>,
impl<O> AppChooserExt for Owhere
O: IsA<AppChooser>,
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<O> CellEditableExt for Owhere
O: IsA<CellEditable>,
impl<O> CellEditableExt for Owhere
O: IsA<CellEditable>,
Source§fn editing_done(&self)
fn editing_done(&self)
editing-done signal.Source§fn remove_widget(&self)
fn remove_widget(&self)
remove-widget signal.Source§fn is_editing_canceled(&self) -> bool
fn is_editing_canceled(&self) -> bool
Source§fn set_editing_canceled(&self, editing_canceled: bool)
fn set_editing_canceled(&self, editing_canceled: bool)
Source§fn connect_editing_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_editing_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
cell_editable. Read moreSource§fn connect_remove_widget<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_remove_widget<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
cell_editable widget is being removed and may
subsequently be destroyed. Read morefn connect_editing_canceled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> CellLayoutExt for Owhere
O: IsA<CellLayout>,
impl<O> CellLayoutExt for Owhere
O: IsA<CellLayout>,
Source§fn add_attribute(
&self,
cell: &impl IsA<CellRenderer>,
attribute: &str,
column: i32,
)
fn add_attribute( &self, cell: &impl IsA<CellRenderer>, attribute: &str, column: i32, )
self. Read moreSource§fn clear(&self)
fn clear(&self)
self and
removes all renderers from self.Source§fn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
fn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
gtk_cell_layout_set_attributes(). Read moreSource§fn cells(&self) -> Vec<CellRenderer>
fn cells(&self) -> Vec<CellRenderer>
self. Read moreSource§fn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
fn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
Source§fn set_cell_data_func(
&self,
cell: &impl IsA<CellRenderer>,
func: Option<Box_<dyn Fn(&CellLayout, &CellRenderer, &TreeModel, &TreeIter) + 'static>>,
)
fn set_cell_data_func( &self, cell: &impl IsA<CellRenderer>, func: Option<Box_<dyn Fn(&CellLayout, &CellRenderer, &TreeModel, &TreeIter) + 'static>>, )
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> ComboBoxExt for O
impl<O> ComboBoxExt for O
Source§fn active_id(&self) -> Option<GString>
fn active_id(&self) -> Option<GString>
self. This value is taken
from the active row and the column specified by the id-column
property of self (see set_id_column()). Read moreSource§fn active_iter(&self) -> Option<TreeIter>
fn active_iter(&self) -> Option<TreeIter>
iter to point to the currently active item, if any item is active.
Otherwise, iter is left unchanged. Read moreSource§fn column_span_column(&self) -> i32
fn column_span_column(&self) -> i32
self. Read moreSource§fn entry_text_column(&self) -> i32
fn entry_text_column(&self) -> i32
self is using to get the strings
from to display in the internal entry. Read moreSource§fn id_column(&self) -> i32
fn id_column(&self) -> i32
self is using to get string IDs
for values from. Read moreSource§fn popup_accessible(&self) -> Option<Object>
fn popup_accessible(&self) -> Option<Object>
Source§fn is_popup_fixed_width(&self) -> bool
fn is_popup_fixed_width(&self) -> bool
Source§fn row_span_column(&self) -> i32
fn row_span_column(&self) -> i32
self. Read moreSource§fn wrap_width(&self) -> i32
fn wrap_width(&self) -> i32
Source§fn popup_for_device(&self, device: &Device)
fn popup_for_device(&self, device: &Device)
self, the popup window
will be grabbed so only device and its associated pointer/keyboard
are the only GdkDevices able to send events to it. Read moreSource§fn set_active_iter(&self, iter: Option<&TreeIter>)
fn set_active_iter(&self, iter: Option<&TreeIter>)
SensitivityType::On), never sensitive (SensitivityType::Off)
or only if there is at least one item to display (SensitivityType::Auto). Read moreSource§fn set_column_span_column(&self, column_span: i32)
fn set_column_span_column(&self, column_span: i32)
self to be
column_span. The column span column contains integers which indicate
how many columns an item should span. Read moreSource§fn set_entry_text_column(&self, text_column: i32)
fn set_entry_text_column(&self, text_column: i32)
self should use to get strings from
to be text_column. The column text_column in the model of self
must be of type G_TYPE_STRING. Read moreSource§fn set_id_column(&self, id_column: i32)
fn set_id_column(&self, id_column: i32)
self should use to get string IDs
for values from. The column id_column in the model of self
must be of type G_TYPE_STRING. Read moreSource§fn set_popup_fixed_width(&self, fixed: bool)
fn set_popup_fixed_width(&self, fixed: bool)
Source§fn set_row_span_column(&self, row_span: i32)
fn set_row_span_column(&self, row_span: i32)
self to be row_span.
The row span column contains integers which indicate how many rows
an item should span. Read moreSource§fn set_wrap_width(&self, width: i32)
fn set_wrap_width(&self, width: i32)
self to be width. The wrap width is basically
the preferred number of columns when you want the popup to be layed out
in a table. Read moreSource§fn has_frame(&self) -> bool
fn has_frame(&self) -> bool
Source§fn set_has_frame(&self, has_frame: bool)
fn set_has_frame(&self, has_frame: bool)
Source§fn is_popup_shown(&self) -> bool
fn is_popup_shown(&self) -> bool
Source§fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
set_active_iter().
It will also be emitted while typing into the entry of a combo box
with an entry.Source§fn connect_format_entry_text<F: Fn(&Self, &str) -> String + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_format_entry_text<F: Fn(&Self, &str) -> String + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_move_active<F: Fn(&Self, ScrollType) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_move_active<F: Fn(&Self, ScrollType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_active(&self, scroll_type: ScrollType)
Source§fn connect_popdown<F: Fn(&Self) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_popdown<F: Fn(&Self) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_popdown(&self) -> bool
Source§fn connect_popup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_popup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_popup(&self)
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_active_id_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_column_span_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_entry_text_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_frame_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_id_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_model_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_popup_fixed_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_popup_shown_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_row_span_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_wrap_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> ComboBoxExtManual for O
impl<O> ComboBoxExtManual for O
Source§fn set_active(&self, index_: Option<u32>)
fn set_active(&self, index_: Option<u32>)
Source§fn active(&self) -> Option<u32>
fn active(&self) -> Option<u32>
gtk_tree_path_get_indices (path)[0], where
path is the TreePath of the active item. Read moreSource§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<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> TransparentType for Twhere
T: TransparentPtrType,
impl<T> TransparentType for Twhere
T: TransparentPtrType,
type GlibType = <T as GlibPtrDefault>::GlibType
Source§impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
impl<T> TryFromClosureReturnValue for Twhere
T: for<'a> FromValue<'a> + StaticType + 'static,
Source§impl<O> WidgetExt for O
impl<O> WidgetExt for O
Source§fn add_accelerator(
&self,
accel_signal: &str,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
accel_flags: AccelFlags,
)
fn add_accelerator( &self, accel_signal: &str, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, accel_flags: AccelFlags, )
self in accel_group that causes
accel_signal to be emitted if the accelerator is activated.
The accel_group needs to be added to the widget’s toplevel via
GtkWindowExt::add_accel_group(), and the signal must be of type G_SIGNAL_ACTION.
Accelerators added through this function are not user changeable during
runtime. If you want to support accelerators that can be changed by the
user, use gtk_accel_map_add_entry() and set_accel_path() or
GtkMenuItemExt::set_accel_path() instead. Read moreSource§fn add_device_events(&self, device: &Device, events: EventMask)
fn add_device_events(&self, device: &Device, events: EventMask)
events to the event mask for
self. See set_device_events() for details. Read moreSource§fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
fn add_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). Note the
list of mnemonic labels for the widget is cleared when the
widget is destroyed, so the caller must make sure to update
its internal state at this point as well, by using a connection
to the destroy signal or a weak notifier. Read moreSource§fn can_activate_accel(&self, signal_id: u32) -> bool
fn can_activate_accel(&self, signal_id: u32) -> bool
signal_id can currently be activated.
This is done by emitting the can-activate-accel
signal on self; if the signal isn’t overridden by a
handler or in a derived widget, then the default check is
that the widget must be sensitive, and the widget and all
its ancestors mapped. Read moreSource§fn child_focus(&self, direction: DirectionType) -> bool
fn child_focus(&self, direction: DirectionType) -> bool
grab_focus() to move the focus
to a particular widget, and ContainerExt::set_focus_chain() to
change the focus tab order. So you may want to investigate those
functions instead. Read moreSource§fn child_notify(&self, child_property: &str)
fn child_notify(&self, child_property: &str)
child-notify signal for the
[child property][child-properties] child_property
on self. Read moreSource§fn compute_expand(&self, orientation: Orientation) -> bool
fn compute_expand(&self, orientation: Orientation) -> bool
hexpands() or vexpands(). Read moreSource§fn create_pango_context(&self) -> Context
fn create_pango_context(&self) -> Context
pango::Context with the appropriate font map,
font options, font description, and base direction for drawing
text for this widget. See also pango_context(). Read moreSource§fn create_pango_layout(&self, text: Option<&str>) -> Layout
fn create_pango_layout(&self, text: Option<&str>) -> Layout
pango::Layout with the appropriate font map,
font description, and base direction for drawing text for
this widget. Read moreSource§fn device_is_shadowed(&self, device: &Device) -> bool
fn device_is_shadowed(&self, device: &Device) -> bool
true if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending
events to self. This may be used in the
grab-notify signal to check for specific
devices. See device_grab_add(). Read moreSource§fn drag_begin_with_coordinates(
&self,
targets: &TargetList,
actions: DragAction,
button: i32,
event: Option<&Event>,
x: i32,
y: i32,
) -> Option<DragContext>
fn drag_begin_with_coordinates( &self, targets: &TargetList, actions: DragAction, button: i32, event: Option<&Event>, x: i32, y: i32, ) -> Option<DragContext>
WidgetExtManual::drag_source_set() is used. Read moreSource§fn drag_check_threshold(
&self,
start_x: i32,
start_y: i32,
current_x: i32,
current_y: i32,
) -> bool
fn drag_check_threshold( &self, start_x: i32, start_y: i32, current_x: i32, current_y: i32, ) -> bool
start_x, start_y) and ending
at (current_x, current_y) has passed the GTK+ drag threshold, and thus
should trigger the beginning of a drag-and-drop operation. Read moreSource§fn drag_dest_add_image_targets(&self)
fn drag_dest_add_image_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_text_targets(&self)
fn drag_dest_add_text_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_dest_set_target_list().Source§fn drag_dest_add_uri_targets(&self)
fn drag_dest_add_uri_targets(&self)
SelectionData to
the target list of the drag destination. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_dest_set_target_list().Source§fn drag_dest_find_target(
&self,
context: &DragContext,
target_list: Option<&TargetList>,
) -> Option<Atom>
fn drag_dest_find_target( &self, context: &DragContext, target_list: Option<&TargetList>, ) -> Option<Atom>
context and the
dest_target_list, returning the first matching target, otherwise
returning GDK_NONE. dest_target_list should usually be the return
value from drag_dest_get_target_list(), but some widgets may
have different valid targets for different parts of the widget; in
that case, they will have to implement a drag_motion handler that
passes the correct target list to this function. Read moreSource§fn drag_dest_get_target_list(&self) -> Option<TargetList>
fn drag_dest_get_target_list(&self) -> Option<TargetList>
Source§fn drag_dest_get_track_motion(&self) -> bool
fn drag_dest_get_track_motion(&self) -> bool
drag-motion signals. Read moreSource§fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_dest_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_dest_set(). Read moreSource§fn drag_dest_set_track_motion(&self, track_motion: bool)
fn drag_dest_set_track_motion(&self, track_motion: bool)
drag-motion and
drag-leave events regardless of the targets and the
DestDefaults::MOTION flag. Read moreSource§fn drag_dest_unset(&self)
fn drag_dest_unset(&self)
WidgetExtManual::drag_dest_set(). The widget will no longer receive
notification of drags.Source§fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
fn drag_get_data(&self, context: &DragContext, target: &Atom, time_: u32)
drag-data-received signal. Failure of the retrieval
is indicated by the length field of the selection_data
signal parameter being negative. However, when drag_get_data()
is called implicitely because the DestDefaults::DROP was set,
then the widget will not receive notification of failed
drops. Read moreSource§fn drag_highlight(&self)
fn drag_highlight(&self)
drag_unhighlight().
GTK+ calls this automatically if DestDefaults::HIGHLIGHT is set.Source§fn drag_source_add_image_targets(&self)
fn drag_source_add_image_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_image_targets() and
drag_source_set_target_list().Source§fn drag_source_add_text_targets(&self)
fn drag_source_add_text_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_text_targets() and
drag_source_set_target_list().Source§fn drag_source_add_uri_targets(&self)
fn drag_source_add_uri_targets(&self)
SelectionData to
the target list of the drag source. The targets
are added with info = 0. If you need another value,
use TargetList::add_uri_targets() and
drag_source_set_target_list().Source§fn drag_source_get_target_list(&self) -> Option<TargetList>
fn drag_source_get_target_list(&self) -> Option<TargetList>
Source§fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
fn drag_source_set_icon_gicon(&self, icon: &impl IsA<Icon>)
Source§fn drag_source_set_icon_name(&self, icon_name: &str)
fn drag_source_set_icon_name(&self, icon_name: &str)
Source§fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
fn drag_source_set_icon_pixbuf(&self, pixbuf: &Pixbuf)
gdk_pixbuf::Pixbuf. GTK+ retains a reference for pixbuf and will
release it when it is no longer needed. Read moreSource§fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
fn drag_source_set_target_list(&self, target_list: Option<&TargetList>)
WidgetExtManual::drag_source_set(). Read moreSource§fn drag_source_unset(&self)
fn drag_source_unset(&self)
WidgetExtManual::drag_source_set().Source§fn drag_unhighlight(&self)
fn drag_unhighlight(&self)
drag_highlight() from
a widget.Source§fn draw(&self, cr: &Context)
fn draw(&self, cr: &Context)
self to cr. The top left corner of the widget will be
drawn to the currently set origin point of cr. Read moreSource§fn error_bell(&self)
fn error_bell(&self)
gtk-error-bell setting is true, it calls
Window::beep(), otherwise it does nothing. Read moreSource§fn event(&self, event: &Event) -> bool
fn event(&self, event: &Event) -> bool
main_do_event() so the event will behave as if
it were in the event queue. Don’t synthesize expose events; instead,
use Window::invalidate_rect() to invalidate a region of the
window. Read moreSource§fn freeze_child_notify(&self)
fn freeze_child_notify(&self)
child-notify signals on self. The
signals are queued until thaw_child_notify() is called
on self. Read moreSource§fn accessible(&self) -> Option<Object>
fn accessible(&self) -> Option<Object>
Source§fn action_group(&self, prefix: &str) -> Option<ActionGroup>
fn action_group(&self, prefix: &str) -> Option<ActionGroup>
gio::ActionGroup that was registered using prefix. The resulting
gio::ActionGroup may have been registered to self or any Widget in its
ancestry. Read moreSource§fn allocated_baseline(&self) -> i32
fn allocated_baseline(&self) -> i32
self.
This function is intended to be used when implementing handlers
for the draw function, and when allocating child
widgets in size_allocate. Read moreSource§fn allocated_height(&self) -> i32
fn allocated_height(&self) -> i32
Source§fn allocated_size(&self) -> (Allocation, i32)
fn allocated_size(&self) -> (Allocation, i32)
Source§fn allocated_width(&self) -> i32
fn allocated_width(&self) -> i32
Source§fn allocation(&self) -> Allocation
fn allocation(&self) -> Allocation
Source§fn ancestor(&self, widget_type: Type) -> Option<Widget>
fn ancestor(&self, widget_type: Type) -> Option<Widget>
self with type widget_type. For example,
gtk_widget_get_ancestor (widget, GTK_TYPE_BOX) gets
the first Box that’s an ancestor of self. No reference will be
added to the returned widget; it should not be unreferenced. See note
about checking for a toplevel Window in the docs for
toplevel(). Read moreSource§fn is_app_paintable(&self) -> bool
fn is_app_paintable(&self) -> bool
Source§fn can_default(&self) -> bool
fn can_default(&self) -> bool
Source§fn is_child_visible(&self) -> bool
fn is_child_visible(&self) -> bool
set_child_visible().
If you feel a need to use this function, your code probably
needs reorganization. Read moreSource§fn clip(&self) -> Allocation
fn clip(&self) -> Allocation
Source§fn clipboard(&self, selection: &Atom) -> Clipboard
fn clipboard(&self, selection: &Atom) -> Clipboard
self. self must have a gdk::Display
associated with it, so must be attached to a toplevel
window. Read moreSource§fn device_is_enabled(&self, device: &Device) -> bool
fn device_is_enabled(&self, device: &Device) -> bool
Source§fn device_events(&self, device: &Device) -> EventMask
fn device_events(&self, device: &Device) -> EventMask
device operates on it. Read moreSource§fn direction(&self) -> TextDirection
fn direction(&self) -> TextDirection
set_direction(). Read moreSource§fn display(&self) -> Display
fn display(&self) -> Display
gdk::Display for the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window at the top. Read moreSource§fn is_double_buffered(&self) -> bool
fn is_double_buffered(&self) -> bool
Source§fn gets_focus_on_click(&self) -> bool
fn gets_focus_on_click(&self) -> bool
set_focus_on_click(). Read moreSource§fn font_map(&self) -> Option<FontMap>
fn font_map(&self) -> Option<FontMap>
set_font_map(). Read moreSource§fn font_options(&self) -> Option<FontOptions>
fn font_options(&self) -> Option<FontOptions>
cairo::FontOptions used for Pango rendering. When not set,
the defaults font options for the gdk::Screen will be used. Read moreSource§fn frame_clock(&self) -> Option<FrameClock>
fn frame_clock(&self) -> Option<FrameClock>
FrameClock::frame_time(), in order to get a time to use for
animating. For example you might record the start of the animation
with an initial value from FrameClock::frame_time(), and
then update the animation by calling
FrameClock::frame_time() again during each repaint. Read moreSource§fn has_tooltip(&self) -> bool
fn has_tooltip(&self) -> bool
has-tooltip for more information. Read moreSource§fn has_window(&self) -> bool
fn has_window(&self) -> bool
Source§fn is_hexpand_set(&self) -> bool
fn is_hexpand_set(&self) -> bool
set_hexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn margin_bottom(&self) -> i32
fn margin_bottom(&self) -> i32
margin-bottom property. Read moreSource§fn margin_end(&self) -> i32
fn margin_end(&self) -> i32
margin-end property. Read moreSource§fn margin_start(&self) -> i32
fn margin_start(&self) -> i32
margin-start property. Read moreSource§fn margin_top(&self) -> i32
fn margin_top(&self) -> i32
margin-top property. Read moreSource§fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
fn modifier_mask(&self, intent: ModifierIntent) -> ModifierType
self’s windowing system backend
uses for a particular purpose. Read moreSource§fn widget_name(&self) -> GString
fn widget_name(&self) -> GString
set_widget_name() for the
significance of widget names. Read moreSource§fn is_no_show_all(&self) -> bool
fn is_no_show_all(&self) -> bool
no-show-all property,
which determines whether calls to show_all()
will affect this widget. Read moreSource§fn opacity(&self) -> f64
fn opacity(&self) -> f64
set_opacity(). Read moreSource§fn pango_context(&self) -> Context
fn pango_context(&self) -> Context
pango::Context with the appropriate font map, font description,
and base direction for this widget. Unlike the context returned
by create_pango_context(), this context is owned by
the widget (it can be used until the screen for the widget changes
or the widget is removed from its toplevel), and will be updated to
match any changes to the widget’s attributes. This can be tracked
by using the screen-changed signal on the widget. Read moreSource§fn parent_window(&self) -> Option<Window>
fn parent_window(&self) -> Option<Window>
Source§fn path(&self) -> WidgetPath
fn path(&self) -> WidgetPath
WidgetPath representing self, if the widget
is not connected to a toplevel widget, a partial path will be
created. Read moreSource§fn preferred_height(&self) -> (i32, i32)
fn preferred_height(&self) -> (i32, i32)
Source§fn preferred_height_and_baseline_for_width(
&self,
width: i32,
) -> (i32, i32, i32, i32)
fn preferred_height_and_baseline_for_width( &self, width: i32, ) -> (i32, i32, i32, i32)
width, or the default height if width is -1. The baselines may be -1 which means
that no baseline is requested for this widget. Read moreSource§fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
fn preferred_height_for_width(&self, width: i32) -> (i32, i32)
width. Read moreSource§fn preferred_size(&self) -> (Requisition, Requisition)
fn preferred_size(&self) -> (Requisition, Requisition)
Source§fn preferred_width(&self) -> (i32, i32)
fn preferred_width(&self) -> (i32, i32)
Source§fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
fn preferred_width_for_height(&self, height: i32) -> (i32, i32)
height. Read moreSource§fn is_realized(&self) -> bool
fn is_realized(&self) -> bool
self is realized. Read moreSource§fn receives_default(&self) -> bool
fn receives_default(&self) -> bool
self is always treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn request_mode(&self) -> SizeRequestMode
fn request_mode(&self) -> SizeRequestMode
Source§fn scale_factor(&self) -> i32
fn scale_factor(&self) -> i32
Source§fn screen(&self) -> Option<Screen>
fn screen(&self) -> Option<Screen>
gdk::Screen from the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a Window
at the top. Read moreSource§fn get_sensitive(&self) -> bool
fn get_sensitive(&self) -> bool
set_sensitive()). Read moreSource§fn settings(&self) -> Option<Settings>
fn settings(&self) -> Option<Settings>
Source§fn size_request(&self) -> (i32, i32)
fn size_request(&self) -> (i32, i32)
set_size_request(). A value of -1 stored in width or
height indicates that that dimension has not been set explicitly
and the natural requisition of the widget will be used instead. See
set_size_request(). To get the size a widget will
actually request, call preferred_size() instead of
this function. Read moreSource§fn state_flags(&self) -> StateFlags
fn state_flags(&self) -> StateFlags
StateFlags::INSENSITIVE state will be
returned, that is, also based on parent insensitivity, even if
self itself is sensitive. Read moreSource§fn style_context(&self) -> StyleContext
fn style_context(&self) -> StyleContext
self. The returned object is
guaranteed to be the same for the lifetime of self. Read moreSource§fn supports_multidevice(&self) -> bool
fn supports_multidevice(&self) -> bool
true if self is multiple pointer aware. See
set_support_multidevice() for more information. Read moreSource§fn tooltip_markup(&self) -> Option<GString>
fn tooltip_markup(&self) -> Option<GString>
self. Read moreSource§fn tooltip_text(&self) -> Option<GString>
fn tooltip_text(&self) -> Option<GString>
self. Read moreSource§fn tooltip_window(&self) -> Option<Window>
fn tooltip_window(&self) -> Option<Window>
Window of the current tooltip. This can be the
GtkWindow created by default, or the custom tooltip window set
using set_tooltip_window(). Read moreSource§fn toplevel(&self) -> Option<Widget>
fn toplevel(&self) -> Option<Widget>
Source§fn valign_with_baseline(&self) -> Align
fn valign_with_baseline(&self) -> Align
Source§fn vexpands(&self) -> bool
fn vexpands(&self) -> bool
Source§fn is_vexpand_set(&self) -> bool
fn is_vexpand_set(&self) -> bool
set_vexpand() has been used to
explicitly set the expand flag on this widget. Read moreSource§fn get_visible(&self) -> bool
fn get_visible(&self) -> bool
is_visible() instead. Read moreSource§fn visual(&self) -> Option<Visual>
fn visual(&self) -> Option<Visual>
self. Read moreSource§fn grab_default(&self)
fn grab_default(&self)
self to become the default widget. self must be able to be
a default widget; typically you would ensure this yourself
by calling set_can_default() with a true value.
The default widget is activated when
the user presses Enter in a window. Default widgets must be
activatable, that is, activate() should affect them. Note
that Entry widgets require the “activates-default” property
set to true before they activate the default widget when Enter
is pressed and the Entry is focused.Source§fn grab_focus(&self)
fn grab_focus(&self)
Source§fn grab_remove(&self)
fn grab_remove(&self)
Source§fn has_default(&self) -> bool
fn has_default(&self) -> bool
self is the current default widget within its
toplevel. See set_can_default(). Read moreSource§fn has_focus(&self) -> bool
fn has_focus(&self) -> bool
is_focus() for the difference between having the global
input focus, and only having the focus within a toplevel. Read moreSource§fn has_grab(&self) -> bool
fn has_grab(&self) -> bool
Source§fn has_screen(&self) -> bool
fn has_screen(&self) -> bool
gdk::Screen is associated with
this widget. All toplevel widgets have an associated
screen, and all widgets added into a hierarchy with a toplevel
window at the top. Read moreSource§fn has_visible_focus(&self) -> bool
fn has_visible_focus(&self) -> bool
self. See GtkWindowExt::gets_focus_visible() for more information
about focus indication. Read moreSource§fn hide(&self)
fn hide(&self)
show(), causing the widget to be
hidden (invisible to the user).Source§fn in_destruction(&self) -> bool
fn in_destruction(&self) -> bool
Source§fn init_template(&self)
fn init_template(&self)
gtk_widget_class_set_template() Read moreSource§fn input_shape_combine_region(&self, region: Option<&Region>)
fn input_shape_combine_region(&self, region: Option<&Region>)
Window::input_shape_combine_region() for more information. Read moreSource§fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
fn insert_action_group(&self, name: &str, group: Option<&impl IsA<ActionGroup>>)
group into self. Children of self that implement
Actionable can then be associated with actions in group by
setting their “action-name” to
prefix.action-name. Read moreSource§fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
fn is_ancestor(&self, ancestor: &impl IsA<Widget>) -> bool
self is somewhere inside ancestor, possibly with
intermediate containers. Read moreSource§fn is_drawable(&self) -> bool
fn is_drawable(&self) -> bool
self can be drawn to. A widget can be drawn
to if it is mapped and visible. Read moreSource§fn is_sensitive(&self) -> bool
fn is_sensitive(&self) -> bool
Source§fn is_toplevel(&self) -> bool
fn is_toplevel(&self) -> bool
self is a toplevel widget. Read moreSource§fn is_visible(&self) -> bool
fn is_visible(&self) -> bool
keynav-failed signal on the widget and its return
value should be interpreted in a way similar to the return value of
child_focus(): Read moreSource§fn list_accel_closures(&self) -> Vec<Closure>
fn list_accel_closures(&self) -> Vec<Closure>
self for accelerator group connections
with AccelGroupExtManual::connect_accel_group_by_path() or AccelGroupExtManual::connect_accel_group().
The closures can be used to monitor accelerator changes on self,
by connecting to the AccelGroup signal of the
AccelGroup of a closure which can be found out with
AccelGroup::from_accel_closure(). Read moreSource§fn list_action_prefixes(&self) -> Vec<GString>
fn list_action_prefixes(&self) -> Vec<GString>
None-terminated array of strings containing the prefixes of
gio::ActionGroup’s available to self. Read moreSource§fn list_mnemonic_labels(&self) -> Vec<Widget>
fn list_mnemonic_labels(&self) -> Vec<Widget>
LabelExt::set_mnemonic_widget()). Read moreSource§fn map(&self)
fn map(&self)
Source§fn mnemonic_activate(&self, group_cycling: bool) -> bool
fn mnemonic_activate(&self, group_cycling: bool) -> bool
mnemonic-activate signal. Read moreSource§fn queue_allocate(&self)
fn queue_allocate(&self)
Source§fn queue_compute_expand(&self)
fn queue_compute_expand(&self)
self as needing to recompute its expand flags. Call
this function when setting legacy expand child properties
on the child of a container. Read moreSource§fn queue_draw(&self)
fn queue_draw(&self)
queue_draw_area() for the
entire area of a widget.Source§fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
fn queue_draw_area(&self, x: i32, y: i32, width: i32, height: i32)
Source§fn queue_draw_region(&self, region: &Region)
fn queue_draw_region(&self, region: &Region)
self defined by region by calling
Window::invalidate_region() on the widget’s window and all its
child windows. Once the main loop becomes idle (after the current
batch of events has been processed, roughly), the window will
receive expose events for the union of all regions that have been
invalidated. Read moreSource§fn queue_resize(&self)
fn queue_resize(&self)
Label, Label
queues a resize to ensure there’s enough space for the new text. Read moreSource§fn queue_resize_no_redraw(&self)
fn queue_resize_no_redraw(&self)
queue_resize(),
except that the widget is not invalidated.Source§fn realize(&self)
fn realize(&self)
Source§fn register_window(&self, window: &Window)
fn register_window(&self, window: &Window)
gdk::Window with the widget and sets it up so that
the widget receives events for it. Call unregister_window()
when destroying the window. Read moreSource§fn remove_accelerator(
&self,
accel_group: &impl IsA<AccelGroup>,
accel_key: u32,
accel_mods: ModifierType,
) -> bool
fn remove_accelerator( &self, accel_group: &impl IsA<AccelGroup>, accel_key: u32, accel_mods: ModifierType, ) -> bool
Source§fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
fn remove_mnemonic_label(&self, label: &impl IsA<Widget>)
list_mnemonic_labels()). The widget
must have previously been added to the list with
add_mnemonic_label(). Read moreSource§fn reset_style(&self)
fn reset_style(&self)
self and all descendants
by updating its widget path. GtkContainers may want
to use this on a child when reordering it in a way that a different
style might apply to it. See also ContainerExt::path_for_child().Source§fn set_accel_path(
&self,
accel_path: Option<&str>,
accel_group: Option<&impl IsA<AccelGroup>>,
)
fn set_accel_path( &self, accel_path: Option<&str>, accel_group: Option<&impl IsA<AccelGroup>>, )
accel_group, and an accelerator path,
accel_path, sets up an accelerator in accel_group so whenever the
key binding that is defined for accel_path is pressed, self
will be activated. This removes any accelerators (for any
accelerator group) installed by previous calls to
set_accel_path(). Associating accelerators with
paths allows them to be modified by the user and the modifications
to be saved for future use. (See gtk_accel_map_save().) Read moreSource§fn set_allocation(&self, allocation: &Allocation)
fn set_allocation(&self, allocation: &Allocation)
Source§fn set_app_paintable(&self, app_paintable: bool)
fn set_app_paintable(&self, app_paintable: bool)
Source§fn set_can_default(&self, can_default: bool)
fn set_can_default(&self, can_default: bool)
self can be a default widget. See
grab_default() for details about the meaning of
“default”. Read moreSource§fn set_can_focus(&self, can_focus: bool)
fn set_can_focus(&self, can_focus: bool)
self can own the input focus. See
grab_focus() for actually setting the input focus on a
widget. Read moreSource§fn set_child_visible(&self, is_visible: bool)
fn set_child_visible(&self, is_visible: bool)
Source§fn set_clip(&self, clip: &Allocation)
fn set_clip(&self, clip: &Allocation)
set_allocation() (or after chaining up
to the parent class), because that function resets the clip. Read moreSource§fn set_device_enabled(&self, device: &Device, enabled: bool)
fn set_device_enabled(&self, device: &Device, enabled: bool)
Source§fn set_device_events(&self, device: &Device, events: EventMask)
fn set_device_events(&self, device: &Device, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive from device. Keep
in mind that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider add_device_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with windowless widgets (which return
false from has_window());
to get events on those widgets, place them inside a EventBox
and receive events on the event box. Read moreSource§fn set_direction(&self, dir: TextDirection)
fn set_direction(&self, dir: TextDirection)
Source§fn set_focus_on_click(&self, focus_on_click: bool)
fn set_focus_on_click(&self, focus_on_click: bool)
Source§fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
fn set_font_map(&self, font_map: Option<&impl IsA<FontMap>>)
Source§fn set_font_options(&self, options: Option<&FontOptions>)
fn set_font_options(&self, options: Option<&FontOptions>)
cairo::FontOptions used for Pango rendering in this widget.
When not set, the default font options for the gdk::Screen will be used. Read moreSource§fn set_halign(&self, align: Align)
fn set_halign(&self, align: Align)
Source§fn set_has_tooltip(&self, has_tooltip: bool)
fn set_has_tooltip(&self, has_tooltip: bool)
self to has_tooltip. See
has-tooltip for more information. Read moreSource§fn set_has_window(&self, has_window: bool)
fn set_has_window(&self, has_window: bool)
self has a gdk::Window of its own. Note that
all realized widgets have a non-None “window” pointer
(window() never returns a None window when a widget
is realized), but for many of them it’s actually the gdk::Window of
one of its parent widgets. Widgets that do not create a window for
themselves in realize must announce this by
calling this function with has_window = false. Read moreSource§fn set_hexpand(&self, expand: bool)
fn set_hexpand(&self, expand: bool)
Source§fn set_hexpand_set(&self, set: bool)
fn set_hexpand_set(&self, set: bool)
hexpands()) will
be used. Read moreSource§fn set_mapped(&self, mapped: bool)
fn set_mapped(&self, mapped: bool)
Source§fn set_margin_bottom(&self, margin: i32)
fn set_margin_bottom(&self, margin: i32)
Source§fn set_margin_end(&self, margin: i32)
fn set_margin_end(&self, margin: i32)
Source§fn set_margin_start(&self, margin: i32)
fn set_margin_start(&self, margin: i32)
Source§fn set_margin_top(&self, margin: i32)
fn set_margin_top(&self, margin: i32)
Source§fn set_widget_name(&self, name: &str)
fn set_widget_name(&self, name: &str)
Source§fn set_no_show_all(&self, no_show_all: bool)
fn set_no_show_all(&self, no_show_all: bool)
no-show-all property, which determines whether
calls to show_all() will affect this widget. Read moreSource§fn set_opacity(&self, opacity: f64)
fn set_opacity(&self, opacity: f64)
self to be rendered partially transparent,
with opacity 0 being fully transparent and 1 fully opaque. (Opacity values
are clamped to the [0,1] range.).
This works on both toplevel widget, and child widgets, although there
are some limitations: Read moreSource§fn set_parent(&self, parent: &impl IsA<Widget>)
fn set_parent(&self, parent: &impl IsA<Widget>)
Container.
Sets the container as the parent of self, and takes care of
some details such as updating the state and style of the child
to reflect its new location. The opposite function is
unparent(). Read moreSource§fn set_parent_window(&self, parent_window: &Window)
fn set_parent_window(&self, parent_window: &Window)
self. Read moreSource§fn set_realized(&self, realized: bool)
fn set_realized(&self, realized: bool)
GdkWindows for the self have been created
and registered. Read moreSource§fn set_receives_default(&self, receives_default: bool)
fn set_receives_default(&self, receives_default: bool)
self will be treated as the default widget
within its toplevel when it has the focus, even if another widget
is the default. Read moreSource§fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
fn set_redraw_on_allocate(&self, redraw_on_allocate: bool)
Source§fn set_sensitive(&self, sensitive: bool)
fn set_sensitive(&self, sensitive: bool)
Source§fn set_size_request(&self, width: i32, height: i32)
fn set_size_request(&self, width: i32, height: i32)
width by height. You can use this
function to force a widget to be larger than it normally would be. Read moreSource§fn set_state_flags(&self, flags: StateFlags, clear: bool)
fn set_state_flags(&self, flags: StateFlags, clear: bool)
Source§fn set_support_multidevice(&self, support_multidevice: bool)
fn set_support_multidevice(&self, support_multidevice: bool)
true,
self will start receiving multiple, per device enter/leave events. Note
that if custom GdkWindows are created in realize,
Window::set_support_multidevice() will have to be called manually on them. Read moreSource§fn set_tooltip_markup(&self, markup: Option<&str>)
fn set_tooltip_markup(&self, markup: Option<&str>)
markup as the contents of the tooltip, which is marked up with
the [Pango text markup language][PangoMarkupFormat]. Read moreSource§fn set_tooltip_text(&self, text: Option<&str>)
fn set_tooltip_text(&self, text: Option<&str>)
text as the contents of the tooltip. This function will take
care of setting has-tooltip to true and of the default
handler for the query-tooltip signal. Read moreSource§fn set_valign(&self, align: Align)
fn set_valign(&self, align: Align)
Source§fn set_vexpand(&self, expand: bool)
fn set_vexpand(&self, expand: bool)
Source§fn set_vexpand_set(&self, set: bool)
fn set_vexpand_set(&self, set: bool)
vexpands()) will
be used. Read moreSource§fn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
self. Note that setting this to
true doesn’t mean the widget is actually viewable, see
get_visible(). Read moreSource§fn set_visual(&self, visual: Option<&Visual>)
fn set_visual(&self, visual: Option<&Visual>)
GdkWindows. The visual must be on the same gdk::Screen as
returned by screen(), so handling the
screen-changed signal is necessary. Read moreSource§fn set_window(&self, window: Window)
fn set_window(&self, window: Window)
realize implementation. The window passed is
usually either new window created with gdk::Window::new(), or the
window of its parent widget as returned by
parent_window(). Read moreSource§fn shape_combine_region(&self, region: Option<&Region>)
fn shape_combine_region(&self, region: Option<&Region>)
Window::shape_combine_region()
for more information. Read moreSource§fn show(&self)
fn show(&self)
show_all() on the
container, instead of individually showing the widgets. Read moreSource§fn show_all(&self)
fn show_all(&self)
Source§fn show_now(&self)
fn show_now(&self)
Window that has not yet been shown), enter the main
loop and wait for the window to actually be mapped. Be careful;
because the main loop is running, anything can happen during
this function.Source§fn size_allocate(&self, allocation: &Allocation)
fn size_allocate(&self, allocation: &Allocation)
Source§fn size_allocate_with_baseline(
&self,
allocation: &mut Allocation,
baseline: i32,
)
fn size_allocate_with_baseline( &self, allocation: &mut Allocation, baseline: i32, )
Source§fn style_get_property(&self, property_name: &str) -> Value
fn style_get_property(&self, property_name: &str) -> Value
self. Read moreSource§fn thaw_child_notify(&self)
fn thaw_child_notify(&self)
freeze_child_notify().
This causes all queued child-notify signals on self to be
emitted.Source§fn translate_coordinates(
&self,
dest_widget: &impl IsA<Widget>,
src_x: i32,
src_y: i32,
) -> Option<(i32, i32)>
fn translate_coordinates( &self, dest_widget: &impl IsA<Widget>, src_x: i32, src_y: i32, ) -> Option<(i32, i32)>
self’s allocation to coordinates
relative to dest_widget’s allocations. In order to perform this
operation, both widgets must be realized, and must share a common
toplevel. Read moreSource§fn trigger_tooltip_query(&self)
fn trigger_tooltip_query(&self)
self
is located. See Tooltip::trigger_tooltip_query() for more
information.Source§fn unmap(&self)
fn unmap(&self)
Source§fn unparent(&self)
fn unparent(&self)
Container, to dissociate a child from the container.Source§fn unregister_window(&self, window: &Window)
fn unregister_window(&self, window: &Window)
gdk::Window from the widget that was previously set up with
register_window(). You need to call this when the window is
no longer used by the widget, such as when you destroy it. Read moreSource§fn unset_state_flags(&self, flags: StateFlags)
fn unset_state_flags(&self, flags: StateFlags)
set_state_flags(). Read morefn is_composite_child(&self) -> bool
Source§fn set_expand(&self, expand: bool)
fn set_expand(&self, expand: bool)
fn set_has_default(&self, has_default: bool)
fn set_has_focus(&self, has_focus: bool)
fn height_request(&self) -> i32
fn set_height_request(&self, height_request: i32)
fn set_is_focus(&self, is_focus: bool)
Source§fn margin(&self) -> i32
fn margin(&self) -> i32
Source§fn set_margin(&self, margin: i32)
fn set_margin(&self, margin: i32)
fn width_request(&self) -> i32
fn set_width_request(&self, width_request: i32)
fn connect_accel_closures_changed<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_can_activate_accel<F: Fn(&Self, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>(
&self,
detail: Option<&str>,
f: F,
) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self, &ParamSpec) + 'static>( &self, detail: Option<&str>, f: F, ) -> SignalHandlerId
Source§fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_configure_event<F: Fn(&Self, &EventConfigure) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has changed. Read moreSource§fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_damage_event<F: Fn(&Self, &EventExpose) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets drawn into.
The region/area members of the event shows what area of the redirected
drawable was drawn into. Read moreSource§fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_delete_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
WidgetExtManual::hide_on_delete() to
this signal will cause the window to be hidden instead, so that
it can later be shown again without reconstructing it. Read moreSource§fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_destroy<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_destroy_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window is destroyed.
You rarely get this signal, because most widgets disconnect themselves
from their window before they destroy it, so no widget owns the
window at destroy time. Read moreSource§fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_direction_changed<F: Fn(&Self, TextDirection) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_begin<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag_source_set_icon_pixbuf(). Read moreSource§fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_delete<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::DragAction::MOVE is successfully completed. The signal
handler is responsible for deleting the data that has been dropped. What
“delete” means depends on the context of the drag operation. Read moreSource§fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_get<F: Fn(&Self, &DragContext, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
data with the data in the format which
is indicated by info. See SelectionData::set() and
SelectionData::set_text(). Read moreSource§fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_data_received<F: Fn(&Self, &DragContext, i32, i32, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_drop<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
false and no further processing is necessary.
Otherwise, the handler returns true. In this case, the handler must
ensure that gtk_drag_finish() is called to let the source know that
the drop is done. The call to gtk_drag_finish() can be done either
directly or in a drag-data-received handler which gets
triggered by calling drag_get_data() to receive the data for one
or more of the supported targets. Read moreSource§fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_end<F: Fn(&Self, &DragContext) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-begin. Read moreSource§fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_failed<F: Fn(&Self, &DragContext, DragResult) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
true is the failure has
been already handled (not showing the default “drag operation failed”
animation), otherwise it returns false. Read moreSource§fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_leave<F: Fn(&Self, &DragContext, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
drag-motion, e.g. undo highlighting
with drag_unhighlight(). Read moreSource§fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_drag_motion<F: Fn(&Self, &DragContext, i32, i32, u32) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_draw<F: Fn(&Self, &Context) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s top left corner must be painted at the origin of
the passed in context and be sized to the values returned by
allocated_width() and
allocated_height(). Read moreSource§fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_enter_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
key-press-event) and finally a generic
event-after signal. Read moreSource§fn connect_event_after<F: Fn(&Self, &Event) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_event_after<F: Fn(&Self, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus<F: Fn(&Self, DirectionType) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_in_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_focus_out_event<F: Fn(&Self, &EventFocus) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_broken_event<F: Fn(&Self, &EventGrabBroken) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget gets broken. Read morefn connect_grab_focus<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_grab_focus(&self)
Source§fn connect_grab_notify<F: Fn(&Self, bool) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_grab_notify<F: Fn(&Self, bool) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_hide<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is hidden, for example with
hide().Source§fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_hierarchy_changed<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_press_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_key_release_event<F: Fn(&Self, &EventKey) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
keynav_failed() for details. Read moreSource§fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_leave_notify_event<F: Fn(&Self, &EventCrossing) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_map<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be mapped, that is
when the widget is visible (which is controlled with
set_visible()) and all its parents up to the toplevel widget
are also visible. Once the map has occurred, map-event will
be emitted. Read moreSource§fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_mnemonic_activate<F: Fn(&Self, bool) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_motion_notify_event<F: Fn(&Self, &EventMotion) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window. Read morefn connect_move_focus<F: Fn(&Self, DirectionType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_focus(&self, direction: DirectionType)
Source§fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_parent_set<F: Fn(&Self, Option<&Widget>) + 'static>( &self, f: F, ) -> SignalHandlerId
Entry widget creates
a menu with clipboard commands. See the
[Popup Menu Migration Checklist][checklist-popup-menu]
for an example of how to use this signal. Read moreSource§fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_property_notify_event<F: Fn(&Self, &EventProperty) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has been changed or deleted. Read moreSource§fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_in_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_IN_MASK mask. Read moreSource§fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_proximity_out_event<F: Fn(&Self, &EventProximity) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
gdk::Window associated to the widget needs
to enable the gdk::EventMask::PROXIMITY_OUT_MASK mask. Read moreSource§fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
has-tooltip is true and the hover timeout
has expired with the cursor hovering “above” widget; or emitted when widget got
focus in keyboard mode. Read moreSource§fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_realize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is associated with a
gdk::Window, which means that realize() has been called or the
widget has been mapped (that is, it is going to be drawn).Source§fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_screen_changed<F: Fn(&Self, Option<&Screen>) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_scroll_event<F: Fn(&Self, &EventScroll) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_clear_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window has lost ownership of a selection. Read morefn connect_selection_get<F: Fn(&Self, &SelectionData, u32, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_notify_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_selection_received<F: Fn(&Self, &SelectionData, u32) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_selection_request_event<F: Fn(&Self, &EventSelection) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window. Read moreSource§fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_show<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is shown, for example with
show().Source§fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_show_help<F: Fn(&Self, WidgetHelpType) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_show_help(&self, help_type: WidgetHelpType) -> bool
Source§fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_size_allocate<F: Fn(&Self, &Allocation) + 'static>( &self, f: F, ) -> SignalHandlerId
allocation Read moreSource§fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_state_flags_changed<F: Fn(&Self, StateFlags) + 'static>( &self, f: F, ) -> SignalHandlerId
state_flags(). Read moreSource§fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_style_updated<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
changed signal is emitted on the widget’s associated
StyleContext as returned by style_context(). Read morefn connect_touch_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Source§fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unmap<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
widget is going to be unmapped, which
means that either it or any of its parents up to the toplevel widget have
been set as hidden. Read moreSource§fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_unrealize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
gdk::Window associated with
widget is destroyed, which means that unrealize() has been
called or the widget has been unmapped (that is, it is going to be
hidden).Source§fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_window_state_event<F: Fn(&Self, &EventWindowState) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget changes. Read morefn connect_app_paintable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_can_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_composite_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_events_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_expand_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_focus_on_click_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_halign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_has_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_has_tooltip_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_height_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_hexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_is_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_margin_bottom_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_end_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_start_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_margin_top_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_no_show_all_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_opacity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_receives_default_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_scale_factor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_sensitive_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_markup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_tooltip_text_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_valign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_vexpand_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_vexpand_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_width_request_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_window_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Source§impl<O> WidgetExtManual for O
impl<O> WidgetExtManual for O
Source§fn drag_dest_set(
&self,
flags: DestDefaults,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_dest_set( &self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction, )
Source§fn drag_source_set(
&self,
start_button_mask: ModifierType,
targets: &[TargetEntry],
actions: DragAction,
)
fn drag_source_set( &self, start_button_mask: ModifierType, targets: &[TargetEntry], actions: DragAction, )
Source§fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_map_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
mapped. A window is mapped when it becomes visible on the screen. Read moreSource§fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
fn connect_unmap_event<F: Fn(&Self, &Event) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
widget’s window is
unmapped. A window is unmapped when it becomes invisible on the screen. Read moreSource§fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>(
&self,
callback: P,
) -> TickCallbackId
fn add_tick_callback<P: Fn(&Self, &FrameClock) -> ControlFlow + 'static>( &self, callback: P, ) -> TickCallbackId
Label),
then you will have to call WidgetExt::queue_resize() or
WidgetExt::queue_draw_area() yourself. Read moreSource§fn add_events(&self, events: EventMask)
fn add_events(&self, events: EventMask)
events to the event mask for
self. See WidgetExtManual::set_events() and the
[input handling overview][event-masks] for details. Read moreSource§fn events(&self) -> EventMask
fn events(&self) -> EventMask
gdk::EventMask) for the widget. These are the
events that the widget will receive. Read moreSource§fn set_events(&self, events: EventMask)
fn set_events(&self, events: EventMask)
gdk::EventMask) for a widget. The event
mask determines which events a widget will receive. Keep in mind
that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget’s functionality,
so be careful. This function must be called while a widget is
unrealized. Consider WidgetExtManual::add_events() for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can’t be used with widgets that have no window.
(See WidgetExt::has_window()). To get events on those widgets,
place them inside a EventBox and receive events on the event
box. Read moreSource§fn hide_on_delete(&self) -> Propagation
fn hide_on_delete(&self) -> Propagation
delete-event
signal on a Window. The function calls WidgetExt::hide() on its
argument, then returns true. If connected to ::delete-event, the
result is that clicking the close button for a window (on the
window frame, top right corner usually) will hide but not destroy
the window. By default, GTK+ destroys windows when ::delete-event
is received. Read more