Hoogle Search

Within LTS Haskell 24.19 (ghc-9.10.3)

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

  1. 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

  2. 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

  3. onGestureSequenceStateChanged :: (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 before the default handler. When overloading is enabled, this is equivalent to

    on gesture #sequenceStateChanged callback
    

  4. gestureSingleGetCurrentSequence :: (HasCallStack, MonadIO m, IsGestureSingle a) => a -> m (Maybe EventSequence)

    gi-gtk3 GI.Gtk.Objects.GestureSingle

    Returns the event sequence currently interacting with gesture. This is only meaningful if gestureIsActive returns True. Since: 3.14

  5. module Data.Graph.DGraph.DegreeSequence

    No documentation available.

  6. newtype DegreeSequence

    graphite Data.Graph.DGraph.DegreeSequence

    The Degree Sequence of a DGraph is a list of pairs (Indegree, Outdegree)

  7. DegreeSequence :: [(Int, Int)] -> DegreeSequence

    graphite Data.Graph.DGraph.DegreeSequence

    No documentation available.

  8. unDegreeSequence :: DegreeSequence -> [(Int, Int)]

    graphite Data.Graph.DGraph.DegreeSequence

    No documentation available.

  9. module Data.Graph.UGraph.DegreeSequence

    No documentation available.

  10. data DegreeSequence

    graphite Data.Graph.UGraph.DegreeSequence

    The Degree Sequence of a simple UGraph is a list of degrees of the vertices in the graph Use degreeSequence to construct a valid Degree Sequence

Page 69 of many | Previous | Next