    {-# LANGUAGE TypeApplications #-}

    -- | Copyright  : Will Thompson and Iñaki García Etxebarria
    -- License    : LGPL-2.1
    -- Maintainer : Iñaki García Etxebarria
    --
    -- An interface for packing cells
    --
    -- @GtkCellLayout@ is an interface to be implemented by all objects which
    -- want to provide a @GtkTreeViewColumn@ like API for packing cells,
    -- setting attributes and data funcs.
    --
    -- One of the notable features provided by implementations of
    -- @GtkCellLayout@ are attributes. Attributes let you set the properties
    -- in flexible ways. They can just be set to constant values like regular
    -- properties. But they can also be mapped to a column of the underlying
    -- tree model with @/gtk_cell_layout_set_attributes()/@, which means that the value
    -- of the attribute can change from cell to cell as they are rendered by
    -- the cell renderer. Finally, it is possible to specify a function with
    -- 'GI.Gtk.Interfaces.CellLayout.cellLayoutSetCellDataFunc' that is called to determine the
    -- value of the attribute for each cell that is rendered.
    --
    -- == GtkCellLayouts as GtkBuildable
    --
    -- Implementations of GtkCellLayout which also implement the GtkBuildable
    -- interface (@GtkCellView@, @GtkIconView@, @GtkComboBox@,
    -- @GtkEntryCompletion@, @GtkTreeViewColumn@) accept @GtkCellRenderer@ objects
    -- as @\<child>@ elements in UI definitions. They support a custom @\<attributes>@
    -- element for their children, which can contain multiple @\<attribute>@
    -- elements. Each @\<attribute>@ element has a name attribute which specifies
    -- a property of the cell renderer; the content of the element is the
    -- attribute value.
    --
    -- This is an example of a UI definition fragment specifying attributes:
    --
    --
    -- === /xml code/
    -- ><object class="GtkCellView">
    -- >  <child>
    -- >    <object class="GtkCellRendererText"/>
    -- >    <attributes>
    -- >      <attribute name="text">0</attribute>
    -- >    </attributes>
    -- >  </child>
    -- ></object>
    --
    --
    -- Furthermore for implementations of @GtkCellLayout@ that use a @GtkCellArea@
    -- to lay out cells (all @GtkCellLayout@s in GTK use a @GtkCellArea@)
    -- <https://docs.gtk.org/gtk4/class.CellArea.html#cell-properties cell properties> can also be defined
    -- in the format by specifying the custom @\<cell-packing>@ attribute which can
    -- contain multiple @\<property>@ elements.
    --
    -- Here is a UI definition fragment specifying cell properties:
    --
    --
    -- === /xml code/
    -- ><object class="GtkTreeViewColumn">
    -- >  <child>
    -- >    <object class="GtkCellRendererText"/>
    -- >    <cell-packing>
    -- >      <property name="align">True</property>
    -- >      <property name="expand">False</property>
    -- >    </cell-packing>
    -- >  </child>
    -- ></object>
    --
    --
    -- == Subclassing GtkCellLayout implementations
    --
    -- When subclassing a widget that implements @GtkCellLayout@ like
    -- @GtkIconView@ or @GtkComboBox@, there are some considerations related
    -- to the fact that these widgets internally use a @GtkCellArea@.
    -- The cell area is exposed as a construct-only property by these
    -- widgets. This means that it is possible to e.g. do
    --
    --
    -- === /c code/
    -- >GtkWIdget *combo =
    -- >  g_object_new (GTK_TYPE_COMBO_BOX, "cell-area", my_cell_area, NULL);
    --
    --
    -- to use a custom cell area with a combo box. But construct properties
    -- are only initialized after instance @init()@
    -- functions have run, which means that using functions which rely on
    -- the existence of the cell area in your subclass @init()@ function will
    -- cause the default cell area to be instantiated. In this case, a provided
    -- construct property value will be ignored (with a warning, to alert
    -- you to the problem).
    --
    --
    -- === /c code/
    -- >static void
    -- >my_combo_box_init (MyComboBox *b)
    -- >{
    -- >  GtkCellRenderer *cell;
    -- >
    -- >  cell = gtk_cell_renderer_pixbuf_new ();
    -- >
    -- >  // The following call causes the default cell area for combo boxes,
    -- >  // a GtkCellAreaBox, to be instantiated
    -- >  gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (b), cell, FALSE);
    -- >  ...
    -- >}
    -- >
    -- >GtkWidget *
    -- >my_combo_box_new (GtkCellArea *area)
    -- >{
    -- >  // This call is going to cause a warning about area being ignored
    -- >  return g_object_new (MY_TYPE_COMBO_BOX, "cell-area", area, NULL);
    -- >}
    --
    --
    -- If supporting alternative cell areas with your derived widget is
    -- not important, then this does not have to concern you. If you want
    -- to support alternative cell areas, you can do so by moving the
    -- problematic calls out of @init()@ and into a @constructor()@
    -- for your class.

    #if !defined(__HADDOCK_VERSION__)
    #define ENABLE_OVERLOADING
    #endif

    module GI.Gtk.Interfaces.CellLayout
        (

    -- * Exported types
        CellLayout(..)                          ,
        IsCellLayout                            ,
        toCellLayout                            ,

     -- * Methods
    -- |
    --
    --  === __Click to display all available methods, including inherited ones__
    -- ==== Methods
    -- [addAttribute]("GI.Gtk.Interfaces.CellLayout#g:method:addAttribute"), [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [clear]("GI.Gtk.Interfaces.CellLayout#g:method:clear"), [clearAttributes]("GI.Gtk.Interfaces.CellLayout#g:method:clearAttributes"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [packEnd]("GI.Gtk.Interfaces.CellLayout#g:method:packEnd"), [packStart]("GI.Gtk.Interfaces.CellLayout#g:method:packStart"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [reorder]("GI.Gtk.Interfaces.CellLayout#g:method:reorder"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
    --
    -- ==== Getters
    -- [getArea]("GI.Gtk.Interfaces.CellLayout#g:method:getArea"), [getCells]("GI.Gtk.Interfaces.CellLayout#g:method:getCells"), [getData]("GI.GObject.Objects.Object#g:method:getData"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata").
    --
    -- ==== Setters
    -- [setCellDataFunc]("GI.Gtk.Interfaces.CellLayout#g:method:setCellDataFunc"), [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty").

    #if defined(ENABLE_OVERLOADING)
        ResolveCellLayoutMethod                 ,
    #endif

    -- ** addAttribute #method:addAttribute#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutAddAttributeMethodInfo        ,
    #endif
        cellLayoutAddAttribute                  ,

    -- ** clear #method:clear#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutClearMethodInfo               ,
    #endif
        cellLayoutClear                         ,

    -- ** clearAttributes #method:clearAttributes#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutClearAttributesMethodInfo     ,
    #endif
        cellLayoutClearAttributes               ,

    -- ** getArea #method:getArea#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutGetAreaMethodInfo             ,
    #endif
        cellLayoutGetArea                       ,

    -- ** getCells #method:getCells#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutGetCellsMethodInfo            ,
    #endif
        cellLayoutGetCells                      ,

    -- ** packEnd #method:packEnd#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutPackEndMethodInfo             ,
    #endif
        cellLayoutPackEnd                       ,

    -- ** packStart #method:packStart#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutPackStartMethodInfo           ,
    #endif
        cellLayoutPackStart                     ,

    -- ** reorder #method:reorder#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutReorderMethodInfo             ,
    #endif
        cellLayoutReorder                       ,

    -- ** setCellDataFunc #method:setCellDataFunc#

    #if defined(ENABLE_OVERLOADING)
        CellLayoutSetCellDataFuncMethodInfo     ,
    #endif
        cellLayoutSetCellDataFunc               ,

        ) 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

    -- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
    #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.Flags as Gsk.Flags
    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.ComponentTransfer as Gsk.ComponentTransfer
    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.CellEditable as Gtk.CellEditable
    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.Interfaces.TreeModel as Gtk.TreeModel
    import {-# SOURCE #-} qualified GI.Gtk.Objects.ATContext as Gtk.ATContext
    import {-# SOURCE #-} qualified GI.Gtk.Objects.CellArea as Gtk.CellArea
    import {-# SOURCE #-} qualified GI.Gtk.Objects.CellAreaContext as Gtk.CellAreaContext
    import {-# SOURCE #-} qualified GI.Gtk.Objects.CellRenderer as Gtk.CellRenderer
    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 {-# SOURCE #-} qualified GI.Gtk.Structs.TreeIter as Gtk.TreeIter
    import {-# SOURCE #-} qualified GI.Gtk.Structs.TreePath as Gtk.TreePath
    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.GLib.Callbacks as GLib.Callbacks
    import qualified GI.GObject.Objects.Object as GObject.Object
    import qualified GI.Gtk.Callbacks as Gtk.Callbacks
    import {-# SOURCE #-} qualified GI.Gtk.Objects.CellArea as Gtk.CellArea
    import {-# SOURCE #-} qualified GI.Gtk.Objects.CellRenderer as Gtk.CellRenderer

    #endif

    -- interface CellLayout
    -- | Memory-managed wrapper type.
    {-# DEPRECATED CellLayout ["(Since version 4.10)","List views use widgets to display their contents.","  See t'GI.Gtk.Objects.LayoutManager.LayoutManager' for layout manager delegate objects"] #-}
    newtype CellLayout = CellLayout (SP.ManagedPtr CellLayout)
        deriving (CellLayout -> CellLayout -> Bool
    (CellLayout -> CellLayout -> Bool)
    -> (CellLayout -> CellLayout -> Bool) -> Eq CellLayout
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: CellLayout -> CellLayout -> Bool
    == :: CellLayout -> CellLayout -> Bool
    $c/= :: CellLayout -> CellLayout -> Bool
    /= :: CellLayout -> CellLayout -> Bool
    Eq)

    instance SP.ManagedPtrNewtype CellLayout where
        toManagedPtr :: CellLayout -> ManagedPtr CellLayout
    toManagedPtr (CellLayout ManagedPtr CellLayout
    p) = ManagedPtr CellLayout
    p

    foreign import ccall "gtk_cell_layout_get_type"
        c_gtk_cell_layout_get_type :: IO B.Types.GType

    instance B.Types.TypedObject CellLayout where
        glibType :: IO GType
    glibType = IO GType
    c_gtk_cell_layout_get_type

    instance B.Types.GObject CellLayout

    -- | Type class for types which can be safely cast to t'CellLayout', for instance with `toCellLayout`.
    class (SP.GObject o, O.IsDescendantOf CellLayout o) => IsCellLayout o
    instance (SP.GObject o, O.IsDescendantOf CellLayout o) => IsCellLayout o

    instance O.HasParentTypes CellLayout
    type instance O.ParentTypes CellLayout = '[GObject.Object.Object]

    -- | Cast to t'CellLayout', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
    toCellLayout :: (MIO.MonadIO m, IsCellLayout o) => o -> m CellLayout
    toCellLayout :: forall (m :: * -> *) o.
    (MonadIO m, IsCellLayout o) =>
    o -> m CellLayout
    toCellLayout = IO CellLayout -> m CellLayout
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    MIO.liftIO (IO CellLayout -> m CellLayout)
    -> (o -> IO CellLayout) -> o -> m CellLayout
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . (ManagedPtr CellLayout -> CellLayout) -> o -> IO CellLayout
    forall o o'.
    (HasCallStack, ManagedPtrNewtype o, TypedObject o,
     ManagedPtrNewtype o', TypedObject o') =>
    (ManagedPtr o' -> o') -> o -> IO o'
    B.ManagedPtr.unsafeCastTo ManagedPtr CellLayout -> CellLayout
    CellLayout

    -- | Convert t'CellLayout' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
    instance B.GValue.IsGValue (Maybe CellLayout) where
        gvalueGType_ :: IO GType
    gvalueGType_ = IO GType
    c_gtk_cell_layout_get_type
        gvalueSet_ :: Ptr GValue -> Maybe CellLayout -> IO ()
    gvalueSet_ Ptr GValue
    gv Maybe CellLayout
    P.Nothing = Ptr GValue -> Ptr CellLayout -> IO ()
    forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
    B.GValue.set_object Ptr GValue
    gv (Ptr CellLayout
    forall a. Ptr a
    FP.nullPtr :: FP.Ptr CellLayout)
        gvalueSet_ Ptr GValue
    gv (P.Just CellLayout
    obj) = CellLayout -> (Ptr CellLayout -> IO ()) -> IO ()
    forall a c.
    (HasCallStack, ManagedPtrNewtype a) =>
    a -> (Ptr a -> IO c) -> IO c
    B.ManagedPtr.withManagedPtr CellLayout
    obj (Ptr GValue -> Ptr CellLayout -> IO ()
    forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
    B.GValue.set_object Ptr GValue
    gv)
        gvalueGet_ :: Ptr GValue -> IO (Maybe CellLayout)
    gvalueGet_ Ptr GValue
    gv = do
            ptr <- Ptr GValue -> IO (Ptr CellLayout)
    forall a. GObject a => Ptr GValue -> IO (Ptr a)
    B.GValue.get_object Ptr GValue
    gv :: IO (FP.Ptr CellLayout)
            if ptr /= FP.nullPtr
            then P.Just <$> B.ManagedPtr.newObject CellLayout ptr
            else return P.Nothing

    #if defined(ENABLE_OVERLOADING)
    instance O.HasAttributeList CellLayout
    type instance O.AttributeList CellLayout = CellLayoutAttributeList
    type CellLayoutAttributeList = ('[ ] :: [(Symbol, DK.Type)])
    #endif

    #if defined(ENABLE_OVERLOADING)
    #endif

    #if defined(ENABLE_OVERLOADING)
    type family ResolveCellLayoutMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
        ResolveCellLayoutMethod "addAttribute" o = CellLayoutAddAttributeMethodInfo
        ResolveCellLayoutMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
        ResolveCellLayoutMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
        ResolveCellLayoutMethod "clear" o = CellLayoutClearMethodInfo
        ResolveCellLayoutMethod "clearAttributes" o = CellLayoutClearAttributesMethodInfo
        ResolveCellLayoutMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
        ResolveCellLayoutMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
        ResolveCellLayoutMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
        ResolveCellLayoutMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
        ResolveCellLayoutMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
        ResolveCellLayoutMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
        ResolveCellLayoutMethod "packEnd" o = CellLayoutPackEndMethodInfo
        ResolveCellLayoutMethod "packStart" o = CellLayoutPackStartMethodInfo
        ResolveCellLayoutMethod "ref" o = GObject.Object.ObjectRefMethodInfo
        ResolveCellLayoutMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
        ResolveCellLayoutMethod "reorder" o = CellLayoutReorderMethodInfo
        ResolveCellLayoutMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
        ResolveCellLayoutMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
        ResolveCellLayoutMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
        ResolveCellLayoutMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
        ResolveCellLayoutMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
        ResolveCellLayoutMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
        ResolveCellLayoutMethod "getArea" o = CellLayoutGetAreaMethodInfo
        ResolveCellLayoutMethod "getCells" o = CellLayoutGetCellsMethodInfo
        ResolveCellLayoutMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
        ResolveCellLayoutMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
        ResolveCellLayoutMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
        ResolveCellLayoutMethod "setCellDataFunc" o = CellLayoutSetCellDataFuncMethodInfo
        ResolveCellLayoutMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
        ResolveCellLayoutMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
        ResolveCellLayoutMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
        ResolveCellLayoutMethod l o = O.MethodResolutionFailed l o

    instance (info ~ ResolveCellLayoutMethod t CellLayout, O.OverloadedMethod info CellLayout p) => OL.IsLabel t (CellLayout -> 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 ~ ResolveCellLayoutMethod t CellLayout, O.OverloadedMethod info CellLayout p, R.HasField t CellLayout p) => R.HasField t CellLayout p where
        getField = O.overloadedMethod @info

    #endif

    instance (info ~ ResolveCellLayoutMethod t CellLayout, O.OverloadedMethodInfo info CellLayout) => OL.IsLabel t (O.MethodProxy info CellLayout) where
    #if MIN_VERSION_base(4,10,0)
        fromLabel = O.MethodProxy
    #else
        fromLabel _ = O.MethodProxy
    #endif

    #endif

    -- method CellLayout::add_attribute
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellRenderer`"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "attribute"
    --           , argType = TBasicType TUTF8
    --           , argCType = Just "const char*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a property on the renderer"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "column"
    --           , argType = TBasicType TInt
    --           , argCType = Just "int"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just "the column position on the model to get the attribute from"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_add_attribute" gtk_cell_layout_add_attribute ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        CString ->                              -- attribute : TBasicType TUTF8
        Int32 ->                                -- column : TBasicType TInt
        IO ()

    {-# DEPRECATED cellLayoutAddAttribute ["(Since version 4.10)"] #-}
    -- | Adds an attribute mapping to the list in /@cellLayout@/.
    --
    -- The /@column@/ is the column of the model to get a value from, and the
    -- /@attribute@/ is the property on /@cell@/ to be set from that value. So for
    -- example if column 2 of the model contains strings, you could have the
    -- “text” attribute of a @GtkCellRendererText@ get its values from column 2.
    -- In this context \"attribute\" and \"property\" are used interchangeably.
    cellLayoutAddAttribute ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@
        -> T.Text
        -- ^ /@attribute@/: a property on the renderer
        -> Int32
        -- ^ /@column@/: the column position on the model to get the attribute from
        -> m ()
    cellLayoutAddAttribute :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> Text -> Int32 -> m ()
    cellLayoutAddAttribute a
    cellLayout b
    cell Text
    attribute Int32
    column = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        attribute' <- textToCString attribute
        gtk_cell_layout_add_attribute cellLayout' cell' attribute' column
        touchManagedPtr cellLayout
        touchManagedPtr cell
        freeMem attribute'
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutAddAttributeMethodInfo
    instance (signature ~ (b -> T.Text -> Int32 -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutAddAttributeMethodInfo a signature where
        overloadedMethod = cellLayoutAddAttribute

    instance O.OverloadedMethodInfo CellLayoutAddAttributeMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutAddAttribute",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutAddAttribute"
            })

    #endif

    -- method CellLayout::clear
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_clear" gtk_cell_layout_clear ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        IO ()

    {-# DEPRECATED cellLayoutClear ["(Since version 4.10)"] #-}
    -- | Unsets all the mappings on all renderers on /@cellLayout@/ and
    -- removes all renderers from /@cellLayout@/.
    cellLayoutClear ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> m ()
    cellLayoutClear :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsCellLayout a) =>
    a -> m ()
    cellLayoutClear a
    cellLayout = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        gtk_cell_layout_clear cellLayout'
        touchManagedPtr cellLayout
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutClearMethodInfo
    instance (signature ~ (m ()), MonadIO m, IsCellLayout a) => O.OverloadedMethod CellLayoutClearMethodInfo a signature where
        overloadedMethod = cellLayoutClear

    instance O.OverloadedMethodInfo CellLayoutClearMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutClear",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutClear"
            })

    #endif

    -- method CellLayout::clear_attributes
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just "a `GtkCellRenderer` to clear the attribute mapping on"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_clear_attributes" gtk_cell_layout_clear_attributes ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        IO ()

    {-# DEPRECATED cellLayoutClearAttributes ["(Since version 4.10)"] #-}
    -- | Clears all existing attributes previously set with
    -- @/gtk_cell_layout_set_attributes()/@.
    cellLayoutClearAttributes ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@ to clear the attribute mapping on
        -> m ()
    cellLayoutClearAttributes :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> m ()
    cellLayoutClearAttributes a
    cellLayout b
    cell = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        gtk_cell_layout_clear_attributes cellLayout' cell'
        touchManagedPtr cellLayout
        touchManagedPtr cell
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutClearAttributesMethodInfo
    instance (signature ~ (b -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutClearAttributesMethodInfo a signature where
        overloadedMethod = cellLayoutClearAttributes

    instance O.OverloadedMethodInfo CellLayoutClearAttributesMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutClearAttributes",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutClearAttributes"
            })

    #endif

    -- method CellLayout::get_area
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Just (TInterface Name { namespace = "Gtk" , name = "CellArea" })
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_get_area" gtk_cell_layout_get_area ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        IO (Ptr Gtk.CellArea.CellArea)

    {-# DEPRECATED cellLayoutGetArea ["(Since version 4.10)"] #-}
    -- | Returns the underlying @GtkCellArea@ which might be /@cellLayout@/
    -- if called on a @GtkCellArea@ or might be 'P.Nothing' if no @GtkCellArea@
    -- is used by /@cellLayout@/.
    cellLayoutGetArea ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> m (Maybe Gtk.CellArea.CellArea)
        -- ^ __Returns:__ the cell area used by /@cellLayout@/
    cellLayoutGetArea :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsCellLayout a) =>
    a -> m (Maybe CellArea)
    cellLayoutGetArea a
    cellLayout = IO (Maybe CellArea) -> m (Maybe CellArea)
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO (Maybe CellArea) -> m (Maybe CellArea))
    -> IO (Maybe CellArea) -> m (Maybe CellArea)
    forall a b. (a -> b) -> a -> b
    $ do
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        result <- gtk_cell_layout_get_area cellLayout'
        maybeResult <- convertIfNonNull result $ \Ptr CellArea
    result' -> do
            result'' <- ((ManagedPtr CellArea -> CellArea) -> Ptr CellArea -> IO CellArea
    forall a b.
    (HasCallStack, GObject a, GObject b) =>
    (ManagedPtr a -> a) -> Ptr b -> IO a
    newObject ManagedPtr CellArea -> CellArea
    Gtk.CellArea.CellArea) Ptr CellArea
    result'
            return result''
        touchManagedPtr cellLayout
        return maybeResult

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutGetAreaMethodInfo
    instance (signature ~ (m (Maybe Gtk.CellArea.CellArea)), MonadIO m, IsCellLayout a) => O.OverloadedMethod CellLayoutGetAreaMethodInfo a signature where
        overloadedMethod = cellLayoutGetArea

    instance O.OverloadedMethodInfo CellLayoutGetAreaMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutGetArea",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutGetArea"
            })

    #endif

    -- method CellLayout::get_cells
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Just
    --               (TGList
    --                  (TInterface Name { namespace = "Gtk" , name = "CellRenderer" }))
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_get_cells" gtk_cell_layout_get_cells ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        IO (Ptr (GList (Ptr Gtk.CellRenderer.CellRenderer)))

    {-# DEPRECATED cellLayoutGetCells ["(Since version 4.10)"] #-}
    -- | Returns the cell renderers which have been added to /@cellLayout@/.
    cellLayoutGetCells ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> m [Gtk.CellRenderer.CellRenderer]
        -- ^ __Returns:__
        --   a list of cell renderers. The list, but not the renderers has
        --   been newly allocated and should be freed with @/g_list_free()/@
        --   when no longer needed.
    cellLayoutGetCells :: forall (m :: * -> *) a.
    (HasCallStack, MonadIO m, IsCellLayout a) =>
    a -> m [CellRenderer]
    cellLayoutGetCells a
    cellLayout = IO [CellRenderer] -> m [CellRenderer]
    forall a. IO a -> m a
    forall (m :: * -> *) a. MonadIO m => IO a -> m a
    liftIO (IO [CellRenderer] -> m [CellRenderer])
    -> IO [CellRenderer] -> m [CellRenderer]
    forall a b. (a -> b) -> a -> b
    $ do
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        result <- gtk_cell_layout_get_cells cellLayout'
        result' <- unpackGList result
        result'' <- mapM (newObject Gtk.CellRenderer.CellRenderer) result'
        g_list_free result
        touchManagedPtr cellLayout
        return result''

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutGetCellsMethodInfo
    instance (signature ~ (m [Gtk.CellRenderer.CellRenderer]), MonadIO m, IsCellLayout a) => O.OverloadedMethod CellLayoutGetCellsMethodInfo a signature where
        overloadedMethod = cellLayoutGetCells

    instance O.OverloadedMethodInfo CellLayoutGetCellsMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutGetCells",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutGetCells"
            })

    #endif

    -- method CellLayout::pack_end
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellRenderer`"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "expand"
    --           , argType = TBasicType TBoolean
    --           , argCType = Just "gboolean"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just
    --                       "%TRUE if @cell is to be given extra space allocated to @cell_layout"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_pack_end" gtk_cell_layout_pack_end ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        CInt ->                                 -- expand : TBasicType TBoolean
        IO ()

    {-# DEPRECATED cellLayoutPackEnd ["(Since version 4.10)"] #-}
    -- | Adds the /@cell@/ to the end of /@cellLayout@/. If /@expand@/ is 'P.False', then the
    -- /@cell@/ is allocated no more space than it needs. Any unused space is
    -- divided evenly between cells for which /@expand@/ is 'P.True'.
    --
    -- Note that reusing the same cell renderer is not supported.
    cellLayoutPackEnd ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@
        -> Bool
        -- ^ /@expand@/: 'P.True' if /@cell@/ is to be given extra space allocated to /@cellLayout@/
        -> m ()
    cellLayoutPackEnd :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> Bool -> m ()
    cellLayoutPackEnd a
    cellLayout b
    cell Bool
    expand = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        let expand' = (Int -> CInt
    forall a b. (Integral a, Num b) => a -> b
    P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . Bool -> Int
    forall a. Enum a => a -> Int
    P.fromEnum) Bool
    expand
        gtk_cell_layout_pack_end cellLayout' cell' expand'
        touchManagedPtr cellLayout
        touchManagedPtr cell
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutPackEndMethodInfo
    instance (signature ~ (b -> Bool -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutPackEndMethodInfo a signature where
        overloadedMethod = cellLayoutPackEnd

    instance O.OverloadedMethodInfo CellLayoutPackEndMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutPackEnd",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutPackEnd"
            })

    #endif

    -- method CellLayout::pack_start
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellRenderer`"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "expand"
    --           , argType = TBasicType TBoolean
    --           , argCType = Just "gboolean"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText =
    --                     Just
    --                       "%TRUE if @cell is to be given extra space allocated to @cell_layout"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_pack_start" gtk_cell_layout_pack_start ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        CInt ->                                 -- expand : TBasicType TBoolean
        IO ()

    {-# DEPRECATED cellLayoutPackStart ["(Since version 4.10)"] #-}
    -- | Packs the /@cell@/ into the beginning of /@cellLayout@/. If /@expand@/ is 'P.False',
    -- then the /@cell@/ is allocated no more space than it needs. Any unused space
    -- is divided evenly between cells for which /@expand@/ is 'P.True'.
    --
    -- Note that reusing the same cell renderer is not supported.
    cellLayoutPackStart ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@
        -> Bool
        -- ^ /@expand@/: 'P.True' if /@cell@/ is to be given extra space allocated to /@cellLayout@/
        -> m ()
    cellLayoutPackStart :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> Bool -> m ()
    cellLayoutPackStart a
    cellLayout b
    cell Bool
    expand = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        let expand' = (Int -> CInt
    forall a b. (Integral a, Num b) => a -> b
    P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
    forall b c a. (b -> c) -> (a -> b) -> a -> c
    . Bool -> Int
    forall a. Enum a => a -> Int
    P.fromEnum) Bool
    expand
        gtk_cell_layout_pack_start cellLayout' cell' expand'
        touchManagedPtr cellLayout
        touchManagedPtr cell
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutPackStartMethodInfo
    instance (signature ~ (b -> Bool -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutPackStartMethodInfo a signature where
        overloadedMethod = cellLayoutPackStart

    instance O.OverloadedMethodInfo CellLayoutPackStartMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutPackStart",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutPackStart"
            })

    #endif

    -- method CellLayout::reorder
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellRenderer` to reorder"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "position"
    --           , argType = TBasicType TInt
    --           , argCType = Just "int"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "new position to insert @cell at"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_reorder" gtk_cell_layout_reorder ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        Int32 ->                                -- position : TBasicType TInt
        IO ()

    {-# DEPRECATED cellLayoutReorder ["(Since version 4.10)"] #-}
    -- | Re-inserts /@cell@/ at /@position@/.
    --
    -- Note that /@cell@/ has already to be packed into /@cellLayout@/
    -- for this to function properly.
    cellLayoutReorder ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@ to reorder
        -> Int32
        -- ^ /@position@/: new position to insert /@cell@/ at
        -> m ()
    cellLayoutReorder :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> Int32 -> m ()
    cellLayoutReorder a
    cellLayout b
    cell Int32
    position = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        gtk_cell_layout_reorder cellLayout' cell' position
        touchManagedPtr cellLayout
        touchManagedPtr cell
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutReorderMethodInfo
    instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutReorderMethodInfo a signature where
        overloadedMethod = cellLayoutReorder

    instance O.OverloadedMethodInfo CellLayoutReorderMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutReorder",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutReorder"
            })

    #endif

    -- method CellLayout::set_cell_data_func
    -- method type : OrdinaryMethod
    -- Args: [ Arg
    --           { argCName = "cell_layout"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayout" }
    --           , argCType = Just "GtkCellLayout*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellLayout`" , sinceVersion = Nothing }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "cell"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellRenderer" }
    --           , argCType = Just "GtkCellRenderer*"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "a `GtkCellRenderer`"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "func"
    --           , argType =
    --               TInterface Name { namespace = "Gtk" , name = "CellLayoutDataFunc" }
    --           , argCType = Just "GtkCellLayoutDataFunc"
    --           , direction = DirectionIn
    --           , mayBeNull = True
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "the `GtkCellLayout`DataFunc to use"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeNotified
    --           , argClosure = 3
    --           , argDestroy = 4
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "func_data"
    --           , argType = TBasicType TPtr
    --           , argCType = Just "gpointer"
    --           , direction = DirectionIn
    --           , mayBeNull = True
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "user data for @func"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeInvalid
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       , Arg
    --           { argCName = "destroy"
    --           , argType =
    --               TInterface Name { namespace = "GLib" , name = "DestroyNotify" }
    --           , argCType = Just "GDestroyNotify"
    --           , direction = DirectionIn
    --           , mayBeNull = False
    --           , argDoc =
    --               Documentation
    --                 { rawDocText = Just "destroy notify for @func_data"
    --                 , sinceVersion = Nothing
    --                 }
    --           , argScope = ScopeTypeAsync
    --           , argClosure = -1
    --           , argDestroy = -1
    --           , argCallerAllocates = False
    --           , argCallbackUserData = False
    --           , transfer = TransferNothing
    --           }
    --       ]
    -- Lengths: []
    -- returnType: Nothing
    -- throws : False
    -- Skip return : False

    foreign import ccall "gtk_cell_layout_set_cell_data_func" gtk_cell_layout_set_cell_data_func ::
        Ptr CellLayout ->                       -- cell_layout : TInterface (Name {namespace = "Gtk", name = "CellLayout"})
        Ptr Gtk.CellRenderer.CellRenderer ->    -- cell : TInterface (Name {namespace = "Gtk", name = "CellRenderer"})
        FunPtr Gtk.Callbacks.C_CellLayoutDataFunc -> -- func : TInterface (Name {namespace = "Gtk", name = "CellLayoutDataFunc"})
        Ptr () ->                               -- func_data : TBasicType TPtr
        FunPtr GLib.Callbacks.C_DestroyNotify -> -- destroy : TInterface (Name {namespace = "GLib", name = "DestroyNotify"})
        IO ()

    {-# DEPRECATED cellLayoutSetCellDataFunc ["(Since version 4.10)"] #-}
    -- | Sets the @GtkCellLayout@DataFunc to use for /@cellLayout@/.
    --
    -- This function is used instead of the standard attributes mapping
    -- for setting the column value, and should set the value of /@cellLayout@/’s
    -- cell renderer(s) as appropriate.
    --
    -- /@func@/ may be 'P.Nothing' to remove a previously set function.
    cellLayoutSetCellDataFunc ::
        (B.CallStack.HasCallStack, MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) =>
        a
        -- ^ /@cellLayout@/: a @GtkCellLayout@
        -> b
        -- ^ /@cell@/: a @GtkCellRenderer@
        -> Maybe (Gtk.Callbacks.CellLayoutDataFunc)
        -- ^ /@func@/: the @GtkCellLayout@DataFunc to use
        -> m ()
    cellLayoutSetCellDataFunc :: forall (m :: * -> *) a b.
    (HasCallStack, MonadIO m, IsCellLayout a, IsCellRenderer b) =>
    a -> b -> Maybe CellLayoutDataFunc -> m ()
    cellLayoutSetCellDataFunc a
    cellLayout b
    cell Maybe CellLayoutDataFunc
    func = 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
        cellLayout' <- a -> IO (Ptr CellLayout)
    forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
    unsafeManagedPtrCastPtr a
    cellLayout
        cell' <- unsafeManagedPtrCastPtr cell
        maybeFunc <- case func of
            Maybe CellLayoutDataFunc
    Nothing -> FunPtr C_CellLayoutDataFunc -> IO (FunPtr C_CellLayoutDataFunc)
    forall a. a -> IO a
    forall (m :: * -> *) a. Monad m => a -> m a
    return FunPtr C_CellLayoutDataFunc
    forall a. FunPtr a
    FP.nullFunPtr
            Just CellLayoutDataFunc
    jFunc -> do
                jFunc' <- C_CellLayoutDataFunc -> IO (FunPtr C_CellLayoutDataFunc)
    Gtk.Callbacks.mk_CellLayoutDataFunc (Maybe (Ptr (FunPtr C_CellLayoutDataFunc))
    -> CellLayoutDataFunc_WithClosures -> C_CellLayoutDataFunc
    Gtk.Callbacks.wrap_CellLayoutDataFunc Maybe (Ptr (FunPtr C_CellLayoutDataFunc))
    forall a. Maybe a
    Nothing (CellLayoutDataFunc -> CellLayoutDataFunc_WithClosures
    Gtk.Callbacks.drop_closures_CellLayoutDataFunc CellLayoutDataFunc
    jFunc))
                return jFunc'
        let funcData = FunPtr C_CellLayoutDataFunc -> Ptr ()
    forall a b. FunPtr a -> Ptr b
    castFunPtrToPtr FunPtr C_CellLayoutDataFunc
    maybeFunc
        let destroy = FunPtr (Ptr a -> IO ())
    forall a. FunPtr (Ptr a -> IO ())
    SP.safeFreeFunPtrPtr
        gtk_cell_layout_set_cell_data_func cellLayout' cell' maybeFunc funcData destroy
        touchManagedPtr cellLayout
        touchManagedPtr cell
        return ()

    #if defined(ENABLE_OVERLOADING)
    data CellLayoutSetCellDataFuncMethodInfo
    instance (signature ~ (b -> Maybe (Gtk.Callbacks.CellLayoutDataFunc) -> m ()), MonadIO m, IsCellLayout a, Gtk.CellRenderer.IsCellRenderer b) => O.OverloadedMethod CellLayoutSetCellDataFuncMethodInfo a signature where
        overloadedMethod = cellLayoutSetCellDataFunc

    instance O.OverloadedMethodInfo CellLayoutSetCellDataFuncMethodInfo a where
        overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
            O.resolvedSymbolName = "GI.Gtk.Interfaces.CellLayout.cellLayoutSetCellDataFunc",
            O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk4-4.0.12/docs/GI-Gtk-Interfaces-CellLayout.html#v:cellLayoutSetCellDataFunc"
            })

    #endif

    #if defined(ENABLE_OVERLOADING)
    type instance O.SignalList CellLayout = CellLayoutSignalList
    type CellLayoutSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

    #endif