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 |
A fundamental type that describes a fraction of an integer numerator over an integer denominator
Synopsis
- newtype Fraction = Fraction (ManagedPtr Fraction)
- class (BoxedPtr o, TypedObject o, IsDescendantOf Fraction o) => IsFraction o
- toFraction :: (MonadIO m, IsFraction o) => o -> m Fraction
Exported types
Memory-managed wrapper type.
Instances
Eq Fraction Source # | |
BoxedPtr Fraction Source # | |
Defined in GI.Gst.Objects.Fraction boxedPtrCopy :: Fraction -> IO Fraction boxedPtrFree :: Fraction -> IO () | |
ManagedPtrNewtype Fraction Source # | |
Defined in GI.Gst.Objects.Fraction toManagedPtr :: Fraction -> ManagedPtr Fraction | |
TypedObject Fraction Source # | |
Defined in GI.Gst.Objects.Fraction | |
HasParentTypes Fraction Source # | |
Defined in GI.Gst.Objects.Fraction | |
type ParentTypes Fraction Source # | |
Defined in GI.Gst.Objects.Fraction |
class (BoxedPtr o, TypedObject o, IsDescendantOf Fraction o) => IsFraction o Source #
Type class for types which can be safely cast to Fraction
, for instance with toFraction
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf Fraction o) => IsFraction o Source # | |
Defined in GI.Gst.Objects.Fraction |
toFraction :: (MonadIO m, IsFraction o) => o -> m Fraction Source #