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 Action = Action (ForeignPtr Action)
- noAction :: Maybe Action
- class GObject o => ActionK o
- toAction :: ActionK o => o -> IO Action
- actionActivate :: (MonadIO m, ActionK a) => a -> Maybe GVariant -> m ()
- actionChangeState :: (MonadIO m, ActionK a) => a -> GVariant -> m ()
- actionGetEnabled :: (MonadIO m, ActionK a) => a -> m Bool
- actionGetName :: (MonadIO m, ActionK a) => a -> m Text
- actionGetParameterType :: (MonadIO m, ActionK a) => a -> m VariantType
- actionGetState :: (MonadIO m, ActionK a) => a -> m GVariant
- actionGetStateHint :: (MonadIO m, ActionK a) => a -> m GVariant
- actionGetStateType :: (MonadIO m, ActionK a) => a -> m VariantType
- data ActionEnabledPropertyInfo
- getActionEnabled :: (MonadIO m, ActionK o) => o -> m Bool
- data ActionNamePropertyInfo
- getActionName :: (MonadIO m, ActionK o) => o -> m Text
- data ActionParameterTypePropertyInfo
- getActionParameterType :: (MonadIO m, ActionK o) => o -> m VariantType
- data ActionStatePropertyInfo
- getActionState :: (MonadIO m, ActionK o) => o -> m GVariant
- data ActionStateTypePropertyInfo
- getActionStateType :: (MonadIO m, ActionK o) => o -> m VariantType
Exported types
GObject Action Source | |
type ParentTypes Action Source | |
type AttributeList Action Source | |
type SignalList Action Source |
Methods
actionActivate
actionChangeState
actionChangeState :: (MonadIO m, ActionK a) => a -> GVariant -> m () Source
actionGetEnabled
actionGetEnabled :: (MonadIO m, ActionK a) => a -> m Bool Source
actionGetName
actionGetName :: (MonadIO m, ActionK a) => a -> m Text Source
actionGetParameterType
actionGetParameterType :: (MonadIO m, ActionK a) => a -> m VariantType Source
actionGetState
actionGetState :: (MonadIO m, ActionK a) => a -> m GVariant Source
actionGetStateHint
actionGetStateHint :: (MonadIO m, ActionK a) => a -> m GVariant Source
actionGetStateType
actionGetStateType :: (MonadIO m, ActionK a) => a -> m VariantType Source
Properties
Enabled
data ActionEnabledPropertyInfo Source
AttrInfo ActionEnabledPropertyInfo Source | |
type AttrLabel ActionEnabledPropertyInfo = "Action::enabled" Source | |
type AttrGetType ActionEnabledPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint ActionEnabledPropertyInfo = ActionK Source | |
type AttrSetTypeConstraint ActionEnabledPropertyInfo = * ~ () Source | |
type AttrAllowedOps ActionEnabledPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getActionEnabled :: (MonadIO m, ActionK o) => o -> m Bool Source
Name
data ActionNamePropertyInfo Source
AttrInfo ActionNamePropertyInfo Source | |
type AttrLabel ActionNamePropertyInfo = "Action::name" Source | |
type AttrGetType ActionNamePropertyInfo = Text Source | |
type AttrBaseTypeConstraint ActionNamePropertyInfo = ActionK Source | |
type AttrSetTypeConstraint ActionNamePropertyInfo = * ~ () Source | |
type AttrAllowedOps ActionNamePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getActionName :: (MonadIO m, ActionK o) => o -> m Text Source
ParameterType
data ActionParameterTypePropertyInfo Source
AttrInfo ActionParameterTypePropertyInfo Source | |
type AttrLabel ActionParameterTypePropertyInfo = "Action::parameter-type" Source | |
type AttrGetType ActionParameterTypePropertyInfo = VariantType Source | |
type AttrBaseTypeConstraint ActionParameterTypePropertyInfo = ActionK Source | |
type AttrSetTypeConstraint ActionParameterTypePropertyInfo = * ~ () Source | |
type AttrAllowedOps ActionParameterTypePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getActionParameterType :: (MonadIO m, ActionK o) => o -> m VariantType Source
State
data ActionStatePropertyInfo Source
AttrInfo ActionStatePropertyInfo Source | |
type AttrLabel ActionStatePropertyInfo = "Action::state" Source | |
type AttrGetType ActionStatePropertyInfo = GVariant Source | |
type AttrBaseTypeConstraint ActionStatePropertyInfo = ActionK Source | |
type AttrSetTypeConstraint ActionStatePropertyInfo = * ~ () Source | |
type AttrAllowedOps ActionStatePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getActionState :: (MonadIO m, ActionK o) => o -> m GVariant Source
StateType
data ActionStateTypePropertyInfo Source
AttrInfo ActionStateTypePropertyInfo Source | |
type AttrLabel ActionStateTypePropertyInfo = "Action::state-type" Source | |
type AttrGetType ActionStateTypePropertyInfo = VariantType Source | |
type AttrBaseTypeConstraint ActionStateTypePropertyInfo = ActionK Source | |
type AttrSetTypeConstraint ActionStateTypePropertyInfo = * ~ () Source | |
type AttrAllowedOps ActionStateTypePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getActionStateType :: (MonadIO m, ActionK o) => o -> m VariantType Source