Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- newtype Native = Native (ManagedPtr Native)
- class (GObject o, IsDescendantOf Native o) => IsNative o
- toNative :: (MonadIO m, IsNative o) => o -> m Native
- nativeGetForSurface :: (HasCallStack, MonadIO m, IsSurface a) => a -> m Native
- 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)
- nativeRealize :: (HasCallStack, MonadIO m, IsNative a) => a -> m ()
- nativeUnrealize :: (HasCallStack, MonadIO m, IsNative a) => a -> m ()
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 toManagedPtr :: Native -> ManagedPtr Native | |
TypedObject Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
HasParentTypes Native Source # | |
Defined in GI.Gtk.Interfaces.Native | |
IsGValue (Maybe Native) Source # | Convert |
Defined in GI.Gtk.Interfaces.Native gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Native -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRenderer, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSurface, getSurfaceTransform, getTemplateChild, getTooltipMarkup, getTooltipText, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setParent, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible.
getForSurface
:: (HasCallStack, MonadIO m, IsSurface a) | |
=> a |
|
-> m Native | 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.
realize
:: (HasCallStack, MonadIO m, IsNative a) | |
=> a |
|
-> m () |
Realizes a Native
.
unrealize
:: (HasCallStack, MonadIO m, IsNative a) | |
=> a |
|
-> m () |
Unrealizes a Native
.