{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gdk.Structs.EventTouchpadPinch
(
EventTouchpadPinch(..) ,
newZeroEventTouchpadPinch ,
#if defined(ENABLE_OVERLOADING)
ResolveEventTouchpadPinchMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_angleDelta ,
#endif
getEventTouchpadPinchAngleDelta ,
setEventTouchpadPinchAngleDelta ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_dx ,
#endif
getEventTouchpadPinchDx ,
setEventTouchpadPinchDx ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_dy ,
#endif
getEventTouchpadPinchDy ,
setEventTouchpadPinchDy ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_nFingers ,
#endif
getEventTouchpadPinchNFingers ,
setEventTouchpadPinchNFingers ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_phase ,
#endif
getEventTouchpadPinchPhase ,
setEventTouchpadPinchPhase ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_scale ,
#endif
getEventTouchpadPinchScale ,
setEventTouchpadPinchScale ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_sendEvent ,
#endif
getEventTouchpadPinchSendEvent ,
setEventTouchpadPinchSendEvent ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_state ,
#endif
getEventTouchpadPinchState ,
setEventTouchpadPinchState ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_time ,
#endif
getEventTouchpadPinchTime ,
setEventTouchpadPinchTime ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_type ,
#endif
getEventTouchpadPinchType ,
setEventTouchpadPinchType ,
clearEventTouchpadPinchWindow ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_window ,
#endif
getEventTouchpadPinchWindow ,
setEventTouchpadPinchWindow ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_x ,
#endif
getEventTouchpadPinchX ,
setEventTouchpadPinchX ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_xRoot ,
#endif
getEventTouchpadPinchXRoot ,
setEventTouchpadPinchXRoot ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_y ,
#endif
getEventTouchpadPinchY ,
setEventTouchpadPinchY ,
#if defined(ENABLE_OVERLOADING)
eventTouchpadPinch_yRoot ,
#endif
getEventTouchpadPinchYRoot ,
setEventTouchpadPinchYRoot ,
) 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.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
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.Text as T
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 {-# SOURCE #-} qualified GI.Gdk.Enums as Gdk.Enums
import {-# SOURCE #-} qualified GI.Gdk.Flags as Gdk.Flags
import {-# SOURCE #-} qualified GI.Gdk.Objects.Window as Gdk.Window
newtype EventTouchpadPinch = EventTouchpadPinch (SP.ManagedPtr EventTouchpadPinch)
deriving (EventTouchpadPinch -> EventTouchpadPinch -> Bool
(EventTouchpadPinch -> EventTouchpadPinch -> Bool)
-> (EventTouchpadPinch -> EventTouchpadPinch -> Bool)
-> Eq EventTouchpadPinch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventTouchpadPinch -> EventTouchpadPinch -> Bool
$c/= :: EventTouchpadPinch -> EventTouchpadPinch -> Bool
== :: EventTouchpadPinch -> EventTouchpadPinch -> Bool
$c== :: EventTouchpadPinch -> EventTouchpadPinch -> Bool
Eq)
instance SP.ManagedPtrNewtype EventTouchpadPinch where
toManagedPtr :: EventTouchpadPinch -> ManagedPtr EventTouchpadPinch
toManagedPtr (EventTouchpadPinch ManagedPtr EventTouchpadPinch
p) = ManagedPtr EventTouchpadPinch
p
instance BoxedPtr EventTouchpadPinch where
boxedPtrCopy :: EventTouchpadPinch -> IO EventTouchpadPinch
boxedPtrCopy = \EventTouchpadPinch
p -> EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO EventTouchpadPinch)
-> IO EventTouchpadPinch
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr EventTouchpadPinch
p (Int -> Ptr EventTouchpadPinch -> IO (Ptr EventTouchpadPinch)
forall a. (HasCallStack, CallocPtr a) => Int -> Ptr a -> IO (Ptr a)
copyBytes Int
96 (Ptr EventTouchpadPinch -> IO (Ptr EventTouchpadPinch))
-> (Ptr EventTouchpadPinch -> IO EventTouchpadPinch)
-> Ptr EventTouchpadPinch
-> IO EventTouchpadPinch
forall (m :: * -> *) a b c.
Monad m =>
(a -> m b) -> (b -> m c) -> a -> m c
>=> (ManagedPtr EventTouchpadPinch -> EventTouchpadPinch)
-> Ptr EventTouchpadPinch -> IO EventTouchpadPinch
forall a.
(HasCallStack, BoxedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
B.ManagedPtr.wrapPtr ManagedPtr EventTouchpadPinch -> EventTouchpadPinch
EventTouchpadPinch)
boxedPtrFree :: EventTouchpadPinch -> IO ()
boxedPtrFree = \EventTouchpadPinch
x -> EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
SP.withManagedPtr EventTouchpadPinch
x Ptr EventTouchpadPinch -> IO ()
forall a. Ptr a -> IO ()
SP.freeMem
instance CallocPtr EventTouchpadPinch where
boxedPtrCalloc :: IO (Ptr EventTouchpadPinch)
boxedPtrCalloc = Int -> IO (Ptr EventTouchpadPinch)
forall a. Int -> IO (Ptr a)
callocBytes Int
96
newZeroEventTouchpadPinch :: MonadIO m => m EventTouchpadPinch
newZeroEventTouchpadPinch :: m EventTouchpadPinch
newZeroEventTouchpadPinch = IO EventTouchpadPinch -> m EventTouchpadPinch
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO EventTouchpadPinch -> m EventTouchpadPinch)
-> IO EventTouchpadPinch -> m EventTouchpadPinch
forall a b. (a -> b) -> a -> b
$ IO (Ptr EventTouchpadPinch)
forall a. CallocPtr a => IO (Ptr a)
boxedPtrCalloc IO (Ptr EventTouchpadPinch)
-> (Ptr EventTouchpadPinch -> IO EventTouchpadPinch)
-> IO EventTouchpadPinch
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (ManagedPtr EventTouchpadPinch -> EventTouchpadPinch)
-> Ptr EventTouchpadPinch -> IO EventTouchpadPinch
forall a.
(HasCallStack, BoxedPtr a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapPtr ManagedPtr EventTouchpadPinch -> EventTouchpadPinch
EventTouchpadPinch
instance tag ~ 'AttrSet => Constructible EventTouchpadPinch tag where
new :: (ManagedPtr EventTouchpadPinch -> EventTouchpadPinch)
-> [AttrOp EventTouchpadPinch tag] -> m EventTouchpadPinch
new ManagedPtr EventTouchpadPinch -> EventTouchpadPinch
_ [AttrOp EventTouchpadPinch tag]
attrs = do
EventTouchpadPinch
o <- m EventTouchpadPinch
forall (m :: * -> *). MonadIO m => m EventTouchpadPinch
newZeroEventTouchpadPinch
EventTouchpadPinch -> [AttrOp EventTouchpadPinch 'AttrSet] -> m ()
forall o (m :: * -> *).
MonadIO m =>
o -> [AttrOp o 'AttrSet] -> m ()
GI.Attributes.set EventTouchpadPinch
o [AttrOp EventTouchpadPinch tag]
[AttrOp EventTouchpadPinch 'AttrSet]
attrs
EventTouchpadPinch -> m EventTouchpadPinch
forall (m :: * -> *) a. Monad m => a -> m a
return EventTouchpadPinch
o
getEventTouchpadPinchType :: MonadIO m => EventTouchpadPinch -> m Gdk.Enums.EventType
getEventTouchpadPinchType :: EventTouchpadPinch -> m EventType
getEventTouchpadPinchType EventTouchpadPinch
s = IO EventType -> m EventType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO EventType -> m EventType) -> IO EventType -> m EventType
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO EventType) -> IO EventType
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO EventType) -> IO EventType)
-> (Ptr EventTouchpadPinch -> IO EventType) -> IO EventType
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CInt
val <- Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CInt
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0) :: IO CInt
let val' :: EventType
val' = (Int -> EventType
forall a. Enum a => Int -> a
toEnum (Int -> EventType) -> (CInt -> Int) -> CInt -> EventType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CInt
val
EventType -> IO EventType
forall (m :: * -> *) a. Monad m => a -> m a
return EventType
val'
setEventTouchpadPinchType :: MonadIO m => EventTouchpadPinch -> Gdk.Enums.EventType -> m ()
setEventTouchpadPinchType :: EventTouchpadPinch -> EventType -> m ()
setEventTouchpadPinchType EventTouchpadPinch
s EventType
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CInt
val' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (EventType -> Int) -> EventType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. EventType -> Int
forall a. Enum a => a -> Int
fromEnum) EventType
val
Ptr CInt -> CInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CInt
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0) (CInt
val' :: CInt)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchTypeFieldInfo
instance AttrInfo EventTouchpadPinchTypeFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchTypeFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchTypeFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchTypeFieldInfo = (~) Gdk.Enums.EventType
type AttrTransferTypeConstraint EventTouchpadPinchTypeFieldInfo = (~)Gdk.Enums.EventType
type AttrTransferType EventTouchpadPinchTypeFieldInfo = Gdk.Enums.EventType
type AttrGetType EventTouchpadPinchTypeFieldInfo = Gdk.Enums.EventType
type AttrLabel EventTouchpadPinchTypeFieldInfo = "type"
type AttrOrigin EventTouchpadPinchTypeFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchType
attrSet = setEventTouchpadPinchType
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_type :: AttrLabelProxy "type"
eventTouchpadPinch_type = AttrLabelProxy
#endif
getEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> m (Maybe Gdk.Window.Window)
getEventTouchpadPinchWindow :: EventTouchpadPinch -> m (Maybe Window)
getEventTouchpadPinchWindow EventTouchpadPinch
s = IO (Maybe Window) -> m (Maybe Window)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Window) -> m (Maybe Window))
-> IO (Maybe Window) -> m (Maybe Window)
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO (Maybe Window))
-> IO (Maybe Window)
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO (Maybe Window))
-> IO (Maybe Window))
-> (Ptr EventTouchpadPinch -> IO (Maybe Window))
-> IO (Maybe Window)
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr Window
val <- Ptr (Ptr Window) -> IO (Ptr Window)
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr (Ptr Window)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) :: IO (Ptr Gdk.Window.Window)
Maybe Window
result <- Ptr Window -> (Ptr Window -> IO Window) -> IO (Maybe Window)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
SP.convertIfNonNull Ptr Window
val ((Ptr Window -> IO Window) -> IO (Maybe Window))
-> (Ptr Window -> IO Window) -> IO (Maybe Window)
forall a b. (a -> b) -> a -> b
$ \Ptr Window
val' -> do
Window
val'' <- ((ManagedPtr Window -> Window) -> Ptr Window -> IO Window
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Window -> Window
Gdk.Window.Window) Ptr Window
val'
Window -> IO Window
forall (m :: * -> *) a. Monad m => a -> m a
return Window
val''
Maybe Window -> IO (Maybe Window)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Window
result
setEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> Ptr Gdk.Window.Window -> m ()
setEventTouchpadPinchWindow :: EventTouchpadPinch -> Ptr Window -> m ()
setEventTouchpadPinchWindow EventTouchpadPinch
s Ptr Window
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr (Ptr Window) -> Ptr Window -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr (Ptr Window)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) (Ptr Window
val :: Ptr Gdk.Window.Window)
clearEventTouchpadPinchWindow :: MonadIO m => EventTouchpadPinch -> m ()
clearEventTouchpadPinchWindow :: EventTouchpadPinch -> m ()
clearEventTouchpadPinchWindow EventTouchpadPinch
s = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr (Ptr Window) -> Ptr Window -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr (Ptr Window)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) (Ptr Window
forall a. Ptr a
FP.nullPtr :: Ptr Gdk.Window.Window)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchWindowFieldInfo
instance AttrInfo EventTouchpadPinchWindowFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchWindowFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchWindowFieldInfo = '[ 'AttrSet, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint EventTouchpadPinchWindowFieldInfo = (~) (Ptr Gdk.Window.Window)
type AttrTransferTypeConstraint EventTouchpadPinchWindowFieldInfo = (~)(Ptr Gdk.Window.Window)
type AttrTransferType EventTouchpadPinchWindowFieldInfo = (Ptr Gdk.Window.Window)
type AttrGetType EventTouchpadPinchWindowFieldInfo = Maybe Gdk.Window.Window
type AttrLabel EventTouchpadPinchWindowFieldInfo = "window"
type AttrOrigin EventTouchpadPinchWindowFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchWindow
attrSet = setEventTouchpadPinchWindow
attrConstruct = undefined
attrClear = clearEventTouchpadPinchWindow
attrTransfer _ v = do
return v
eventTouchpadPinch_window :: AttrLabelProxy "window"
eventTouchpadPinch_window = AttrLabelProxy
#endif
getEventTouchpadPinchSendEvent :: MonadIO m => EventTouchpadPinch -> m Int8
getEventTouchpadPinchSendEvent :: EventTouchpadPinch -> m Int8
getEventTouchpadPinchSendEvent EventTouchpadPinch
s = IO Int8 -> m Int8
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int8 -> m Int8) -> IO Int8 -> m Int8
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Int8) -> IO Int8)
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Int8
val <- Ptr Int8 -> IO Int8
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16) :: IO Int8
Int8 -> IO Int8
forall (m :: * -> *) a. Monad m => a -> m a
return Int8
val
setEventTouchpadPinchSendEvent :: MonadIO m => EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchSendEvent :: EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchSendEvent EventTouchpadPinch
s Int8
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr Int8 -> Int8 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16) (Int8
val :: Int8)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchSendEventFieldInfo
instance AttrInfo EventTouchpadPinchSendEventFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchSendEventFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchSendEventFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchSendEventFieldInfo = (~) Int8
type AttrTransferTypeConstraint EventTouchpadPinchSendEventFieldInfo = (~)Int8
type AttrTransferType EventTouchpadPinchSendEventFieldInfo = Int8
type AttrGetType EventTouchpadPinchSendEventFieldInfo = Int8
type AttrLabel EventTouchpadPinchSendEventFieldInfo = "send_event"
type AttrOrigin EventTouchpadPinchSendEventFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchSendEvent
attrSet = setEventTouchpadPinchSendEvent
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_sendEvent :: AttrLabelProxy "sendEvent"
eventTouchpadPinch_sendEvent = AttrLabelProxy
#endif
getEventTouchpadPinchPhase :: MonadIO m => EventTouchpadPinch -> m Int8
getEventTouchpadPinchPhase :: EventTouchpadPinch -> m Int8
getEventTouchpadPinchPhase EventTouchpadPinch
s = IO Int8 -> m Int8
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int8 -> m Int8) -> IO Int8 -> m Int8
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Int8) -> IO Int8)
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Int8
val <- Ptr Int8 -> IO Int8
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
17) :: IO Int8
Int8 -> IO Int8
forall (m :: * -> *) a. Monad m => a -> m a
return Int8
val
setEventTouchpadPinchPhase :: MonadIO m => EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchPhase :: EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchPhase EventTouchpadPinch
s Int8
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr Int8 -> Int8 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
17) (Int8
val :: Int8)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchPhaseFieldInfo
instance AttrInfo EventTouchpadPinchPhaseFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchPhaseFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchPhaseFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchPhaseFieldInfo = (~) Int8
type AttrTransferTypeConstraint EventTouchpadPinchPhaseFieldInfo = (~)Int8
type AttrTransferType EventTouchpadPinchPhaseFieldInfo = Int8
type AttrGetType EventTouchpadPinchPhaseFieldInfo = Int8
type AttrLabel EventTouchpadPinchPhaseFieldInfo = "phase"
type AttrOrigin EventTouchpadPinchPhaseFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchPhase
attrSet = setEventTouchpadPinchPhase
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_phase :: AttrLabelProxy "phase"
eventTouchpadPinch_phase = AttrLabelProxy
#endif
getEventTouchpadPinchNFingers :: MonadIO m => EventTouchpadPinch -> m Int8
getEventTouchpadPinchNFingers :: EventTouchpadPinch -> m Int8
getEventTouchpadPinchNFingers EventTouchpadPinch
s = IO Int8 -> m Int8
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int8 -> m Int8) -> IO Int8 -> m Int8
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Int8) -> IO Int8)
-> (Ptr EventTouchpadPinch -> IO Int8) -> IO Int8
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Int8
val <- Ptr Int8 -> IO Int8
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
18) :: IO Int8
Int8 -> IO Int8
forall (m :: * -> *) a. Monad m => a -> m a
return Int8
val
setEventTouchpadPinchNFingers :: MonadIO m => EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchNFingers :: EventTouchpadPinch -> Int8 -> m ()
setEventTouchpadPinchNFingers EventTouchpadPinch
s Int8
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr Int8 -> Int8 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Int8
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
18) (Int8
val :: Int8)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchNFingersFieldInfo
instance AttrInfo EventTouchpadPinchNFingersFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchNFingersFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchNFingersFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchNFingersFieldInfo = (~) Int8
type AttrTransferTypeConstraint EventTouchpadPinchNFingersFieldInfo = (~)Int8
type AttrTransferType EventTouchpadPinchNFingersFieldInfo = Int8
type AttrGetType EventTouchpadPinchNFingersFieldInfo = Int8
type AttrLabel EventTouchpadPinchNFingersFieldInfo = "n_fingers"
type AttrOrigin EventTouchpadPinchNFingersFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchNFingers
attrSet = setEventTouchpadPinchNFingers
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_nFingers :: AttrLabelProxy "nFingers"
eventTouchpadPinch_nFingers = AttrLabelProxy
#endif
getEventTouchpadPinchTime :: MonadIO m => EventTouchpadPinch -> m Word32
getEventTouchpadPinchTime :: EventTouchpadPinch -> m Word32
getEventTouchpadPinchTime EventTouchpadPinch
s = IO Word32 -> m Word32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Word32) -> IO Word32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Word32) -> IO Word32)
-> (Ptr EventTouchpadPinch -> IO Word32) -> IO Word32
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Word32
val <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20) :: IO Word32
Word32 -> IO Word32
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
val
setEventTouchpadPinchTime :: MonadIO m => EventTouchpadPinch -> Word32 -> m ()
setEventTouchpadPinchTime :: EventTouchpadPinch -> Word32 -> m ()
setEventTouchpadPinchTime EventTouchpadPinch
s Word32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
Ptr Word32 -> Word32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20) (Word32
val :: Word32)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchTimeFieldInfo
instance AttrInfo EventTouchpadPinchTimeFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchTimeFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchTimeFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchTimeFieldInfo = (~) Word32
type AttrTransferTypeConstraint EventTouchpadPinchTimeFieldInfo = (~)Word32
type AttrTransferType EventTouchpadPinchTimeFieldInfo = Word32
type AttrGetType EventTouchpadPinchTimeFieldInfo = Word32
type AttrLabel EventTouchpadPinchTimeFieldInfo = "time"
type AttrOrigin EventTouchpadPinchTimeFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchTime
attrSet = setEventTouchpadPinchTime
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_time :: AttrLabelProxy "time"
eventTouchpadPinch_time = AttrLabelProxy
#endif
getEventTouchpadPinchX :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchX :: EventTouchpadPinch -> m Double
getEventTouchpadPinchX EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchX :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchX :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchX EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchXFieldInfo
instance AttrInfo EventTouchpadPinchXFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchXFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchXFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchXFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchXFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchXFieldInfo = Double
type AttrGetType EventTouchpadPinchXFieldInfo = Double
type AttrLabel EventTouchpadPinchXFieldInfo = "x"
type AttrOrigin EventTouchpadPinchXFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchX
attrSet = setEventTouchpadPinchX
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_x :: AttrLabelProxy "x"
eventTouchpadPinch_x = AttrLabelProxy
#endif
getEventTouchpadPinchY :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchY :: EventTouchpadPinch -> m Double
getEventTouchpadPinchY EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
32) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchY :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchY :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchY EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
32) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchYFieldInfo
instance AttrInfo EventTouchpadPinchYFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchYFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchYFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchYFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchYFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchYFieldInfo = Double
type AttrGetType EventTouchpadPinchYFieldInfo = Double
type AttrLabel EventTouchpadPinchYFieldInfo = "y"
type AttrOrigin EventTouchpadPinchYFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchY
attrSet = setEventTouchpadPinchY
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_y :: AttrLabelProxy "y"
eventTouchpadPinch_y = AttrLabelProxy
#endif
getEventTouchpadPinchDx :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchDx :: EventTouchpadPinch -> m Double
getEventTouchpadPinchDx EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
40) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchDx :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchDx :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchDx EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
40) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchDxFieldInfo
instance AttrInfo EventTouchpadPinchDxFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchDxFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchDxFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchDxFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchDxFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchDxFieldInfo = Double
type AttrGetType EventTouchpadPinchDxFieldInfo = Double
type AttrLabel EventTouchpadPinchDxFieldInfo = "dx"
type AttrOrigin EventTouchpadPinchDxFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchDx
attrSet = setEventTouchpadPinchDx
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_dx :: AttrLabelProxy "dx"
eventTouchpadPinch_dx = AttrLabelProxy
#endif
getEventTouchpadPinchDy :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchDy :: EventTouchpadPinch -> m Double
getEventTouchpadPinchDy EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
48) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchDy :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchDy :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchDy EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
48) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchDyFieldInfo
instance AttrInfo EventTouchpadPinchDyFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchDyFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchDyFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchDyFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchDyFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchDyFieldInfo = Double
type AttrGetType EventTouchpadPinchDyFieldInfo = Double
type AttrLabel EventTouchpadPinchDyFieldInfo = "dy"
type AttrOrigin EventTouchpadPinchDyFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchDy
attrSet = setEventTouchpadPinchDy
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_dy :: AttrLabelProxy "dy"
eventTouchpadPinch_dy = AttrLabelProxy
#endif
getEventTouchpadPinchAngleDelta :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchAngleDelta :: EventTouchpadPinch -> m Double
getEventTouchpadPinchAngleDelta EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
56) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchAngleDelta :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchAngleDelta :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchAngleDelta EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
56) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchAngleDeltaFieldInfo
instance AttrInfo EventTouchpadPinchAngleDeltaFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchAngleDeltaFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchAngleDeltaFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchAngleDeltaFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchAngleDeltaFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchAngleDeltaFieldInfo = Double
type AttrGetType EventTouchpadPinchAngleDeltaFieldInfo = Double
type AttrLabel EventTouchpadPinchAngleDeltaFieldInfo = "angle_delta"
type AttrOrigin EventTouchpadPinchAngleDeltaFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchAngleDelta
attrSet = setEventTouchpadPinchAngleDelta
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_angleDelta :: AttrLabelProxy "angleDelta"
eventTouchpadPinch_angleDelta = AttrLabelProxy
#endif
getEventTouchpadPinchScale :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchScale :: EventTouchpadPinch -> m Double
getEventTouchpadPinchScale EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
64) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchScale :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchScale :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchScale EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
64) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchScaleFieldInfo
instance AttrInfo EventTouchpadPinchScaleFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchScaleFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchScaleFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchScaleFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchScaleFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchScaleFieldInfo = Double
type AttrGetType EventTouchpadPinchScaleFieldInfo = Double
type AttrLabel EventTouchpadPinchScaleFieldInfo = "scale"
type AttrOrigin EventTouchpadPinchScaleFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchScale
attrSet = setEventTouchpadPinchScale
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_scale :: AttrLabelProxy "scale"
eventTouchpadPinch_scale = AttrLabelProxy
#endif
getEventTouchpadPinchXRoot :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchXRoot :: EventTouchpadPinch -> m Double
getEventTouchpadPinchXRoot EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
72) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchXRoot :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchXRoot :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchXRoot EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
72) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchXRootFieldInfo
instance AttrInfo EventTouchpadPinchXRootFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchXRootFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchXRootFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchXRootFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchXRootFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchXRootFieldInfo = Double
type AttrGetType EventTouchpadPinchXRootFieldInfo = Double
type AttrLabel EventTouchpadPinchXRootFieldInfo = "x_root"
type AttrOrigin EventTouchpadPinchXRootFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchXRoot
attrSet = setEventTouchpadPinchXRoot
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_xRoot :: AttrLabelProxy "xRoot"
eventTouchpadPinch_xRoot = AttrLabelProxy
#endif
getEventTouchpadPinchYRoot :: MonadIO m => EventTouchpadPinch -> m Double
getEventTouchpadPinchYRoot :: EventTouchpadPinch -> m Double
getEventTouchpadPinchYRoot EventTouchpadPinch
s = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO Double) -> IO Double)
-> (Ptr EventTouchpadPinch -> IO Double) -> IO Double
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CDouble
val <- Ptr CDouble -> IO CDouble
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
80) :: IO CDouble
let val' :: Double
val' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
val
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
val'
setEventTouchpadPinchYRoot :: MonadIO m => EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchYRoot :: EventTouchpadPinch -> Double -> m ()
setEventTouchpadPinchYRoot EventTouchpadPinch
s Double
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CDouble
val' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
val
Ptr CDouble -> CDouble -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CDouble
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
80) (CDouble
val' :: CDouble)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchYRootFieldInfo
instance AttrInfo EventTouchpadPinchYRootFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchYRootFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchYRootFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchYRootFieldInfo = (~) Double
type AttrTransferTypeConstraint EventTouchpadPinchYRootFieldInfo = (~)Double
type AttrTransferType EventTouchpadPinchYRootFieldInfo = Double
type AttrGetType EventTouchpadPinchYRootFieldInfo = Double
type AttrLabel EventTouchpadPinchYRootFieldInfo = "y_root"
type AttrOrigin EventTouchpadPinchYRootFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchYRoot
attrSet = setEventTouchpadPinchYRoot
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_yRoot :: AttrLabelProxy "yRoot"
eventTouchpadPinch_yRoot = AttrLabelProxy
#endif
getEventTouchpadPinchState :: MonadIO m => EventTouchpadPinch -> m [Gdk.Flags.ModifierType]
getEventTouchpadPinchState :: EventTouchpadPinch -> m [ModifierType]
getEventTouchpadPinchState EventTouchpadPinch
s = IO [ModifierType] -> m [ModifierType]
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [ModifierType] -> m [ModifierType])
-> IO [ModifierType] -> m [ModifierType]
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch
-> (Ptr EventTouchpadPinch -> IO [ModifierType])
-> IO [ModifierType]
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO [ModifierType])
-> IO [ModifierType])
-> (Ptr EventTouchpadPinch -> IO [ModifierType])
-> IO [ModifierType]
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
CUInt
val <- Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CUInt
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
88) :: IO CUInt
let val' :: [ModifierType]
val' = CUInt -> [ModifierType]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
val
[ModifierType] -> IO [ModifierType]
forall (m :: * -> *) a. Monad m => a -> m a
return [ModifierType]
val'
setEventTouchpadPinchState :: MonadIO m => EventTouchpadPinch -> [Gdk.Flags.ModifierType] -> m ()
setEventTouchpadPinchState :: EventTouchpadPinch -> [ModifierType] -> m ()
setEventTouchpadPinchState EventTouchpadPinch
s [ModifierType]
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ EventTouchpadPinch -> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr EventTouchpadPinch
s ((Ptr EventTouchpadPinch -> IO ()) -> IO ())
-> (Ptr EventTouchpadPinch -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr EventTouchpadPinch
ptr -> do
let val' :: CUInt
val' = [ModifierType] -> CUInt
forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [ModifierType]
val
Ptr CUInt -> CUInt -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr EventTouchpadPinch
ptr Ptr EventTouchpadPinch -> Int -> Ptr CUInt
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
88) (CUInt
val' :: CUInt)
#if defined(ENABLE_OVERLOADING)
data EventTouchpadPinchStateFieldInfo
instance AttrInfo EventTouchpadPinchStateFieldInfo where
type AttrBaseTypeConstraint EventTouchpadPinchStateFieldInfo = (~) EventTouchpadPinch
type AttrAllowedOps EventTouchpadPinchStateFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint EventTouchpadPinchStateFieldInfo = (~) [Gdk.Flags.ModifierType]
type AttrTransferTypeConstraint EventTouchpadPinchStateFieldInfo = (~)[Gdk.Flags.ModifierType]
type AttrTransferType EventTouchpadPinchStateFieldInfo = [Gdk.Flags.ModifierType]
type AttrGetType EventTouchpadPinchStateFieldInfo = [Gdk.Flags.ModifierType]
type AttrLabel EventTouchpadPinchStateFieldInfo = "state"
type AttrOrigin EventTouchpadPinchStateFieldInfo = EventTouchpadPinch
attrGet = getEventTouchpadPinchState
attrSet = setEventTouchpadPinchState
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
eventTouchpadPinch_state :: AttrLabelProxy "state"
eventTouchpadPinch_state = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList EventTouchpadPinch
type instance O.AttributeList EventTouchpadPinch = EventTouchpadPinchAttributeList
type EventTouchpadPinchAttributeList = ('[ '("type", EventTouchpadPinchTypeFieldInfo), '("window", EventTouchpadPinchWindowFieldInfo), '("sendEvent", EventTouchpadPinchSendEventFieldInfo), '("phase", EventTouchpadPinchPhaseFieldInfo), '("nFingers", EventTouchpadPinchNFingersFieldInfo), '("time", EventTouchpadPinchTimeFieldInfo), '("x", EventTouchpadPinchXFieldInfo), '("y", EventTouchpadPinchYFieldInfo), '("dx", EventTouchpadPinchDxFieldInfo), '("dy", EventTouchpadPinchDyFieldInfo), '("angleDelta", EventTouchpadPinchAngleDeltaFieldInfo), '("scale", EventTouchpadPinchScaleFieldInfo), '("xRoot", EventTouchpadPinchXRootFieldInfo), '("yRoot", EventTouchpadPinchYRootFieldInfo), '("state", EventTouchpadPinchStateFieldInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveEventTouchpadPinchMethod (t :: Symbol) (o :: *) :: * where
ResolveEventTouchpadPinchMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveEventTouchpadPinchMethod t EventTouchpadPinch, O.MethodInfo info EventTouchpadPinch p) => OL.IsLabel t (EventTouchpadPinch -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif