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.
pattern
PRIORITY_REDRAW :: Int32gi-gdk4 GI.Gdk.Constants This is the priority that the idle handler processing surface updates is given in the main loop.
-
gi-gdk4 GI.Gdk.Flags Flags about a paintable object. Implementations use these for optimizations such as caching.
PaintableFlagsContents :: PaintableFlagsgi-gdk4 GI.Gdk.Flags The content is immutable. The Paintable::invalidateContents signal will never be emitted.
PaintableFlagsSize :: PaintableFlagsgi-gdk4 GI.Gdk.Flags The size is immutable. The Paintable::invalidateSize signal will never be emitted.
module GI.Gdk.Interfaces.
Paintable GdkPaintable is a simple interface used by GTK to represent content that can be painted. The content of a GdkPaintable can be painted anywhere at any size without requiring any sort of layout. The interface is inspired by similar concepts elsewhere, such as ClutterContent, HTML/CSS Paint Sources, or SVG Paint Servers. A GdkPaintable can be snapshot at any time and size using paintableSnapshot. How the paintable interprets that size and if it scales or centers itself into the given rectangle is implementation defined, though if you are implementing a GdkPaintable and don't know what to do, it is suggested that you scale your paintable ignoring any potential aspect ratio. The contents that a GdkPaintable produces may depend on the Snapshot passed to it. For example, paintables may decide to use more detailed images on higher resolution screens or when OpenGL is available. A GdkPaintable will however always produce the same output for the same snapshot. A GdkPaintable may change its contents, meaning that it will now produce a different output with the same snapshot. Once that happens, it will call paintableInvalidateContents which will emit the Paintable::invalidateContents signal. If a paintable is known to never change its contents, it will set the PaintableFlagsContents flag. If a consumer cannot deal with changing contents, it may call paintableGetCurrentImage which will return a static paintable and use that. A paintable can report an intrinsic (or preferred) size or aspect ratio it wishes to be rendered at, though it doesn't have to. Consumers of the interface can use this information to layout thepaintable appropriately. Just like the contents, the size of a paintable can change. A paintable will indicate this by calling paintableInvalidateSize which will emit the Paintable::invalidateSize signal. And just like for contents, if a paintable is known to never change its size, it will set the PaintableFlagsSize flag. Besides API for applications, there are some functions that are only useful for implementing subclasses and should not be used by applications: paintableInvalidateContents, paintableInvalidateSize, paintableNewEmpty.
-
gi-gdk4 GI.Gdk.Interfaces.Paintable Memory-managed wrapper type.
Paintable :: ManagedPtr Paintable -> Paintablegi-gdk4 GI.Gdk.Interfaces.Paintable No documentation available.
type
PaintableInvalidateContentsCallback = IO ()gi-gdk4 GI.Gdk.Interfaces.Paintable Emitted when the contents of the paintable change. Examples for such an event would be videos changing to the next frame or the icon theme for an icon changing.
type
PaintableInvalidateSizeCallback = IO ()gi-gdk4 GI.Gdk.Interfaces.Paintable Emitted when the intrinsic size of the paintable changes. This means the values reported by at least one of paintableGetIntrinsicWidth, paintableGetIntrinsicHeight or paintableGetIntrinsicAspectRatio has changed. Examples for such an event would be a paintable displaying the contents of a toplevel surface being resized.
module GI.Gdk.Interfaces.
Popup A GdkPopup is a surface that is attached to another surface. The GdkPopup is positioned relative to its parent surface. GdkPopups are typically used to implement menus and similar popups. They can be modal, which is indicated by the Popup:autohide property.