{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Interfaces.CellEditable
(
CellEditable(..) ,
IsCellEditable ,
toCellEditable ,
#if defined(ENABLE_OVERLOADING)
ResolveCellEditableMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
CellEditableEditingDoneMethodInfo ,
#endif
cellEditableEditingDone ,
#if defined(ENABLE_OVERLOADING)
CellEditableRemoveWidgetMethodInfo ,
#endif
cellEditableRemoveWidget ,
#if defined(ENABLE_OVERLOADING)
CellEditableStartEditingMethodInfo ,
#endif
cellEditableStartEditing ,
#if defined(ENABLE_OVERLOADING)
CellEditableEditingCanceledPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellEditableEditingCanceled ,
#endif
constructCellEditableEditingCanceled ,
getCellEditableEditingCanceled ,
setCellEditableEditingCanceled ,
CellEditableEditingDoneCallback ,
#if defined(ENABLE_OVERLOADING)
CellEditableEditingDoneSignalInfo ,
#endif
afterCellEditableEditingDone ,
onCellEditableEditingDone ,
CellEditableRemoveWidgetCallback ,
#if defined(ENABLE_OVERLOADING)
CellEditableRemoveWidgetSignalInfo ,
#endif
afterCellEditableRemoveWidget ,
onCellEditableRemoveWidget ,
) 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.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.FontOptions as Cairo.FontOptions
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Flags as Gdk.Flags
import qualified GI.Gdk.Interfaces.Paintable as Gdk.Paintable
import qualified GI.Gdk.Objects.Clipboard as Gdk.Clipboard
import qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import qualified GI.Gdk.Objects.Device as Gdk.Device
import qualified GI.Gdk.Objects.Display as Gdk.Display
import qualified GI.Gdk.Objects.Event as Gdk.Event
import qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import qualified GI.Gdk.Objects.Snapshot as Gdk.Snapshot
import qualified GI.Gdk.Objects.Surface as Gdk.Surface
import qualified GI.Gdk.Objects.Texture as Gdk.Texture
import qualified GI.Gdk.Structs.RGBA as Gdk.RGBA
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import qualified GI.Gio.Interfaces.ActionGroup as Gio.ActionGroup
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Graphene.Structs.Matrix as Graphene.Matrix
import qualified GI.Graphene.Structs.Point as Graphene.Point
import qualified GI.Graphene.Structs.Point3D as Graphene.Point3D
import qualified GI.Graphene.Structs.Rect as Graphene.Rect
import qualified GI.Graphene.Structs.Size as Graphene.Size
import qualified GI.Graphene.Structs.Vec3 as Graphene.Vec3
import qualified GI.Graphene.Structs.Vec4 as Graphene.Vec4
import qualified GI.Gsk.Enums as Gsk.Enums
import qualified GI.Gsk.Objects.GLShader as Gsk.GLShader
import qualified GI.Gsk.Objects.RenderNode as Gsk.RenderNode
import qualified GI.Gsk.Objects.Renderer as Gsk.Renderer
import qualified GI.Gsk.Structs.ColorStop as Gsk.ColorStop
import qualified GI.Gsk.Structs.Path as Gsk.Path
import qualified GI.Gsk.Structs.RoundedRect as Gsk.RoundedRect
import qualified GI.Gsk.Structs.Shadow as Gsk.Shadow
import qualified GI.Gsk.Structs.Stroke as Gsk.Stroke
import qualified GI.Gsk.Structs.Transform as Gsk.Transform
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Flags as Gtk.Flags
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Accessible as Gtk.Accessible
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ConstraintTarget as Gtk.ConstraintTarget
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Native as Gtk.Native
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Root as Gtk.Root
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.StyleProvider as Gtk.StyleProvider
import {-# SOURCE #-} qualified GI.Gtk.Objects.ATContext as Gtk.ATContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.EventController as Gtk.EventController
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutChild as Gtk.LayoutChild
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutManager as Gtk.LayoutManager
import {-# SOURCE #-} qualified GI.Gtk.Objects.Settings as Gtk.Settings
import {-# SOURCE #-} qualified GI.Gtk.Objects.Snapshot as Gtk.Snapshot
import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleContext as Gtk.StyleContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.Tooltip as Gtk.Tooltip
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import {-# SOURCE #-} qualified GI.Gtk.Structs.Border as Gtk.Border
import {-# SOURCE #-} qualified GI.Gtk.Structs.Requisition as Gtk.Requisition
import qualified GI.Pango.Enums as Pango.Enums
import qualified GI.Pango.Objects.Context as Pango.Context
import qualified GI.Pango.Objects.FontMap as Pango.FontMap
import qualified GI.Pango.Objects.Layout as Pango.Layout
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Objects.Event as Gdk.Event
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Accessible as Gtk.Accessible
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
{-# DEPRECATED CellEditable ["(Since version 4.10)","List views use widgets for displaying their"," contents. See t'GI.Gtk.Interfaces.Editable.Editable' for editable text widgets"] #-}
newtype CellEditable = CellEditable (SP.ManagedPtr CellEditable)
deriving (CellEditable -> CellEditable -> Bool
(CellEditable -> CellEditable -> Bool)
-> (CellEditable -> CellEditable -> Bool) -> Eq CellEditable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CellEditable -> CellEditable -> Bool
== :: CellEditable -> CellEditable -> Bool
$c/= :: CellEditable -> CellEditable -> Bool
/= :: CellEditable -> CellEditable -> Bool
Eq)
instance SP.ManagedPtrNewtype CellEditable where
toManagedPtr :: CellEditable -> ManagedPtr CellEditable
toManagedPtr (CellEditable ManagedPtr CellEditable
p) = ManagedPtr CellEditable
p
foreign import ccall "gtk_cell_editable_get_type"
c_gtk_cell_editable_get_type :: IO B.Types.GType
instance B.Types.TypedObject CellEditable where
glibType :: IO GType
glibType = IO GType
c_gtk_cell_editable_get_type
instance B.Types.GObject CellEditable
class (SP.GObject o, O.IsDescendantOf CellEditable o) => IsCellEditable o
instance (SP.GObject o, O.IsDescendantOf CellEditable o) => IsCellEditable o
instance O.HasParentTypes CellEditable
type instance O.ParentTypes CellEditable = '[GObject.Object.Object, Gtk.Widget.Widget]
toCellEditable :: (MIO.MonadIO m, IsCellEditable o) => o -> m CellEditable
toCellEditable :: forall (m :: * -> *) o.
(MonadIO m, IsCellEditable o) =>
o -> m CellEditable
toCellEditable = IO CellEditable -> m CellEditable
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO CellEditable -> m CellEditable)
-> (o -> IO CellEditable) -> o -> m CellEditable
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr CellEditable -> CellEditable) -> o -> IO CellEditable
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr CellEditable -> CellEditable
CellEditable
instance B.GValue.IsGValue (Maybe CellEditable) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_cell_editable_get_type
gvalueSet_ :: Ptr GValue -> Maybe CellEditable -> IO ()
gvalueSet_ Ptr GValue
gv Maybe CellEditable
P.Nothing = Ptr GValue -> Ptr CellEditable -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr CellEditable
forall a. Ptr a
FP.nullPtr :: FP.Ptr CellEditable)
gvalueSet_ Ptr GValue
gv (P.Just CellEditable
obj) = CellEditable -> (Ptr CellEditable -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr CellEditable
obj (Ptr GValue -> Ptr CellEditable -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe CellEditable)
gvalueGet_ Ptr GValue
gv = do
Ptr CellEditable
ptr <- Ptr GValue -> IO (Ptr CellEditable)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr CellEditable)
if Ptr CellEditable
ptr Ptr CellEditable -> Ptr CellEditable -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr CellEditable
forall a. Ptr a
FP.nullPtr
then CellEditable -> Maybe CellEditable
forall a. a -> Maybe a
P.Just (CellEditable -> Maybe CellEditable)
-> IO CellEditable -> IO (Maybe CellEditable)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr CellEditable -> CellEditable)
-> Ptr CellEditable -> IO CellEditable
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr CellEditable -> CellEditable
CellEditable Ptr CellEditable
ptr
else Maybe CellEditable -> IO (Maybe CellEditable)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe CellEditable
forall a. Maybe a
P.Nothing
getCellEditableEditingCanceled :: (MonadIO m, IsCellEditable o) => o -> m Bool
getCellEditableEditingCanceled :: forall (m :: * -> *) o.
(MonadIO m, IsCellEditable o) =>
o -> m Bool
getCellEditableEditingCanceled o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"editing-canceled"
setCellEditableEditingCanceled :: (MonadIO m, IsCellEditable o) => o -> Bool -> m ()
setCellEditableEditingCanceled :: forall (m :: * -> *) o.
(MonadIO m, IsCellEditable o) =>
o -> Bool -> m ()
setCellEditableEditingCanceled o
obj Bool
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 -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"editing-canceled" Bool
val
constructCellEditableEditingCanceled :: (IsCellEditable o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructCellEditableEditingCanceled :: forall o (m :: * -> *).
(IsCellEditable o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructCellEditableEditingCanceled Bool
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 -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"editing-canceled" Bool
val
#if defined(ENABLE_OVERLOADING)
data CellEditableEditingCanceledPropertyInfo
instance AttrInfo CellEditableEditingCanceledPropertyInfo where
type AttrAllowedOps CellEditableEditingCanceledPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint CellEditableEditingCanceledPropertyInfo = IsCellEditable
type AttrSetTypeConstraint CellEditableEditingCanceledPropertyInfo = (~) Bool
type AttrTransferTypeConstraint CellEditableEditingCanceledPropertyInfo = (~) Bool
type AttrTransferType CellEditableEditingCanceledPropertyInfo = Bool
type AttrGetType CellEditableEditingCanceledPropertyInfo = Bool
type AttrLabel CellEditableEditingCanceledPropertyInfo = "editing-canceled"
type AttrOrigin CellEditableEditingCanceledPropertyInfo = CellEditable
attrGet = getCellEditableEditingCanceled
attrSet = setCellEditableEditingCanceled
attrTransfer _ v = do
return v
attrConstruct = constructCellEditableEditingCanceled
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable.editingCanceled"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#g:attr:editingCanceled"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList CellEditable
type instance O.AttributeList CellEditable = CellEditableAttributeList
type CellEditableAttributeList = ('[ '("accessibleRole", Gtk.Accessible.AccessibleAccessibleRolePropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("editingCanceled", CellEditableEditingCanceledPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("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), '("layoutManager", Gtk.Widget.WidgetLayoutManagerPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("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)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
cellEditableEditingCanceled :: AttrLabelProxy "editingCanceled"
cellEditableEditingCanceled = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveCellEditableMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveCellEditableMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolveCellEditableMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveCellEditableMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveCellEditableMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveCellEditableMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveCellEditableMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolveCellEditableMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveCellEditableMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveCellEditableMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveCellEditableMethod "announce" o = Gtk.Accessible.AccessibleAnnounceMethodInfo
ResolveCellEditableMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveCellEditableMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveCellEditableMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveCellEditableMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveCellEditableMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveCellEditableMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveCellEditableMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveCellEditableMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveCellEditableMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveCellEditableMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveCellEditableMethod "disposeTemplate" o = Gtk.Widget.WidgetDisposeTemplateMethodInfo
ResolveCellEditableMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveCellEditableMethod "editingDone" o = CellEditableEditingDoneMethodInfo
ResolveCellEditableMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveCellEditableMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveCellEditableMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveCellEditableMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveCellEditableMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveCellEditableMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolveCellEditableMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveCellEditableMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveCellEditableMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveCellEditableMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveCellEditableMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveCellEditableMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveCellEditableMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveCellEditableMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveCellEditableMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveCellEditableMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveCellEditableMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveCellEditableMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveCellEditableMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveCellEditableMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveCellEditableMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveCellEditableMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveCellEditableMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveCellEditableMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveCellEditableMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveCellEditableMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveCellEditableMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveCellEditableMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveCellEditableMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveCellEditableMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveCellEditableMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveCellEditableMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveCellEditableMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveCellEditableMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveCellEditableMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveCellEditableMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveCellEditableMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveCellEditableMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveCellEditableMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolveCellEditableMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveCellEditableMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveCellEditableMethod "removeWidget" o = CellEditableRemoveWidgetMethodInfo
ResolveCellEditableMethod "resetProperty" o = Gtk.Accessible.AccessibleResetPropertyMethodInfo
ResolveCellEditableMethod "resetRelation" o = Gtk.Accessible.AccessibleResetRelationMethodInfo
ResolveCellEditableMethod "resetState" o = Gtk.Accessible.AccessibleResetStateMethodInfo
ResolveCellEditableMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveCellEditableMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolveCellEditableMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveCellEditableMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveCellEditableMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveCellEditableMethod "startEditing" o = CellEditableStartEditingMethodInfo
ResolveCellEditableMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveCellEditableMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveCellEditableMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveCellEditableMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveCellEditableMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveCellEditableMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveCellEditableMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveCellEditableMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveCellEditableMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveCellEditableMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveCellEditableMethod "updateNextAccessibleSibling" o = Gtk.Accessible.AccessibleUpdateNextAccessibleSiblingMethodInfo
ResolveCellEditableMethod "updateProperty" o = Gtk.Accessible.AccessibleUpdatePropertyMethodInfo
ResolveCellEditableMethod "updateRelation" o = Gtk.Accessible.AccessibleUpdateRelationMethodInfo
ResolveCellEditableMethod "updateState" o = Gtk.Accessible.AccessibleUpdateStateMethodInfo
ResolveCellEditableMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveCellEditableMethod "getAccessibleParent" o = Gtk.Accessible.AccessibleGetAccessibleParentMethodInfo
ResolveCellEditableMethod "getAccessibleRole" o = Gtk.Accessible.AccessibleGetAccessibleRoleMethodInfo
ResolveCellEditableMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveCellEditableMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveCellEditableMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveCellEditableMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveCellEditableMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveCellEditableMethod "getAtContext" o = Gtk.Accessible.AccessibleGetAtContextMethodInfo
ResolveCellEditableMethod "getBaseline" o = Gtk.Widget.WidgetGetBaselineMethodInfo
ResolveCellEditableMethod "getBounds" o = Gtk.Accessible.AccessibleGetBoundsMethodInfo
ResolveCellEditableMethod "getBuildableId" o = Gtk.Buildable.BuildableGetBuildableIdMethodInfo
ResolveCellEditableMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveCellEditableMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveCellEditableMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveCellEditableMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveCellEditableMethod "getColor" o = Gtk.Widget.WidgetGetColorMethodInfo
ResolveCellEditableMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolveCellEditableMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolveCellEditableMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveCellEditableMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveCellEditableMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveCellEditableMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveCellEditableMethod "getFirstAccessibleChild" o = Gtk.Accessible.AccessibleGetFirstAccessibleChildMethodInfo
ResolveCellEditableMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveCellEditableMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveCellEditableMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveCellEditableMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolveCellEditableMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveCellEditableMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveCellEditableMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveCellEditableMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveCellEditableMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveCellEditableMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveCellEditableMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveCellEditableMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveCellEditableMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveCellEditableMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveCellEditableMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveCellEditableMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveCellEditableMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveCellEditableMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveCellEditableMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveCellEditableMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveCellEditableMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolveCellEditableMethod "getNextAccessibleSibling" o = Gtk.Accessible.AccessibleGetNextAccessibleSiblingMethodInfo
ResolveCellEditableMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveCellEditableMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveCellEditableMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveCellEditableMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveCellEditableMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveCellEditableMethod "getPlatformState" o = Gtk.Accessible.AccessibleGetPlatformStateMethodInfo
ResolveCellEditableMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveCellEditableMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveCellEditableMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveCellEditableMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveCellEditableMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveCellEditableMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveCellEditableMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveCellEditableMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveCellEditableMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveCellEditableMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveCellEditableMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveCellEditableMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveCellEditableMethod "getSize" o = Gtk.Widget.WidgetGetSizeMethodInfo
ResolveCellEditableMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveCellEditableMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveCellEditableMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveCellEditableMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveCellEditableMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveCellEditableMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveCellEditableMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveCellEditableMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveCellEditableMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveCellEditableMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveCellEditableMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveCellEditableMethod "setAccessibleParent" o = Gtk.Accessible.AccessibleSetAccessibleParentMethodInfo
ResolveCellEditableMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveCellEditableMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveCellEditableMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveCellEditableMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolveCellEditableMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveCellEditableMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveCellEditableMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveCellEditableMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveCellEditableMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveCellEditableMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveCellEditableMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveCellEditableMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolveCellEditableMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveCellEditableMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveCellEditableMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveCellEditableMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveCellEditableMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveCellEditableMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveCellEditableMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveCellEditableMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveCellEditableMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveCellEditableMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveCellEditableMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveCellEditableMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveCellEditableMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveCellEditableMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveCellEditableMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveCellEditableMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveCellEditableMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveCellEditableMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveCellEditableMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveCellEditableMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveCellEditableMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveCellEditableMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveCellEditableMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveCellEditableMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveCellEditableMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveCellEditableMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveCellEditableMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveCellEditableMethod t CellEditable, O.OverloadedMethod info CellEditable p) => OL.IsLabel t (CellEditable -> 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 ~ ResolveCellEditableMethod t CellEditable, O.OverloadedMethod info CellEditable p, R.HasField t CellEditable p) => R.HasField t CellEditable p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveCellEditableMethod t CellEditable, O.OverloadedMethodInfo info CellEditable) => OL.IsLabel t (O.MethodProxy info CellEditable) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
foreign import ccall "gtk_cell_editable_editing_done" gtk_cell_editable_editing_done ::
Ptr CellEditable ->
IO ()
{-# DEPRECATED cellEditableEditingDone ["(Since version 4.10)"] #-}
cellEditableEditingDone ::
(B.CallStack.HasCallStack, MonadIO m, IsCellEditable a) =>
a
-> m ()
cellEditableEditingDone :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellEditable a) =>
a -> m ()
cellEditableEditingDone a
cellEditable = 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 CellEditable
cellEditable' <- a -> IO (Ptr CellEditable)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
cellEditable
Ptr CellEditable -> IO ()
gtk_cell_editable_editing_done Ptr CellEditable
cellEditable'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
cellEditable
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellEditableEditingDoneMethodInfo
instance (signature ~ (m ()), MonadIO m, IsCellEditable a) => O.OverloadedMethod CellEditableEditingDoneMethodInfo a signature where
overloadedMethod = cellEditableEditingDone
instance O.OverloadedMethodInfo CellEditableEditingDoneMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable.cellEditableEditingDone",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#v:cellEditableEditingDone"
})
#endif
foreign import ccall "gtk_cell_editable_remove_widget" gtk_cell_editable_remove_widget ::
Ptr CellEditable ->
IO ()
{-# DEPRECATED cellEditableRemoveWidget ["(Since version 4.10)"] #-}
cellEditableRemoveWidget ::
(B.CallStack.HasCallStack, MonadIO m, IsCellEditable a) =>
a
-> m ()
cellEditableRemoveWidget :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellEditable a) =>
a -> m ()
cellEditableRemoveWidget a
cellEditable = 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 CellEditable
cellEditable' <- a -> IO (Ptr CellEditable)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
cellEditable
Ptr CellEditable -> IO ()
gtk_cell_editable_remove_widget Ptr CellEditable
cellEditable'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
cellEditable
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellEditableRemoveWidgetMethodInfo
instance (signature ~ (m ()), MonadIO m, IsCellEditable a) => O.OverloadedMethod CellEditableRemoveWidgetMethodInfo a signature where
overloadedMethod = cellEditableRemoveWidget
instance O.OverloadedMethodInfo CellEditableRemoveWidgetMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable.cellEditableRemoveWidget",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#v:cellEditableRemoveWidget"
})
#endif
foreign import ccall "gtk_cell_editable_start_editing" gtk_cell_editable_start_editing ::
Ptr CellEditable ->
Ptr Gdk.Event.Event ->
IO ()
cellEditableStartEditing ::
(B.CallStack.HasCallStack, MonadIO m, IsCellEditable a, Gdk.Event.IsEvent b) =>
a
-> Maybe (b)
-> m ()
cellEditableStartEditing :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsCellEditable a, IsEvent b) =>
a -> Maybe b -> m ()
cellEditableStartEditing a
cellEditable Maybe b
event = 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 CellEditable
cellEditable' <- a -> IO (Ptr CellEditable)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
cellEditable
Ptr Event
maybeEvent <- case Maybe b
event of
Maybe b
Nothing -> Ptr Event -> IO (Ptr Event)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Event
forall a. Ptr a
FP.nullPtr
Just b
jEvent -> do
Ptr Event
jEvent' <- b -> IO (Ptr Event)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jEvent
Ptr Event -> IO (Ptr Event)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Event
jEvent'
Ptr CellEditable -> Ptr Event -> IO ()
gtk_cell_editable_start_editing Ptr CellEditable
cellEditable' Ptr Event
maybeEvent
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
cellEditable
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
event b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellEditableStartEditingMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsCellEditable a, Gdk.Event.IsEvent b) => O.OverloadedMethod CellEditableStartEditingMethodInfo a signature where
overloadedMethod = cellEditableStartEditing
instance O.OverloadedMethodInfo CellEditableStartEditingMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable.cellEditableStartEditing",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#v:cellEditableStartEditing"
})
#endif
type CellEditableEditingDoneCallback =
IO ()
type C_CellEditableEditingDoneCallback =
Ptr CellEditable ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_CellEditableEditingDoneCallback :: C_CellEditableEditingDoneCallback -> IO (FunPtr C_CellEditableEditingDoneCallback)
wrap_CellEditableEditingDoneCallback ::
GObject a => (a -> CellEditableEditingDoneCallback) ->
C_CellEditableEditingDoneCallback
wrap_CellEditableEditingDoneCallback :: forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableEditingDoneCallback a -> IO ()
gi'cb Ptr CellEditable
gi'selfPtr Ptr ()
_ = do
Ptr CellEditable -> (CellEditable -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr CellEditable
gi'selfPtr ((CellEditable -> IO ()) -> IO ())
-> (CellEditable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CellEditable
gi'self -> a -> IO ()
gi'cb (CellEditable -> a
forall a b. Coercible a b => a -> b
Coerce.coerce CellEditable
gi'self)
onCellEditableEditingDone :: (IsCellEditable a, MonadIO m) => a -> ((?self :: a) => CellEditableEditingDoneCallback) -> m SignalHandlerId
onCellEditableEditingDone :: forall a (m :: * -> *).
(IsCellEditable a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onCellEditableEditingDone a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_CellEditableEditingDoneCallback
wrapped' = (a -> IO ()) -> C_CellEditableEditingDoneCallback
forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableEditingDoneCallback a -> IO ()
wrapped
FunPtr C_CellEditableEditingDoneCallback
wrapped'' <- C_CellEditableEditingDoneCallback
-> IO (FunPtr C_CellEditableEditingDoneCallback)
mk_CellEditableEditingDoneCallback C_CellEditableEditingDoneCallback
wrapped'
a
-> Text
-> FunPtr C_CellEditableEditingDoneCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"editing-done" FunPtr C_CellEditableEditingDoneCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterCellEditableEditingDone :: (IsCellEditable a, MonadIO m) => a -> ((?self :: a) => CellEditableEditingDoneCallback) -> m SignalHandlerId
afterCellEditableEditingDone :: forall a (m :: * -> *).
(IsCellEditable a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterCellEditableEditingDone a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_CellEditableEditingDoneCallback
wrapped' = (a -> IO ()) -> C_CellEditableEditingDoneCallback
forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableEditingDoneCallback a -> IO ()
wrapped
FunPtr C_CellEditableEditingDoneCallback
wrapped'' <- C_CellEditableEditingDoneCallback
-> IO (FunPtr C_CellEditableEditingDoneCallback)
mk_CellEditableEditingDoneCallback C_CellEditableEditingDoneCallback
wrapped'
a
-> Text
-> FunPtr C_CellEditableEditingDoneCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"editing-done" FunPtr C_CellEditableEditingDoneCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data CellEditableEditingDoneSignalInfo
instance SignalInfo CellEditableEditingDoneSignalInfo where
type HaskellCallbackType CellEditableEditingDoneSignalInfo = CellEditableEditingDoneCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_CellEditableEditingDoneCallback cb
cb'' <- mk_CellEditableEditingDoneCallback cb'
connectSignalFunPtr obj "editing-done" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable::editing-done"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#g:signal:editingDone"})
#endif
type CellEditableRemoveWidgetCallback =
IO ()
type C_CellEditableRemoveWidgetCallback =
Ptr CellEditable ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_CellEditableRemoveWidgetCallback :: C_CellEditableRemoveWidgetCallback -> IO (FunPtr C_CellEditableRemoveWidgetCallback)
wrap_CellEditableRemoveWidgetCallback ::
GObject a => (a -> CellEditableRemoveWidgetCallback) ->
C_CellEditableRemoveWidgetCallback
wrap_CellEditableRemoveWidgetCallback :: forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableRemoveWidgetCallback a -> IO ()
gi'cb Ptr CellEditable
gi'selfPtr Ptr ()
_ = do
Ptr CellEditable -> (CellEditable -> IO ()) -> IO ()
forall o b.
(HasCallStack, GObject o) =>
Ptr o -> (o -> IO b) -> IO b
B.ManagedPtr.withNewObject Ptr CellEditable
gi'selfPtr ((CellEditable -> IO ()) -> IO ())
-> (CellEditable -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CellEditable
gi'self -> a -> IO ()
gi'cb (CellEditable -> a
forall a b. Coercible a b => a -> b
Coerce.coerce CellEditable
gi'self)
onCellEditableRemoveWidget :: (IsCellEditable a, MonadIO m) => a -> ((?self :: a) => CellEditableRemoveWidgetCallback) -> m SignalHandlerId
onCellEditableRemoveWidget :: forall a (m :: * -> *).
(IsCellEditable a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onCellEditableRemoveWidget a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_CellEditableEditingDoneCallback
wrapped' = (a -> IO ()) -> C_CellEditableEditingDoneCallback
forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableRemoveWidgetCallback a -> IO ()
wrapped
FunPtr C_CellEditableEditingDoneCallback
wrapped'' <- C_CellEditableEditingDoneCallback
-> IO (FunPtr C_CellEditableEditingDoneCallback)
mk_CellEditableRemoveWidgetCallback C_CellEditableEditingDoneCallback
wrapped'
a
-> Text
-> FunPtr C_CellEditableEditingDoneCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"remove-widget" FunPtr C_CellEditableEditingDoneCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterCellEditableRemoveWidget :: (IsCellEditable a, MonadIO m) => a -> ((?self :: a) => CellEditableRemoveWidgetCallback) -> m SignalHandlerId
afterCellEditableRemoveWidget :: forall a (m :: * -> *).
(IsCellEditable a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterCellEditableRemoveWidget a
obj (?self::a) => IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_CellEditableEditingDoneCallback
wrapped' = (a -> IO ()) -> C_CellEditableEditingDoneCallback
forall a.
GObject a =>
(a -> IO ()) -> C_CellEditableEditingDoneCallback
wrap_CellEditableRemoveWidgetCallback a -> IO ()
wrapped
FunPtr C_CellEditableEditingDoneCallback
wrapped'' <- C_CellEditableEditingDoneCallback
-> IO (FunPtr C_CellEditableEditingDoneCallback)
mk_CellEditableRemoveWidgetCallback C_CellEditableEditingDoneCallback
wrapped'
a
-> Text
-> FunPtr C_CellEditableEditingDoneCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"remove-widget" FunPtr C_CellEditableEditingDoneCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data CellEditableRemoveWidgetSignalInfo
instance SignalInfo CellEditableRemoveWidgetSignalInfo where
type HaskellCallbackType CellEditableRemoveWidgetSignalInfo = CellEditableRemoveWidgetCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_CellEditableRemoveWidgetCallback cb
cb'' <- mk_CellEditableRemoveWidgetCallback cb'
connectSignalFunPtr obj "remove-widget" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Interfaces.CellEditable::remove-widget"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.11/docs/GI-Gtk-Interfaces-CellEditable.html#g:signal:removeWidget"})
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList CellEditable = CellEditableSignalList
type CellEditableSignalList = ('[ '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("editingDone", CellEditableEditingDoneSignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("removeWidget", CellEditableRemoveWidgetSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, DK.Type)])
#endif