{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.Adjustment
(
Adjustment(..) ,
IsAdjustment ,
toAdjustment ,
#if defined(ENABLE_OVERLOADING)
ResolveAdjustmentMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
AdjustmentChangedMethodInfo ,
#endif
adjustmentChanged ,
#if defined(ENABLE_OVERLOADING)
AdjustmentClampPageMethodInfo ,
#endif
adjustmentClampPage ,
#if defined(ENABLE_OVERLOADING)
AdjustmentConfigureMethodInfo ,
#endif
adjustmentConfigure ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetLowerMethodInfo ,
#endif
adjustmentGetLower ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetMinimumIncrementMethodInfo ,
#endif
adjustmentGetMinimumIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetPageIncrementMethodInfo ,
#endif
adjustmentGetPageIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetPageSizeMethodInfo ,
#endif
adjustmentGetPageSize ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetStepIncrementMethodInfo ,
#endif
adjustmentGetStepIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetUpperMethodInfo ,
#endif
adjustmentGetUpper ,
#if defined(ENABLE_OVERLOADING)
AdjustmentGetValueMethodInfo ,
#endif
adjustmentGetValue ,
adjustmentNew ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetLowerMethodInfo ,
#endif
adjustmentSetLower ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetPageIncrementMethodInfo ,
#endif
adjustmentSetPageIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetPageSizeMethodInfo ,
#endif
adjustmentSetPageSize ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetStepIncrementMethodInfo ,
#endif
adjustmentSetStepIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetUpperMethodInfo ,
#endif
adjustmentSetUpper ,
#if defined(ENABLE_OVERLOADING)
AdjustmentSetValueMethodInfo ,
#endif
adjustmentSetValue ,
#if defined(ENABLE_OVERLOADING)
AdjustmentValueChangedMethodInfo ,
#endif
adjustmentValueChanged ,
#if defined(ENABLE_OVERLOADING)
AdjustmentLowerPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentLower ,
#endif
constructAdjustmentLower ,
getAdjustmentLower ,
setAdjustmentLower ,
#if defined(ENABLE_OVERLOADING)
AdjustmentPageIncrementPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentPageIncrement ,
#endif
constructAdjustmentPageIncrement ,
getAdjustmentPageIncrement ,
setAdjustmentPageIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentPageSizePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentPageSize ,
#endif
constructAdjustmentPageSize ,
getAdjustmentPageSize ,
setAdjustmentPageSize ,
#if defined(ENABLE_OVERLOADING)
AdjustmentStepIncrementPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentStepIncrement ,
#endif
constructAdjustmentStepIncrement ,
getAdjustmentStepIncrement ,
setAdjustmentStepIncrement ,
#if defined(ENABLE_OVERLOADING)
AdjustmentUpperPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentUpper ,
#endif
constructAdjustmentUpper ,
getAdjustmentUpper ,
setAdjustmentUpper ,
#if defined(ENABLE_OVERLOADING)
AdjustmentValuePropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentValue ,
#endif
constructAdjustmentValue ,
getAdjustmentValue ,
setAdjustmentValue ,
AdjustmentChangedCallback ,
#if defined(ENABLE_OVERLOADING)
AdjustmentChangedSignalInfo ,
#endif
C_AdjustmentChangedCallback ,
afterAdjustmentChanged ,
genClosure_AdjustmentChanged ,
mk_AdjustmentChangedCallback ,
noAdjustmentChangedCallback ,
onAdjustmentChanged ,
wrap_AdjustmentChangedCallback ,
AdjustmentValueChangedCallback ,
#if defined(ENABLE_OVERLOADING)
AdjustmentValueChangedSignalInfo ,
#endif
C_AdjustmentValueChangedCallback ,
afterAdjustmentValueChanged ,
genClosure_AdjustmentValueChanged ,
mk_AdjustmentValueChangedCallback ,
noAdjustmentValueChangedCallback ,
onAdjustmentValueChanged ,
wrap_AdjustmentValueChangedCallback ,
) 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.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 qualified GHC.Records as R
import qualified GI.GObject.Objects.Object as GObject.Object
newtype Adjustment = Adjustment (SP.ManagedPtr Adjustment)
deriving (Adjustment -> Adjustment -> Bool
(Adjustment -> Adjustment -> Bool)
-> (Adjustment -> Adjustment -> Bool) -> Eq Adjustment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Adjustment -> Adjustment -> Bool
$c/= :: Adjustment -> Adjustment -> Bool
== :: Adjustment -> Adjustment -> Bool
$c== :: Adjustment -> Adjustment -> Bool
Eq)
instance SP.ManagedPtrNewtype Adjustment where
toManagedPtr :: Adjustment -> ManagedPtr Adjustment
toManagedPtr (Adjustment ManagedPtr Adjustment
p) = ManagedPtr Adjustment
p
foreign import ccall "gtk_adjustment_get_type"
c_gtk_adjustment_get_type :: IO B.Types.GType
instance B.Types.TypedObject Adjustment where
glibType :: IO GType
glibType = IO GType
c_gtk_adjustment_get_type
instance B.Types.GObject Adjustment
class (SP.GObject o, O.IsDescendantOf Adjustment o) => IsAdjustment o
instance (SP.GObject o, O.IsDescendantOf Adjustment o) => IsAdjustment o
instance O.HasParentTypes Adjustment
type instance O.ParentTypes Adjustment = '[GObject.Object.Object]
toAdjustment :: (MIO.MonadIO m, IsAdjustment o) => o -> m Adjustment
toAdjustment :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Adjustment
toAdjustment = IO Adjustment -> m Adjustment
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Adjustment -> m Adjustment)
-> (o -> IO Adjustment) -> o -> m Adjustment
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Adjustment -> Adjustment) -> o -> IO Adjustment
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr Adjustment -> Adjustment
Adjustment
instance B.GValue.IsGValue (Maybe Adjustment) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_adjustment_get_type
gvalueSet_ :: Ptr GValue -> Maybe Adjustment -> IO ()
gvalueSet_ Ptr GValue
gv Maybe Adjustment
P.Nothing = Ptr GValue -> Ptr Adjustment -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr Adjustment
forall a. Ptr a
FP.nullPtr :: FP.Ptr Adjustment)
gvalueSet_ Ptr GValue
gv (P.Just Adjustment
obj) = Adjustment -> (Ptr Adjustment -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Adjustment
obj (Ptr GValue -> Ptr Adjustment -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe Adjustment)
gvalueGet_ Ptr GValue
gv = do
Ptr Adjustment
ptr <- Ptr GValue -> IO (Ptr Adjustment)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr Adjustment)
if Ptr Adjustment
ptr Ptr Adjustment -> Ptr Adjustment -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr Adjustment
forall a. Ptr a
FP.nullPtr
then Adjustment -> Maybe Adjustment
forall a. a -> Maybe a
P.Just (Adjustment -> Maybe Adjustment)
-> IO Adjustment -> IO (Maybe Adjustment)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr Adjustment -> Adjustment)
-> Ptr Adjustment -> IO Adjustment
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Adjustment -> Adjustment
Adjustment Ptr Adjustment
ptr
else Maybe Adjustment -> IO (Maybe Adjustment)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Adjustment
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveAdjustmentMethod (t :: Symbol) (o :: *) :: * where
ResolveAdjustmentMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveAdjustmentMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveAdjustmentMethod "changed" o = AdjustmentChangedMethodInfo
ResolveAdjustmentMethod "clampPage" o = AdjustmentClampPageMethodInfo
ResolveAdjustmentMethod "configure" o = AdjustmentConfigureMethodInfo
ResolveAdjustmentMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveAdjustmentMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveAdjustmentMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveAdjustmentMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveAdjustmentMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveAdjustmentMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveAdjustmentMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveAdjustmentMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveAdjustmentMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveAdjustmentMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveAdjustmentMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveAdjustmentMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveAdjustmentMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveAdjustmentMethod "valueChanged" o = AdjustmentValueChangedMethodInfo
ResolveAdjustmentMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveAdjustmentMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveAdjustmentMethod "getLower" o = AdjustmentGetLowerMethodInfo
ResolveAdjustmentMethod "getMinimumIncrement" o = AdjustmentGetMinimumIncrementMethodInfo
ResolveAdjustmentMethod "getPageIncrement" o = AdjustmentGetPageIncrementMethodInfo
ResolveAdjustmentMethod "getPageSize" o = AdjustmentGetPageSizeMethodInfo
ResolveAdjustmentMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveAdjustmentMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveAdjustmentMethod "getStepIncrement" o = AdjustmentGetStepIncrementMethodInfo
ResolveAdjustmentMethod "getUpper" o = AdjustmentGetUpperMethodInfo
ResolveAdjustmentMethod "getValue" o = AdjustmentGetValueMethodInfo
ResolveAdjustmentMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveAdjustmentMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveAdjustmentMethod "setLower" o = AdjustmentSetLowerMethodInfo
ResolveAdjustmentMethod "setPageIncrement" o = AdjustmentSetPageIncrementMethodInfo
ResolveAdjustmentMethod "setPageSize" o = AdjustmentSetPageSizeMethodInfo
ResolveAdjustmentMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveAdjustmentMethod "setStepIncrement" o = AdjustmentSetStepIncrementMethodInfo
ResolveAdjustmentMethod "setUpper" o = AdjustmentSetUpperMethodInfo
ResolveAdjustmentMethod "setValue" o = AdjustmentSetValueMethodInfo
ResolveAdjustmentMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveAdjustmentMethod t Adjustment, O.OverloadedMethod info Adjustment p) => OL.IsLabel t (Adjustment -> 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 ~ ResolveAdjustmentMethod t Adjustment, O.OverloadedMethod info Adjustment p, R.HasField t Adjustment p) => R.HasField t Adjustment p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveAdjustmentMethod t Adjustment, O.OverloadedMethodInfo info Adjustment) => OL.IsLabel t (O.MethodProxy info Adjustment) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type AdjustmentChangedCallback =
IO ()
noAdjustmentChangedCallback :: Maybe AdjustmentChangedCallback
noAdjustmentChangedCallback :: Maybe (IO ())
noAdjustmentChangedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_AdjustmentChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_AdjustmentChangedCallback :: C_AdjustmentChangedCallback -> IO (FunPtr C_AdjustmentChangedCallback)
genClosure_AdjustmentChanged :: MonadIO m => AdjustmentChangedCallback -> m (GClosure C_AdjustmentChangedCallback)
genClosure_AdjustmentChanged :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_AdjustmentChangedCallback)
genClosure_AdjustmentChanged IO ()
cb = IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback))
-> IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentChangedCallback IO ()
cb
C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentChangedCallback C_AdjustmentChangedCallback
cb' IO (FunPtr C_AdjustmentChangedCallback)
-> (FunPtr C_AdjustmentChangedCallback
-> IO (GClosure C_AdjustmentChangedCallback))
-> IO (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_AdjustmentChangedCallback
-> IO (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_AdjustmentChangedCallback ::
AdjustmentChangedCallback ->
C_AdjustmentChangedCallback
wrap_AdjustmentChangedCallback :: IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentChangedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onAdjustmentChanged :: (IsAdjustment a, MonadIO m) => a -> AdjustmentChangedCallback -> m SignalHandlerId
onAdjustmentChanged :: forall a (m :: * -> *).
(IsAdjustment a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onAdjustmentChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
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 cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentChangedCallback IO ()
cb
FunPtr C_AdjustmentChangedCallback
cb'' <- C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentChangedCallback C_AdjustmentChangedCallback
cb'
a
-> Text
-> FunPtr C_AdjustmentChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"changed" FunPtr C_AdjustmentChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterAdjustmentChanged :: (IsAdjustment a, MonadIO m) => a -> AdjustmentChangedCallback -> m SignalHandlerId
afterAdjustmentChanged :: forall a (m :: * -> *).
(IsAdjustment a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterAdjustmentChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
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 cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentChangedCallback IO ()
cb
FunPtr C_AdjustmentChangedCallback
cb'' <- C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentChangedCallback C_AdjustmentChangedCallback
cb'
a
-> Text
-> FunPtr C_AdjustmentChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"changed" FunPtr C_AdjustmentChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data AdjustmentChangedSignalInfo
instance SignalInfo AdjustmentChangedSignalInfo where
type HaskellCallbackType AdjustmentChangedSignalInfo = AdjustmentChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_AdjustmentChangedCallback cb
cb'' <- mk_AdjustmentChangedCallback cb'
connectSignalFunPtr obj "changed" cb'' connectMode detail
#endif
type AdjustmentValueChangedCallback =
IO ()
noAdjustmentValueChangedCallback :: Maybe AdjustmentValueChangedCallback
noAdjustmentValueChangedCallback :: Maybe (IO ())
noAdjustmentValueChangedCallback = Maybe (IO ())
forall a. Maybe a
Nothing
type C_AdjustmentValueChangedCallback =
Ptr () ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_AdjustmentValueChangedCallback :: C_AdjustmentValueChangedCallback -> IO (FunPtr C_AdjustmentValueChangedCallback)
genClosure_AdjustmentValueChanged :: MonadIO m => AdjustmentValueChangedCallback -> m (GClosure C_AdjustmentValueChangedCallback)
genClosure_AdjustmentValueChanged :: forall (m :: * -> *).
MonadIO m =>
IO () -> m (GClosure C_AdjustmentChangedCallback)
genClosure_AdjustmentValueChanged IO ()
cb = IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback))
-> IO (GClosure C_AdjustmentChangedCallback)
-> m (GClosure C_AdjustmentChangedCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentValueChangedCallback IO ()
cb
C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentValueChangedCallback C_AdjustmentChangedCallback
cb' IO (FunPtr C_AdjustmentChangedCallback)
-> (FunPtr C_AdjustmentChangedCallback
-> IO (GClosure C_AdjustmentChangedCallback))
-> IO (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_AdjustmentChangedCallback
-> IO (GClosure C_AdjustmentChangedCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_AdjustmentValueChangedCallback ::
AdjustmentValueChangedCallback ->
C_AdjustmentValueChangedCallback
wrap_AdjustmentValueChangedCallback :: IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentValueChangedCallback IO ()
_cb Ptr ()
_ Ptr ()
_ = do
IO ()
_cb
onAdjustmentValueChanged :: (IsAdjustment a, MonadIO m) => a -> AdjustmentValueChangedCallback -> m SignalHandlerId
onAdjustmentValueChanged :: forall a (m :: * -> *).
(IsAdjustment a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
onAdjustmentValueChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
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 cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentValueChangedCallback IO ()
cb
FunPtr C_AdjustmentChangedCallback
cb'' <- C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentValueChangedCallback C_AdjustmentChangedCallback
cb'
a
-> Text
-> FunPtr C_AdjustmentChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"value-changed" FunPtr C_AdjustmentChangedCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterAdjustmentValueChanged :: (IsAdjustment a, MonadIO m) => a -> AdjustmentValueChangedCallback -> m SignalHandlerId
afterAdjustmentValueChanged :: forall a (m :: * -> *).
(IsAdjustment a, MonadIO m) =>
a -> IO () -> m SignalHandlerId
afterAdjustmentValueChanged a
obj IO ()
cb = IO SignalHandlerId -> m SignalHandlerId
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 cb' :: C_AdjustmentChangedCallback
cb' = IO () -> C_AdjustmentChangedCallback
wrap_AdjustmentValueChangedCallback IO ()
cb
FunPtr C_AdjustmentChangedCallback
cb'' <- C_AdjustmentChangedCallback
-> IO (FunPtr C_AdjustmentChangedCallback)
mk_AdjustmentValueChangedCallback C_AdjustmentChangedCallback
cb'
a
-> Text
-> FunPtr C_AdjustmentChangedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"value-changed" FunPtr C_AdjustmentChangedCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data AdjustmentValueChangedSignalInfo
instance SignalInfo AdjustmentValueChangedSignalInfo where
type HaskellCallbackType AdjustmentValueChangedSignalInfo = AdjustmentValueChangedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_AdjustmentValueChangedCallback cb
cb'' <- mk_AdjustmentValueChangedCallback cb'
connectSignalFunPtr obj "value-changed" cb'' connectMode detail
#endif
getAdjustmentLower :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentLower :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentLower o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"lower"
setAdjustmentLower :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentLower :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentLower o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"lower" Double
val
constructAdjustmentLower :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentLower :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentLower Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"lower" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentLowerPropertyInfo
instance AttrInfo AdjustmentLowerPropertyInfo where
type AttrAllowedOps AdjustmentLowerPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentLowerPropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentLowerPropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentLowerPropertyInfo = (~) Double
type AttrTransferType AdjustmentLowerPropertyInfo = Double
type AttrGetType AdjustmentLowerPropertyInfo = Double
type AttrLabel AdjustmentLowerPropertyInfo = "lower"
type AttrOrigin AdjustmentLowerPropertyInfo = Adjustment
attrGet = getAdjustmentLower
attrSet = setAdjustmentLower
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentLower
attrClear = undefined
#endif
getAdjustmentPageIncrement :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentPageIncrement :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentPageIncrement o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"page-increment"
setAdjustmentPageIncrement :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentPageIncrement :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentPageIncrement o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"page-increment" Double
val
constructAdjustmentPageIncrement :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentPageIncrement :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentPageIncrement Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"page-increment" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentPageIncrementPropertyInfo
instance AttrInfo AdjustmentPageIncrementPropertyInfo where
type AttrAllowedOps AdjustmentPageIncrementPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentPageIncrementPropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentPageIncrementPropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentPageIncrementPropertyInfo = (~) Double
type AttrTransferType AdjustmentPageIncrementPropertyInfo = Double
type AttrGetType AdjustmentPageIncrementPropertyInfo = Double
type AttrLabel AdjustmentPageIncrementPropertyInfo = "page-increment"
type AttrOrigin AdjustmentPageIncrementPropertyInfo = Adjustment
attrGet = getAdjustmentPageIncrement
attrSet = setAdjustmentPageIncrement
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentPageIncrement
attrClear = undefined
#endif
getAdjustmentPageSize :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentPageSize :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentPageSize o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"page-size"
setAdjustmentPageSize :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentPageSize :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentPageSize o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"page-size" Double
val
constructAdjustmentPageSize :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentPageSize :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentPageSize Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"page-size" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentPageSizePropertyInfo
instance AttrInfo AdjustmentPageSizePropertyInfo where
type AttrAllowedOps AdjustmentPageSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentPageSizePropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentPageSizePropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentPageSizePropertyInfo = (~) Double
type AttrTransferType AdjustmentPageSizePropertyInfo = Double
type AttrGetType AdjustmentPageSizePropertyInfo = Double
type AttrLabel AdjustmentPageSizePropertyInfo = "page-size"
type AttrOrigin AdjustmentPageSizePropertyInfo = Adjustment
attrGet = getAdjustmentPageSize
attrSet = setAdjustmentPageSize
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentPageSize
attrClear = undefined
#endif
getAdjustmentStepIncrement :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentStepIncrement :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentStepIncrement o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"step-increment"
setAdjustmentStepIncrement :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentStepIncrement :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentStepIncrement o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"step-increment" Double
val
constructAdjustmentStepIncrement :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentStepIncrement :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentStepIncrement Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"step-increment" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentStepIncrementPropertyInfo
instance AttrInfo AdjustmentStepIncrementPropertyInfo where
type AttrAllowedOps AdjustmentStepIncrementPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentStepIncrementPropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentStepIncrementPropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentStepIncrementPropertyInfo = (~) Double
type AttrTransferType AdjustmentStepIncrementPropertyInfo = Double
type AttrGetType AdjustmentStepIncrementPropertyInfo = Double
type AttrLabel AdjustmentStepIncrementPropertyInfo = "step-increment"
type AttrOrigin AdjustmentStepIncrementPropertyInfo = Adjustment
attrGet = getAdjustmentStepIncrement
attrSet = setAdjustmentStepIncrement
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentStepIncrement
attrClear = undefined
#endif
getAdjustmentUpper :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentUpper :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentUpper o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"upper"
setAdjustmentUpper :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentUpper :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentUpper o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"upper" Double
val
constructAdjustmentUpper :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentUpper :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentUpper Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"upper" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentUpperPropertyInfo
instance AttrInfo AdjustmentUpperPropertyInfo where
type AttrAllowedOps AdjustmentUpperPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentUpperPropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentUpperPropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentUpperPropertyInfo = (~) Double
type AttrTransferType AdjustmentUpperPropertyInfo = Double
type AttrGetType AdjustmentUpperPropertyInfo = Double
type AttrLabel AdjustmentUpperPropertyInfo = "upper"
type AttrOrigin AdjustmentUpperPropertyInfo = Adjustment
attrGet = getAdjustmentUpper
attrSet = setAdjustmentUpper
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentUpper
attrClear = undefined
#endif
getAdjustmentValue :: (MonadIO m, IsAdjustment o) => o -> m Double
getAdjustmentValue :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> m Double
getAdjustmentValue o
obj = IO Double -> m Double
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"value"
setAdjustmentValue :: (MonadIO m, IsAdjustment o) => o -> Double -> m ()
setAdjustmentValue :: forall (m :: * -> *) o.
(MonadIO m, IsAdjustment o) =>
o -> Double -> m ()
setAdjustmentValue o
obj Double
val = IO () -> m ()
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"value" Double
val
constructAdjustmentValue :: (IsAdjustment o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructAdjustmentValue :: forall o (m :: * -> *).
(IsAdjustment o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructAdjustmentValue Double
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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 (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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"value" Double
val
#if defined(ENABLE_OVERLOADING)
data AdjustmentValuePropertyInfo
instance AttrInfo AdjustmentValuePropertyInfo where
type AttrAllowedOps AdjustmentValuePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint AdjustmentValuePropertyInfo = IsAdjustment
type AttrSetTypeConstraint AdjustmentValuePropertyInfo = (~) Double
type AttrTransferTypeConstraint AdjustmentValuePropertyInfo = (~) Double
type AttrTransferType AdjustmentValuePropertyInfo = Double
type AttrGetType AdjustmentValuePropertyInfo = Double
type AttrLabel AdjustmentValuePropertyInfo = "value"
type AttrOrigin AdjustmentValuePropertyInfo = Adjustment
attrGet = getAdjustmentValue
attrSet = setAdjustmentValue
attrTransfer _ v = do
return v
attrConstruct = constructAdjustmentValue
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Adjustment
type instance O.AttributeList Adjustment = AdjustmentAttributeList
type AdjustmentAttributeList = ('[ '("lower", AdjustmentLowerPropertyInfo), '("pageIncrement", AdjustmentPageIncrementPropertyInfo), '("pageSize", AdjustmentPageSizePropertyInfo), '("stepIncrement", AdjustmentStepIncrementPropertyInfo), '("upper", AdjustmentUpperPropertyInfo), '("value", AdjustmentValuePropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
adjustmentLower :: AttrLabelProxy "lower"
adjustmentLower = AttrLabelProxy
adjustmentPageIncrement :: AttrLabelProxy "pageIncrement"
adjustmentPageIncrement = AttrLabelProxy
adjustmentPageSize :: AttrLabelProxy "pageSize"
adjustmentPageSize = AttrLabelProxy
adjustmentStepIncrement :: AttrLabelProxy "stepIncrement"
adjustmentStepIncrement = AttrLabelProxy
adjustmentUpper :: AttrLabelProxy "upper"
adjustmentUpper = AttrLabelProxy
adjustmentValue :: AttrLabelProxy "value"
adjustmentValue = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Adjustment = AdjustmentSignalList
type AdjustmentSignalList = ('[ '("changed", AdjustmentChangedSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("valueChanged", AdjustmentValueChangedSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_adjustment_new" gtk_adjustment_new ::
CDouble ->
CDouble ->
CDouble ->
CDouble ->
CDouble ->
CDouble ->
IO (Ptr Adjustment)
adjustmentNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
Double
-> Double
-> Double
-> Double
-> Double
-> Double
-> m Adjustment
adjustmentNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Double
-> Double -> Double -> Double -> Double -> Double -> m Adjustment
adjustmentNew Double
value Double
lower Double
upper Double
stepIncrement Double
pageIncrement Double
pageSize = IO Adjustment -> m Adjustment
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Adjustment -> m Adjustment) -> IO Adjustment -> m Adjustment
forall a b. (a -> b) -> a -> b
$ do
let value' :: CDouble
value' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
let lower' :: CDouble
lower' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
lower
let upper' :: CDouble
upper' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
upper
let stepIncrement' :: CDouble
stepIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
stepIncrement
let pageIncrement' :: CDouble
pageIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageIncrement
let pageSize' :: CDouble
pageSize' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageSize
Ptr Adjustment
result <- CDouble
-> CDouble
-> CDouble
-> CDouble
-> CDouble
-> CDouble
-> IO (Ptr Adjustment)
gtk_adjustment_new CDouble
value' CDouble
lower' CDouble
upper' CDouble
stepIncrement' CDouble
pageIncrement' CDouble
pageSize'
Text -> Ptr Adjustment -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"adjustmentNew" Ptr Adjustment
result
Adjustment
result' <- ((ManagedPtr Adjustment -> Adjustment)
-> Ptr Adjustment -> IO Adjustment
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Adjustment -> Adjustment
Adjustment) Ptr Adjustment
result
Adjustment -> IO Adjustment
forall (m :: * -> *) a. Monad m => a -> m a
return Adjustment
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_adjustment_changed" gtk_adjustment_changed ::
Ptr Adjustment ->
IO ()
{-# DEPRECATED adjustmentChanged ["(Since version 3.18)","GTK+ emits [changed](\"GI.Gtk.Objects.Adjustment#g:signal:changed\") itself whenever any"," of the properties (other than value) change"] #-}
adjustmentChanged ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m ()
adjustmentChanged :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m ()
adjustmentChanged a
adjustment = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
Ptr Adjustment -> IO ()
gtk_adjustment_changed Ptr Adjustment
adjustment'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentChangedMethodInfo
instance (signature ~ (m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentChangedMethodInfo a signature where
overloadedMethod = adjustmentChanged
instance O.OverloadedMethodInfo AdjustmentChangedMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentChanged",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentChanged"
}
#endif
foreign import ccall "gtk_adjustment_clamp_page" gtk_adjustment_clamp_page ::
Ptr Adjustment ->
CDouble ->
CDouble ->
IO ()
adjustmentClampPage ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> Double
-> m ()
adjustmentClampPage :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> Double -> m ()
adjustmentClampPage a
adjustment Double
lower Double
upper = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let lower' :: CDouble
lower' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
lower
let upper' :: CDouble
upper' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
upper
Ptr Adjustment -> CDouble -> CDouble -> IO ()
gtk_adjustment_clamp_page Ptr Adjustment
adjustment' CDouble
lower' CDouble
upper'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentClampPageMethodInfo
instance (signature ~ (Double -> Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentClampPageMethodInfo a signature where
overloadedMethod = adjustmentClampPage
instance O.OverloadedMethodInfo AdjustmentClampPageMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentClampPage",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentClampPage"
}
#endif
foreign import ccall "gtk_adjustment_configure" gtk_adjustment_configure ::
Ptr Adjustment ->
CDouble ->
CDouble ->
CDouble ->
CDouble ->
CDouble ->
CDouble ->
IO ()
adjustmentConfigure ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> Double
-> Double
-> Double
-> Double
-> Double
-> m ()
adjustmentConfigure :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double -> Double -> Double -> Double -> Double -> Double -> m ()
adjustmentConfigure a
adjustment Double
value Double
lower Double
upper Double
stepIncrement Double
pageIncrement Double
pageSize = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let value' :: CDouble
value' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
let lower' :: CDouble
lower' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
lower
let upper' :: CDouble
upper' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
upper
let stepIncrement' :: CDouble
stepIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
stepIncrement
let pageIncrement' :: CDouble
pageIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageIncrement
let pageSize' :: CDouble
pageSize' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageSize
Ptr Adjustment
-> CDouble
-> CDouble
-> CDouble
-> CDouble
-> CDouble
-> CDouble
-> IO ()
gtk_adjustment_configure Ptr Adjustment
adjustment' CDouble
value' CDouble
lower' CDouble
upper' CDouble
stepIncrement' CDouble
pageIncrement' CDouble
pageSize'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentConfigureMethodInfo
instance (signature ~ (Double -> Double -> Double -> Double -> Double -> Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentConfigureMethodInfo a signature where
overloadedMethod = adjustmentConfigure
instance O.OverloadedMethodInfo AdjustmentConfigureMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentConfigure",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentConfigure"
}
#endif
foreign import ccall "gtk_adjustment_get_lower" gtk_adjustment_get_lower ::
Ptr Adjustment ->
IO CDouble
adjustmentGetLower ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetLower :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetLower a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_lower Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetLowerMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetLowerMethodInfo a signature where
overloadedMethod = adjustmentGetLower
instance O.OverloadedMethodInfo AdjustmentGetLowerMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetLower",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetLower"
}
#endif
foreign import ccall "gtk_adjustment_get_minimum_increment" gtk_adjustment_get_minimum_increment ::
Ptr Adjustment ->
IO CDouble
adjustmentGetMinimumIncrement ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetMinimumIncrement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetMinimumIncrement a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_minimum_increment Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetMinimumIncrementMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetMinimumIncrementMethodInfo a signature where
overloadedMethod = adjustmentGetMinimumIncrement
instance O.OverloadedMethodInfo AdjustmentGetMinimumIncrementMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetMinimumIncrement",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetMinimumIncrement"
}
#endif
foreign import ccall "gtk_adjustment_get_page_increment" gtk_adjustment_get_page_increment ::
Ptr Adjustment ->
IO CDouble
adjustmentGetPageIncrement ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetPageIncrement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetPageIncrement a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_page_increment Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetPageIncrementMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetPageIncrementMethodInfo a signature where
overloadedMethod = adjustmentGetPageIncrement
instance O.OverloadedMethodInfo AdjustmentGetPageIncrementMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetPageIncrement",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetPageIncrement"
}
#endif
foreign import ccall "gtk_adjustment_get_page_size" gtk_adjustment_get_page_size ::
Ptr Adjustment ->
IO CDouble
adjustmentGetPageSize ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetPageSize :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetPageSize a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_page_size Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetPageSizeMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetPageSizeMethodInfo a signature where
overloadedMethod = adjustmentGetPageSize
instance O.OverloadedMethodInfo AdjustmentGetPageSizeMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetPageSize",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetPageSize"
}
#endif
foreign import ccall "gtk_adjustment_get_step_increment" gtk_adjustment_get_step_increment ::
Ptr Adjustment ->
IO CDouble
adjustmentGetStepIncrement ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetStepIncrement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetStepIncrement a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_step_increment Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetStepIncrementMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetStepIncrementMethodInfo a signature where
overloadedMethod = adjustmentGetStepIncrement
instance O.OverloadedMethodInfo AdjustmentGetStepIncrementMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetStepIncrement",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetStepIncrement"
}
#endif
foreign import ccall "gtk_adjustment_get_upper" gtk_adjustment_get_upper ::
Ptr Adjustment ->
IO CDouble
adjustmentGetUpper ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetUpper :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetUpper a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_upper Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetUpperMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetUpperMethodInfo a signature where
overloadedMethod = adjustmentGetUpper
instance O.OverloadedMethodInfo AdjustmentGetUpperMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetUpper",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetUpper"
}
#endif
foreign import ccall "gtk_adjustment_get_value" gtk_adjustment_get_value ::
Ptr Adjustment ->
IO CDouble
adjustmentGetValue ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m Double
adjustmentGetValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m Double
adjustmentGetValue a
adjustment = 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
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
CDouble
result <- Ptr Adjustment -> IO CDouble
gtk_adjustment_get_value Ptr Adjustment
adjustment'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data AdjustmentGetValueMethodInfo
instance (signature ~ (m Double), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentGetValueMethodInfo a signature where
overloadedMethod = adjustmentGetValue
instance O.OverloadedMethodInfo AdjustmentGetValueMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentGetValue",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentGetValue"
}
#endif
foreign import ccall "gtk_adjustment_set_lower" gtk_adjustment_set_lower ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetLower ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetLower :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetLower a
adjustment Double
lower = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let lower' :: CDouble
lower' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
lower
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_lower Ptr Adjustment
adjustment' CDouble
lower'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetLowerMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetLowerMethodInfo a signature where
overloadedMethod = adjustmentSetLower
instance O.OverloadedMethodInfo AdjustmentSetLowerMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetLower",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetLower"
}
#endif
foreign import ccall "gtk_adjustment_set_page_increment" gtk_adjustment_set_page_increment ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetPageIncrement ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetPageIncrement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetPageIncrement a
adjustment Double
pageIncrement = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let pageIncrement' :: CDouble
pageIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageIncrement
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_page_increment Ptr Adjustment
adjustment' CDouble
pageIncrement'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetPageIncrementMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetPageIncrementMethodInfo a signature where
overloadedMethod = adjustmentSetPageIncrement
instance O.OverloadedMethodInfo AdjustmentSetPageIncrementMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetPageIncrement",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetPageIncrement"
}
#endif
foreign import ccall "gtk_adjustment_set_page_size" gtk_adjustment_set_page_size ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetPageSize ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetPageSize :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetPageSize a
adjustment Double
pageSize = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let pageSize' :: CDouble
pageSize' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
pageSize
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_page_size Ptr Adjustment
adjustment' CDouble
pageSize'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetPageSizeMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetPageSizeMethodInfo a signature where
overloadedMethod = adjustmentSetPageSize
instance O.OverloadedMethodInfo AdjustmentSetPageSizeMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetPageSize",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetPageSize"
}
#endif
foreign import ccall "gtk_adjustment_set_step_increment" gtk_adjustment_set_step_increment ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetStepIncrement ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetStepIncrement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetStepIncrement a
adjustment Double
stepIncrement = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let stepIncrement' :: CDouble
stepIncrement' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
stepIncrement
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_step_increment Ptr Adjustment
adjustment' CDouble
stepIncrement'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetStepIncrementMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetStepIncrementMethodInfo a signature where
overloadedMethod = adjustmentSetStepIncrement
instance O.OverloadedMethodInfo AdjustmentSetStepIncrementMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetStepIncrement",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetStepIncrement"
}
#endif
foreign import ccall "gtk_adjustment_set_upper" gtk_adjustment_set_upper ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetUpper ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetUpper :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetUpper a
adjustment Double
upper = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let upper' :: CDouble
upper' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
upper
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_upper Ptr Adjustment
adjustment' CDouble
upper'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetUpperMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetUpperMethodInfo a signature where
overloadedMethod = adjustmentSetUpper
instance O.OverloadedMethodInfo AdjustmentSetUpperMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetUpper",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetUpper"
}
#endif
foreign import ccall "gtk_adjustment_set_value" gtk_adjustment_set_value ::
Ptr Adjustment ->
CDouble ->
IO ()
adjustmentSetValue ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> Double
-> m ()
adjustmentSetValue :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> Double -> m ()
adjustmentSetValue a
adjustment Double
value = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
let value' :: CDouble
value' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
Ptr Adjustment -> CDouble -> IO ()
gtk_adjustment_set_value Ptr Adjustment
adjustment' CDouble
value'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentSetValueMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentSetValueMethodInfo a signature where
overloadedMethod = adjustmentSetValue
instance O.OverloadedMethodInfo AdjustmentSetValueMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentSetValue",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentSetValue"
}
#endif
foreign import ccall "gtk_adjustment_value_changed" gtk_adjustment_value_changed ::
Ptr Adjustment ->
IO ()
{-# DEPRECATED adjustmentValueChanged ["(Since version 3.18)","GTK+ emits [valueChanged](\"GI.Gtk.Objects.Adjustment#g:signal:valueChanged\") itself whenever"," the value changes"] #-}
adjustmentValueChanged ::
(B.CallStack.HasCallStack, MonadIO m, IsAdjustment a) =>
a
-> m ()
adjustmentValueChanged :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsAdjustment a) =>
a -> m ()
adjustmentValueChanged a
adjustment = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Adjustment
adjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
adjustment
Ptr Adjustment -> IO ()
gtk_adjustment_value_changed Ptr Adjustment
adjustment'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
adjustment
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data AdjustmentValueChangedMethodInfo
instance (signature ~ (m ()), MonadIO m, IsAdjustment a) => O.OverloadedMethod AdjustmentValueChangedMethodInfo a signature where
overloadedMethod = adjustmentValueChanged
instance O.OverloadedMethodInfo AdjustmentValueChangedMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.Adjustment.adjustmentValueChanged",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-3.0.37/docs/GI-Gtk-Objects-Adjustment.html#v:adjustmentValueChanged"
}
#endif