SpinButtonSignalName

public enum SpinButtonSignalName : String, SignalNameProtocol

Undocumented

  • Undocumented

    Declaration

    Swift

    case accelClosuresChanged = "accel-closures-changed"
  • The activate signal is emitted when the user hits the Enter key.

    While this signal is used as a keybinding signal, it is also commonly used by applications to intercept activation of entries.

    The default bindings for this signal are all forms of the Enter key.

    Declaration

    Swift

    case activate = "activate"
  • The backspace signal is a keybinding signal which gets emitted when the user asks for it.

    The default bindings for this signal are Backspace and Shift-Backspace.

    Declaration

    Swift

    case backspace = "backspace"
  • The button-press-event signal will be emitted when a button (typically from a mouse) is pressed.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_BUTTON_PRESS_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case buttonPressEvent = "button-press-event"
  • The button-release-event signal will be emitted when a button (typically from a mouse) is released.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_BUTTON_RELEASE_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case buttonReleaseEvent = "button-release-event"
  • 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 GtkWidget handling for determining whether an accelerator can be activated.

    Declaration

    Swift

    case canActivateAccel = "can-activate-accel"
  • The change-value signal is a keybinding signal which gets emitted when the user initiates a value change.

    Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.

    The default bindings for this signal are Up/Down and PageUp and/PageDown.

    Declaration

    Swift

    case changeValue = "change-value"
  • The child-notify signal is emitted for each child property that has changed on an object. The signal’s detail holds the property name.

    Declaration

    Swift

    case childNotify = "child-notify"
  • The composited-changed signal is emitted when the composited status of widgets screen changes. See gdk_screen_is_composited().

    composited-changed is deprecated: Use GdkScreen::composited-changed instead.

    Declaration

    Swift

    case compositedChanged = "composited-changed"
  • 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 GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

    Declaration

    Swift

    case configureEvent = "configure-event"
  • The copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard.

    The default bindings for this signal are Ctrl-c and Ctrl-Insert.

    Declaration

    Swift

    case copyClipboard = "copy-clipboard"
  • The cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard.

    The default bindings for this signal are Ctrl-x and Shift-Delete.

    Declaration

    Swift

    case cutClipboard = "cut-clipboard"
  • 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.

    Declaration

    Swift

    case damageEvent = "damage-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 gtk_widget_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.

    Declaration

    Swift

    case deleteEvent = "delete-event"
  • The delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion.

    If the type is GTK_DELETE_CHARS, GTK+ deletes the selection if there is one, otherwise it deletes the requested number of characters.

    The default bindings for this signal are Delete for deleting a character and Ctrl-Delete for deleting a word.

    Declaration

    Swift

    case deleteFromCursor = "delete-from-cursor"
  • 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.

    Declaration

    Swift

    case destroy = "destroy"
  • The destroy-event signal is emitted when a GdkWindow 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 GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

    Declaration

    Swift

    case destroyEvent = "destroy-event"
  • The direction-changed signal is emitted when the text direction of a widget changes.

    Declaration

    Swift

    case directionChanged = "direction-changed"
  • 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. gtk_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.

    Declaration

    Swift

    case dragBegin = "drag-begin"
  • The drag-data-delete signal is emitted on the drag source when a drag with the action GDK_ACTION_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.

    Declaration

    Swift

    case dragDataDelete = "drag-data-delete"
  • 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 gtk_selection_data_set() and gtk_selection_data_set_text().

    Declaration

    Swift

    case dragDataGet = "drag-data-get"
  • 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 GtkWidget::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 gdk_drag_context_get_selected_action() before calling gtk_drag_finish(), e.g. to implement GDK_ACTION_ASK as shown in the following example: (C Language Example):

    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);
     }
    

    Declaration

    Swift

    case dragDataReceived = "drag-data-received"
  • 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 GtkWidget::drag-data-received handler which gets triggered by calling gtk_drag_get_data() to receive the data for one or more of the supported targets.

    Declaration

    Swift

    case dragDrop = "drag-drop"
  • 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 GtkWidget::drag-begin.

    Declaration

    Swift

    case dragEnd = "drag-end"
  • 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.

    Declaration

    Swift

    case dragFailed = "drag-failed"
  • 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 GtkWidget::drag-motion, e.g. undo highlighting with gtk_drag_unhighlight().

    Likewise, the GtkWidget::drag-leave signal is also emitted before the drag-drop signal, for instance to allow cleaning up of a preview item created in the GtkWidget::drag-motion signal handler.

    Declaration

    Swift

    case dragLeave = "drag-leave"
  • 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 gtk_drag_get_data() and defer the gdk_drag_status() call to the GtkWidget::drag-data-received handler. Note that you must pass GTK_DEST_DEFAULT_DROP, GTK_DEST_DEFAULT_MOTION or GTK_DEST_DEFAULT_ALL to gtk_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 GtkWidget::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 gtk_drag_highlight(). (C Language Example):

    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
       }
    }
    

    Declaration

    Swift

    case dragMotion = "drag-motion"
  • 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 gtk_widget_get_allocated_width() and gtk_widget_get_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().

    Declaration

    Swift

    case draw = "draw"
  • The enter-notify-event will be emitted when the pointer enters the widget‘s window.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_ENTER_NOTIFY_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case enterNotifyEvent = "enter-notify-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. GtkWidget::key-press-event) and finally a generic GtkWidget::event-after signal.

    Declaration

    Swift

    case event = "event"
  • After the emission of the GtkWidget::event signal and (optionally) the second more specific signal, event-after will be emitted regardless of the previous two signals handlers return values.

    Declaration

    Swift

    case eventAfter = "event-after"
  • Undocumented

    Declaration

    Swift

    case focus = "focus"
  • The focus-in-event signal will be emitted when the keyboard focus enters the widget‘s window.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask.

    Declaration

    Swift

    case focusInEvent = "focus-in-event"
  • The focus-out-event signal will be emitted when the keyboard focus leaves the widget‘s window.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask.

    Declaration

    Swift

    case focusOutEvent = "focus-out-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.

    Declaration

    Swift

    case grabBrokenEvent = "grab-broken-event"
  • Undocumented

    Declaration

    Swift

    case grabFocus = "grab-focus"
  • 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 gtk_grab_add() when the topmost grab widget in the grab stack of its window group is not its ancestor.

    Declaration

    Swift

    case grabNotify = "grab-notify"
  • The hide signal is emitted when widget is hidden, for example with gtk_widget_hide().

    Declaration

    Swift

    case hide = "hide"
  • The hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is “anchored” when its toplevel ancestor is a GtkWindow. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.

    Declaration

    Swift

    case hierarchyChanged = "hierarchy-changed"
  • The icon-press signal is emitted when an activatable icon is clicked.

    Declaration

    Swift

    case iconPress = "icon-press"
  • The icon-release signal is emitted on the button release from a mouse click over an activatable icon.

    Declaration

    Swift

    case iconRelease = "icon-release"
  • The input signal can be used to influence the conversion of the users input into a double value. The signal handler is expected to use gtk_entry_get_text() to retrieve the text of the entry and set new_value to the new value.

    The default conversion uses g_strtod().

    Declaration

    Swift

    case input = "input"
  • The insert-at-cursor signal is a keybinding signal which gets emitted when the user initiates the insertion of a fixed string at the cursor.

    This signal has no default bindings.

    Declaration

    Swift

    case insertAtCursor = "insert-at-cursor"
  • The insert-emoji signal is a keybinding signal which gets emitted to present the Emoji chooser for the entry.

    The default bindings for this signal are Ctrl-. and Ctrl-;

    Declaration

    Swift

    case insertEmoji = "insert-emoji"
  • 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 GdkWindow associated to the widget needs to enable the GDK_KEY_PRESS_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case keyPressEvent = "key-press-event"
  • The key-release-event signal is emitted when a key is released.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_KEY_RELEASE_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case keyReleaseEvent = "key-release-event"
  • Gets emitted if keyboard navigation fails. See gtk_widget_keynav_failed() for details.

    Declaration

    Swift

    case keynavFailed = "keynav-failed"
  • The leave-notify-event will be emitted when the pointer leaves the widget‘s window.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_LEAVE_NOTIFY_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case leaveNotifyEvent = "leave-notify-event"
  • map

    The map signal is emitted when widget is going to be mapped, that is when the widget is visible (which is controlled with gtk_widget_set_visible()) and all its parents up to the toplevel widget are also visible. Once the map has occurred, GtkWidget::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 GtkWidget::unmap.

    Declaration

    Swift

    case map = "map"
  • 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 GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

    Declaration

    Swift

    case mapEvent = "map-event"
  • The default handler for this signal activates widget if group_cycling is false, or just makes widget grab focus if group_cycling is true.

    Declaration

    Swift

    case mnemonicActivate = "mnemonic-activate"
  • The motion-notify-event signal is emitted when the pointer moves over the widget’s GdkWindow.

    To receive this signal, the GdkWindow associated to the widget needs to enable the GDK_POINTER_MOTION_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case motionNotifyEvent = "motion-notify-event"
  • The move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement. If the cursor is not visible in entry, this signal causes the viewport to be moved instead.

    Applications should not connect to it, but may emit it with g_signal_emit_by_name() if they need to control the cursor programmatically.

    The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here.

    • Arrow keys move by individual characters/lines
    • Ctrl-arrow key combinations move by words/paragraphs
    • Home/End keys move to the ends of the buffer

    Declaration

    Swift

    case moveCursor = "move-cursor"
  • Undocumented

    Declaration

    Swift

    case moveFocus = "move-focus"
  • The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

    Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with G_PARAM_EXPLICIT_NOTIFY, then any call to g_object_set_property() results in notify being emitted, even if the new value is the same as the old. If they did pass G_PARAM_EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

    This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

    (C Language Example):

    g_signal_connect (text_view->buffer, "notify::paste-target-list",
                      G_CALLBACK (gtk_text_view_target_list_notify),
                      text_view)
    

    It is important to note that you must use canonical parameter names as detail strings for the notify signal.

    Declaration

    Swift

    case notify = "notify"
  • The output signal can be used to change to formatting of the value that is displayed in the spin buttons entry. (C Language Example):

    // show leading zeros
    static gboolean
    on_output (GtkSpinButton *spin,
               gpointer       data)
    {
       GtkAdjustment *adjustment;
       gchar *text;
       int value;
    
       adjustment = gtk_spin_button_get_adjustment (spin);
       value = (int)gtk_adjustment_get_value (adjustment);
       text = g_strdup_printf ("%02d", value);
       gtk_entry_set_text (GTK_ENTRY (spin), text);
       g_free (text);
    
       return TRUE;
    }
    

    Declaration

    Swift

    case output = "output"
  • The parent-set signal is emitted when a new parent has been set on a widget.

    Declaration

    Swift

    case parentSet = "parent-set"
  • The paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view.

    The default bindings for this signal are Ctrl-v and Shift-Insert.

    Declaration

    Swift

    case pasteClipboard = "paste-clipboard"
  • The populate-popup signal gets emitted before showing the context menu of the entry.

    If you need to add items to the context menu, connect to this signal and append your items to the widget, which will be a GtkMenu in this case.

    If GtkEntry:populate-all is true, this signal will also be emitted to populate touch popups. In this case, widget will be a different container, e.g. a GtkToolbar. The signal handler should not make assumptions about the type of widget.

    Declaration

    Swift

    case populatePopup = "populate-popup"
  • 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 GtkEntry widget creates a menu with clipboard commands. See the Popup Menu Migration Checklist for an example of how to use this signal.

    Declaration

    Swift

    case popupMenu = "popup-menu"
  • If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal.

    Declaration

    Swift

    case preeditChanged = "preedit-changed"
  • 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 GdkWindow associated to the widget needs to enable the GDK_PROPERTY_CHANGE_MASK mask.

    Declaration

    Swift

    case propertyNotifyEvent = "property-notify-event"
  • To receive this signal the GdkWindow associated to the widget needs to enable the GDK_PROXIMITY_IN_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case proximityInEvent = "proximity-in-event"
  • To receive this signal the GdkWindow associated to the widget needs to enable the GDK_PROXIMITY_OUT_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case proximityOutEvent = "proximity-out-event"
  • Emitted when GtkWidget: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.

    Declaration

    Swift

    case queryTooltip = "query-tooltip"
  • The realize signal is emitted when widget is associated with a GdkWindow, which means that gtk_widget_realize() has been called or the widget has been mapped (that is, it is going to be drawn).

    Declaration

    Swift

    case realize = "realize"
  • The screen-changed signal gets emitted when the screen of a widget has changed.

    Declaration

    Swift

    case screenChanged = "screen-changed"
  • 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 GdkWindow associated to the widget needs to enable the GDK_SCROLL_MASK mask.

    This signal will be sent to the grab widget if there is one.

    Declaration

    Swift

    case scrollEvent = "scroll-event"
  • The selection-clear-event signal will be emitted when the the widget‘s window has lost ownership of a selection.

    Declaration

    Swift

    case selectionClearEvent = "selection-clear-event"
  • Undocumented

    Declaration

    Swift

    case selectionGet = "selection-get"
  • Undocumented

    Declaration

    Swift

    case selectionNotifyEvent = "selection-notify-event"
  • Undocumented

    Declaration

    Swift

    case selectionReceived = "selection-received"
  • The selection-request-event signal will be emitted when another client requests ownership of the selection owned by the widget‘s window.

    Declaration

    Swift

    case selectionRequestEvent = "selection-request-event"
  • The show signal is emitted when widget is shown, for example with gtk_widget_show().

    Declaration

    Swift

    case show = "show"
  • Undocumented

    Declaration

    Swift

    case showHelp = "show-help"
  • Undocumented

    Declaration

    Swift

    case sizeAllocate = "size-allocate"
  • The state-changed signal is emitted when the widget state changes. See gtk_widget_get_state().

    state-changed is deprecated: Use #GtkWidget::state-flags-changed instead.

    Declaration

    Swift

    case stateChanged = "state-changed"
  • The state-flags-changed signal is emitted when the widget state changes, see gtk_widget_get_state_flags().

    Declaration

    Swift

    case stateFlagsChanged = "state-flags-changed"
  • 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 GtkStyleContext associated with a widget, use the GtkWidget::style-updated signal.

    style-set is deprecated: Use the #GtkWidget::style-updated signal

    Declaration

    Swift

    case styleSet = "style-set"
  • The style-updated signal is a convenience signal that is emitted when the GtkStyleContext::changed signal is emitted on the widget‘s associated GtkStyleContext as returned by gtk_widget_get_style_context().

    Note that style-modifying functions like gtk_widget_override_color() also cause this signal to be emitted.

    Declaration

    Swift

    case styleUpdated = "style-updated"
  • The toggle-overwrite signal is a keybinding signal which gets emitted to toggle the overwrite mode of the entry.

    The default bindings for this signal is Insert.

    Declaration

    Swift

    case toggleOverwrite = "toggle-overwrite"
  • Undocumented

    Declaration

    Swift

    case touchEvent = "touch-event"
  • 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.

    Declaration

    Swift

    case unmap = "unmap"
  • 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 GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

    Declaration

    Swift

    case unmapEvent = "unmap-event"
  • The unrealize signal is emitted when the GdkWindow associated with widget is destroyed, which means that gtk_widget_unrealize() has been called or the widget has been unmapped (that is, it is going to be hidden).

    Declaration

    Swift

    case unrealize = "unrealize"
  • The value-changed signal is emitted when the value represented by spinbutton changes. Also see the GtkSpinButton::output signal.

    Declaration

    Swift

    case valueChanged = "value-changed"
  • The visibility-notify-event will be emitted when the widget‘s window is obscured or unobscured.

    To receive this signal the GdkWindow associated to the widget needs to enable the GDK_VISIBILITY_NOTIFY_MASK mask.

    visibility-notify-event is deprecated: Modern composited windowing systems with pervasive transparency make it impossible to track the visibility of a window reliably, so this signal can not be guaranteed to provide useful information.

    Declaration

    Swift

    case visibilityNotifyEvent = "visibility-notify-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 GdkWindow associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.

    Declaration

    Swift

    case windowStateEvent = "window-state-event"
  • The wrapped signal is emitted right after the spinbutton wraps from its maximum to minimum value or vice-versa.

    Declaration

    Swift

    case wrapped = "wrapped"
  • Undocumented

    Declaration

    Swift

    case notifyActivatesDefault = "notify::activates-default"
  • Undocumented

    Declaration

    Swift

    case notifyAdjustment = "notify::adjustment"
  • Undocumented

    Declaration

    Swift

    case notifyAppPaintable = "notify::app-paintable"
  • A list of Pango attributes to apply to the text of the entry.

    This is mainly useful to change the size or weight of the text.

    The PangoAttribute‘s start_index and end_index must refer to the GtkEntryBuffer text, i.e. without the preedit string.

    Declaration

    Swift

    case notifyAttributes = "notify::attributes"
  • Undocumented

    Declaration

    Swift

    case notifyBuffer = "notify::buffer"
  • Undocumented

    Declaration

    Swift

    case notifyCanDefault = "notify::can-default"
  • Undocumented

    Declaration

    Swift

    case notifyCanFocus = "notify::can-focus"
  • Whether password entries will show a warning when Caps Lock is on.

    Note that the warning is shown using a secondary icon, and thus does not work if you are using the secondary icon position for some other purpose.

    Declaration

    Swift

    case notifyCapsLockWarning = "notify::caps-lock-warning"
  • Undocumented

    Declaration

    Swift

    case notifyClimbRate = "notify::climb-rate"
  • The auxiliary completion object to use with the entry.

    Declaration

    Swift

    case notifyCompletion = "notify::completion"
  • Undocumented

    Declaration

    Swift

    case notifyCompositeChild = "notify::composite-child"
  • Undocumented

    Declaration

    Swift

    case notifyCursorPosition = "notify::cursor-position"
  • Undocumented

    Declaration

    Swift

    case notifyDigits = "notify::digits"
  • Whether the widget is double buffered.

    double-buffered is deprecated: Widgets should not use this property.

    Declaration

    Swift

    case notifyDoubleBuffered = "notify::double-buffered"
  • Undocumented

    Declaration

    Swift

    case notifyEditable = "notify::editable"
  • Undocumented

    Declaration

    Swift

    case notifyEnableEmojiCompletion = "notify::enable-emoji-completion"
  • Undocumented

    Declaration

    Swift

    case notifyEvents = "notify::events"
  • Whether to expand in both directions. Setting this sets both GtkWidget:hexpand and GtkWidget:vexpand

    Declaration

    Swift

    case notifyExpand = "notify::expand"
  • 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.

    Declaration

    Swift

    case notifyFocusOnClick = "notify::focus-on-click"
  • How to distribute horizontal space if widget gets extra space, see GtkAlign

    Declaration

    Swift

    case notifyHalign = "notify::halign"
  • Undocumented

    Declaration

    Swift

    case notifyHasDefault = "notify::has-default"
  • Undocumented

    Declaration

    Swift

    case notifyHasFocus = "notify::has-focus"
  • Undocumented

    Declaration

    Swift

    case notifyHasFrame = "notify::has-frame"
  • Enables or disables the emission of GtkWidget::query-tooltip on widget. A value of true indicates that widget can have a tooltip, in this case the widget will be queried using GtkWidget::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.

    Declaration

    Swift

    case notifyHasTooltip = "notify::has-tooltip"
  • Undocumented

    Declaration

    Swift

    case notifyHeightRequest = "notify::height-request"
  • Whether to expand horizontally. See gtk_widget_set_hexpand().

    Declaration

    Swift

    case notifyHexpand = "notify::hexpand"
  • Whether to use the GtkWidget:hexpand property. See gtk_widget_get_hexpand_set().

    Declaration

    Swift

    case notifyHexpandSet = "notify::hexpand-set"
  • Which IM (input method) module should be used for this entry. See GtkIMContext.

    Setting this to a non-nil value overrides the system-wide IM module setting. See the GtkSettings GtkSettings:gtk-im-module property.

    Declaration

    Swift

    case notifyImModule = "notify::im-module"
  • Sets the text area’s border between the text and the frame.

    inner-border is deprecated: Use the standard border and padding CSS properties (through objects like #GtkStyleContext and #GtkCssProvider); the value of this style property is ignored.

    Declaration

    Swift

    case notifyInnerBorder = "notify::inner-border"
  • Additional hints (beyond GtkEntry:input-purpose) that allow input methods to fine-tune their behaviour.

    Declaration

    Swift

    case notifyInputHints = "notify::input-hints"
  • The purpose of this text field.

    This property can be used by on-screen keyboards and other input methods to adjust their behaviour.

    Note that setting the purpose to GTK_INPUT_PURPOSE_PASSWORD or GTK_INPUT_PURPOSE_PIN is independent from setting GtkEntry:visibility.

    Declaration

    Swift

    case notifyInputPurpose = "notify::input-purpose"
  • The invisible character is used when masking entry contents (in \“password mode\”)“). When it is not explicitly set with the GtkEntry:invisible-char property, GTK+ determines the character to use from a list of possible candidates, depending on availability in the current font.

    This style property allows the theme to prepend a character to the list of candidates.

    Declaration

    Swift

    case notifyInvisibleChar = "notify::invisible-char"
  • Whether the invisible char has been set for the GtkEntry.

    Declaration

    Swift

    case notifyInvisibleCharSet = "notify::invisible-char-set"
  • Undocumented

    Declaration

    Swift

    case notifyIsFocus = "notify::is-focus"
  • Sets all four sides’ margin at once. If read, returns max margin on any side.

    Declaration

    Swift

    case notifyMargin = "notify::margin"
  • 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 gtk_widget_set_size_request() for example.

    Declaration

    Swift

    case notifyMarginBottom = "notify::margin-bottom"
  • 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 gtk_widget_set_size_request() for example.

    Declaration

    Swift

    case notifyMarginEnd = "notify::margin-end"
  • 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 gtk_widget_set_size_request() for example.

    margin-left is deprecated: Use #GtkWidget:margin-start instead.

    Declaration

    Swift

    case notifyMarginLeft = "notify::margin-left"
  • 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 gtk_widget_set_size_request() for example.

    margin-right is deprecated: Use #GtkWidget:margin-end instead.

    Declaration

    Swift

    case notifyMarginRight = "notify::margin-right"
  • 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 gtk_widget_set_size_request() for example.

    Declaration

    Swift

    case notifyMarginStart = "notify::margin-start"
  • 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 gtk_widget_set_size_request() for example.

    Declaration

    Swift

    case notifyMarginTop = "notify::margin-top"
  • Undocumented

    Declaration

    Swift

    case notifyMaxLength = "notify::max-length"
  • The desired maximum width of the entry, in characters. If this property is set to -1, the width will be calculated automatically.

    Declaration

    Swift

    case notifyMaxWidthChars = "notify::max-width-chars"
  • Undocumented

    Declaration

    Swift

    case notifyName = "notify::name"
  • Undocumented

    Declaration

    Swift

    case notifyNoShowAll = "notify::no-show-all"
  • Undocumented

    Declaration

    Swift

    case notifyNumeric = "notify::numeric"
  • The requested opacity of the widget. See gtk_widget_set_opacity() for more details about window opacity.

    Before 3.8 this was only available in GtkWindow

    Declaration

    Swift

    case notifyOpacity = "notify::opacity"
  • If text is overwritten when typing in the GtkEntry.

    Declaration

    Swift

    case notifyOverwriteMode = "notify::overwrite-mode"
  • Undocumented

    Declaration

    Swift

    case notifyParent = "notify::parent"
  • The text that will be displayed in the GtkEntry when it is empty and unfocused.

    Declaration

    Swift

    case notifyPlaceholderText = "notify::placeholder-text"
  • If :populate-all is true, the GtkEntry::populate-popup signal is also emitted for touch popups.

    Declaration

    Swift

    case notifyPopulateAll = "notify::populate-all"
  • Whether the primary icon is activatable.

    GTK+ emits the GtkEntry::icon-press and GtkEntry::icon-release signals only on sensitive, activatable icons.

    Sensitive, but non-activatable icons can be used for purely informational purposes.

    Declaration

    Swift

    case notifyPrimaryIconActivatable = "notify::primary-icon-activatable"
  • The GIcon to use for the primary icon for the entry.

    Declaration

    Swift

    case notifyPrimaryIconIcon = "notify::primary-icon-gicon"
  • The icon name to use for the primary icon for the entry.

    Declaration

    Swift

    case notifyPrimaryIconName = "notify::primary-icon-name"
  • A pixbuf to use as the primary icon for the entry.

    Declaration

    Swift

    case notifyPrimaryIconPixbuf = "notify::primary-icon-pixbuf"
  • Whether the primary icon is sensitive.

    An insensitive icon appears grayed out. GTK+ does not emit the GtkEntry::icon-press and GtkEntry::icon-release signals and does not allow DND from insensitive icons.

    An icon should be set insensitive if the action that would trigger when clicked is currently not available.

    Declaration

    Swift

    case notifyPrimaryIconSensitive = "notify::primary-icon-sensitive"
  • The stock id to use for the primary icon for the entry.

    primary-icon-stock is deprecated: Use #GtkEntry:primary-icon-name instead.

    Declaration

    Swift

    case notifyPrimaryIconStock = "notify::primary-icon-stock"
  • The representation which is used for the primary icon of the entry.

    Declaration

    Swift

    case notifyPrimaryIconStorageType = "notify::primary-icon-storage-type"
  • The contents of the tooltip on the primary icon, which is marked up with the Pango text markup language.

    Also see gtk_entry_set_icon_tooltip_markup().

    Declaration

    Swift

    case notifyPrimaryIconTooltipMarkup = "notify::primary-icon-tooltip-markup"
  • The contents of the tooltip on the primary icon.

    Also see gtk_entry_set_icon_tooltip_text().

    Declaration

    Swift

    case notifyPrimaryIconTooltipText = "notify::primary-icon-tooltip-text"
  • The current fraction of the task that’s been completed.

    Declaration

    Swift

    case notifyProgressFraction = "notify::progress-fraction"
  • The fraction of total entry width to move the progress bouncing block for each call to gtk_entry_progress_pulse().

    Declaration

    Swift

    case notifyProgressPulseStep = "notify::progress-pulse-step"
  • Undocumented

    Declaration

    Swift

    case notifyReceivesDefault = "notify::receives-default"
  • The scale factor of the widget. See gtk_widget_get_scale_factor() for more details about widget scaling.

    Declaration

    Swift

    case notifyScaleFactor = "notify::scale-factor"
  • Undocumented

    Declaration

    Swift

    case notifyScrollOffset = "notify::scroll-offset"
  • Whether the secondary icon is activatable.

    GTK+ emits the GtkEntry::icon-press and GtkEntry::icon-release signals only on sensitive, activatable icons.

    Sensitive, but non-activatable icons can be used for purely informational purposes.

    Declaration

    Swift

    case notifySecondaryIconActivatable = "notify::secondary-icon-activatable"
  • The GIcon to use for the secondary icon for the entry.

    Declaration

    Swift

    case notifySecondaryIconIcon = "notify::secondary-icon-gicon"
  • The icon name to use for the secondary icon for the entry.

    Declaration

    Swift

    case notifySecondaryIconName = "notify::secondary-icon-name"
  • An pixbuf to use as the secondary icon for the entry.

    Declaration

    Swift

    case notifySecondaryIconPixbuf = "notify::secondary-icon-pixbuf"
  • Whether the secondary icon is sensitive.

    An insensitive icon appears grayed out. GTK+ does not emit the GtkEntry::icon-press and GtkEntry::icon-release signals and does not allow DND from insensitive icons.

    An icon should be set insensitive if the action that would trigger when clicked is currently not available.

    Declaration

    Swift

    case notifySecondaryIconSensitive = "notify::secondary-icon-sensitive"
  • The stock id to use for the secondary icon for the entry.

    secondary-icon-stock is deprecated: Use #GtkEntry:secondary-icon-name instead.

    Declaration

    Swift

    case notifySecondaryIconStock = "notify::secondary-icon-stock"
  • The representation which is used for the secondary icon of the entry.

    Declaration

    Swift

    case notifySecondaryIconStorageType = "notify::secondary-icon-storage-type"
  • The contents of the tooltip on the secondary icon, which is marked up with the Pango text markup language.

    Also see gtk_entry_set_icon_tooltip_markup().

    Declaration

    Swift

    case notifySecondaryIconTooltipMarkup = "notify::secondary-icon-tooltip-markup"
  • The contents of the tooltip on the secondary icon.

    Also see gtk_entry_set_icon_tooltip_text().

    Declaration

    Swift

    case notifySecondaryIconTooltipText = "notify::secondary-icon-tooltip-text"
  • Undocumented

    Declaration

    Swift

    case notifySelectionBound = "notify::selection-bound"
  • Undocumented

    Declaration

    Swift

    case notifySensitive = "notify::sensitive"
  • Which kind of shadow to draw around the entry when GtkEntry:has-frame is set to true.

    shadow-type is deprecated: Use CSS to determine the style of the border; the value of this style property is ignored.

    Declaration

    Swift

    case notifyShadowType = "notify::shadow-type"
  • Undocumented

    Declaration

    Swift

    case notifyShowEmojiIcon = "notify::show-emoji-icon"
  • Undocumented

    Declaration

    Swift

    case notifySnapToTicks = "notify::snap-to-ticks"
  • The style of the widget, which contains information about how it will look (colors, etc).

    style is deprecated: Use #GtkStyleContext instead

    Declaration

    Swift

    case notifyStyle = "notify::style"
  • Undocumented

    Declaration

    Swift

    case notifyTabs = "notify::tabs"
  • Undocumented

    Declaration

    Swift

    case notifyText = "notify::text"
  • The length of the text in the GtkEntry.

    Declaration

    Swift

    case notifyTextLength = "notify::text-length"
  • Sets the text of tooltip to be the given string, which is marked up with the Pango text markup language. Also see gtk_tooltip_set_markup().

    This is a convenience property which will take care of getting the tooltip shown if the given string is not nil: GtkWidget:has-tooltip will automatically be set to true and there will be taken care of GtkWidget::query-tooltip in the default signal handler.

    Note that if both GtkWidget:tooltip-text and GtkWidget:tooltip-markup are set, the last one wins.

    Declaration

    Swift

    case notifyTooltipMarkup = "notify::tooltip-markup"
  • Sets the text of tooltip to be the given string.

    Also see gtk_tooltip_set_text().

    This is a convenience property which will take care of getting the tooltip shown if the given string is not nil: GtkWidget:has-tooltip will automatically be set to true and there will be taken care of GtkWidget::query-tooltip in the default signal handler.

    Note that if both GtkWidget:tooltip-text and GtkWidget:tooltip-markup are set, the last one wins.

    Declaration

    Swift

    case notifyTooltipText = "notify::tooltip-text"
  • When true, pasted multi-line text is truncated to the first line.

    Declaration

    Swift

    case notifyTruncateMultiline = "notify::truncate-multiline"
  • Undocumented

    Declaration

    Swift

    case notifyUpdatePolicy = "notify::update-policy"
  • How to distribute vertical space if widget gets extra space, see GtkAlign

    Declaration

    Swift

    case notifyValign = "notify::valign"
  • Undocumented

    Declaration

    Swift

    case notifyValue = "notify::value"
  • Whether to expand vertically. See gtk_widget_set_vexpand().

    Declaration

    Swift

    case notifyVexpand = "notify::vexpand"
  • Whether to use the GtkWidget:vexpand property. See gtk_widget_get_vexpand_set().

    Declaration

    Swift

    case notifyVexpandSet = "notify::vexpand-set"
  • Undocumented

    Declaration

    Swift

    case notifyVisibility = "notify::visibility"
  • Undocumented

    Declaration

    Swift

    case notifyVisible = "notify::visible"
  • Undocumented

    Declaration

    Swift

    case notifyWidthChars = "notify::width-chars"
  • Undocumented

    Declaration

    Swift

    case notifyWidthRequest = "notify::width-request"
  • The widget’s window if it is realized, nil otherwise.

    Declaration

    Swift

    case notifyWindow = "notify::window"
  • Undocumented

    Declaration

    Swift

    case notifyWrap = "notify::wrap"
  • The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.

    Declaration

    Swift

    case notifyXalign = "notify::xalign"