Hoogle Search

Within LTS Haskell 24.70 (ghc-9.10.3)

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

  1. frameSetLabelWidget :: (HasCallStack, MonadIO m, IsFrame a, IsWidget b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.Frame

    Sets the Frame:labelWidget for the frame. This is the widget that will appear embedded in the top edge of the frame as a title.

  2. frameSetShadowType :: (HasCallStack, MonadIO m, IsFrame a) => a -> ShadowType -> m ()

    gi-gtk3 GI.Gtk.Objects.Frame

    Sets the Frame:shadowType for frame, i.e. whether it is drawn without (ShadowTypeNone) or with (other values) a visible border. Values other than ShadowTypeNone are treated identically by GtkFrame. The chosen type is applied by removing or adding the .flat class to the CSS node named border.

  3. gLAreaSetAutoRender :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    If autoRender is True the GLArea::render signal will be emitted every time the widget draws. This is the default and is useful if drawing the widget is faster. If autoRender is False the data from previous rendering is kept around and will be used for drawing the widget the next time, unless the window is resized. In order to force a rendering gLAreaQueueRender must be called. This mode is useful when the scene changes seldomly, but takes a long time to redraw. Since: 3.16

  4. gLAreaSetError :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Maybe GError -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    Sets an error on the area which will be shown instead of the GL rendering. This is useful in the GLArea::createContext signal if GL context creation fails. Since: 3.16

  5. gLAreaSetHasAlpha :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    If hasAlpha is True the buffer allocated by the widget will have an alpha channel component, and when rendering to the window the result will be composited over whatever is below the widget. If hasAlpha is False there will be no alpha channel, and the buffer will fully replace anything below the widget. Since: 3.16

  6. gLAreaSetHasDepthBuffer :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    If hasDepthBuffer is True the widget will allocate and enable a depth buffer for the target framebuffer. Otherwise there will be none. Since: 3.16

  7. gLAreaSetHasStencilBuffer :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    If hasStencilBuffer is True the widget will allocate and enable a stencil buffer for the target framebuffer. Otherwise there will be none. Since: 3.16

  8. gLAreaSetRequiredVersion :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Int32 -> Int32 -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    Sets the required version of OpenGL to be used when creating the context for the widget. This function must be called before the area has been realized. Since: 3.16

  9. gLAreaSetUseEs :: (HasCallStack, MonadIO m, IsGLArea a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.GLArea

    Sets whether the area should create an OpenGL or an OpenGL ES context. You should check the capabilities of the GLContext before drawing with either API. Since: 3.22

  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 1728 of many | Previous | Next