{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Dazzle.Objects.GraphView
(
GraphView(..) ,
IsGraphView ,
toGraphView ,
#if defined(ENABLE_OVERLOADING)
ResolveGraphViewMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
GraphViewAddRendererMethodInfo ,
#endif
graphViewAddRenderer ,
#if defined(ENABLE_OVERLOADING)
GraphViewGetModelMethodInfo ,
#endif
graphViewGetModel ,
graphViewNew ,
#if defined(ENABLE_OVERLOADING)
GraphViewSetModelMethodInfo ,
#endif
graphViewSetModel ,
#if defined(ENABLE_OVERLOADING)
GraphViewModelPropertyInfo ,
#endif
constructGraphViewModel ,
getGraphViewModel ,
#if defined(ENABLE_OVERLOADING)
graphViewModel ,
#endif
setGraphViewModel ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.RectangleInt as Cairo.RectangleInt
import {-# SOURCE #-} qualified GI.Dazzle.Interfaces.GraphRenderer as Dazzle.GraphRenderer
import {-# SOURCE #-} qualified GI.Dazzle.Objects.GraphColumn as Dazzle.GraphColumn
import {-# SOURCE #-} qualified GI.Dazzle.Objects.GraphModel as Dazzle.GraphModel
import {-# SOURCE #-} qualified GI.Dazzle.Structs.GraphModelIter as Dazzle.GraphModelIter
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.DrawingArea as Gtk.DrawingArea
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#else
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import {-# SOURCE #-} qualified GI.Dazzle.Interfaces.GraphRenderer as Dazzle.GraphRenderer
import {-# SOURCE #-} qualified GI.Dazzle.Objects.GraphModel as Dazzle.GraphModel
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.DrawingArea as Gtk.DrawingArea
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
newtype GraphView = GraphView (SP.ManagedPtr GraphView)
deriving (GraphView -> GraphView -> Bool
(GraphView -> GraphView -> Bool)
-> (GraphView -> GraphView -> Bool) -> Eq GraphView
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GraphView -> GraphView -> Bool
== :: GraphView -> GraphView -> Bool
$c/= :: GraphView -> GraphView -> Bool
/= :: GraphView -> GraphView -> Bool
Eq)
instance SP.ManagedPtrNewtype GraphView where
toManagedPtr :: GraphView -> ManagedPtr GraphView
toManagedPtr (GraphView ManagedPtr GraphView
p) = ManagedPtr GraphView
p
foreign import ccall "dzl_graph_view_get_type"
c_dzl_graph_view_get_type :: IO B.Types.GType
instance B.Types.TypedObject GraphView where
glibType :: IO GType
glibType = IO GType
c_dzl_graph_view_get_type
instance B.Types.GObject GraphView
class (SP.GObject o, O.IsDescendantOf GraphView o) => IsGraphView o
instance (SP.GObject o, O.IsDescendantOf GraphView o) => IsGraphView o
instance O.HasParentTypes GraphView
type instance O.ParentTypes GraphView = '[Gtk.DrawingArea.DrawingArea, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable]
toGraphView :: (MIO.MonadIO m, IsGraphView o) => o -> m GraphView
toGraphView :: forall (m :: * -> *) o.
(MonadIO m, IsGraphView o) =>
o -> m GraphView
toGraphView = IO GraphView -> m GraphView
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO GraphView -> m GraphView)
-> (o -> IO GraphView) -> o -> m GraphView
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr GraphView -> GraphView) -> o -> IO GraphView
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr GraphView -> GraphView
GraphView
instance B.GValue.IsGValue (Maybe GraphView) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_dzl_graph_view_get_type
gvalueSet_ :: Ptr GValue -> Maybe GraphView -> IO ()
gvalueSet_ Ptr GValue
gv Maybe GraphView
P.Nothing = Ptr GValue -> Ptr GraphView -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr GraphView
forall a. Ptr a
FP.nullPtr :: FP.Ptr GraphView)
gvalueSet_ Ptr GValue
gv (P.Just GraphView
obj) = GraphView -> (Ptr GraphView -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr GraphView
obj (Ptr GValue -> Ptr GraphView -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe GraphView)
gvalueGet_ Ptr GValue
gv = do
Ptr GraphView
ptr <- Ptr GValue -> IO (Ptr GraphView)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr GraphView)
if Ptr GraphView
ptr Ptr GraphView -> Ptr GraphView -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr GraphView
forall a. Ptr a
FP.nullPtr
then GraphView -> Maybe GraphView
forall a. a -> Maybe a
P.Just (GraphView -> Maybe GraphView)
-> IO GraphView -> IO (Maybe GraphView)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr GraphView -> GraphView)
-> Ptr GraphView -> IO GraphView
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr GraphView -> GraphView
GraphView Ptr GraphView
ptr
else Maybe GraphView -> IO (Maybe GraphView)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe GraphView
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveGraphViewMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveGraphViewMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveGraphViewMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveGraphViewMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveGraphViewMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveGraphViewMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveGraphViewMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveGraphViewMethod "addRenderer" o = GraphViewAddRendererMethodInfo
ResolveGraphViewMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveGraphViewMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveGraphViewMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveGraphViewMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveGraphViewMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveGraphViewMethod "childNotify" o = Gtk.Widget.WidgetChildNotifyMethodInfo
ResolveGraphViewMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveGraphViewMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveGraphViewMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveGraphViewMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveGraphViewMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveGraphViewMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveGraphViewMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveGraphViewMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveGraphViewMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveGraphViewMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveGraphViewMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveGraphViewMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveGraphViewMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveGraphViewMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveGraphViewMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveGraphViewMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveGraphViewMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveGraphViewMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveGraphViewMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveGraphViewMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveGraphViewMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveGraphViewMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveGraphViewMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveGraphViewMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveGraphViewMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveGraphViewMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveGraphViewMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveGraphViewMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveGraphViewMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveGraphViewMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveGraphViewMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveGraphViewMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveGraphViewMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveGraphViewMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveGraphViewMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveGraphViewMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveGraphViewMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveGraphViewMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveGraphViewMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveGraphViewMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveGraphViewMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveGraphViewMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveGraphViewMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveGraphViewMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveGraphViewMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveGraphViewMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveGraphViewMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveGraphViewMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveGraphViewMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveGraphViewMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveGraphViewMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveGraphViewMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveGraphViewMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveGraphViewMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveGraphViewMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveGraphViewMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveGraphViewMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveGraphViewMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveGraphViewMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveGraphViewMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveGraphViewMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveGraphViewMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveGraphViewMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveGraphViewMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveGraphViewMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveGraphViewMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveGraphViewMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveGraphViewMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveGraphViewMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveGraphViewMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveGraphViewMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveGraphViewMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveGraphViewMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveGraphViewMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveGraphViewMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveGraphViewMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveGraphViewMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveGraphViewMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveGraphViewMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveGraphViewMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveGraphViewMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveGraphViewMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveGraphViewMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveGraphViewMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveGraphViewMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveGraphViewMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveGraphViewMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveGraphViewMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveGraphViewMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveGraphViewMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveGraphViewMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveGraphViewMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveGraphViewMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveGraphViewMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveGraphViewMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveGraphViewMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveGraphViewMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveGraphViewMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveGraphViewMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveGraphViewMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveGraphViewMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveGraphViewMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveGraphViewMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveGraphViewMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveGraphViewMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveGraphViewMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveGraphViewMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveGraphViewMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveGraphViewMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveGraphViewMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveGraphViewMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveGraphViewMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveGraphViewMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveGraphViewMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveGraphViewMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveGraphViewMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveGraphViewMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveGraphViewMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveGraphViewMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveGraphViewMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveGraphViewMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveGraphViewMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveGraphViewMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveGraphViewMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveGraphViewMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveGraphViewMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveGraphViewMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveGraphViewMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveGraphViewMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveGraphViewMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveGraphViewMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveGraphViewMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveGraphViewMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveGraphViewMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveGraphViewMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveGraphViewMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveGraphViewMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveGraphViewMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveGraphViewMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveGraphViewMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveGraphViewMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveGraphViewMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveGraphViewMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveGraphViewMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveGraphViewMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveGraphViewMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveGraphViewMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveGraphViewMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveGraphViewMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveGraphViewMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveGraphViewMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveGraphViewMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveGraphViewMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveGraphViewMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveGraphViewMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveGraphViewMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveGraphViewMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveGraphViewMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveGraphViewMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveGraphViewMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveGraphViewMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveGraphViewMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveGraphViewMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveGraphViewMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveGraphViewMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveGraphViewMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveGraphViewMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveGraphViewMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveGraphViewMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveGraphViewMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveGraphViewMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveGraphViewMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveGraphViewMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveGraphViewMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveGraphViewMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveGraphViewMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveGraphViewMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveGraphViewMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveGraphViewMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveGraphViewMethod "getModel" o = GraphViewGetModelMethodInfo
ResolveGraphViewMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveGraphViewMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveGraphViewMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveGraphViewMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveGraphViewMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveGraphViewMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveGraphViewMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveGraphViewMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveGraphViewMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveGraphViewMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveGraphViewMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveGraphViewMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveGraphViewMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveGraphViewMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveGraphViewMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveGraphViewMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveGraphViewMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveGraphViewMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveGraphViewMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveGraphViewMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveGraphViewMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveGraphViewMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveGraphViewMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveGraphViewMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveGraphViewMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveGraphViewMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveGraphViewMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveGraphViewMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveGraphViewMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveGraphViewMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveGraphViewMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveGraphViewMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveGraphViewMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveGraphViewMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveGraphViewMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveGraphViewMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveGraphViewMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveGraphViewMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveGraphViewMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveGraphViewMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveGraphViewMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveGraphViewMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveGraphViewMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveGraphViewMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveGraphViewMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveGraphViewMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveGraphViewMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveGraphViewMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveGraphViewMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveGraphViewMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveGraphViewMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveGraphViewMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveGraphViewMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveGraphViewMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveGraphViewMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveGraphViewMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveGraphViewMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveGraphViewMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveGraphViewMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveGraphViewMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveGraphViewMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveGraphViewMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveGraphViewMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveGraphViewMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveGraphViewMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveGraphViewMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveGraphViewMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveGraphViewMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveGraphViewMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveGraphViewMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveGraphViewMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveGraphViewMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveGraphViewMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveGraphViewMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveGraphViewMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveGraphViewMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveGraphViewMethod "setModel" o = GraphViewSetModelMethodInfo
ResolveGraphViewMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveGraphViewMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveGraphViewMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveGraphViewMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveGraphViewMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveGraphViewMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveGraphViewMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveGraphViewMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveGraphViewMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveGraphViewMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveGraphViewMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveGraphViewMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveGraphViewMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveGraphViewMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveGraphViewMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveGraphViewMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveGraphViewMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveGraphViewMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveGraphViewMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveGraphViewMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveGraphViewMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveGraphViewMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveGraphViewMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveGraphViewMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveGraphViewMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveGraphViewMethod t GraphView, O.OverloadedMethod info GraphView p) => OL.IsLabel t (GraphView -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveGraphViewMethod t GraphView, O.OverloadedMethod info GraphView p, R.HasField t GraphView p) => R.HasField t GraphView p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveGraphViewMethod t GraphView, O.OverloadedMethodInfo info GraphView) => OL.IsLabel t (O.MethodProxy info GraphView) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getGraphViewModel :: (MonadIO m, IsGraphView o) => o -> m (Maybe Dazzle.GraphModel.GraphModel)
getGraphViewModel :: forall (m :: * -> *) o.
(MonadIO m, IsGraphView o) =>
o -> m (Maybe GraphModel)
getGraphViewModel o
obj = IO (Maybe GraphModel) -> m (Maybe GraphModel)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe GraphModel) -> m (Maybe GraphModel))
-> IO (Maybe GraphModel) -> m (Maybe GraphModel)
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr GraphModel -> GraphModel)
-> IO (Maybe GraphModel)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"model" ManagedPtr GraphModel -> GraphModel
Dazzle.GraphModel.GraphModel
setGraphViewModel :: (MonadIO m, IsGraphView o, Dazzle.GraphModel.IsGraphModel a) => o -> a -> m ()
setGraphViewModel :: forall (m :: * -> *) o a.
(MonadIO m, IsGraphView o, IsGraphModel a) =>
o -> a -> m ()
setGraphViewModel o
obj a
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"model" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructGraphViewModel :: (IsGraphView o, MIO.MonadIO m, Dazzle.GraphModel.IsGraphModel a) => a -> m (GValueConstruct o)
constructGraphViewModel :: forall o (m :: * -> *) a.
(IsGraphView o, MonadIO m, IsGraphModel a) =>
a -> m (GValueConstruct o)
constructGraphViewModel a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"model" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
#if defined(ENABLE_OVERLOADING)
data GraphViewModelPropertyInfo
instance AttrInfo GraphViewModelPropertyInfo where
type AttrAllowedOps GraphViewModelPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint GraphViewModelPropertyInfo = IsGraphView
type AttrSetTypeConstraint GraphViewModelPropertyInfo = Dazzle.GraphModel.IsGraphModel
type AttrTransferTypeConstraint GraphViewModelPropertyInfo = Dazzle.GraphModel.IsGraphModel
type AttrTransferType GraphViewModelPropertyInfo = Dazzle.GraphModel.GraphModel
type AttrGetType GraphViewModelPropertyInfo = (Maybe Dazzle.GraphModel.GraphModel)
type AttrLabel GraphViewModelPropertyInfo = "model"
type AttrOrigin GraphViewModelPropertyInfo = GraphView
attrGet = getGraphViewModel
attrSet = setGraphViewModel
attrTransfer _ v = do
unsafeCastTo Dazzle.GraphModel.GraphModel v
attrConstruct = constructGraphViewModel
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.GraphView.model"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-GraphView.html#g:attr:model"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList GraphView
type instance O.AttributeList GraphView = GraphViewAttributeList
type GraphViewAttributeList = ('[ '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginLeft", Gtk.Widget.WidgetMarginLeftPropertyInfo), '("marginRight", Gtk.Widget.WidgetMarginRightPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("model", GraphViewModelPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
graphViewModel :: AttrLabelProxy "model"
graphViewModel = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList GraphView = GraphViewSignalList
type GraphViewSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("childNotify", Gtk.Widget.WidgetChildNotifySignalInfo), '("compositedChanged", Gtk.Widget.WidgetCompositedChangedSignalInfo), '("configureEvent", Gtk.Widget.WidgetConfigureEventSignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("deleteEvent", Gtk.Widget.WidgetDeleteEventSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("destroyEvent", Gtk.Widget.WidgetDestroyEventSignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("dragBegin", Gtk.Widget.WidgetDragBeginSignalInfo), '("dragDataDelete", Gtk.Widget.WidgetDragDataDeleteSignalInfo), '("dragDataGet", Gtk.Widget.WidgetDragDataGetSignalInfo), '("dragDataReceived", Gtk.Widget.WidgetDragDataReceivedSignalInfo), '("dragDrop", Gtk.Widget.WidgetDragDropSignalInfo), '("dragEnd", Gtk.Widget.WidgetDragEndSignalInfo), '("dragFailed", Gtk.Widget.WidgetDragFailedSignalInfo), '("dragLeave", Gtk.Widget.WidgetDragLeaveSignalInfo), '("dragMotion", Gtk.Widget.WidgetDragMotionSignalInfo), '("draw", Gtk.Widget.WidgetDrawSignalInfo), '("enterNotifyEvent", Gtk.Widget.WidgetEnterNotifyEventSignalInfo), '("event", Gtk.Widget.WidgetEventSignalInfo), '("eventAfter", Gtk.Widget.WidgetEventAfterSignalInfo), '("focus", Gtk.Widget.WidgetFocusSignalInfo), '("focusInEvent", Gtk.Widget.WidgetFocusInEventSignalInfo), '("focusOutEvent", Gtk.Widget.WidgetFocusOutEventSignalInfo), '("grabBrokenEvent", Gtk.Widget.WidgetGrabBrokenEventSignalInfo), '("grabFocus", Gtk.Widget.WidgetGrabFocusSignalInfo), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("hierarchyChanged", Gtk.Widget.WidgetHierarchyChangedSignalInfo), '("keyPressEvent", Gtk.Widget.WidgetKeyPressEventSignalInfo), '("keyReleaseEvent", Gtk.Widget.WidgetKeyReleaseEventSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("leaveNotifyEvent", Gtk.Widget.WidgetLeaveNotifyEventSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mapEvent", Gtk.Widget.WidgetMapEventSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("motionNotifyEvent", Gtk.Widget.WidgetMotionNotifyEventSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("propertyNotifyEvent", Gtk.Widget.WidgetPropertyNotifyEventSignalInfo), '("proximityInEvent", Gtk.Widget.WidgetProximityInEventSignalInfo), '("proximityOutEvent", Gtk.Widget.WidgetProximityOutEventSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("screenChanged", Gtk.Widget.WidgetScreenChangedSignalInfo), '("scrollEvent", Gtk.Widget.WidgetScrollEventSignalInfo), '("selectionClearEvent", Gtk.Widget.WidgetSelectionClearEventSignalInfo), '("selectionGet", Gtk.Widget.WidgetSelectionGetSignalInfo), '("selectionNotifyEvent", Gtk.Widget.WidgetSelectionNotifyEventSignalInfo), '("selectionReceived", Gtk.Widget.WidgetSelectionReceivedSignalInfo), '("selectionRequestEvent", Gtk.Widget.WidgetSelectionRequestEventSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("showHelp", Gtk.Widget.WidgetShowHelpSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateChanged", Gtk.Widget.WidgetStateChangedSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("touchEvent", Gtk.Widget.WidgetTouchEventSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unmapEvent", Gtk.Widget.WidgetUnmapEventSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "dzl_graph_view_new" dzl_graph_view_new ::
IO (Ptr GraphView)
graphViewNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m GraphView
graphViewNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m GraphView
graphViewNew = IO GraphView -> m GraphView
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO GraphView -> m GraphView) -> IO GraphView -> m GraphView
forall a b. (a -> b) -> a -> b
$ do
Ptr GraphView
result <- IO (Ptr GraphView)
dzl_graph_view_new
Text -> Ptr GraphView -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"graphViewNew" Ptr GraphView
result
GraphView
result' <- ((ManagedPtr GraphView -> GraphView)
-> Ptr GraphView -> IO GraphView
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr GraphView -> GraphView
GraphView) Ptr GraphView
result
GraphView -> IO GraphView
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return GraphView
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "dzl_graph_view_add_renderer" dzl_graph_view_add_renderer ::
Ptr GraphView ->
Ptr Dazzle.GraphRenderer.GraphRenderer ->
IO ()
graphViewAddRenderer ::
(B.CallStack.HasCallStack, MonadIO m, IsGraphView a, Dazzle.GraphRenderer.IsGraphRenderer b) =>
a
-> b
-> m ()
graphViewAddRenderer :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsGraphView a, IsGraphRenderer b) =>
a -> b -> m ()
graphViewAddRenderer a
self b
renderer = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr GraphView
self' <- a -> IO (Ptr GraphView)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GraphRenderer
renderer' <- b -> IO (Ptr GraphRenderer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
renderer
Ptr GraphView -> Ptr GraphRenderer -> IO ()
dzl_graph_view_add_renderer Ptr GraphView
self' Ptr GraphRenderer
renderer'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
renderer
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data GraphViewAddRendererMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsGraphView a, Dazzle.GraphRenderer.IsGraphRenderer b) => O.OverloadedMethod GraphViewAddRendererMethodInfo a signature where
overloadedMethod = graphViewAddRenderer
instance O.OverloadedMethodInfo GraphViewAddRendererMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.GraphView.graphViewAddRenderer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-GraphView.html#v:graphViewAddRenderer"
})
#endif
foreign import ccall "dzl_graph_view_get_model" dzl_graph_view_get_model ::
Ptr GraphView ->
IO (Ptr Dazzle.GraphModel.GraphModel)
graphViewGetModel ::
(B.CallStack.HasCallStack, MonadIO m, IsGraphView a) =>
a
-> m (Maybe Dazzle.GraphModel.GraphModel)
graphViewGetModel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsGraphView a) =>
a -> m (Maybe GraphModel)
graphViewGetModel a
self = IO (Maybe GraphModel) -> m (Maybe GraphModel)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe GraphModel) -> m (Maybe GraphModel))
-> IO (Maybe GraphModel) -> m (Maybe GraphModel)
forall a b. (a -> b) -> a -> b
$ do
Ptr GraphView
self' <- a -> IO (Ptr GraphView)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GraphModel
result <- Ptr GraphView -> IO (Ptr GraphModel)
dzl_graph_view_get_model Ptr GraphView
self'
Maybe GraphModel
maybeResult <- Ptr GraphModel
-> (Ptr GraphModel -> IO GraphModel) -> IO (Maybe GraphModel)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr GraphModel
result ((Ptr GraphModel -> IO GraphModel) -> IO (Maybe GraphModel))
-> (Ptr GraphModel -> IO GraphModel) -> IO (Maybe GraphModel)
forall a b. (a -> b) -> a -> b
$ \Ptr GraphModel
result' -> do
GraphModel
result'' <- ((ManagedPtr GraphModel -> GraphModel)
-> Ptr GraphModel -> IO GraphModel
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr GraphModel -> GraphModel
Dazzle.GraphModel.GraphModel) Ptr GraphModel
result'
GraphModel -> IO GraphModel
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return GraphModel
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe GraphModel -> IO (Maybe GraphModel)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe GraphModel
maybeResult
#if defined(ENABLE_OVERLOADING)
data GraphViewGetModelMethodInfo
instance (signature ~ (m (Maybe Dazzle.GraphModel.GraphModel)), MonadIO m, IsGraphView a) => O.OverloadedMethod GraphViewGetModelMethodInfo a signature where
overloadedMethod = graphViewGetModel
instance O.OverloadedMethodInfo GraphViewGetModelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.GraphView.graphViewGetModel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-GraphView.html#v:graphViewGetModel"
})
#endif
foreign import ccall "dzl_graph_view_set_model" dzl_graph_view_set_model ::
Ptr GraphView ->
Ptr Dazzle.GraphModel.GraphModel ->
IO ()
graphViewSetModel ::
(B.CallStack.HasCallStack, MonadIO m, IsGraphView a, Dazzle.GraphModel.IsGraphModel b) =>
a
-> b
-> m ()
graphViewSetModel :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsGraphView a, IsGraphModel b) =>
a -> b -> m ()
graphViewSetModel a
self b
model = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr GraphView
self' <- a -> IO (Ptr GraphView)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GraphModel
model' <- b -> IO (Ptr GraphModel)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
model
Ptr GraphView -> Ptr GraphModel -> IO ()
dzl_graph_view_set_model Ptr GraphView
self' Ptr GraphModel
model'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
model
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data GraphViewSetModelMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsGraphView a, Dazzle.GraphModel.IsGraphModel b) => O.OverloadedMethod GraphViewSetModelMethodInfo a signature where
overloadedMethod = graphViewSetModel
instance O.OverloadedMethodInfo GraphViewSetModelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.GraphView.graphViewSetModel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-GraphView.html#v:graphViewSetModel"
})
#endif