pub struct CheckMenuItem { /* private fields */ }Expand description
A CheckMenuItem is a menu item that maintains the state of a boolean
value in addition to a MenuItem usual role in activating application
code.
A check box indicating the state of the boolean value is displayed
at the left side of the MenuItem. Activating the MenuItem
toggles the value.
§CSS nodes
⚠️ The following code is in plain ⚠️
menuitem
├── check.left
╰── <child>GtkCheckMenuItem has a main CSS node with name menuitem, and a subnode with name check, which gets the .left or .right style class.
§Properties
§active
Readable | Writeable
§draw-as-radio
Readable | Writeable
§inconsistent
Readable | Writeable
MenuItem
§accel-path
Sets the accelerator path of the menu item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistant storage.
Readable | Writeable
§label
The text for the child label.
Readable | Writeable
§right-justified
Sets whether the menu item appears justified at the right side of a menu bar.
Readable | Writeable
§submenu
The submenu attached to the menu item, or None if it has none.
Readable | Writeable
§use-underline
true if underlines in the text indicate mnemonics.
Readable | Writeable
Widget
§app-paintable
Readable | Writeable
§can-default
Readable | Writeable
§can-focus
Readable | Writeable
§composite-child
Readable
§double-buffered
Whether the widget is double buffered.
Readable | Writeable
§events
Readable | Writeable
§expand
Whether to expand in both directions. Setting this sets both hexpand and vexpand
Readable | Writeable
§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 | Writeable
§halign
How to distribute horizontal space if widget gets extra space, see Align
Readable | Writeable
§has-default
Readable | Writeable
§has-focus
Readable | Writeable
§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 | Writeable
§height-request
Readable | Writeable
§hexpand
Whether to expand horizontally. See WidgetExt::set_hexpand().
Readable | Writeable
§hexpand-set
Whether to use the hexpand property. See WidgetExt::is_hexpand_set().
Readable | Writeable
§is-focus
Readable | Writeable
§margin
Sets all four sides’ margin at once. If read, returns max margin on any side.
Readable | Writeable
§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 | Writeable
§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 | Writeable
§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 | Writeable
§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 | Writeable
§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 | Writeable
§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 | Writeable
§name
Readable | Writeable
§no-show-all
Readable | Writeable
§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 | Writeable
§parent
Readable | Writeable
§receives-default
Readable | Writeable
§scale-factor
The scale factor of the widget. See WidgetExt::scale_factor() for
more details about widget scaling.
Readable
§sensitive
Readable | Writeable
§style
The style of the widget, which contains information about how it will look (colors, etc).
Readable | Writeable
§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 | Writeable
§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 | Writeable
§valign
How to distribute vertical space if widget gets extra space, see Align
Readable | Writeable
§vexpand
Whether to expand vertically. See WidgetExt::set_vexpand().
Readable | Writeable
§vexpand-set
Whether to use the vexpand property. See WidgetExt::is_vexpand_set().
Readable | Writeable
§visible
Readable | Writeable
§width-request
Readable | Writeable
§window
The widget’s window if it is realized, None otherwise.
Readable
Activatable
§related-action
The action that this activatable will activate and receive updates from for various states and possibly appearance.
GtkActivatableimplementors need to handle the this property and callgtk_activatable_do_set_related_action()when it changes.
Readable | Writeable
§use-action-appearance
Whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance.
See the GtkAction documentation directly to find which properties
should be ignored by the GtkActivatable when this property is false.
GtkActivatableimplementors need to handle this property and callgtk_activatable_sync_action_properties()on the activatable widget when it changes.
Readable | Writeable
§Signals
§toggled
This signal is emitted when the state of the check box is changed.
A signal handler can use CheckMenuItemExt::is_active()
to discover the new state.
MenuItem
§activate
Emitted when the item is activated.
Action
§activate-item
Emitted when the item is activated, but also if the menu item has a
submenu. For normal applications, the relevant signal is
activate.
§deselect
§select
§toggle-size-allocate
§toggle-size-request
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
The ::drag-data-received signal is emitted on the drop site when the
dragged data has been received. If the data was received in order to
determine whether the drop will be accepted, the handler is expected
to call gdk_drag_status() and not finish the drag.
If the data was received in response to a drag-drop signal
(and this is the last target to be received), the handler for this
signal is expected to process the received data and then call
gtk_drag_finish(), setting the success parameter depending on
whether the data was processed successfully.
Applications must create some means to determine why the signal was emitted
and therefore whether to call gdk_drag_status() or gtk_drag_finish().
The handler may inspect the selected action with
DragContext::selected_action() before calling
gtk_drag_finish(), e.g. to implement gdk::DragAction::ASK as
shown in the following example:
⚠️ The following code is in C ⚠️
void
drag_data_received (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *data,
guint info,
guint time)
{
if ((data->length >= 0) && (data->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
The ::drag-motion signal is emitted on the drop site when the user
moves the cursor over the widget during a drag. 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 is responsible for providing the necessary information for
displaying feedback to the user, by calling gdk_drag_status().
If the decision whether the drop will be accepted or rejected can’t be
made based solely on the cursor position and the type of the data, the
handler may inspect the dragged data by calling WidgetExt::drag_get_data() and
defer the gdk_drag_status() call to the drag-data-received
handler. Note that you must pass DestDefaults::DROP,
DestDefaults::MOTION or DestDefaults::ALL to WidgetExtManual::drag_dest_set()
when using the drag-motion signal that way.
Also note that there is no drag-enter signal. The drag receiver has to
keep track of whether he has received any drag-motion signals since the
last drag-leave and if not, treat the drag-motion signal as
an “enter” signal. Upon an “enter”, the handler will typically highlight
the drop site with WidgetExt::drag_highlight().
⚠️ The following code is in C ⚠️
static void
drag_motion (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
guint time)
{
GdkAtom target;
PrivateData *private_data = GET_PRIVATE_DATA (widget);
if (!private_data->drag_highlight)
{
private_data->drag_highlight = 1;
gtk_drag_highlight (widget);
}
target = gtk_drag_dest_find_target (widget, context, NULL);
if (target == GDK_NONE)
gdk_drag_status (context, 0, time);
else
{
private_data->pending_status
= gdk_drag_context_get_suggested_action (context);
gtk_drag_get_data (widget, context, target, time);
}
return TRUE;
}
static void
drag_data_received (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *selection_data,
guint info,
guint time)
{
PrivateData *private_data = GET_PRIVATE_DATA (widget);
if (private_data->suggested_action)
{
private_data->suggested_action = 0;
// We are getting this data due to a request in drag_motion,
// rather than due to a request in drag_drop, so we are just
// supposed to call gdk_drag_status(), not actually paste in
// the data.
str = gtk_selection_data_get_text (selection_data);
if (!data_is_acceptable (str))
gdk_drag_status (context, 0, time);
else
gdk_drag_status (context,
private_data->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.
§Implements
CheckMenuItemExt, GtkMenuItemExt, BinExt, ContainerExt, WidgetExt, glib::ObjectExt, BuildableExt, ActionableExt, ContainerExtManual, WidgetExtManual, BuildableExtManual
Implementations§
Source§impl CheckMenuItem
impl CheckMenuItem
pub const NONE: Option<&'static CheckMenuItem> = None
Sourcepub fn new() -> CheckMenuItem
pub fn new() -> CheckMenuItem
Sourcepub fn with_label(label: &str) -> CheckMenuItem
pub fn with_label(label: &str) -> CheckMenuItem
Creates a new CheckMenuItem with a label.
§label
the string to use for the label.
§Returns
a new CheckMenuItem.
Sourcepub fn with_mnemonic(label: &str) -> CheckMenuItem
pub fn with_mnemonic(label: &str) -> CheckMenuItem
Creates a new CheckMenuItem containing a label. The label
will be created using Label::with_mnemonic(), so underscores
in label indicate the mnemonic for the menu item.
§label
The text of the button, with an underscore in front of the character
§Returns
a new CheckMenuItem
Sourcepub fn builder() -> CheckMenuItemBuilder
pub fn builder() -> CheckMenuItemBuilder
Creates a new builder-pattern struct instance to construct CheckMenuItem objects.
This method returns an instance of CheckMenuItemBuilder which can be used to create CheckMenuItem objects.
Trait Implementations§
Source§impl Clone for CheckMenuItem
impl Clone for CheckMenuItem
Source§impl Debug for CheckMenuItem
impl Debug for CheckMenuItem
Source§impl Default for CheckMenuItem
impl Default for CheckMenuItem
Source§impl Display for CheckMenuItem
impl Display for CheckMenuItem
impl Eq for CheckMenuItem
Source§impl HasParamSpec for CheckMenuItem
impl HasParamSpec for CheckMenuItem
type ParamSpec = ParamSpecObject
Source§type SetValue = CheckMenuItem
type SetValue = CheckMenuItem
type BuilderFn = fn(&str) -> ParamSpecObjectBuilder<'_, CheckMenuItem>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for CheckMenuItem
impl Hash for CheckMenuItem
impl IsA<Actionable> for CheckMenuItem
impl IsA<Bin> for CheckMenuItem
impl IsA<Buildable> for CheckMenuItem
impl IsA<CheckMenuItem> for RadioMenuItem
impl IsA<Container> for CheckMenuItem
impl IsA<MenuItem> for CheckMenuItem
impl IsA<Widget> for CheckMenuItem
Source§impl Ord for CheckMenuItem
impl Ord for CheckMenuItem
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 CheckMenuItem
impl ParentClassIs for CheckMenuItem
Source§impl<OT: ObjectType> PartialEq<OT> for CheckMenuItem
impl<OT: ObjectType> PartialEq<OT> for CheckMenuItem
Source§impl<OT: ObjectType> PartialOrd<OT> for CheckMenuItem
impl<OT: ObjectType> PartialOrd<OT> for CheckMenuItem
Source§impl StaticType for CheckMenuItem
impl StaticType for CheckMenuItem
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementations§
impl !Send for CheckMenuItem
impl !Sync for CheckMenuItem
impl Freeze for CheckMenuItem
impl RefUnwindSafe for CheckMenuItem
impl Unpin for CheckMenuItem
impl UnsafeUnpin for CheckMenuItem
impl UnwindSafe for CheckMenuItem
Blanket Implementations§
Source§impl<O> ActionableExt for Owhere
O: IsA<Actionable>,
impl<O> ActionableExt for Owhere
O: IsA<Actionable>,
Source§fn action_target_value(&self) -> Option<Variant>
fn action_target_value(&self) -> Option<Variant>
self. Read moreSource§fn set_action_name(&self, action_name: Option<&str>)
fn set_action_name(&self, action_name: Option<&str>)
Source§fn set_action_target_value(&self, target_value: Option<&Variant>)
fn set_action_target_value(&self, target_value: Option<&Variant>)
Source§fn set_detailed_action_name(&self, detailed_action_name: &str)
fn set_detailed_action_name(&self, detailed_action_name: &str)
fn connect_action_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_action_target_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<O> BuildableExt for O
impl<O> BuildableExt for O
Source§fn add_child(
&self,
builder: &impl IsA<Builder>,
child: &impl IsA<Object>,
type_: Option<&str>,
)
fn add_child( &self, builder: &impl IsA<Builder>, child: &impl IsA<Object>, type_: Option<&str>, )
self. type_ is an optional string
describing how the child should be added. Read moreSource§fn parser_finished(&self, builder: &impl IsA<Builder>)
fn parser_finished(&self, builder: &impl IsA<Builder>)
gtk_builder_add_from_file() or BuilderExtManual::add_from_string()
is called on a builder. Read moreSource§impl<O> BuildableExtManual for O
impl<O> BuildableExtManual for O
fn buildable_name(&self) -> Option<String>
fn set_buildable_name(&self, name: &str)
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast will do many checks at compile-time already. downcast will
perform the same checks at runtime as dynamic_cast, but will also ensure some amount of
compile-time safety. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T unconditionally. Read moreSource§impl<O> CheckMenuItemExt for Owhere
O: IsA<CheckMenuItem>,
impl<O> CheckMenuItemExt for Owhere
O: IsA<CheckMenuItem>,
Source§fn is_active(&self) -> bool
fn is_active(&self) -> bool
Source§fn draws_as_radio(&self) -> bool
fn draws_as_radio(&self) -> bool
Source§fn is_inconsistent(&self) -> bool
fn is_inconsistent(&self) -> bool
set_inconsistent(). Read moreSource§fn set_active(&self, is_active: bool)
fn set_active(&self, is_active: bool)
Source§fn set_draw_as_radio(&self, draw_as_radio: bool)
fn set_draw_as_radio(&self, draw_as_radio: bool)
Source§fn set_inconsistent(&self, setting: bool)
fn set_inconsistent(&self, setting: bool)
set_inconsistent() only affects
visual appearance, it doesn’t affect the semantics of the widget. Read moreSource§fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_toggled<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_draw_as_radio_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_inconsistent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> ContainerExt for O
impl<O> ContainerExt for O
Source§fn add(&self, widget: &impl IsA<Widget>)
fn add(&self, widget: &impl IsA<Widget>)
widget to self. Typically used for simple containers
such as Window, Frame, or Button; for more complicated
layout containers such as Box or Grid, this function will
pick default packing parameters that may not be correct. So
consider functions such as BoxExt::pack_start() and
GridExt::attach() as an alternative to add() in
those cases. A widget may be added to only one container at a time;
you can’t place the same widget inside two different containers. Read morefn check_resize(&self)
Source§fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
fn child_notify(&self, child: &impl IsA<Widget>, child_property: &str)
child-notify signal for the
[child property][child-properties]
child_property on the child. Read moreSource§fn child_notify_by_pspec(
&self,
child: &impl IsA<Widget>,
pspec: impl AsRef<ParamSpec>,
)
fn child_notify_by_pspec( &self, child: &impl IsA<Widget>, pspec: impl AsRef<ParamSpec>, )
child-notify signal for the
[child property][child-properties] specified by
pspec on the child. Read moreSource§fn child_type(&self) -> Type
fn child_type(&self) -> Type
Source§fn forall<P: FnMut(&Widget)>(&self, callback: P)
fn forall<P: FnMut(&Widget)>(&self, callback: P)
callback on each direct child of self, including
children that are considered “internal” (implementation details
of the container). “Internal” children generally weren’t added
by the user of the container, but were added by the container
implementation itself. Read moreSource§fn border_width(&self) -> u32
fn border_width(&self) -> u32
set_border_width(). Read moreSource§fn focus_child(&self) -> Option<Widget>
fn focus_child(&self) -> Option<Widget>
self. This is not the
currently focused widget. That can be obtained by calling
GtkWindowExt::focused_widget(). Read moreSource§fn focus_hadjustment(&self) -> Option<Adjustment>
fn focus_hadjustment(&self) -> Option<Adjustment>
Source§fn focus_vadjustment(&self) -> Option<Adjustment>
fn focus_vadjustment(&self) -> Option<Adjustment>
set_focus_vadjustment(). Read moreSource§fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
fn path_for_child(&self, child: &impl IsA<Widget>) -> Option<WidgetPath>
child. Read moreSource§fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
fn propagate_draw(&self, child: &impl IsA<Widget>, cr: &Context)
draw calls to all children that don’t have their
own GdkWindows. This function provides a convenient way of doing this.
A container, when it receives a call to its draw function,
calls propagate_draw() once for each child, passing in
the cr the container received. Read moreSource§fn remove(&self, widget: &impl IsA<Widget>)
fn remove(&self, widget: &impl IsA<Widget>)
widget from self. widget must be inside self.
Note that self will own a reference to widget, and that this
may be the last reference held; so removing a widget from its
container can destroy that widget. If you want to use widget
again, you need to add a reference to it before removing it from
a container, using g_object_ref(). If you don’t want to use widget
again it’s usually more efficient to simply destroy it directly
using gtk_widget_destroy() since this will remove it from the
container and help break any circular reference count cycles. Read moreSource§fn set_border_width(&self, border_width: u32)
fn set_border_width(&self, border_width: u32)
Source§fn set_focus_chain(&self, focusable_widgets: &[Widget])
fn set_focus_chain(&self, focusable_widgets: &[Widget])
Since 3.24
Source§fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_hadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::hadjustment() for a typical way of obtaining
the adjustment and set_focus_vadjustment() for setting
the vertical adjustment. Read moreSource§fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
fn set_focus_vadjustment(&self, adjustment: &impl IsA<Adjustment>)
ScrolledWindowExt::vadjustment() for a typical way of obtaining
the adjustment and set_focus_hadjustment() for setting
the horizontal adjustment. Read moreSource§fn unset_focus_chain(&self)
fn unset_focus_chain(&self)
Since 3.24
set_focus_chain(). Read morefn set_child<P: IsA<Widget>>(&self, child: Option<&P>)
fn resize_mode(&self) -> ResizeMode
fn set_resize_mode(&self, resize_mode: ResizeMode)
fn connect_add<F: Fn(&Self, &Widget) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_check_resize<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_remove<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_set_focus_child<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_border_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_child_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_resize_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Source§impl<O> ContainerExtManual for O
impl<O> ContainerExtManual for O
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
impl<'a, T, C, E> FromValueOptional<'a> for Twhere
T: FromValue<'a, Checker = C>,
C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError<E>>,
E: Error + Send + 'static,
Source§impl<O> GtkMenuItemExt for O
impl<O> GtkMenuItemExt for O
Source§fn accel_path(&self) -> Option<GString>
fn accel_path(&self) -> Option<GString>
self. Read moreSource§fn must_reserve_indicator(&self) -> bool
fn must_reserve_indicator(&self) -> bool
self reserves space for
the submenu indicator, regardless if it has a submenu
or not. Read moreset_submenu(). Read moreSource§fn uses_underline(&self) -> bool
fn uses_underline(&self) -> bool
Source§fn set_accel_path(&self, accel_path: Option<&str>)
fn set_accel_path(&self, accel_path: Option<&str>)
self, through which runtime
changes of the menu item’s accelerator caused by the user can be
identified and saved to persistent storage (see gtk_accel_map_save()
on this). To set up a default accelerator for this menu item, call
gtk_accel_map_add_entry() with the same accel_path. See also
gtk_accel_map_add_entry() on the specifics of accelerator paths,
and GtkMenuExt::set_accel_path() for a more convenient variant of
this function. Read moreSource§fn set_reserve_indicator(&self, reserve: bool)
fn set_reserve_indicator(&self, reserve: bool)
self should reserve space for
the submenu indicator, regardless if it actually has
a submenu or not. Read moreSource§fn set_use_underline(&self, setting: bool)
fn set_use_underline(&self, setting: bool)
Source§fn toggle_size_allocate(&self, allocation: i32)
fn toggle_size_allocate(&self, allocation: i32)
toggle-size-allocate signal on the given item. Read moreSource§fn toggle_size_request(&self, requisition: &mut i32)
fn toggle_size_request(&self, requisition: &mut i32)
toggle-size-request signal on the given item. Read moreSource§fn is_right_justified(&self) -> bool
fn is_right_justified(&self) -> bool
Source§fn set_right_justified(&self, right_justified: bool)
fn set_right_justified(&self, right_justified: bool)
Source§fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_activate(&self)
Source§fn connect_activate_item<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_activate_item<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
activate.fn connect_deselect<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_select<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_toggle_size_allocate<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_accel_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_label_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_right_justified_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
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 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>
self is a part of. If self has no parent widgets, it will be
returned as the topmost widget. No reference will be added to the
returned widget; it should not be unreferenced. Read moreSource§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)
queue_draw_region() on
the region created from the given coordinates. Read moreSource§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)
self->window will be created when a widget
is realized. Normally realization happens implicitly; if you show
a widget and all its parent containers, then the widget will be
realized and mapped automatically. Read moreSource§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 send_focus_change(&self, event: &Event) -> bool
fn send_focus_change(&self, event: &Event) -> bool
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)
StyleContext). Read moreSource§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)
true and
the entire widget is redrawn on every size change. If your widget
leaves the upper left unchanged when made bigger, turning this
setting off will improve performance. Read moreSource§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 unrealize(&self)
fn unrealize(&self)
self->window).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
gdk_drag_status() and not finish the drag.
If the data was received in response to a drag-drop signal
(and this is the last target to be received), the handler for this
signal is expected to process the received data and then call
gtk_drag_finish(), setting the success parameter depending on
whether the data was processed successfully. Read moreSource§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
false and no further processing
is necessary. Otherwise, the handler returns true. In this case, the
handler is responsible for providing the necessary information for
displaying feedback to the user, by calling gdk_drag_status(). Read moreSource§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