Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Fixed point number using a (16.16) notation.
Synopsis
- newtype Fixed = Fixed (ManagedPtr Fixed)
- class (BoxedPtr o, TypedObject o, IsDescendantOf Fixed o) => IsFixed o
- toFixed :: (MonadIO m, IsFixed o) => o -> m Fixed
- fixedPow :: (HasCallStack, MonadIO m, IsFixed a) => Word32 -> a -> m Word32
- fixedPow2 :: (HasCallStack, MonadIO m, IsFixed a) => a -> m Word32
Exported types
Memory-managed wrapper type.
Instances
Eq Fixed Source # | |
BoxedPtr Fixed Source # | |
Defined in GI.Cogl.Objects.Fixed boxedPtrCopy :: Fixed -> IO Fixed # boxedPtrFree :: Fixed -> IO () # | |
ManagedPtrNewtype Fixed Source # | |
Defined in GI.Cogl.Objects.Fixed toManagedPtr :: Fixed -> ManagedPtr Fixed # | |
TypedObject Fixed Source # | |
Defined in GI.Cogl.Objects.Fixed | |
HasParentTypes Fixed Source # | |
Defined in GI.Cogl.Objects.Fixed | |
type ParentTypes Fixed Source # | |
Defined in GI.Cogl.Objects.Fixed |
class (BoxedPtr o, TypedObject o, IsDescendantOf Fixed o) => IsFixed o Source #
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf Fixed o) => IsFixed o Source # | |
Defined in GI.Cogl.Objects.Fixed |
Methods
Click to display all available methods, including inherited ones
pow
:: (HasCallStack, MonadIO m, IsFixed a) | |
=> Word32 |
|
-> a |
|
-> m Word32 | Returns: the power of |
Calculates x
to the y
power.
Since: 1.0