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 |
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 # | |
IsGValue Native Source # | Convert |
ManagedPtrNewtype Native Source # | |
Defined in GI.Gtk.Interfaces.Native toManagedPtr :: Native -> ManagedPtr Native # | |
TypedObject Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
GObject Native Source # | |
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
:: (HasCallStack, MonadIO m, IsNative a) | |
=> a |
|
-> m () |
Reposition and resize a Native
.
Widgets need to call this function on their attached native widgets when they receive a new size allocation.
getForSurface
:: (HasCallStack, MonadIO m, IsSurface a) | |
=> a |
|
-> m Widget | Returns: the |
Finds the GtkNative associated with the surface.
getRenderer
:: (HasCallStack, MonadIO m, IsNative a) | |
=> a |
|
-> m Renderer | Returns: the renderer for |
Returns the renderer that is used for this Native
.
getSurface
:: (HasCallStack, MonadIO m, IsNative a) | |
=> a |
|
-> m Surface | Returns: the surface of |
Returns the surface of this Native
.
getSurfaceTransform
nativeGetSurfaceTransform Source #
:: (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.