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 |
An AtkRelation describes a relation between an object and one or more other objects. The actual relations that an object has with other objects are defined as an AtkRelationSet, which is a set of AtkRelations.
- newtype Relation = Relation (ManagedPtr Relation)
- class GObject o => IsRelation o
- toRelation :: IsRelation o => o -> IO Relation
- noRelation :: Maybe Relation
- data RelationAddTargetMethodInfo
- relationAddTarget :: (HasCallStack, MonadIO m, IsRelation a, IsObject b) => a -> b -> m ()
- data RelationGetRelationTypeMethodInfo
- relationGetRelationType :: (HasCallStack, MonadIO m, IsRelation a) => a -> m RelationType
- data RelationGetTargetMethodInfo
- relationGetTarget :: (HasCallStack, MonadIO m, IsRelation a) => a -> m [Object]
- relationNew :: (HasCallStack, MonadIO m) => [Object] -> RelationType -> m Relation
- data RelationRemoveTargetMethodInfo
- relationRemoveTarget :: (HasCallStack, MonadIO m, IsRelation a, IsObject b) => a -> b -> m Bool
- data RelationRelationTypePropertyInfo
- constructRelationRelationType :: IsRelation o => RelationType -> IO (GValueConstruct o)
- getRelationRelationType :: (MonadIO m, IsRelation o) => o -> m RelationType
- relationRelationType :: AttrLabelProxy "relationType"
- setRelationRelationType :: (MonadIO m, IsRelation o) => o -> RelationType -> m ()
- data RelationTargetPropertyInfo
- clearRelationTarget :: (MonadIO m, IsRelation o) => o -> m ()
- constructRelationTarget :: IsRelation o => ValueArray -> IO (GValueConstruct o)
- getRelationTarget :: (MonadIO m, IsRelation o) => o -> m (Maybe ValueArray)
- relationTarget :: AttrLabelProxy "target"
- setRelationTarget :: (MonadIO m, IsRelation o) => o -> ValueArray -> m ()
Exported types
GObject Relation Source # | |
IsObject Relation Source # | |
IsRelation Relation Source # | |
((~) * info (ResolveRelationMethod t Relation), MethodInfo * info Relation p) => IsLabel t (Relation -> p) Source # | |
((~) * info (ResolveRelationMethod t Relation), MethodInfo * info Relation p) => IsLabelProxy t (Relation -> p) Source # | |
HasAttributeList * Relation Source # | |
type AttributeList Relation Source # | |
type SignalList Relation Source # | |
class GObject o => IsRelation o Source #
(GObject a, UnknownAncestorError Constraint Relation a) => IsRelation a Source # | |
IsRelation Relation Source # | |
toRelation :: IsRelation o => o -> IO Relation Source #
Methods
addTarget
data RelationAddTargetMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsRelation a, IsObject b) => MethodInfo * RelationAddTargetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRelation a, IsObject b) | |
=> a |
|
-> b |
|
-> m () |
Adds the specified AtkObject to the target for the relation, if it is
not already present. See also objectAddRelationship
.
Since: 1.9
getRelationType
data RelationGetRelationTypeMethodInfo Source #
((~) * signature (m RelationType), MonadIO m, IsRelation a) => MethodInfo * RelationGetRelationTypeMethodInfo a signature Source # | |
relationGetRelationType Source #
:: (HasCallStack, MonadIO m, IsRelation a) | |
=> a |
|
-> m RelationType | Returns: the type of |
Gets the type of relation
getTarget
data RelationGetTargetMethodInfo Source #
((~) * signature (m [Object]), MonadIO m, IsRelation a) => MethodInfo * RelationGetTargetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRelation a) | |
=> a |
|
-> m [Object] | Returns: the target list of |
Gets the target list of relation
new
:: (HasCallStack, MonadIO m) | |
=> [Object] |
|
-> RelationType |
|
-> m Relation | Returns: a pointer to a new |
Create a new relation for the specified key and the specified list
of targets. See also objectAddRelationship
.
removeTarget
data RelationRemoveTargetMethodInfo Source #
((~) * signature (b -> m Bool), MonadIO m, IsRelation a, IsObject b) => MethodInfo * RelationRemoveTargetMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRelation a, IsObject b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: TRUE if the removal is successful. |
Remove the specified AtkObject from the target for the relation.
Properties
relationType
data RelationRelationTypePropertyInfo Source #
constructRelationRelationType :: IsRelation o => RelationType -> IO (GValueConstruct o) Source #
getRelationRelationType :: (MonadIO m, IsRelation o) => o -> m RelationType Source #
relationRelationType :: AttrLabelProxy "relationType" Source #
setRelationRelationType :: (MonadIO m, IsRelation o) => o -> RelationType -> m () Source #
target
data RelationTargetPropertyInfo Source #
clearRelationTarget :: (MonadIO m, IsRelation o) => o -> m () Source #
constructRelationTarget :: IsRelation o => ValueArray -> IO (GValueConstruct o) Source #
getRelationTarget :: (MonadIO m, IsRelation o) => o -> m (Maybe ValueArray) Source #
relationTarget :: AttrLabelProxy "target" Source #
setRelationTarget :: (MonadIO m, IsRelation o) => o -> ValueArray -> m () Source #