Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.GObject
Description
Documentation
module GI.GObject.Callbacks
module GI.GObject.Constants
module GI.GObject.Flags
module GI.GObject.Functions
module GI.GObject.Interfaces
module GI.GObject.Objects
module GI.GObject.Structs
module GI.GObject.Unions
class (ManagedPtrNewtype a, TypedObject a) => GObject a #
Instances
GObject Binding Source # | |
Defined in GI.GObject.Objects.Binding | |
GObject BindingGroup Source # | |
Defined in GI.GObject.Objects.BindingGroup | |
GObject InitiallyUnowned Source # | |
Defined in GI.GObject.Objects.InitiallyUnowned | |
GObject Object Source # | |
Defined in GI.GObject.Objects.Object | |
GObject SignalGroup Source # | |
Defined in GI.GObject.Objects.SignalGroup | |
GObject TypeModule Source # | |
Defined in GI.GObject.Objects.TypeModule |
data ManagedPtr a #
Constructors
ManagedPtr | |
Fields
|
Instances
Eq (ManagedPtr a) | |
Defined in Data.GI.Base.BasicTypes |
Instances
GBoxed (GClosure a) | |
Defined in Data.GI.Base.GClosure | |
TypedObject (GClosure a) | |
Defined in Data.GI.Base.GClosure | |
HasParentTypes (GClosure a) | |
Defined in Data.GI.Base.GClosure | |
type ParentTypes (GClosure a) | |
Defined in Data.GI.Base.GClosure type ParentTypes (GClosure a) = '[] :: [Type] |
Constructors
GError (ManagedPtr GError) |
Instances
Exception GError | |
Defined in Data.GI.Base.GError Methods toException :: GError -> SomeException fromException :: SomeException -> Maybe GError displayException :: GError -> String | |
Show GError | |
GBoxed GError | |
Defined in Data.GI.Base.GError | |
TypedObject GError | |
Defined in Data.GI.Base.GError | |
HasParentTypes GError | |
Defined in Data.GI.Base.GError | |
type ParentTypes GError | |
Defined in Data.GI.Base.GError type ParentTypes GError = '[] :: [Type] |
data GHashTable a b #
Constructors
GHashTable (Ptr (GHashTable a b)) |
Constructors
GVariant (ManagedPtr GVariant) |
Instances
IsGVariant GVariant | |
Defined in Data.GI.Base.GVariant Methods toGVariant :: GVariant -> IO GVariant # fromGVariant :: GVariant -> IO (Maybe GVariant) # toGVariantFormatString :: GVariant -> Text # |
Constructors
GValue (ManagedPtr GValue) |
Instances
GBoxed GValue | |
Defined in Data.GI.Base.GValue | |
TypedObject GValue | |
Defined in Data.GI.Base.GValue | |
HasParentTypes GValue | |
Defined in Data.GI.Base.GValue | |
type ParentTypes GValue | |
Defined in Data.GI.Base.GValue type ParentTypes GValue = '[] :: [Type] |
newtype GParamSpec #
Constructors
GParamSpec (ManagedPtr GParamSpec) |
Instances
IsGValue (Maybe GParamSpec) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe GParamSpec -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe GParamSpec) # |
Instances
new :: (Constructible a tag, MonadIO m) => (ManagedPtr a -> a) -> [AttrOp a tag] -> m a #
get :: forall info (attr :: Symbol) obj result m. (AttrGetC info obj attr result, MonadIO m) => obj -> AttrLabelProxy attr -> m result #
data AttrOp obj (tag :: AttrOpTag) where #
Constructors
(:=) :: forall obj info (attr :: Symbol) (tag :: AttrOpTag) b. (HasAttributeList obj, info ~ ResolveAttribute attr obj, AttrInfo info, AttrBaseTypeConstraint info obj, AttrOpAllowed tag info obj, AttrSetTypeConstraint info b) => AttrLabelProxy attr -> b -> AttrOp obj tag | |
(:=>) :: forall obj info (attr :: Symbol) (tag :: AttrOpTag) b. (HasAttributeList obj, info ~ ResolveAttribute attr obj, AttrInfo info, AttrBaseTypeConstraint info obj, AttrOpAllowed tag info obj, AttrSetTypeConstraint info b) => AttrLabelProxy attr -> IO b -> AttrOp obj tag | |
(:~) :: forall obj info (attr :: Symbol) (tag :: AttrOpTag) b a. (HasAttributeList obj, info ~ ResolveAttribute attr obj, AttrInfo info, AttrBaseTypeConstraint info obj, tag ~ 'AttrSet, AttrOpAllowed 'AttrSet info obj, AttrOpAllowed 'AttrGet info obj, AttrSetTypeConstraint info b, a ~ AttrGetType info) => AttrLabelProxy attr -> (a -> b) -> AttrOp obj tag | |
(:~>) :: forall obj info (attr :: Symbol) (tag :: AttrOpTag) b a. (HasAttributeList obj, info ~ ResolveAttribute attr obj, AttrInfo info, AttrBaseTypeConstraint info obj, tag ~ 'AttrSet, AttrOpAllowed 'AttrSet info obj, AttrOpAllowed 'AttrGet info obj, AttrSetTypeConstraint info b, a ~ AttrGetType info) => AttrLabelProxy attr -> (a -> IO b) -> AttrOp obj tag | |
(:&=) :: forall obj info (attr :: Symbol) (tag :: AttrOpTag) b. (HasAttributeList obj, info ~ ResolveAttribute attr obj, AttrInfo info, AttrBaseTypeConstraint info obj, AttrOpAllowed tag info obj, AttrTransferTypeConstraint info b, AttrSetTypeConstraint info (AttrTransferType info)) => AttrLabelProxy attr -> b -> AttrOp obj tag | |
On :: forall obj info (tag :: AttrOpTag). (GObject obj, SignalInfo info) => SignalProxy obj info -> ((?self :: obj) => HaskellCallbackType info) -> AttrOp obj tag | |
After :: forall obj info (tag :: AttrOpTag). (GObject obj, SignalInfo info) => SignalProxy obj info -> ((?self :: obj) => HaskellCallbackType info) -> AttrOp obj tag |
byteStringToCString :: ByteString -> IO CString #
cstringToByteString :: HasCallStack => CString -> IO ByteString #
cstringToString :: HasCallStack => CString -> IO String #
cstringToText :: HasCallStack => CString -> IO Text #
gflagsToWord :: (Num b, IsGFlag a) => [a] -> b #
mapCArrayWithLength :: (Storable a, Integral b) => b -> (a -> IO c) -> Ptr a -> IO () #
mapPtrArray :: (Ptr a -> IO b) -> Ptr (GPtrArray (Ptr a)) -> IO () #
mapZeroTerminatedCArray :: (Ptr a -> IO b) -> Ptr (Ptr a) -> IO () #
packBlockArray :: Int -> [Ptr a] -> IO (Ptr a) #
packByteString :: ByteString -> IO (Ptr Word8) #
packFileNameArray :: [String] -> IO (Ptr CString) #
packGArray :: Storable a => [a] -> IO (Ptr (GArray a)) #
packGByteArray :: ByteString -> IO (Ptr GByteArray) #
packGHashTable :: GHashFunc a -> GEqualFunc a -> Maybe (GDestroyNotify a) -> Maybe (GDestroyNotify b) -> [(PtrWrapped a, PtrWrapped b)] -> IO (Ptr (GHashTable a b)) #
packGPtrArray :: [Ptr a] -> IO (Ptr (GPtrArray (Ptr a))) #
packGSList :: [Ptr a] -> IO (Ptr (GSList (Ptr a))) #
packMapStorableArray :: forall a b. Storable b => (a -> b) -> [a] -> IO (Ptr b) #
packMapZeroTerminatedStorableArray :: forall a b. (Num b, Storable b) => (a -> b) -> [a] -> IO (Ptr b) #
packPtrArray :: [Ptr a] -> IO (Ptr (Ptr a)) #
packStorableArray :: Storable a => [a] -> IO (Ptr a) #
packUTF8CArray :: [Text] -> IO (Ptr CString) #
packZeroTerminatedByteString :: ByteString -> IO (Ptr Word8) #
packZeroTerminatedFileNameArray :: [String] -> IO (Ptr CString) #
packZeroTerminatedPtrArray :: [Ptr a] -> IO (Ptr (Ptr a)) #
packZeroTerminatedStorableArray :: (Num a, Storable a) => [a] -> IO (Ptr a) #
packZeroTerminatedUTF8CArray :: [Text] -> IO (Ptr CString) #
stringToCString :: String -> IO CString #
textToCString :: Text -> IO CString #
unpackBlockArrayWithLength :: Integral a => Int -> a -> Ptr b -> IO [Ptr b] #
unpackBoxedArrayWithLength :: (Integral a, GBoxed b) => Int -> a -> Ptr b -> IO [Ptr b] #
unpackByteStringWithLength :: Integral a => a -> Ptr Word8 -> IO ByteString #
unpackFileNameArrayWithLength :: (HasCallStack, Integral a) => a -> Ptr CString -> IO [String] #
unpackGArray :: Storable a => Ptr (GArray a) -> IO [a] #
unpackGByteArray :: Ptr GByteArray -> IO ByteString #
unpackGHashTable :: Ptr (GHashTable a b) -> IO [(PtrWrapped a, PtrWrapped b)] #
unpackGList :: Ptr (GList (Ptr a)) -> IO [Ptr a] #
unpackGPtrArray :: Ptr (GPtrArray (Ptr a)) -> IO [Ptr a] #
unpackGSList :: Ptr (GSList (Ptr a)) -> IO [Ptr a] #
unpackMapStorableArrayWithLength :: (Integral a, Storable b) => (b -> c) -> a -> Ptr b -> IO [c] #
unpackMapZeroTerminatedStorableArray :: (Eq a, Num a, Storable a) => (a -> b) -> Ptr a -> IO [b] #
unpackPtrArrayWithLength :: Integral a => a -> Ptr (Ptr b) -> IO [Ptr b] #
unpackStorableArrayWithLength :: (Integral a, Storable b) => a -> Ptr b -> IO [b] #
unpackUTF8CArrayWithLength :: (HasCallStack, Integral a) => a -> Ptr CString -> IO [Text] #
unpackZeroTerminatedByteString :: Ptr Word8 -> IO ByteString #
unpackZeroTerminatedFileNameArray :: HasCallStack => Ptr CString -> IO [String] #
unpackZeroTerminatedPtrArray :: Ptr (Ptr a) -> IO [Ptr a] #
unpackZeroTerminatedStorableArray :: (Eq a, Num a, Storable a) => Ptr a -> IO [a] #
unpackZeroTerminatedUTF8CArray :: HasCallStack => Ptr CString -> IO [Text] #
unrefGArray :: Ptr (GArray a) -> IO () #
unrefGByteArray :: Ptr GByteArray -> IO () #
unrefGHashTable :: Ptr (GHashTable a b) -> IO () #
unrefPtrArray :: Ptr (GPtrArray a) -> IO () #
withTextCString :: Text -> (CString -> IO a) -> IO a #
wordToGFlags :: (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b] #
class TypedObject a => BoxedEnum a #
Instances
BoxedEnum NormalizeMode | |
Defined in GI.GLib.Enums | |
BoxedEnum UnicodeBreakType | |
Defined in GI.GLib.Enums | |
BoxedEnum UnicodeScript | |
Defined in GI.GLib.Enums | |
BoxedEnum UnicodeType | |
Defined in GI.GLib.Enums |
class TypedObject a => BoxedFlags a #
Instances
BoxedFlags IOCondition | |
Defined in GI.GLib.Flags | |
BoxedFlags BindingFlags Source # | |
Defined in GI.GObject.Flags | |
BoxedFlags IOCondition Source # | |
Defined in GI.GObject.Flags |
class ManagedPtrNewtype a => BoxedPtr a where #
Instances
class BoxedPtr a => CallocPtr a where #
Methods
boxedPtrCalloc :: IO (Ptr a) #
Instances
class (ManagedPtrNewtype a, TypedObject a) => GBoxed a #
Instances
data GByteArray #
Constructors
GByteArray (Ptr GByteArray) |
type GDestroyNotify ptr = FunPtr (ptr -> IO ()) #
type GEqualFunc a = FunPtr (PtrWrapped a -> PtrWrapped a -> IO Int32) #
type GHashFunc a = FunPtr (PtrWrapped a -> IO Word32) #
Constructors
GType | |
Fields |
Instances
Show GType | |
Eq GType | |
IsGValue GType | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> GType -> IO () # gvalueGet_ :: Ptr GValue -> IO GType # |
class Coercible a (ManagedPtr ()) => ManagedPtrNewtype a where #
Methods
toManagedPtr :: a -> ManagedPtr a #
Instances
newtype PtrWrapped a #
Constructors
PtrWrapped | |
Fields
|
class HasParentTypes a => TypedObject a where #
Instances
data UnexpectedNullPointerReturn #
Constructors
UnexpectedNullPointerReturn | |
Fields
|
Instances
Exception UnexpectedNullPointerReturn | |
Defined in Data.GI.Base.BasicTypes Methods toException :: UnexpectedNullPointerReturn -> SomeException fromException :: SomeException -> Maybe UnexpectedNullPointerReturn displayException :: UnexpectedNullPointerReturn -> String | |
Show UnexpectedNullPointerReturn | |
Defined in Data.GI.Base.BasicTypes Methods showsPrec :: Int -> UnexpectedNullPointerReturn -> ShowS show :: UnexpectedNullPointerReturn -> String showList :: [UnexpectedNullPointerReturn] -> ShowS |
g_list_free :: Ptr (GList a) -> IO () #
g_slist_free :: Ptr (GSList a) -> IO () #
noGParamSpec :: Maybe GParamSpec #
class Enum err => GErrorClass err where #
Methods
gerrorClassDomain :: err -> Text #
Instances
GErrorClass BookmarkFileError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: BookmarkFileError -> Text # | |
GErrorClass ConvertError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: ConvertError -> Text # | |
GErrorClass FileError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: FileError -> Text # | |
GErrorClass IOChannelError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: IOChannelError -> Text # | |
GErrorClass KeyFileError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: KeyFileError -> Text # | |
GErrorClass MarkupError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: MarkupError -> Text # | |
GErrorClass NumberParserError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: NumberParserError -> Text # | |
GErrorClass OptionError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: OptionError -> Text # | |
GErrorClass RegexError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: RegexError -> Text # | |
GErrorClass ShellError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: ShellError -> Text # | |
GErrorClass SpawnError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: SpawnError -> Text # | |
GErrorClass ThreadError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: ThreadError -> Text # | |
GErrorClass UriError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: UriError -> Text # | |
GErrorClass VariantParseError | |
Defined in GI.GLib.Enums Methods gerrorClassDomain :: VariantParseError -> Text # |
type GErrorCode = C_gint #
type GErrorDomain = GQuark #
type GErrorMessage = Text #
catchGErrorJust :: GErrorClass err => err -> IO a -> (GErrorMessage -> IO a) -> IO a #
catchGErrorJustDomain :: GErrorClass err => IO a -> (err -> GErrorMessage -> IO a) -> IO a #
checkGError :: (Ptr (Ptr GError) -> IO a) -> (GError -> IO a) -> IO a #
gerrorCode :: GError -> IO GErrorCode #
gerrorDomain :: GError -> IO GQuark #
gerrorMessage :: GError -> IO GErrorMessage #
gerrorNew :: GErrorDomain -> GErrorCode -> GErrorMessage -> IO GError #
handleGErrorJust :: GErrorClass err => err -> (GErrorMessage -> IO a) -> IO a -> IO a #
handleGErrorJustDomain :: GErrorClass err => (err -> GErrorMessage -> IO a) -> IO a -> IO a #
maybePokeGError :: Ptr (Ptr GError) -> Maybe GError -> IO () #
propagateGError :: (Ptr (Ptr GError) -> IO a) -> IO a #
cstringPackPtr :: CString -> PtrWrapped CString #
cstringUnpackPtr :: PtrWrapped CString -> CString #
gDirectEqual :: GEqualFunc (Ptr a) #
gDirectHash :: GHashFunc (Ptr a) #
gStrEqual :: GEqualFunc CString #
gvaluePackPtr :: Ptr GValue -> PtrWrapped (Ptr GValue) #
gvalueUnpackPtr :: PtrWrapped (Ptr GValue) -> Ptr GValue #
ptrPackPtr :: Ptr a -> PtrWrapped (Ptr a) #
ptrUnpackPtr :: PtrWrapped (Ptr a) -> Ptr a #
Methods
gvalueGType_ :: IO GType #
gvalueSet_ :: Ptr GValue -> a -> IO () #
gvalueGet_ :: Ptr GValue -> IO a #
Instances
IsGValue CInt | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> CInt -> IO () # gvalueGet_ :: Ptr GValue -> IO CInt # | |
IsGValue CLong | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> CLong -> IO () # gvalueGet_ :: Ptr GValue -> IO CLong # | |
IsGValue CUInt | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> CUInt -> IO () # gvalueGet_ :: Ptr GValue -> IO CUInt # | |
IsGValue CULong | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> CULong -> IO () # gvalueGet_ :: Ptr GValue -> IO CULong # | |
IsGValue Int32 | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Int32 -> IO () # gvalueGet_ :: Ptr GValue -> IO Int32 # | |
IsGValue Int64 | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Int64 -> IO () # gvalueGet_ :: Ptr GValue -> IO Int64 # | |
IsGValue Word32 | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Word32 -> IO () # gvalueGet_ :: Ptr GValue -> IO Word32 # | |
IsGValue Word64 | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Word64 -> IO () # gvalueGet_ :: Ptr GValue -> IO Word64 # | |
IsGValue GType | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> GType -> IO () # gvalueGet_ :: Ptr GValue -> IO GType # | |
IsGValue Bool | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Bool -> IO () # gvalueGet_ :: Ptr GValue -> IO Bool # | |
IsGValue Double | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Double -> IO () # gvalueGet_ :: Ptr GValue -> IO Double # | |
IsGValue Float | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Float -> IO () # gvalueGet_ :: Ptr GValue -> IO Float # | |
IsGValue (Ptr a) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Ptr a -> IO () # gvalueGet_ :: Ptr GValue -> IO (Ptr a) # | |
IsGValue (StablePtr a) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> StablePtr a -> IO () # gvalueGet_ :: Ptr GValue -> IO (StablePtr a) # | |
Typeable a => IsGValue (HValue a) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> HValue a -> IO () # gvalueGet_ :: Ptr GValue -> IO (HValue a) # | |
IsGValue (Maybe BookmarkFile) | |
Defined in GI.GLib.Structs.BookmarkFile Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe BookmarkFile -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe BookmarkFile) # | |
IsGValue (Maybe ByteArray) | |
Defined in GI.GLib.Structs.ByteArray Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ByteArray -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ByteArray) # | |
IsGValue (Maybe Bytes) | |
Defined in GI.GLib.Structs.Bytes Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Bytes -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Bytes) # | |
IsGValue (Maybe Checksum) | |
Defined in GI.GLib.Structs.Checksum Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Checksum -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Checksum) # | |
IsGValue (Maybe Date) | |
Defined in GI.GLib.Structs.Date Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Date -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Date) # | |
IsGValue (Maybe DateTime) | |
Defined in GI.GLib.Structs.DateTime Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe DateTime -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe DateTime) # | |
IsGValue (Maybe Dir) | |
Defined in GI.GLib.Structs.Dir Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Dir -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Dir) # | |
IsGValue (Maybe Hmac) | |
Defined in GI.GLib.Structs.Hmac Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Hmac -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Hmac) # | |
IsGValue (Maybe IOChannel) | |
Defined in GI.GLib.Structs.IOChannel Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe IOChannel -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe IOChannel) # | |
IsGValue (Maybe KeyFile) | |
Defined in GI.GLib.Structs.KeyFile Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe KeyFile -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe KeyFile) # | |
IsGValue (Maybe MainContext) | |
Defined in GI.GLib.Structs.MainContext Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe MainContext -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe MainContext) # | |
IsGValue (Maybe MainLoop) | |
Defined in GI.GLib.Structs.MainLoop Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe MainLoop -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe MainLoop) # | |
IsGValue (Maybe MappedFile) | |
Defined in GI.GLib.Structs.MappedFile Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe MappedFile -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe MappedFile) # | |
IsGValue (Maybe MarkupParseContext) | |
Defined in GI.GLib.Structs.MarkupParseContext Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe MarkupParseContext -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe MarkupParseContext) # | |
IsGValue (Maybe MatchInfo) | |
Defined in GI.GLib.Structs.MatchInfo Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe MatchInfo -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe MatchInfo) # | |
IsGValue (Maybe OptionGroup) | |
Defined in GI.GLib.Structs.OptionGroup Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe OptionGroup -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe OptionGroup) # | |
IsGValue (Maybe PatternSpec) | |
Defined in GI.GLib.Structs.PatternSpec Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe PatternSpec -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe PatternSpec) # | |
IsGValue (Maybe PollFD) | |
Defined in GI.GLib.Structs.PollFD Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe PollFD -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe PollFD) # | |
IsGValue (Maybe PtrArray) | |
Defined in GI.GLib.Structs.PtrArray Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe PtrArray -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe PtrArray) # | |
IsGValue (Maybe Rand) | |
Defined in GI.GLib.Structs.Rand Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Rand -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Rand) # | |
IsGValue (Maybe Regex) | |
Defined in GI.GLib.Structs.Regex Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Regex -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Regex) # | |
IsGValue (Maybe Source) | |
Defined in GI.GLib.Structs.Source Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Source -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Source) # | |
IsGValue (Maybe String) | |
Defined in GI.GLib.Structs.String Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe String -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe String) # | |
IsGValue (Maybe StrvBuilder) | |
Defined in GI.GLib.Structs.StrvBuilder Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe StrvBuilder -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe StrvBuilder) # | |
IsGValue (Maybe Thread) | |
Defined in GI.GLib.Structs.Thread Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Thread -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Thread) # | |
IsGValue (Maybe TimeZone) | |
Defined in GI.GLib.Structs.TimeZone Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe TimeZone -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe TimeZone) # | |
IsGValue (Maybe Tree) | |
Defined in GI.GLib.Structs.Tree Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Tree -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Tree) # | |
IsGValue (Maybe Uri) | |
Defined in GI.GLib.Structs.Uri Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Uri -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Uri) # | |
IsGValue (Maybe VariantBuilder) | |
Defined in GI.GLib.Structs.VariantBuilder Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VariantBuilder -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VariantBuilder) # | |
IsGValue (Maybe VariantDict) | |
Defined in GI.GLib.Structs.VariantDict Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VariantDict -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VariantDict) # | |
IsGValue (Maybe VariantType) | |
Defined in GI.GLib.Structs.VariantType Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe VariantType -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe VariantType) # | |
IsGValue (Maybe Binding) Source # | Convert |
Defined in GI.GObject.Objects.Binding Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Binding -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Binding) # | |
IsGValue (Maybe BindingGroup) Source # | Convert |
Defined in GI.GObject.Objects.BindingGroup Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe BindingGroup -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe BindingGroup) # | |
IsGValue (Maybe InitiallyUnowned) Source # | Convert |
Defined in GI.GObject.Objects.InitiallyUnowned Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe InitiallyUnowned -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe InitiallyUnowned) # | |
IsGValue (Maybe Object) Source # | Convert |
Defined in GI.GObject.Objects.Object Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Object -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Object) # | |
IsGValue (Maybe ParamSpec) Source # | Convert |
Defined in GI.GObject.Objects.ParamSpec Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ParamSpec -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ParamSpec) # | |
IsGValue (Maybe SignalGroup) Source # | Convert |
Defined in GI.GObject.Objects.SignalGroup Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SignalGroup -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SignalGroup) # | |
IsGValue (Maybe TypeModule) Source # | Convert |
Defined in GI.GObject.Objects.TypeModule Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe TypeModule -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe TypeModule) # | |
IsGValue (Maybe ValueArray) Source # | Convert |
Defined in GI.GObject.Structs.ValueArray Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe ValueArray -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe ValueArray) # | |
IsGValue (Maybe GParamSpec) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe GParamSpec -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe GParamSpec) # | |
IsGValue (Maybe Text) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe Text -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe Text) # | |
IsGValue (Maybe String) | |
Defined in Data.GI.Base.GValue Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe String -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe String) # |
fromGValue :: (IsGValue a, MonadIO m) => GValue -> m a #
data GVariantDictEntry key value #
Constructors
GVariantDictEntry key value |
Instances
(Show key, Show value) => Show (GVariantDictEntry key value) | |
Defined in Data.GI.Base.GVariant Methods showsPrec :: Int -> GVariantDictEntry key value -> ShowS show :: GVariantDictEntry key value -> String showList :: [GVariantDictEntry key value] -> ShowS | |
(Eq key, Eq value) => Eq (GVariantDictEntry key value) | |
Defined in Data.GI.Base.GVariant Methods (==) :: GVariantDictEntry key value -> GVariantDictEntry key value -> Bool (/=) :: GVariantDictEntry key value -> GVariantDictEntry key value -> Bool | |
(IsGVariant a, IsGVariantBasicType a, IsGVariant b) => IsGVariant (GVariantDictEntry a b) | |
Defined in Data.GI.Base.GVariant Methods toGVariant :: GVariantDictEntry a b -> IO GVariant # fromGVariant :: GVariant -> IO (Maybe (GVariantDictEntry a b)) # toGVariantFormatString :: GVariantDictEntry a b -> Text # |
newtype GVariantHandle #
Constructors
GVariantHandle Int32 |
Instances
data GVariantObjectPath #
Instances
data GVariantSignature #
Instances
newtype GVariantSinglet a #
Constructors
GVariantSinglet a |
Instances
Show a => Show (GVariantSinglet a) | |
Defined in Data.GI.Base.GVariant Methods showsPrec :: Int -> GVariantSinglet a -> ShowS show :: GVariantSinglet a -> String showList :: [GVariantSinglet a] -> ShowS | |
Eq a => Eq (GVariantSinglet a) | |
Defined in Data.GI.Base.GVariant Methods (==) :: GVariantSinglet a -> GVariantSinglet a -> Bool (/=) :: GVariantSinglet a -> GVariantSinglet a -> Bool | |
IsGVariant a => IsGVariant (GVariantSinglet a) | |
Defined in Data.GI.Base.GVariant Methods toGVariant :: GVariantSinglet a -> IO GVariant # fromGVariant :: GVariant -> IO (Maybe (GVariantSinglet a)) # toGVariantFormatString :: GVariantSinglet a -> Text # |
class IsGVariant a where #
Methods
toGVariant :: a -> IO GVariant #
fromGVariant :: GVariant -> IO (Maybe a) #
toGVariantFormatString :: a -> Text #
Instances
class Ord a => IsGVariantBasicType a #
Instances
IsGVariantBasicType Int16 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Int32 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Int64 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Word16 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Word32 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Word64 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Word8 | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType GVariantHandle | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType GVariantObjectPath | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType GVariantSignature | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Text | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Bool | |
Defined in Data.GI.Base.GVariant | |
IsGVariantBasicType Double | |
Defined in Data.GI.Base.GVariant |
disownGVariant :: GVariant -> IO (Ptr GVariant) #
gvariantFromBool :: Bool -> IO GVariant #
gvariantFromBytestring :: ByteString -> IO GVariant #
gvariantFromDictEntry :: (IsGVariant key, IsGVariantBasicType key, IsGVariant value) => key -> value -> IO GVariant #
gvariantFromDouble :: Double -> IO GVariant #
gvariantFromGVariant :: GVariant -> IO GVariant #
gvariantFromHandle :: Int32 -> IO GVariant #
gvariantFromInt16 :: Int16 -> IO GVariant #
gvariantFromInt32 :: Int32 -> IO GVariant #
gvariantFromInt64 :: Int64 -> IO GVariant #
gvariantFromList :: IsGVariant a => [a] -> IO GVariant #
gvariantFromMap :: (IsGVariant key, IsGVariantBasicType key, IsGVariant value) => Map key value -> IO GVariant #
gvariantFromMaybe :: IsGVariant a => Maybe a -> IO GVariant #
gvariantFromSignature :: GVariantSignature -> IO GVariant #
gvariantFromText :: Text -> IO GVariant #
gvariantFromTuple :: [GVariant] -> IO GVariant #
gvariantFromWord16 :: Word16 -> IO GVariant #
gvariantFromWord32 :: Word32 -> IO GVariant #
gvariantFromWord64 :: Word64 -> IO GVariant #
gvariantFromWord8 :: Word8 -> IO GVariant #
gvariantGetTypeString :: GVariant -> IO Text #
gvariantObjectPathToText :: GVariantObjectPath -> Text #
gvariantSignatureToText :: GVariantSignature -> Text #
gvariantToBool :: GVariant -> IO (Maybe Bool) #
gvariantToBytestring :: GVariant -> IO (Maybe ByteString) #
gvariantToDictEntry :: (IsGVariant key, IsGVariantBasicType key, IsGVariant value) => GVariant -> IO (Maybe (key, value)) #
gvariantToDouble :: GVariant -> IO (Maybe Double) #
gvariantToGVariant :: GVariant -> IO (Maybe GVariant) #
gvariantToHandle :: GVariant -> IO (Maybe Int32) #
gvariantToInt16 :: GVariant -> IO (Maybe Int16) #
gvariantToInt32 :: GVariant -> IO (Maybe Int32) #
gvariantToInt64 :: GVariant -> IO (Maybe Int64) #
gvariantToList :: IsGVariant a => GVariant -> IO (Maybe [a]) #
gvariantToMap :: (IsGVariant key, IsGVariantBasicType key, IsGVariant value) => GVariant -> IO (Maybe (Map key value)) #
gvariantToMaybe :: IsGVariant a => GVariant -> IO (Maybe (Maybe a)) #
gvariantToObjectPath :: GVariant -> IO (Maybe Text) #
gvariantToSignature :: GVariant -> IO (Maybe Text) #
gvariantToText :: GVariant -> IO (Maybe Text) #
gvariantToTuple :: GVariant -> IO (Maybe [GVariant]) #
gvariantToWord16 :: GVariant -> IO (Maybe Word16) #
gvariantToWord32 :: GVariant -> IO (Maybe Word32) #
gvariantToWord64 :: GVariant -> IO (Maybe Word64) #
gvariantToWord8 :: GVariant -> IO (Maybe Word8) #
newGVariantFromPtr :: Ptr GVariant -> IO GVariant #
newGVariantObjectPath :: Text -> Maybe GVariantObjectPath #
newGVariantSignature :: Text -> Maybe GVariantSignature #
noGVariant :: Maybe GVariant #
unrefGVariant :: GVariant -> IO () #
wrapGVariantPtr :: Ptr GVariant -> IO GVariant #
castTo :: (HasCallStack, ManagedPtrNewtype o, TypedObject o, ManagedPtrNewtype o', TypedObject o', GObject o') => (ManagedPtr o' -> o') -> o -> IO (Maybe o') #
checkInstanceType :: (ManagedPtrNewtype o, TypedObject o) => o -> GType -> IO Bool #
copyBoxedPtr :: GBoxed a => Ptr a -> IO (Ptr a) #
disownBoxed :: (HasCallStack, GBoxed a) => a -> IO (Ptr a) #
disownManagedPtr :: (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b) #
disownObject :: (HasCallStack, GObject a) => a -> IO (Ptr b) #
maybeWithManagedPtr :: (HasCallStack, ManagedPtrNewtype a) => Maybe a -> (Ptr a -> IO c) -> IO c #
newBoxed :: (HasCallStack, GBoxed a) => (ManagedPtr a -> a) -> Ptr a -> IO a #
newManagedPtr :: HasCallStack => Ptr a -> IO () -> IO (ManagedPtr a) #
newManagedPtr' :: HasCallStack => FinalizerPtr a -> Ptr a -> IO (ManagedPtr a) #
newManagedPtr_ :: Ptr a -> IO (ManagedPtr a) #
newObject :: (HasCallStack, GObject a, GObject b) => (ManagedPtr a -> a) -> Ptr b -> IO a #
newPtr :: (HasCallStack, BoxedPtr a) => (ManagedPtr a -> a) -> Ptr a -> IO a #
releaseObject :: (HasCallStack, GObject a) => a -> IO () #
touchManagedPtr :: ManagedPtrNewtype a => a -> IO () #
unrefObject :: (HasCallStack, GObject a) => a -> IO () #
unsafeCastTo :: (HasCallStack, ManagedPtrNewtype o, TypedObject o, ManagedPtrNewtype o', TypedObject o') => (ManagedPtr o' -> o') -> o -> IO o' #
unsafeManagedPtrCastPtr :: (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b) #
unsafeManagedPtrGetPtr :: (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a) #
withManagedPtr :: (HasCallStack, ManagedPtrNewtype a) => a -> (Ptr a -> IO c) -> IO c #
withManagedPtrList :: (HasCallStack, ManagedPtrNewtype a) => [a] -> ([Ptr a] -> IO c) -> IO c #
withNewObject :: (HasCallStack, GObject o) => Ptr o -> (o -> IO b) -> IO b #
withTransient :: (HasCallStack, ManagedPtrNewtype a) => Ptr a -> (a -> IO b) -> IO b #
wrapBoxed :: (HasCallStack, GBoxed a) => (ManagedPtr a -> a) -> Ptr a -> IO a #
wrapObject :: (HasCallStack, GObject a, GObject b) => (ManagedPtr a -> a) -> Ptr b -> IO a #
wrapPtr :: (HasCallStack, BoxedPtr a) => (ManagedPtr a -> a) -> Ptr a -> IO a #
asA :: (ManagedPtrNewtype a, ManagedPtrNewtype b, HasParentTypes b, IsDescendantOf a b) => b -> (ManagedPtr a -> a) -> a #
data SignalProxy object info where #
Constructors
(:::) :: forall object info. SignalProxy object info -> Text -> SignalProxy object info | |
PropertyNotify :: forall info1 (propName :: Symbol) object (pl :: Symbol). (info1 ~ ResolveAttribute propName object, AttrInfo info1, pl ~ AttrLabel info1, KnownSymbol pl) => AttrLabelProxy propName -> SignalProxy object GObjectNotifySignalInfo |
Instances
info ~ ResolveSignal slot object => IsLabel slot (SignalProxy object info) | |
Defined in Data.GI.Base.Signals Methods fromLabel :: SignalProxy object info |
after :: forall object info m. (GObject object, MonadIO m, SignalInfo info) => object -> SignalProxy object info -> ((?self :: object) => HaskellCallbackType info) -> m SignalHandlerId #
on :: forall object info m. (GObject object, MonadIO m, SignalInfo info) => object -> SignalProxy object info -> ((?self :: object) => HaskellCallbackType info) -> m SignalHandlerId #