| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Interfaces.Native
Description
Synopsis
- newtype Native = Native (ManagedPtr Native)
- class (GObject o, IsDescendantOf Native o) => IsNative o
- toNative :: (MonadIO m, IsNative o) => o -> m Native
- nativeCheckResize :: (HasCallStack, MonadIO m, IsNative a) => a -> m ()
- nativeGetForSurface :: (HasCallStack, MonadIO m, IsSurface a) => a -> m Widget
- nativeGetRenderer :: (HasCallStack, MonadIO m, IsNative a) => a -> m Renderer
- nativeGetSurface :: (HasCallStack, MonadIO m, IsNative a) => a -> m Surface
- nativeGetSurfaceTransform :: (HasCallStack, MonadIO m, IsNative a) => a -> m (Double, Double)
Exported types
Memory-managed wrapper type.
Instances
| Eq Native Source # | |
| GObject Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
| ManagedPtrNewtype Native Source # | |
Defined in GI.Gtk.Interfaces.Native Methods toManagedPtr :: Native -> ManagedPtr Native | |
| TypedObject Native Source # | |
Defined in GI.Gtk.Interfaces.Native Methods glibType :: IO GType | |
| IsGValue Native Source # | Convert |
Defined in GI.Gtk.Interfaces.Native | |
| HasParentTypes Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
| type ParentTypes Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
class (GObject o, IsDescendantOf Native o) => IsNative o Source #
Instances
| (GObject o, IsDescendantOf Native o) => IsNative o Source # | |
Defined in GI.Gtk.Interfaces.Native | |
Methods
Overloaded methods
checkResize
Reposition and resize a Native.
Widgets need to call this function on their attached native widgets when they receive a new size allocation.
getForSurface
Arguments
| :: (HasCallStack, MonadIO m, IsSurface a) | |
| => a |
|
| -> m Widget | Returns: the |
Finds the GtkNative associated with the surface.
getRenderer
Arguments
| :: (HasCallStack, MonadIO m, IsNative a) | |
| => a |
|
| -> m Renderer | Returns: the renderer for |
Returns the renderer that is used for this Native.
getSurface
Arguments
| :: (HasCallStack, MonadIO m, IsNative a) | |
| => a |
|
| -> m Surface | Returns: the surface of |
Returns the surface of this Native.
getSurfaceTransform
nativeGetSurfaceTransform Source #
Arguments
| :: (HasCallStack, MonadIO m, IsNative a) | |
| => a |
|
| -> m (Double, Double) |
Retrieves the surface transform of self. This is the translation
from self's surface coordinates into self's widget coordinates.