gi-gio-2.0.7: Gio bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.Action

Contents

Description

 

Synopsis

Exported types

newtype Action Source #

Constructors

Action (ManagedPtr Action) 

Instances

GObject Action Source # 
IsObject Action Source # 
IsAction Action Source # 
((~) * info (ResolveActionMethod t Action), MethodInfo * info Action p) => IsLabel t (Action -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Action -> p #

((~) * info (ResolveActionMethod t Action), MethodInfo * info Action p) => IsLabelProxy t (Action -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Action -> p

HasAttributeList * Action Source # 
type SignalList Action Source # 
type SignalList Action
type AttributeList Action Source # 
type AttributeList Action

class GObject o => IsAction o Source #

Instances

Methods

activate

data ActionActivateMethodInfo Source #

Instances

((~) * signature (Maybe GVariant -> m ()), MonadIO m, IsAction a) => MethodInfo * ActionActivateMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionActivateMethodInfo a -> signature -> s

actionActivate :: (MonadIO m, IsAction a) => a -> Maybe GVariant -> m () Source #

changeState

data ActionChangeStateMethodInfo Source #

Instances

((~) * signature (GVariant -> m ()), MonadIO m, IsAction a) => MethodInfo * ActionChangeStateMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionChangeStateMethodInfo a -> signature -> s

actionChangeState :: (MonadIO m, IsAction a) => a -> GVariant -> m () Source #

getEnabled

data ActionGetEnabledMethodInfo Source #

Instances

((~) * signature (m Bool), MonadIO m, IsAction a) => MethodInfo * ActionGetEnabledMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetEnabledMethodInfo a -> signature -> s

getName

data ActionGetNameMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsAction a) => MethodInfo * ActionGetNameMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetNameMethodInfo a -> signature -> s

actionGetName :: (MonadIO m, IsAction a) => a -> m Text Source #

getParameterType

data ActionGetParameterTypeMethodInfo Source #

Instances

((~) * signature (m (Maybe VariantType)), MonadIO m, IsAction a) => MethodInfo * ActionGetParameterTypeMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetParameterTypeMethodInfo a -> signature -> s

actionGetParameterType :: (MonadIO m, IsAction a) => a -> m (Maybe VariantType) Source #

getState

data ActionGetStateMethodInfo Source #

Instances

((~) * signature (m GVariant), MonadIO m, IsAction a) => MethodInfo * ActionGetStateMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetStateMethodInfo a -> signature -> s

actionGetState :: (MonadIO m, IsAction a) => a -> m GVariant Source #

getStateHint

data ActionGetStateHintMethodInfo Source #

Instances

((~) * signature (m (Maybe GVariant)), MonadIO m, IsAction a) => MethodInfo * ActionGetStateHintMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetStateHintMethodInfo a -> signature -> s

actionGetStateHint :: (MonadIO m, IsAction a) => a -> m (Maybe GVariant) Source #

getStateType

data ActionGetStateTypeMethodInfo Source #

Instances

((~) * signature (m (Maybe VariantType)), MonadIO m, IsAction a) => MethodInfo * ActionGetStateTypeMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy ActionGetStateTypeMethodInfo a -> signature -> s

actionGetStateType :: (MonadIO m, IsAction a) => a -> m (Maybe VariantType) Source #

nameIsValid

parseDetailedName

actionParseDetailedName :: MonadIO m => Text -> m (Text, GVariant) Source #

printDetailedName

actionPrintDetailedName :: MonadIO m => Text -> Maybe GVariant -> m Text Source #

Properties

enabled

data ActionEnabledPropertyInfo Source #

Instances

AttrInfo ActionEnabledPropertyInfo Source # 

Associated Types

type AttrAllowedOps ActionEnabledPropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint ActionEnabledPropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint ActionEnabledPropertyInfo :: * -> Constraint

type AttrGetType ActionEnabledPropertyInfo :: *

type AttrLabel ActionEnabledPropertyInfo :: Symbol

type AttrOrigin ActionEnabledPropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint ActionEnabledPropertyInfo o => Proxy * ActionEnabledPropertyInfo -> o -> IO (AttrGetType ActionEnabledPropertyInfo)

attrSet :: (AttrBaseTypeConstraint ActionEnabledPropertyInfo o, AttrSetTypeConstraint ActionEnabledPropertyInfo b) => Proxy * ActionEnabledPropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint ActionEnabledPropertyInfo o => Proxy * ActionEnabledPropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint ActionEnabledPropertyInfo o, AttrSetTypeConstraint ActionEnabledPropertyInfo b) => Proxy * ActionEnabledPropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint ActionEnabledPropertyInfo Source # 
type AttrSetTypeConstraint ActionEnabledPropertyInfo = * ~ ()
type AttrOrigin ActionEnabledPropertyInfo Source # 
type AttrLabel ActionEnabledPropertyInfo Source # 
type AttrLabel ActionEnabledPropertyInfo = "enabled"
type AttrGetType ActionEnabledPropertyInfo Source # 
type AttrGetType ActionEnabledPropertyInfo = Bool
type AttrBaseTypeConstraint ActionEnabledPropertyInfo Source # 
type AttrBaseTypeConstraint ActionEnabledPropertyInfo = IsAction
type AttrAllowedOps ActionEnabledPropertyInfo Source # 
type AttrAllowedOps ActionEnabledPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag)

actionEnabled :: AttrLabelProxy "enabled" Source #

name

data ActionNamePropertyInfo Source #

Instances

AttrInfo ActionNamePropertyInfo Source # 

Associated Types

type AttrAllowedOps ActionNamePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint ActionNamePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint ActionNamePropertyInfo :: * -> Constraint

type AttrGetType ActionNamePropertyInfo :: *

type AttrLabel ActionNamePropertyInfo :: Symbol

type AttrOrigin ActionNamePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint ActionNamePropertyInfo o => Proxy * ActionNamePropertyInfo -> o -> IO (AttrGetType ActionNamePropertyInfo)

attrSet :: (AttrBaseTypeConstraint ActionNamePropertyInfo o, AttrSetTypeConstraint ActionNamePropertyInfo b) => Proxy * ActionNamePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint ActionNamePropertyInfo o => Proxy * ActionNamePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint ActionNamePropertyInfo o, AttrSetTypeConstraint ActionNamePropertyInfo b) => Proxy * ActionNamePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint ActionNamePropertyInfo Source # 
type AttrSetTypeConstraint ActionNamePropertyInfo = * ~ ()
type AttrOrigin ActionNamePropertyInfo Source # 
type AttrOrigin ActionNamePropertyInfo = Action
type AttrLabel ActionNamePropertyInfo Source # 
type AttrLabel ActionNamePropertyInfo = "name"
type AttrGetType ActionNamePropertyInfo Source # 
type AttrGetType ActionNamePropertyInfo = Text
type AttrBaseTypeConstraint ActionNamePropertyInfo Source # 
type AttrBaseTypeConstraint ActionNamePropertyInfo = IsAction
type AttrAllowedOps ActionNamePropertyInfo Source # 
type AttrAllowedOps ActionNamePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))

actionName :: AttrLabelProxy "name" Source #

getActionName :: (MonadIO m, IsAction o) => o -> m Text Source #

parameterType

data ActionParameterTypePropertyInfo Source #

Instances

AttrInfo ActionParameterTypePropertyInfo Source # 

Associated Types

type AttrAllowedOps ActionParameterTypePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint ActionParameterTypePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint ActionParameterTypePropertyInfo :: * -> Constraint

type AttrGetType ActionParameterTypePropertyInfo :: *

type AttrLabel ActionParameterTypePropertyInfo :: Symbol

type AttrOrigin ActionParameterTypePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint ActionParameterTypePropertyInfo o => Proxy * ActionParameterTypePropertyInfo -> o -> IO (AttrGetType ActionParameterTypePropertyInfo)

attrSet :: (AttrBaseTypeConstraint ActionParameterTypePropertyInfo o, AttrSetTypeConstraint ActionParameterTypePropertyInfo b) => Proxy * ActionParameterTypePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint ActionParameterTypePropertyInfo o => Proxy * ActionParameterTypePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint ActionParameterTypePropertyInfo o, AttrSetTypeConstraint ActionParameterTypePropertyInfo b) => Proxy * ActionParameterTypePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint ActionParameterTypePropertyInfo Source # 
type AttrSetTypeConstraint ActionParameterTypePropertyInfo = * ~ ()
type AttrOrigin ActionParameterTypePropertyInfo Source # 
type AttrLabel ActionParameterTypePropertyInfo Source # 
type AttrLabel ActionParameterTypePropertyInfo = "parameter-type"
type AttrGetType ActionParameterTypePropertyInfo Source # 
type AttrGetType ActionParameterTypePropertyInfo = Maybe VariantType
type AttrBaseTypeConstraint ActionParameterTypePropertyInfo Source # 
type AttrBaseTypeConstraint ActionParameterTypePropertyInfo = IsAction
type AttrAllowedOps ActionParameterTypePropertyInfo Source # 
type AttrAllowedOps ActionParameterTypePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))

actionParameterType :: AttrLabelProxy "parameterType" Source #

getActionParameterType :: (MonadIO m, IsAction o) => o -> m (Maybe VariantType) Source #

state

data ActionStatePropertyInfo Source #

Instances

AttrInfo ActionStatePropertyInfo Source # 

Associated Types

type AttrAllowedOps ActionStatePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint ActionStatePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint ActionStatePropertyInfo :: * -> Constraint

type AttrGetType ActionStatePropertyInfo :: *

type AttrLabel ActionStatePropertyInfo :: Symbol

type AttrOrigin ActionStatePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint ActionStatePropertyInfo o => Proxy * ActionStatePropertyInfo -> o -> IO (AttrGetType ActionStatePropertyInfo)

attrSet :: (AttrBaseTypeConstraint ActionStatePropertyInfo o, AttrSetTypeConstraint ActionStatePropertyInfo b) => Proxy * ActionStatePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint ActionStatePropertyInfo o => Proxy * ActionStatePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint ActionStatePropertyInfo o, AttrSetTypeConstraint ActionStatePropertyInfo b) => Proxy * ActionStatePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint ActionStatePropertyInfo Source # 
type AttrSetTypeConstraint ActionStatePropertyInfo = * ~ ()
type AttrOrigin ActionStatePropertyInfo Source # 
type AttrLabel ActionStatePropertyInfo Source # 
type AttrLabel ActionStatePropertyInfo = "state"
type AttrGetType ActionStatePropertyInfo Source # 
type AttrGetType ActionStatePropertyInfo = Maybe GVariant
type AttrBaseTypeConstraint ActionStatePropertyInfo Source # 
type AttrBaseTypeConstraint ActionStatePropertyInfo = IsAction
type AttrAllowedOps ActionStatePropertyInfo Source # 
type AttrAllowedOps ActionStatePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))

actionState :: AttrLabelProxy "state" Source #

getActionState :: (MonadIO m, IsAction o) => o -> m (Maybe GVariant) Source #

stateType

data ActionStateTypePropertyInfo Source #

Instances

AttrInfo ActionStateTypePropertyInfo Source # 

Associated Types

type AttrAllowedOps ActionStateTypePropertyInfo :: [AttrOpTag]

type AttrSetTypeConstraint ActionStateTypePropertyInfo :: * -> Constraint

type AttrBaseTypeConstraint ActionStateTypePropertyInfo :: * -> Constraint

type AttrGetType ActionStateTypePropertyInfo :: *

type AttrLabel ActionStateTypePropertyInfo :: Symbol

type AttrOrigin ActionStateTypePropertyInfo :: *

Methods

attrGet :: AttrBaseTypeConstraint ActionStateTypePropertyInfo o => Proxy * ActionStateTypePropertyInfo -> o -> IO (AttrGetType ActionStateTypePropertyInfo)

attrSet :: (AttrBaseTypeConstraint ActionStateTypePropertyInfo o, AttrSetTypeConstraint ActionStateTypePropertyInfo b) => Proxy * ActionStateTypePropertyInfo -> o -> b -> IO ()

attrClear :: AttrBaseTypeConstraint ActionStateTypePropertyInfo o => Proxy * ActionStateTypePropertyInfo -> o -> IO ()

attrConstruct :: (AttrBaseTypeConstraint ActionStateTypePropertyInfo o, AttrSetTypeConstraint ActionStateTypePropertyInfo b) => Proxy * ActionStateTypePropertyInfo -> b -> IO (GValueConstruct o)

type AttrSetTypeConstraint ActionStateTypePropertyInfo Source # 
type AttrSetTypeConstraint ActionStateTypePropertyInfo = * ~ ()
type AttrOrigin ActionStateTypePropertyInfo Source # 
type AttrLabel ActionStateTypePropertyInfo Source # 
type AttrLabel ActionStateTypePropertyInfo = "state-type"
type AttrGetType ActionStateTypePropertyInfo Source # 
type AttrGetType ActionStateTypePropertyInfo = Maybe VariantType
type AttrBaseTypeConstraint ActionStateTypePropertyInfo Source # 
type AttrBaseTypeConstraint ActionStateTypePropertyInfo = IsAction
type AttrAllowedOps ActionStateTypePropertyInfo Source # 
type AttrAllowedOps ActionStateTypePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))

actionStateType :: AttrLabelProxy "stateType" Source #

getActionStateType :: (MonadIO m, IsAction o) => o -> m (Maybe VariantType) Source #