Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. windowSetIconName :: (HasCallStack, MonadIO m, IsWindow a) => a -> Maybe Text -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Windows may have a name used while minimized, distinct from the name they display in their titlebar. Most of the time this is a bad idea from a user interface standpoint. But you can set such a name with this function, if you like. After calling this with a non-Nothing name, calls to windowSetTitle will not update the icon title. Using Nothing for name unsets the icon title; further calls to windowSetTitle will again update the icon title as well. Note that some platforms don't support window icons.

  2. windowSetKeepAbove :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Set if window must be kept above other windows. If the window was already above, then this function does nothing. On X11, asks the window manager to keep window above, if the window manager supports this operation. Not all window managers support this, and some deliberately ignore it or don’t have a concept of “keep above”; so you can’t rely on the window being kept above. But it will happen with most standard window managers, and GDK makes a best effort to get it to happen. Since: 2.4

  3. windowSetKeepBelow :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Set if window must be kept below other windows. If the window was already below, then this function does nothing. On X11, asks the window manager to keep window below, if the window manager supports this operation. Not all window managers support this, and some deliberately ignore it or don’t have a concept of “keep below”; so you can’t rely on the window being kept below. But it will happen with most standard window managers, and GDK makes a best effort to get it to happen. Since: 2.4

  4. windowSetModalHint :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    The application can use this hint to tell the window manager that a certain window has modal behaviour. The window manager can use this information to handle modal windows in a special way. You should only use this on windows for which you have previously called windowSetTransientFor

  5. windowSetOpacity :: (HasCallStack, MonadIO m, IsWindow a) => a -> Double -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Set window to render as partially transparent, with opacity 0 being fully transparent and 1 fully opaque. (Values of the opacity parameter are clamped to the [0,1] range.) For toplevel windows this depends on support from the windowing system that may not always be there. For instance, On X11, this works only on X screens with a compositing manager running. On Wayland, there is no per-window opacity value that the compositor would apply. Instead, use gdk_window_set_opaque_region (window, NULL) to tell the compositor that the entire window is (potentially) non-opaque, and draw your content with alpha, or use gtk_widget_set_opacity() to set an overall opacity for your widgets. For child windows this function only works for non-native windows. For setting up per-pixel alpha topelevels, see screenGetRgbaVisual, and for non-toplevels, see windowSetComposited. Support for non-toplevel windows was added in 3.8. Since: 2.12

  6. windowSetOpaqueRegion :: (HasCallStack, MonadIO m, IsWindow a) => a -> Maybe Region -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    For optimisation purposes, compositing window managers may like to not draw obscured regions of windows, or turn off blending during for these regions. With RGB windows with no transparency, this is just the shape of the window, but with ARGB32 windows, the compositor does not know what regions of the window are transparent or not. This function only works for toplevel windows. GTK+ will update this property automatically if the window background is opaque, as we know where the opaque regions are. If your window background is not opaque, please update this property in your GtkWidget::style-updated handler. Since: 3.10

  7. windowSetOverrideRedirect :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    An override redirect window is not under the control of the window manager. This means it won’t have a titlebar, won’t be minimizable, etc. - it will be entirely under the control of the application. The window manager can’t see the override redirect window at all. Override redirect should only be used for short-lived temporary windows, such as popup menus. GtkMenu uses an override redirect window in its implementation, for example.

  8. windowSetPassThrough :: (HasCallStack, MonadIO m, IsWindow a) => a -> Bool -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Sets whether input to the window is passed through to the window below. The default value of this is False, which means that pointer events that happen inside the window are send first to the window, but if the event is not selected by the event mask then the event is sent to the parent window, and so on up the hierarchy. If passThrough is True then such pointer events happen as if the window wasn't there at all, and thus will be sent first to any windows below window. This is useful if the window is used in a transparent fashion. In the terminology of the web this would be called "pointer-events: none". Note that a window with passThrough True can still have a subwindow without pass through, so you can get events on a subset of a window. And in that cases you would get the in-between related events such as the pointer enter/leave events on its way to the destination window. Since: 3.18

  9. windowSetRole :: (HasCallStack, MonadIO m, IsWindow a) => a -> Text -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    When using GTK+, typically you should use gtk_window_set_role() instead of this low-level function. The window manager and session manager use a window’s role to distinguish it from other kinds of window in the same application. When an application is restarted after being saved in a previous session, all windows with the same title and role are treated as interchangeable. So if you have two windows with the same title that should be distinguished for session management purposes, you should set the role on those windows. It doesn’t matter what string you use for the role, as long as you have a different role for each non-interchangeable kind of window.

  10. windowSetShadowWidth :: (HasCallStack, MonadIO m, IsWindow a) => a -> Int32 -> Int32 -> Int32 -> Int32 -> m ()

    gi-gdk3 GI.Gdk.Objects.Window

    Newer GTK+ windows using client-side decorations use extra geometry around their frames for effects like shadows and invisible borders. Window managers that want to maximize windows or snap to edges need to know where the extents of the actual frame lie, so that users don’t feel like windows are snapping against random invisible edges. Note that this property is automatically updated by GTK+, so this function should only be used by applications which do not use GTK+ to create toplevel windows. Since: 3.12

Page 1527 of many | Previous | Next