Hoogle Search

Within LTS Haskell 24.36 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. EventSequenceStateClaimed :: EventSequenceState

    gi-gtk3 GI.Gtk.Enums

    The sequence is handled and grabbed.

  2. EventSequenceStateDenied :: EventSequenceState

    gi-gtk3 GI.Gtk.Enums

    The sequence is denied.

  3. EventSequenceStateNone :: EventSequenceState

    gi-gtk3 GI.Gtk.Enums

    The sequence is handled, but not grabbed.

  4. type GestureSequenceStateChangedCallback = Maybe EventSequence -> EventSequenceState -> IO ()

    gi-gtk3 GI.Gtk.Objects.Gesture

    This signal is emitted whenever a sequence state changes. See gestureSetSequenceState to know more about the expectable sequence lifetimes. Since: 3.14

  5. afterGestureSequenceStateChanged :: (IsGesture a, MonadIO m) => a -> ((?self :: a) => GestureSequenceStateChangedCallback) -> m SignalHandlerId

    gi-gtk3 GI.Gtk.Objects.Gesture

    Connect a signal handler for the sequenceStateChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after gesture #sequenceStateChanged callback
    
    By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

  6. gestureGetLastUpdatedSequence :: (HasCallStack, MonadIO m, IsGesture a) => a -> m (Maybe EventSequence)

    gi-gtk3 GI.Gtk.Objects.Gesture

    Returns the EventSequence that was last updated on gesture. Since: 3.14

  7. gestureGetSequenceState :: (HasCallStack, MonadIO m, IsGesture a) => a -> EventSequence -> m EventSequenceState

    gi-gtk3 GI.Gtk.Objects.Gesture

    Returns the sequence state, as seen by gesture. Since: 3.14

  8. gestureGetSequences :: (HasCallStack, MonadIO m, IsGesture a) => a -> m [EventSequence]

    gi-gtk3 GI.Gtk.Objects.Gesture

    Returns the list of GdkEventSequences currently being interpreted by gesture. Since: 3.14

  9. gestureHandlesSequence :: (HasCallStack, MonadIO m, IsGesture a) => a -> Maybe EventSequence -> m Bool

    gi-gtk3 GI.Gtk.Objects.Gesture

    Returns True if gesture is currently handling events corresponding to sequence. Since: 3.14

  10. gestureSetSequenceState :: (HasCallStack, MonadIO m, IsGesture a) => a -> EventSequence -> EventSequenceState -> m Bool

    gi-gtk3 GI.Gtk.Objects.Gesture

    Sets the state of sequence in gesture. Sequences start in state GTK_EVENT_SEQUENCE_NONE, and whenever they change state, they can never go back to that state. Likewise, sequences in state GTK_EVENT_SEQUENCE_DENIED cannot turn back to a not denied state. With these rules, the lifetime of an event sequence is constrained to the next four:

    • None
    • None → Denied
    • None → Claimed
    • None → Claimed → Denied
    Note: Due to event handling ordering, it may be unsafe to set the state on another gesture within a Gesture::begin signal handler, as the callback might be executed before the other gesture knows about the sequence. A safe way to perform this could be:
    static void
    first_gesture_begin_cb (GtkGesture       *first_gesture,
    GdkEventSequence *sequence,
    gpointer          user_data)
    {
    gtk_gesture_set_sequence_state (first_gesture, sequence, GTK_EVENT_SEQUENCE_CLAIMED);
    gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED);
    }
    
    static void
    second_gesture_begin_cb (GtkGesture       *second_gesture,
    GdkEventSequence *sequence,
    gpointer          user_data)
    {
    if (gtk_gesture_get_sequence_state (first_gesture, sequence) == GTK_EVENT_SEQUENCE_CLAIMED)
    gtk_gesture_set_sequence_state (second_gesture, sequence, GTK_EVENT_SEQUENCE_DENIED);
    }
    
    If both gestures are in the same group, just set the state on the gesture emitting the event, the sequence will be already be initialized to the group's global state when the second gesture processes the event. Since: 3.14

Page 68 of many | Previous | Next