{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.CellRendererAccel
(
CellRendererAccel(..) ,
IsCellRendererAccel ,
toCellRendererAccel ,
#if defined(ENABLE_OVERLOADING)
ResolveCellRendererAccelMethod ,
#endif
cellRendererAccelNew ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelAccelKeyPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellRendererAccelAccelKey ,
#endif
constructCellRendererAccelAccelKey ,
getCellRendererAccelAccelKey ,
setCellRendererAccelAccelKey ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelAccelModePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellRendererAccelAccelMode ,
#endif
constructCellRendererAccelAccelMode ,
getCellRendererAccelAccelMode ,
setCellRendererAccelAccelMode ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelAccelModsPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellRendererAccelAccelMods ,
#endif
constructCellRendererAccelAccelMods ,
getCellRendererAccelAccelMods ,
setCellRendererAccelAccelMods ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelKeycodePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellRendererAccelKeycode ,
#endif
constructCellRendererAccelKeycode ,
getCellRendererAccelKeycode ,
setCellRendererAccelKeycode ,
CellRendererAccelAccelClearedCallback ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelAccelClearedSignalInfo ,
#endif
afterCellRendererAccelAccelCleared ,
onCellRendererAccelAccelCleared ,
CellRendererAccelAccelEditedCallback ,
#if defined(ENABLE_OVERLOADING)
CellRendererAccelAccelEditedSignalInfo ,
#endif
afterCellRendererAccelAccelEdited ,
onCellRendererAccelAccelEdited ,
) 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 GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Objects.CellRenderer as Gtk.CellRenderer
import {-# SOURCE #-} qualified GI.Gtk.Objects.CellRendererText as Gtk.CellRendererText
newtype CellRendererAccel = CellRendererAccel (SP.ManagedPtr CellRendererAccel)
deriving (CellRendererAccel -> CellRendererAccel -> Bool
(CellRendererAccel -> CellRendererAccel -> Bool)
-> (CellRendererAccel -> CellRendererAccel -> Bool)
-> Eq CellRendererAccel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CellRendererAccel -> CellRendererAccel -> Bool
== :: CellRendererAccel -> CellRendererAccel -> Bool
$c/= :: CellRendererAccel -> CellRendererAccel -> Bool
/= :: CellRendererAccel -> CellRendererAccel -> Bool
Eq)
instance SP.ManagedPtrNewtype CellRendererAccel where
toManagedPtr :: CellRendererAccel -> ManagedPtr CellRendererAccel
toManagedPtr (CellRendererAccel ManagedPtr CellRendererAccel
p) = ManagedPtr CellRendererAccel
p
foreign import ccall "gtk_cell_renderer_accel_get_type"
c_gtk_cell_renderer_accel_get_type :: IO B.Types.GType
instance B.Types.TypedObject CellRendererAccel where
glibType :: IO GType
glibType = IO GType
c_gtk_cell_renderer_accel_get_type
instance B.Types.GObject CellRendererAccel
class (SP.GObject o, O.IsDescendantOf CellRendererAccel o) => IsCellRendererAccel o
instance (SP.GObject o, O.IsDescendantOf CellRendererAccel o) => IsCellRendererAccel o
instance O.HasParentTypes CellRendererAccel
type instance O.ParentTypes CellRendererAccel = '[Gtk.CellRendererText.CellRendererText, Gtk.CellRenderer.CellRenderer, GObject.Object.Object]
toCellRendererAccel :: (MIO.MonadIO m, IsCellRendererAccel o) => o -> m CellRendererAccel
toCellRendererAccel :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> m CellRendererAccel
toCellRendererAccel = IO CellRendererAccel -> m CellRendererAccel
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO CellRendererAccel -> m CellRendererAccel)
-> (o -> IO CellRendererAccel) -> o -> m CellRendererAccel
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr CellRendererAccel -> CellRendererAccel)
-> o -> IO CellRendererAccel
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr CellRendererAccel -> CellRendererAccel
CellRendererAccel
instance B.GValue.IsGValue (Maybe CellRendererAccel) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_cell_renderer_accel_get_type
gvalueSet_ :: Ptr GValue -> Maybe CellRendererAccel -> IO ()
gvalueSet_ Ptr GValue
gv Maybe CellRendererAccel
P.Nothing = Ptr GValue -> Ptr CellRendererAccel -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr CellRendererAccel
forall a. Ptr a
FP.nullPtr :: FP.Ptr CellRendererAccel)
gvalueSet_ Ptr GValue
gv (P.Just CellRendererAccel
obj) = CellRendererAccel -> (Ptr CellRendererAccel -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr CellRendererAccel
obj (Ptr GValue -> Ptr CellRendererAccel -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe CellRendererAccel)
gvalueGet_ Ptr GValue
gv = do
Ptr CellRendererAccel
ptr <- Ptr GValue -> IO (Ptr CellRendererAccel)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr CellRendererAccel)
if Ptr CellRendererAccel
ptr Ptr CellRendererAccel -> Ptr CellRendererAccel -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr CellRendererAccel
forall a. Ptr a
FP.nullPtr
then CellRendererAccel -> Maybe CellRendererAccel
forall a. a -> Maybe a
P.Just (CellRendererAccel -> Maybe CellRendererAccel)
-> IO CellRendererAccel -> IO (Maybe CellRendererAccel)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr CellRendererAccel -> CellRendererAccel)
-> Ptr CellRendererAccel -> IO CellRendererAccel
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr CellRendererAccel -> CellRendererAccel
CellRendererAccel Ptr CellRendererAccel
ptr
else Maybe CellRendererAccel -> IO (Maybe CellRendererAccel)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe CellRendererAccel
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveCellRendererAccelMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveCellRendererAccelMethod "activate" o = Gtk.CellRenderer.CellRendererActivateMethodInfo
ResolveCellRendererAccelMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveCellRendererAccelMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveCellRendererAccelMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveCellRendererAccelMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveCellRendererAccelMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveCellRendererAccelMethod "isActivatable" o = Gtk.CellRenderer.CellRendererIsActivatableMethodInfo
ResolveCellRendererAccelMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveCellRendererAccelMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveCellRendererAccelMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveCellRendererAccelMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveCellRendererAccelMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveCellRendererAccelMethod "render" o = Gtk.CellRenderer.CellRendererRenderMethodInfo
ResolveCellRendererAccelMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveCellRendererAccelMethod "startEditing" o = Gtk.CellRenderer.CellRendererStartEditingMethodInfo
ResolveCellRendererAccelMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveCellRendererAccelMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveCellRendererAccelMethod "stopEditing" o = Gtk.CellRenderer.CellRendererStopEditingMethodInfo
ResolveCellRendererAccelMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveCellRendererAccelMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveCellRendererAccelMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveCellRendererAccelMethod "getAlignedArea" o = Gtk.CellRenderer.CellRendererGetAlignedAreaMethodInfo
ResolveCellRendererAccelMethod "getAlignment" o = Gtk.CellRenderer.CellRendererGetAlignmentMethodInfo
ResolveCellRendererAccelMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveCellRendererAccelMethod "getFixedSize" o = Gtk.CellRenderer.CellRendererGetFixedSizeMethodInfo
ResolveCellRendererAccelMethod "getPadding" o = Gtk.CellRenderer.CellRendererGetPaddingMethodInfo
ResolveCellRendererAccelMethod "getPreferredHeight" o = Gtk.CellRenderer.CellRendererGetPreferredHeightMethodInfo
ResolveCellRendererAccelMethod "getPreferredHeightForWidth" o = Gtk.CellRenderer.CellRendererGetPreferredHeightForWidthMethodInfo
ResolveCellRendererAccelMethod "getPreferredSize" o = Gtk.CellRenderer.CellRendererGetPreferredSizeMethodInfo
ResolveCellRendererAccelMethod "getPreferredWidth" o = Gtk.CellRenderer.CellRendererGetPreferredWidthMethodInfo
ResolveCellRendererAccelMethod "getPreferredWidthForHeight" o = Gtk.CellRenderer.CellRendererGetPreferredWidthForHeightMethodInfo
ResolveCellRendererAccelMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveCellRendererAccelMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveCellRendererAccelMethod "getRequestMode" o = Gtk.CellRenderer.CellRendererGetRequestModeMethodInfo
ResolveCellRendererAccelMethod "getSensitive" o = Gtk.CellRenderer.CellRendererGetSensitiveMethodInfo
ResolveCellRendererAccelMethod "getSize" o = Gtk.CellRenderer.CellRendererGetSizeMethodInfo
ResolveCellRendererAccelMethod "getState" o = Gtk.CellRenderer.CellRendererGetStateMethodInfo
ResolveCellRendererAccelMethod "getVisible" o = Gtk.CellRenderer.CellRendererGetVisibleMethodInfo
ResolveCellRendererAccelMethod "setAlignment" o = Gtk.CellRenderer.CellRendererSetAlignmentMethodInfo
ResolveCellRendererAccelMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveCellRendererAccelMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveCellRendererAccelMethod "setFixedHeightFromFont" o = Gtk.CellRendererText.CellRendererTextSetFixedHeightFromFontMethodInfo
ResolveCellRendererAccelMethod "setFixedSize" o = Gtk.CellRenderer.CellRendererSetFixedSizeMethodInfo
ResolveCellRendererAccelMethod "setPadding" o = Gtk.CellRenderer.CellRendererSetPaddingMethodInfo
ResolveCellRendererAccelMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveCellRendererAccelMethod "setSensitive" o = Gtk.CellRenderer.CellRendererSetSensitiveMethodInfo
ResolveCellRendererAccelMethod "setVisible" o = Gtk.CellRenderer.CellRendererSetVisibleMethodInfo
ResolveCellRendererAccelMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveCellRendererAccelMethod t CellRendererAccel, O.OverloadedMethod info CellRendererAccel p) => OL.IsLabel t (CellRendererAccel -> 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 ~ ResolveCellRendererAccelMethod t CellRendererAccel, O.OverloadedMethod info CellRendererAccel p, R.HasField t CellRendererAccel p) => R.HasField t CellRendererAccel p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveCellRendererAccelMethod t CellRendererAccel, O.OverloadedMethodInfo info CellRendererAccel) => OL.IsLabel t (O.MethodProxy info CellRendererAccel) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type CellRendererAccelAccelClearedCallback =
T.Text
-> IO ()
type C_CellRendererAccelAccelClearedCallback =
Ptr CellRendererAccel ->
CString ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_CellRendererAccelAccelClearedCallback :: C_CellRendererAccelAccelClearedCallback -> IO (FunPtr C_CellRendererAccelAccelClearedCallback)
wrap_CellRendererAccelAccelClearedCallback ::
GObject a => (a -> CellRendererAccelAccelClearedCallback) ->
C_CellRendererAccelAccelClearedCallback
wrap_CellRendererAccelAccelClearedCallback :: forall a.
GObject a =>
(a -> CellRendererAccelAccelClearedCallback)
-> C_CellRendererAccelAccelClearedCallback
wrap_CellRendererAccelAccelClearedCallback a -> CellRendererAccelAccelClearedCallback
gi'cb Ptr CellRendererAccel
gi'selfPtr CString
pathString Ptr ()
_ = do
Text
pathString' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
pathString
Ptr CellRendererAccel -> (CellRendererAccel -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr CellRendererAccel
gi'selfPtr ((CellRendererAccel -> IO ()) -> IO ())
-> (CellRendererAccel -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CellRendererAccel
gi'self -> a -> CellRendererAccelAccelClearedCallback
gi'cb (CellRendererAccel -> a
forall a b. Coercible a b => a -> b
Coerce.coerce CellRendererAccel
gi'self) Text
pathString'
onCellRendererAccelAccelCleared :: (IsCellRendererAccel a, MonadIO m) => a -> ((?self :: a) => CellRendererAccelAccelClearedCallback) -> m SignalHandlerId
onCellRendererAccelAccelCleared :: forall a (m :: * -> *).
(IsCellRendererAccel a, MonadIO m) =>
a
-> ((?self::a) => CellRendererAccelAccelClearedCallback)
-> m SignalHandlerId
onCellRendererAccelAccelCleared a
obj (?self::a) => CellRendererAccelAccelClearedCallback
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 -> CellRendererAccelAccelClearedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => CellRendererAccelAccelClearedCallback
CellRendererAccelAccelClearedCallback
cb
let wrapped' :: C_CellRendererAccelAccelClearedCallback
wrapped' = (a -> CellRendererAccelAccelClearedCallback)
-> C_CellRendererAccelAccelClearedCallback
forall a.
GObject a =>
(a -> CellRendererAccelAccelClearedCallback)
-> C_CellRendererAccelAccelClearedCallback
wrap_CellRendererAccelAccelClearedCallback a -> CellRendererAccelAccelClearedCallback
wrapped
FunPtr C_CellRendererAccelAccelClearedCallback
wrapped'' <- C_CellRendererAccelAccelClearedCallback
-> IO (FunPtr C_CellRendererAccelAccelClearedCallback)
mk_CellRendererAccelAccelClearedCallback C_CellRendererAccelAccelClearedCallback
wrapped'
a
-> Text
-> FunPtr C_CellRendererAccelAccelClearedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"accel-cleared" FunPtr C_CellRendererAccelAccelClearedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterCellRendererAccelAccelCleared :: (IsCellRendererAccel a, MonadIO m) => a -> ((?self :: a) => CellRendererAccelAccelClearedCallback) -> m SignalHandlerId
afterCellRendererAccelAccelCleared :: forall a (m :: * -> *).
(IsCellRendererAccel a, MonadIO m) =>
a
-> ((?self::a) => CellRendererAccelAccelClearedCallback)
-> m SignalHandlerId
afterCellRendererAccelAccelCleared a
obj (?self::a) => CellRendererAccelAccelClearedCallback
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 -> CellRendererAccelAccelClearedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => CellRendererAccelAccelClearedCallback
CellRendererAccelAccelClearedCallback
cb
let wrapped' :: C_CellRendererAccelAccelClearedCallback
wrapped' = (a -> CellRendererAccelAccelClearedCallback)
-> C_CellRendererAccelAccelClearedCallback
forall a.
GObject a =>
(a -> CellRendererAccelAccelClearedCallback)
-> C_CellRendererAccelAccelClearedCallback
wrap_CellRendererAccelAccelClearedCallback a -> CellRendererAccelAccelClearedCallback
wrapped
FunPtr C_CellRendererAccelAccelClearedCallback
wrapped'' <- C_CellRendererAccelAccelClearedCallback
-> IO (FunPtr C_CellRendererAccelAccelClearedCallback)
mk_CellRendererAccelAccelClearedCallback C_CellRendererAccelAccelClearedCallback
wrapped'
a
-> Text
-> FunPtr C_CellRendererAccelAccelClearedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"accel-cleared" FunPtr C_CellRendererAccelAccelClearedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelAccelClearedSignalInfo
instance SignalInfo CellRendererAccelAccelClearedSignalInfo where
type HaskellCallbackType CellRendererAccelAccelClearedSignalInfo = CellRendererAccelAccelClearedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_CellRendererAccelAccelClearedCallback cb
cb'' <- mk_CellRendererAccelAccelClearedCallback cb'
connectSignalFunPtr obj "accel-cleared" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel::accel-cleared"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:signal:accelCleared"})
#endif
type CellRendererAccelAccelEditedCallback =
T.Text
-> Word32
-> [Gdk.Flags.ModifierType]
-> Word32
-> IO ()
type C_CellRendererAccelAccelEditedCallback =
Ptr CellRendererAccel ->
CString ->
Word32 ->
CUInt ->
Word32 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_CellRendererAccelAccelEditedCallback :: C_CellRendererAccelAccelEditedCallback -> IO (FunPtr C_CellRendererAccelAccelEditedCallback)
wrap_CellRendererAccelAccelEditedCallback ::
GObject a => (a -> CellRendererAccelAccelEditedCallback) ->
C_CellRendererAccelAccelEditedCallback
wrap_CellRendererAccelAccelEditedCallback :: forall a.
GObject a =>
(a -> CellRendererAccelAccelEditedCallback)
-> C_CellRendererAccelAccelEditedCallback
wrap_CellRendererAccelAccelEditedCallback a -> CellRendererAccelAccelEditedCallback
gi'cb Ptr CellRendererAccel
gi'selfPtr CString
pathString Word32
accelKey CUInt
accelMods Word32
hardwareKeycode Ptr ()
_ = do
Text
pathString' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
pathString
let accelMods' :: [ModifierType]
accelMods' = CUInt -> [ModifierType]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
accelMods
Ptr CellRendererAccel -> (CellRendererAccel -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr CellRendererAccel
gi'selfPtr ((CellRendererAccel -> IO ()) -> IO ())
-> (CellRendererAccel -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CellRendererAccel
gi'self -> a -> CellRendererAccelAccelEditedCallback
gi'cb (CellRendererAccel -> a
forall a b. Coercible a b => a -> b
Coerce.coerce CellRendererAccel
gi'self) Text
pathString' Word32
accelKey [ModifierType]
accelMods' Word32
hardwareKeycode
onCellRendererAccelAccelEdited :: (IsCellRendererAccel a, MonadIO m) => a -> ((?self :: a) => CellRendererAccelAccelEditedCallback) -> m SignalHandlerId
onCellRendererAccelAccelEdited :: forall a (m :: * -> *).
(IsCellRendererAccel a, MonadIO m) =>
a
-> ((?self::a) => CellRendererAccelAccelEditedCallback)
-> m SignalHandlerId
onCellRendererAccelAccelEdited a
obj (?self::a) => CellRendererAccelAccelEditedCallback
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 -> CellRendererAccelAccelEditedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => CellRendererAccelAccelEditedCallback
CellRendererAccelAccelEditedCallback
cb
let wrapped' :: C_CellRendererAccelAccelEditedCallback
wrapped' = (a -> CellRendererAccelAccelEditedCallback)
-> C_CellRendererAccelAccelEditedCallback
forall a.
GObject a =>
(a -> CellRendererAccelAccelEditedCallback)
-> C_CellRendererAccelAccelEditedCallback
wrap_CellRendererAccelAccelEditedCallback a -> CellRendererAccelAccelEditedCallback
wrapped
FunPtr C_CellRendererAccelAccelEditedCallback
wrapped'' <- C_CellRendererAccelAccelEditedCallback
-> IO (FunPtr C_CellRendererAccelAccelEditedCallback)
mk_CellRendererAccelAccelEditedCallback C_CellRendererAccelAccelEditedCallback
wrapped'
a
-> Text
-> FunPtr C_CellRendererAccelAccelEditedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"accel-edited" FunPtr C_CellRendererAccelAccelEditedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterCellRendererAccelAccelEdited :: (IsCellRendererAccel a, MonadIO m) => a -> ((?self :: a) => CellRendererAccelAccelEditedCallback) -> m SignalHandlerId
afterCellRendererAccelAccelEdited :: forall a (m :: * -> *).
(IsCellRendererAccel a, MonadIO m) =>
a
-> ((?self::a) => CellRendererAccelAccelEditedCallback)
-> m SignalHandlerId
afterCellRendererAccelAccelEdited a
obj (?self::a) => CellRendererAccelAccelEditedCallback
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 -> CellRendererAccelAccelEditedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => CellRendererAccelAccelEditedCallback
CellRendererAccelAccelEditedCallback
cb
let wrapped' :: C_CellRendererAccelAccelEditedCallback
wrapped' = (a -> CellRendererAccelAccelEditedCallback)
-> C_CellRendererAccelAccelEditedCallback
forall a.
GObject a =>
(a -> CellRendererAccelAccelEditedCallback)
-> C_CellRendererAccelAccelEditedCallback
wrap_CellRendererAccelAccelEditedCallback a -> CellRendererAccelAccelEditedCallback
wrapped
FunPtr C_CellRendererAccelAccelEditedCallback
wrapped'' <- C_CellRendererAccelAccelEditedCallback
-> IO (FunPtr C_CellRendererAccelAccelEditedCallback)
mk_CellRendererAccelAccelEditedCallback C_CellRendererAccelAccelEditedCallback
wrapped'
a
-> Text
-> FunPtr C_CellRendererAccelAccelEditedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"accel-edited" FunPtr C_CellRendererAccelAccelEditedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelAccelEditedSignalInfo
instance SignalInfo CellRendererAccelAccelEditedSignalInfo where
type HaskellCallbackType CellRendererAccelAccelEditedSignalInfo = CellRendererAccelAccelEditedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_CellRendererAccelAccelEditedCallback cb
cb'' <- mk_CellRendererAccelAccelEditedCallback cb'
connectSignalFunPtr obj "accel-edited" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel::accel-edited"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:signal:accelEdited"})
#endif
getCellRendererAccelAccelKey :: (MonadIO m, IsCellRendererAccel o) => o -> m Word32
getCellRendererAccelAccelKey :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> m Word32
getCellRendererAccelAccelKey o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"accel-key"
setCellRendererAccelAccelKey :: (MonadIO m, IsCellRendererAccel o) => o -> Word32 -> m ()
setCellRendererAccelAccelKey :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> Word32 -> m ()
setCellRendererAccelAccelKey o
obj Word32
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 -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"accel-key" Word32
val
constructCellRendererAccelAccelKey :: (IsCellRendererAccel o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructCellRendererAccelAccelKey :: forall o (m :: * -> *).
(IsCellRendererAccel o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructCellRendererAccelAccelKey Word32
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 -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"accel-key" Word32
val
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelAccelKeyPropertyInfo
instance AttrInfo CellRendererAccelAccelKeyPropertyInfo where
type AttrAllowedOps CellRendererAccelAccelKeyPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint CellRendererAccelAccelKeyPropertyInfo = IsCellRendererAccel
type AttrSetTypeConstraint CellRendererAccelAccelKeyPropertyInfo = (~) Word32
type AttrTransferTypeConstraint CellRendererAccelAccelKeyPropertyInfo = (~) Word32
type AttrTransferType CellRendererAccelAccelKeyPropertyInfo = Word32
type AttrGetType CellRendererAccelAccelKeyPropertyInfo = Word32
type AttrLabel CellRendererAccelAccelKeyPropertyInfo = "accel-key"
type AttrOrigin CellRendererAccelAccelKeyPropertyInfo = CellRendererAccel
attrGet = getCellRendererAccelAccelKey
attrSet = setCellRendererAccelAccelKey
attrTransfer _ v = do
return v
attrConstruct = constructCellRendererAccelAccelKey
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel.accelKey"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:attr:accelKey"
})
#endif
getCellRendererAccelAccelMode :: (MonadIO m, IsCellRendererAccel o) => o -> m Gtk.Enums.CellRendererAccelMode
getCellRendererAccelAccelMode :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> m CellRendererAccelMode
getCellRendererAccelAccelMode o
obj = IO CellRendererAccelMode -> m CellRendererAccelMode
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO CellRendererAccelMode -> m CellRendererAccelMode)
-> IO CellRendererAccelMode -> m CellRendererAccelMode
forall a b. (a -> b) -> a -> b
$ o -> String -> IO CellRendererAccelMode
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"accel-mode"
setCellRendererAccelAccelMode :: (MonadIO m, IsCellRendererAccel o) => o -> Gtk.Enums.CellRendererAccelMode -> m ()
setCellRendererAccelAccelMode :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> CellRendererAccelMode -> m ()
setCellRendererAccelAccelMode o
obj CellRendererAccelMode
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 -> CellRendererAccelMode -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"accel-mode" CellRendererAccelMode
val
constructCellRendererAccelAccelMode :: (IsCellRendererAccel o, MIO.MonadIO m) => Gtk.Enums.CellRendererAccelMode -> m (GValueConstruct o)
constructCellRendererAccelAccelMode :: forall o (m :: * -> *).
(IsCellRendererAccel o, MonadIO m) =>
CellRendererAccelMode -> m (GValueConstruct o)
constructCellRendererAccelAccelMode CellRendererAccelMode
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 -> CellRendererAccelMode -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"accel-mode" CellRendererAccelMode
val
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelAccelModePropertyInfo
instance AttrInfo CellRendererAccelAccelModePropertyInfo where
type AttrAllowedOps CellRendererAccelAccelModePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint CellRendererAccelAccelModePropertyInfo = IsCellRendererAccel
type AttrSetTypeConstraint CellRendererAccelAccelModePropertyInfo = (~) Gtk.Enums.CellRendererAccelMode
type AttrTransferTypeConstraint CellRendererAccelAccelModePropertyInfo = (~) Gtk.Enums.CellRendererAccelMode
type AttrTransferType CellRendererAccelAccelModePropertyInfo = Gtk.Enums.CellRendererAccelMode
type AttrGetType CellRendererAccelAccelModePropertyInfo = Gtk.Enums.CellRendererAccelMode
type AttrLabel CellRendererAccelAccelModePropertyInfo = "accel-mode"
type AttrOrigin CellRendererAccelAccelModePropertyInfo = CellRendererAccel
attrGet = getCellRendererAccelAccelMode
attrSet = setCellRendererAccelAccelMode
attrTransfer _ v = do
return v
attrConstruct = constructCellRendererAccelAccelMode
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel.accelMode"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:attr:accelMode"
})
#endif
getCellRendererAccelAccelMods :: (MonadIO m, IsCellRendererAccel o) => o -> m [Gdk.Flags.ModifierType]
getCellRendererAccelAccelMods :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> m [ModifierType]
getCellRendererAccelAccelMods o
obj = IO [ModifierType] -> m [ModifierType]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO [ModifierType] -> m [ModifierType])
-> IO [ModifierType] -> m [ModifierType]
forall a b. (a -> b) -> a -> b
$ o -> String -> IO [ModifierType]
forall a b.
(GObject a, IsGFlag b, BoxedFlags b) =>
a -> String -> IO [b]
B.Properties.getObjectPropertyFlags o
obj String
"accel-mods"
setCellRendererAccelAccelMods :: (MonadIO m, IsCellRendererAccel o) => o -> [Gdk.Flags.ModifierType] -> m ()
setCellRendererAccelAccelMods :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> [ModifierType] -> m ()
setCellRendererAccelAccelMods o
obj [ModifierType]
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 -> [ModifierType] -> IO ()
forall a b.
(IsGFlag b, BoxedFlags b, GObject a) =>
a -> String -> [b] -> IO ()
B.Properties.setObjectPropertyFlags o
obj String
"accel-mods" [ModifierType]
val
constructCellRendererAccelAccelMods :: (IsCellRendererAccel o, MIO.MonadIO m) => [Gdk.Flags.ModifierType] -> m (GValueConstruct o)
constructCellRendererAccelAccelMods :: forall o (m :: * -> *).
(IsCellRendererAccel o, MonadIO m) =>
[ModifierType] -> m (GValueConstruct o)
constructCellRendererAccelAccelMods [ModifierType]
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 -> [ModifierType] -> IO (GValueConstruct o)
forall a o.
(IsGFlag a, BoxedFlags a) =>
String -> [a] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyFlags String
"accel-mods" [ModifierType]
val
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelAccelModsPropertyInfo
instance AttrInfo CellRendererAccelAccelModsPropertyInfo where
type AttrAllowedOps CellRendererAccelAccelModsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint CellRendererAccelAccelModsPropertyInfo = IsCellRendererAccel
type AttrSetTypeConstraint CellRendererAccelAccelModsPropertyInfo = (~) [Gdk.Flags.ModifierType]
type AttrTransferTypeConstraint CellRendererAccelAccelModsPropertyInfo = (~) [Gdk.Flags.ModifierType]
type AttrTransferType CellRendererAccelAccelModsPropertyInfo = [Gdk.Flags.ModifierType]
type AttrGetType CellRendererAccelAccelModsPropertyInfo = [Gdk.Flags.ModifierType]
type AttrLabel CellRendererAccelAccelModsPropertyInfo = "accel-mods"
type AttrOrigin CellRendererAccelAccelModsPropertyInfo = CellRendererAccel
attrGet = getCellRendererAccelAccelMods
attrSet = setCellRendererAccelAccelMods
attrTransfer _ v = do
return v
attrConstruct = constructCellRendererAccelAccelMods
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel.accelMods"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:attr:accelMods"
})
#endif
getCellRendererAccelKeycode :: (MonadIO m, IsCellRendererAccel o) => o -> m Word32
getCellRendererAccelKeycode :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> m Word32
getCellRendererAccelKeycode o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"keycode"
setCellRendererAccelKeycode :: (MonadIO m, IsCellRendererAccel o) => o -> Word32 -> m ()
setCellRendererAccelKeycode :: forall (m :: * -> *) o.
(MonadIO m, IsCellRendererAccel o) =>
o -> Word32 -> m ()
setCellRendererAccelKeycode o
obj Word32
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 -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"keycode" Word32
val
constructCellRendererAccelKeycode :: (IsCellRendererAccel o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructCellRendererAccelKeycode :: forall o (m :: * -> *).
(IsCellRendererAccel o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructCellRendererAccelKeycode Word32
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 -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"keycode" Word32
val
#if defined(ENABLE_OVERLOADING)
data CellRendererAccelKeycodePropertyInfo
instance AttrInfo CellRendererAccelKeycodePropertyInfo where
type AttrAllowedOps CellRendererAccelKeycodePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint CellRendererAccelKeycodePropertyInfo = IsCellRendererAccel
type AttrSetTypeConstraint CellRendererAccelKeycodePropertyInfo = (~) Word32
type AttrTransferTypeConstraint CellRendererAccelKeycodePropertyInfo = (~) Word32
type AttrTransferType CellRendererAccelKeycodePropertyInfo = Word32
type AttrGetType CellRendererAccelKeycodePropertyInfo = Word32
type AttrLabel CellRendererAccelKeycodePropertyInfo = "keycode"
type AttrOrigin CellRendererAccelKeycodePropertyInfo = CellRendererAccel
attrGet = getCellRendererAccelKeycode
attrSet = setCellRendererAccelKeycode
attrTransfer _ v = do
return v
attrConstruct = constructCellRendererAccelKeycode
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellRendererAccel.keycode"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.41/docs/GI-Gtk-Objects-CellRendererAccel.html#g:attr:keycode"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList CellRendererAccel
type instance O.AttributeList CellRendererAccel = CellRendererAccelAttributeList
type CellRendererAccelAttributeList = ('[ '("accelKey", CellRendererAccelAccelKeyPropertyInfo), '("accelMode", CellRendererAccelAccelModePropertyInfo), '("accelMods", CellRendererAccelAccelModsPropertyInfo), '("alignSet", Gtk.CellRendererText.CellRendererTextAlignSetPropertyInfo), '("alignment", Gtk.CellRendererText.CellRendererTextAlignmentPropertyInfo), '("attributes", Gtk.CellRendererText.CellRendererTextAttributesPropertyInfo), '("background", Gtk.CellRendererText.CellRendererTextBackgroundPropertyInfo), '("backgroundGdk", Gtk.CellRendererText.CellRendererTextBackgroundGdkPropertyInfo), '("backgroundRgba", Gtk.CellRendererText.CellRendererTextBackgroundRgbaPropertyInfo), '("backgroundSet", Gtk.CellRendererText.CellRendererTextBackgroundSetPropertyInfo), '("cellBackground", Gtk.CellRenderer.CellRendererCellBackgroundPropertyInfo), '("cellBackgroundGdk", Gtk.CellRenderer.CellRendererCellBackgroundGdkPropertyInfo), '("cellBackgroundRgba", Gtk.CellRenderer.CellRendererCellBackgroundRgbaPropertyInfo), '("cellBackgroundSet", Gtk.CellRenderer.CellRendererCellBackgroundSetPropertyInfo), '("editable", Gtk.CellRendererText.CellRendererTextEditablePropertyInfo), '("editableSet", Gtk.CellRendererText.CellRendererTextEditableSetPropertyInfo), '("editing", Gtk.CellRenderer.CellRendererEditingPropertyInfo), '("ellipsize", Gtk.CellRendererText.CellRendererTextEllipsizePropertyInfo), '("ellipsizeSet", Gtk.CellRendererText.CellRendererTextEllipsizeSetPropertyInfo), '("family", Gtk.CellRendererText.CellRendererTextFamilyPropertyInfo), '("familySet", Gtk.CellRendererText.CellRendererTextFamilySetPropertyInfo), '("font", Gtk.CellRendererText.CellRendererTextFontPropertyInfo), '("fontDesc", Gtk.CellRendererText.CellRendererTextFontDescPropertyInfo), '("foreground", Gtk.CellRendererText.CellRendererTextForegroundPropertyInfo), '("foregroundGdk", Gtk.CellRendererText.CellRendererTextForegroundGdkPropertyInfo), '("foregroundRgba", Gtk.CellRendererText.CellRendererTextForegroundRgbaPropertyInfo), '("foregroundSet", Gtk.CellRendererText.CellRendererTextForegroundSetPropertyInfo), '("height", Gtk.CellRenderer.CellRendererHeightPropertyInfo), '("isExpanded", Gtk.CellRenderer.CellRendererIsExpandedPropertyInfo), '("isExpander", Gtk.CellRenderer.CellRendererIsExpanderPropertyInfo), '("keycode", CellRendererAccelKeycodePropertyInfo), '("language", Gtk.CellRendererText.CellRendererTextLanguagePropertyInfo), '("languageSet", Gtk.CellRendererText.CellRendererTextLanguageSetPropertyInfo), '("markup", Gtk.CellRendererText.CellRendererTextMarkupPropertyInfo), '("maxWidthChars", Gtk.CellRendererText.CellRendererTextMaxWidthCharsPropertyInfo), '("mode", Gtk.CellRenderer.CellRendererModePropertyInfo), '("placeholderText", Gtk.CellRendererText.CellRendererTextPlaceholderTextPropertyInfo), '("rise", Gtk.CellRendererText.CellRendererTextRisePropertyInfo), '("riseSet", Gtk.CellRendererText.CellRendererTextRiseSetPropertyInfo), '("scale", Gtk.CellRendererText.CellRendererTextScalePropertyInfo), '("scaleSet", Gtk.CellRendererText.CellRendererTextScaleSetPropertyInfo), '("sensitive", Gtk.CellRenderer.CellRendererSensitivePropertyInfo), '("singleParagraphMode", Gtk.CellRendererText.CellRendererTextSingleParagraphModePropertyInfo), '("size", Gtk.CellRendererText.CellRendererTextSizePropertyInfo), '("sizePoints", Gtk.CellRendererText.CellRendererTextSizePointsPropertyInfo), '("sizeSet", Gtk.CellRendererText.CellRendererTextSizeSetPropertyInfo), '("stretch", Gtk.CellRendererText.CellRendererTextStretchPropertyInfo), '("stretchSet", Gtk.CellRendererText.CellRendererTextStretchSetPropertyInfo), '("strikethrough", Gtk.CellRendererText.CellRendererTextStrikethroughPropertyInfo), '("strikethroughSet", Gtk.CellRendererText.CellRendererTextStrikethroughSetPropertyInfo), '("style", Gtk.CellRendererText.CellRendererTextStylePropertyInfo), '("styleSet", Gtk.CellRendererText.CellRendererTextStyleSetPropertyInfo), '("text", Gtk.CellRendererText.CellRendererTextTextPropertyInfo), '("underline", Gtk.CellRendererText.CellRendererTextUnderlinePropertyInfo), '("underlineSet", Gtk.CellRendererText.CellRendererTextUnderlineSetPropertyInfo), '("variant", Gtk.CellRendererText.CellRendererTextVariantPropertyInfo), '("variantSet", Gtk.CellRendererText.CellRendererTextVariantSetPropertyInfo), '("visible", Gtk.CellRenderer.CellRendererVisiblePropertyInfo), '("weight", Gtk.CellRendererText.CellRendererTextWeightPropertyInfo), '("weightSet", Gtk.CellRendererText.CellRendererTextWeightSetPropertyInfo), '("width", Gtk.CellRenderer.CellRendererWidthPropertyInfo), '("widthChars", Gtk.CellRendererText.CellRendererTextWidthCharsPropertyInfo), '("wrapMode", Gtk.CellRendererText.CellRendererTextWrapModePropertyInfo), '("wrapWidth", Gtk.CellRendererText.CellRendererTextWrapWidthPropertyInfo), '("xalign", Gtk.CellRenderer.CellRendererXalignPropertyInfo), '("xpad", Gtk.CellRenderer.CellRendererXpadPropertyInfo), '("yalign", Gtk.CellRenderer.CellRendererYalignPropertyInfo), '("ypad", Gtk.CellRenderer.CellRendererYpadPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
cellRendererAccelAccelKey :: AttrLabelProxy "accelKey"
cellRendererAccelAccelKey = AttrLabelProxy
cellRendererAccelAccelMode :: AttrLabelProxy "accelMode"
cellRendererAccelAccelMode = AttrLabelProxy
cellRendererAccelAccelMods :: AttrLabelProxy "accelMods"
cellRendererAccelAccelMods = AttrLabelProxy
cellRendererAccelKeycode :: AttrLabelProxy "keycode"
cellRendererAccelKeycode = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList CellRendererAccel = CellRendererAccelSignalList
type CellRendererAccelSignalList = ('[ '("accelCleared", CellRendererAccelAccelClearedSignalInfo), '("accelEdited", CellRendererAccelAccelEditedSignalInfo), '("edited", Gtk.CellRendererText.CellRendererTextEditedSignalInfo), '("editingCanceled", Gtk.CellRenderer.CellRendererEditingCanceledSignalInfo), '("editingStarted", Gtk.CellRenderer.CellRendererEditingStartedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "gtk_cell_renderer_accel_new" gtk_cell_renderer_accel_new ::
IO (Ptr CellRendererAccel)
cellRendererAccelNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m CellRendererAccel
cellRendererAccelNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m CellRendererAccel
cellRendererAccelNew = IO CellRendererAccel -> m CellRendererAccel
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CellRendererAccel -> m CellRendererAccel)
-> IO CellRendererAccel -> m CellRendererAccel
forall a b. (a -> b) -> a -> b
$ do
Ptr CellRendererAccel
result <- IO (Ptr CellRendererAccel)
gtk_cell_renderer_accel_new
Text -> Ptr CellRendererAccel -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"cellRendererAccelNew" Ptr CellRendererAccel
result
CellRendererAccel
result' <- ((ManagedPtr CellRendererAccel -> CellRendererAccel)
-> Ptr CellRendererAccel -> IO CellRendererAccel
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr CellRendererAccel -> CellRendererAccel
CellRendererAccel) Ptr CellRendererAccel
result
CellRendererAccel -> IO CellRendererAccel
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CellRendererAccel
result'
#if defined(ENABLE_OVERLOADING)
#endif