Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. gLContextSetForwardCompatible :: (HasCallStack, MonadIO m, IsGLContext a) => a -> Bool -> m ()

    gi-gdk4 GI.Gdk.Objects.GLContext

    Sets whether the GdkGLContext should be forward-compatible. Forward-compatible contexts must not support OpenGL functionality that has been marked as deprecated in the requested version; non-forward compatible contexts, on the other hand, must support both deprecated and non deprecated functionality. The GdkGLContext must not be realized or made current prior to calling this function.

  2. constructGLTextureBuilderFormat :: (IsGLTextureBuilder o, MonadIO m) => MemoryFormat -> m (GValueConstruct o)

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Construct a GValueConstruct with valid value for the “format” property. This is rarely needed directly, but it is used by new.

  3. gLTextureBuilderGetFormat :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> m MemoryFormat

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Gets the format previously set via gLTextureBuilderSetFormat. Since: 4.12

  4. gLTextureBuilderSetFormat :: (HasCallStack, MonadIO m, IsGLTextureBuilder a) => a -> MemoryFormat -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Sets the format of the texture. The default is GDK_MEMORY_R8G8B8A8_PREMULTIPLIED. The format is the preferred format the texture data should be downloaded to. The format must be supported by the GL version of GLTextureBuilder:context. GDK's texture download code assumes that the format corresponds to the storage parameters of the GL texture in an obvious way. For example, a format of GDK_MEMORY_R16G16B16A16_PREMULTIPLIED is expected to be stored as GL_RGBA16 texture, and GDK_MEMORY_G8A8 is expected to be stored as GL_RG8 texture. Setting the right format is particularly useful when using high bit depth textures to preserve the bit depth, to set the correct value for unpremultiplied textures and to make sure opaque textures are treated as such. Non-RGBA textures need to have swizzling parameters set up properly to be usable in GSK's shaders. Since: 4.12

  5. getGLTextureBuilderFormat :: (MonadIO m, IsGLTextureBuilder o) => o -> m MemoryFormat

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Get the value of the “format” property. When overloading is enabled, this is equivalent to

    get gLTextureBuilder #format
    

  6. setGLTextureBuilderFormat :: (MonadIO m, IsGLTextureBuilder o) => o -> MemoryFormat -> m ()

    gi-gdk4 GI.Gdk.Objects.GLTextureBuilder

    Set the value of the “format” property. When overloading is enabled, this is equivalent to

    set gLTextureBuilder [ #format := value ]
    

  7. textureGetFormat :: (HasCallStack, MonadIO m, IsTexture a) => a -> m MemoryFormat

    gi-gdk4 GI.Gdk.Objects.Texture

    Gets the memory format most closely associated with the data of the texture. Note that it may not be an exact match for texture data stored on the GPU or with compression. The format can give an indication about the bit depth and opacity of the texture and is useful to determine the best format for downloading the texture. Since: 4.10

  8. textureNewForPixbuf :: (HasCallStack, MonadIO m, IsPixbuf a) => a -> m Texture

    gi-gdk4 GI.Gdk.Objects.Texture

    Creates a new texture object representing the GdkPixbuf. This function is threadsafe, so that you can e.g. use GTask and taskRunInThread to avoid blocking the main thread while loading a big image.

  9. module GI.Gdk.Structs.ContentFormats

    The GdkContentFormats structure is used to advertise and negotiate the format of content. You will encounter GdkContentFormats when interacting with objects controlling operations that pass data between different widgets, window or application, like Drag, Drop, Clipboard or ContentProvider. GDK supports content in 2 forms: GType and mime type. Using GTypes is meant only for in-process content transfers. Mime types are meant to be used for data passing both in-process and out-of-process. The details of how data is passed is described in the documentation of the actual implementations. To transform between the two forms, ContentSerializer and ContentDeserializer are used. A GdkContentFormats describes a set of possible formats content can be exchanged in. It is assumed that this set is ordered. GTypes are more important than mime types. Order between different GTypes or mime types is the order they were added in, most important first. Functions that care about order, such as contentFormatsUnion, will describe in their documentation how they interpret that order, though in general the order of the first argument is considered the primary order of the result, followed by the order of further arguments. For debugging purposes, the function contentFormatsToString exists. It will print a comma-separated list of formats from most important to least important. GdkContentFormats is an immutable struct. After creation, you cannot change the types it represents. Instead, new GdkContentFormats have to be created. The ContentFormatsBuilder structure is meant to help in this endeavor.

  10. newtype ContentFormats

    gi-gdk4 GI.Gdk.Structs.ContentFormats

    Memory-managed wrapper type.

Page 724 of many | Previous | Next