DragSourceSignalName

public enum DragSourceSignalName : String, SignalNameProtocol

Undocumented

  • Emitted when the gesture is recognized.

    This means the number of touch sequences matches [propertyGtk.Gesture:n-points].

    Note: These conditions may also happen when an extra touch (eg. a third touch on a 2-touches gesture) is lifted, in that situation sequence won’t pertain to the current set of active touches, so don’t rely on this being true.

    Declaration

    Swift

    case begin = "begin"
  • Emitted whenever a sequence is cancelled.

    This usually happens on active touches when [methodGtk.EventController.reset] is called on gesture (manually, due to grabs…), or the individual sequence was claimed by parent widgets’ controllers (see [methodGtk.Gesture.set_sequence_state]).

    gesture must forget everything about sequence as in response to this signal.

    Declaration

    Swift

    case cancel = "cancel"
  • Emitted on the drag source when a drag is started.

    It can be used to e.g. set a custom drag icon with [methodGtk.DragSource.set_icon].

    Declaration

    Swift

    case dragBegin = "drag-begin"
  • Emitted on the drag source when a drag has failed.

    The signal handler may handle a failed drag operation based on the type of error. It should return true if the failure has been handled and the default “drag operation failed” animation should not be shown.

    Declaration

    Swift

    case dragCancel = "drag-cancel"
  • Emitted on the drag source when a drag is finished.

    A typical reason to connect to this signal is to undo things done in [signalGtk.DragSource::prepare] or [signalGtk.DragSource::drag-begin] handlers.

    Declaration

    Swift

    case dragEnd = "drag-end"
  • end

    Emitted when gesture either stopped recognizing the event sequences as something to be handled, or the number of touch sequences became higher or lower than [propertyGtk.Gesture:n-points].

    Note: sequence might not pertain to the group of sequences that were previously triggering recognition on gesture (ie. a just pressed touch sequence that exceeds [propertyGtk.Gesture:n-points]). This situation may be detected by checking through [methodGtk.Gesture.handles_sequence].

    Declaration

    Swift

    case end = "end"
  • 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"
  • Emitted when a drag is about to be initiated.

    It returns the GdkContentProvider to use for the drag that is about to start. The default handler for this signal returns the value of the [propertyGtk.DragSource:content] property, so if you set up that property ahead of time, you don’t need to connect to this signal.

    Declaration

    Swift

    case prepare = "prepare"
  • Emitted whenever a sequence state changes.

    See [methodGtk.Gesture.set_sequence_state] to know more about the expectable sequence lifetimes.

    Declaration

    Swift

    case sequenceStateChanged = "sequence-state-changed"
  • Emitted whenever an event is handled while the gesture is recognized.

    sequence is guaranteed to pertain to the set of active touches.

    Declaration

    Swift

    case update = "update"
  • The actions that are supported by drag operations from the source.

    Note that you must handle the [signalGtk.DragSource::drag-end] signal if the actions include GDK_ACTION_MOVE.

    Declaration

    Swift

    case notifyActions = "notify::actions"
  • Mouse button number to listen to, or 0 to listen for any button.

    Declaration

    Swift

    case notifyButton = "notify::button"
  • The data that is offered by drag operations from this source.

    Declaration

    Swift

    case notifyContent = "notify::content"
  • Whether the gesture is exclusive.

    Exclusive gestures only listen to pointer and pointer emulated events.

    Declaration

    Swift

    case notifyExclusive = "notify::exclusive"
  • The number of touch points that trigger recognition on this gesture.

    Declaration

    Swift

    case notifyNPoints = "notify::n-points"
  • The name for this controller, typically used for debugging purposes.

    Declaration

    Swift

    case notifyName = "notify::name"
  • The limit for which events this controller will handle.

    Declaration

    Swift

    case notifyPropagationLimit = "notify::propagation-limit"
  • The propagation phase at which this controller will handle events.

    Declaration

    Swift

    case notifyPropagationPhase = "notify::propagation-phase"
  • Whether the gesture handles only touch events.

    Declaration

    Swift

    case notifyTouchOnly = "notify::touch-only"
  • The widget receiving the GdkEvents that the controller will handle.

    Declaration

    Swift

    case notifyWidget = "notify::widget"