Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Relation = Relation (ForeignPtr Relation)
- class GObject o => RelationK o
- toRelation :: RelationK o => o -> IO Relation
- noRelation :: Maybe Relation
- data RelationAddTargetMethodInfo
- relationAddTarget :: (MonadIO m, RelationK a, ObjectK b) => a -> b -> m ()
- data RelationGetRelationTypeMethodInfo
- relationGetRelationType :: (MonadIO m, RelationK a) => a -> m RelationType
- data RelationGetTargetMethodInfo
- relationGetTarget :: (MonadIO m, RelationK a) => a -> m [Object]
- relationNew :: MonadIO m => [Object] -> RelationType -> m Relation
- data RelationRemoveTargetMethodInfo
- relationRemoveTarget :: (MonadIO m, RelationK a, ObjectK b) => a -> b -> m Bool
- data RelationRelationTypePropertyInfo
- constructRelationRelationType :: RelationType -> IO ([Char], GValue)
- getRelationRelationType :: (MonadIO m, RelationK o) => o -> m RelationType
- relationRelationType :: AttrLabelProxy "relationType"
- setRelationRelationType :: (MonadIO m, RelationK o) => o -> RelationType -> m ()
- data RelationTargetPropertyInfo
- clearRelationTarget :: (MonadIO m, RelationK o) => o -> m ()
- constructRelationTarget :: ValueArray -> IO ([Char], GValue)
- getRelationTarget :: (MonadIO m, RelationK o) => o -> m (Maybe ValueArray)
- relationTarget :: AttrLabelProxy "target"
- setRelationTarget :: (MonadIO m, RelationK o) => o -> ValueArray -> m ()
Exported types
GObject Relation | |
((~) * info (ResolveRelationMethod t Relation), MethodInfo * info Relation p) => IsLabelProxy t (Relation -> p) | |
type ParentTypes Relation | |
type AttributeList Relation | |
type SignalList Relation |
toRelation :: RelationK o => o -> IO Relation Source
Methods
relationAddTarget
data RelationAddTargetMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, RelationK a, ObjectK b) => MethodInfo * RelationAddTargetMethodInfo a signature |
relationAddTarget :: (MonadIO m, RelationK a, ObjectK b) => a -> b -> m () Source
relationGetRelationType
data RelationGetRelationTypeMethodInfo Source
((~) * signature (m RelationType), MonadIO m, RelationK a) => MethodInfo * RelationGetRelationTypeMethodInfo a signature |
relationGetRelationType :: (MonadIO m, RelationK a) => a -> m RelationType Source
relationGetTarget
data RelationGetTargetMethodInfo Source
((~) * signature (m [Object]), MonadIO m, RelationK a) => MethodInfo * RelationGetTargetMethodInfo a signature |
relationGetTarget :: (MonadIO m, RelationK a) => a -> m [Object] Source
relationNew
relationNew :: MonadIO m => [Object] -> RelationType -> m Relation Source
relationRemoveTarget
data RelationRemoveTargetMethodInfo Source
((~) * signature (b -> m Bool), MonadIO m, RelationK a, ObjectK b) => MethodInfo * RelationRemoveTargetMethodInfo a signature |
Properties
RelationType
data RelationRelationTypePropertyInfo Source
AttrInfo RelationRelationTypePropertyInfo | |
type AttrLabel RelationRelationTypePropertyInfo = "relation-type" | |
type AttrGetType RelationRelationTypePropertyInfo = RelationType | |
type AttrBaseTypeConstraint RelationRelationTypePropertyInfo = RelationK | |
type AttrSetTypeConstraint RelationRelationTypePropertyInfo = * ~ RelationType | |
type AttrAllowedOps RelationRelationTypePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
constructRelationRelationType :: RelationType -> IO ([Char], GValue) Source
getRelationRelationType :: (MonadIO m, RelationK o) => o -> m RelationType Source
relationRelationType :: AttrLabelProxy "relationType" Source
setRelationRelationType :: (MonadIO m, RelationK o) => o -> RelationType -> m () Source
Target
data RelationTargetPropertyInfo Source
AttrInfo RelationTargetPropertyInfo | |
type AttrLabel RelationTargetPropertyInfo = "target" | |
type AttrGetType RelationTargetPropertyInfo = Maybe ValueArray | |
type AttrBaseTypeConstraint RelationTargetPropertyInfo = RelationK | |
type AttrSetTypeConstraint RelationTargetPropertyInfo = * ~ ValueArray | |
type AttrAllowedOps RelationTargetPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearRelationTarget :: (MonadIO m, RelationK o) => o -> m () Source
constructRelationTarget :: ValueArray -> IO ([Char], GValue) Source
getRelationTarget :: (MonadIO m, RelationK o) => o -> m (Maybe ValueArray) Source
relationTarget :: AttrLabelProxy "target" Source
setRelationTarget :: (MonadIO m, RelationK o) => o -> ValueArray -> m () Source