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 SimpleAction = SimpleAction (ForeignPtr SimpleAction)
- class GObject o => SimpleActionK o
- toSimpleAction :: SimpleActionK o => o -> IO SimpleAction
- noSimpleAction :: Maybe SimpleAction
- simpleActionNew :: MonadIO m => Text -> Maybe VariantType -> m SimpleAction
- simpleActionNewStateful :: MonadIO m => Text -> Maybe VariantType -> GVariant -> m SimpleAction
- data SimpleActionSetEnabledMethodInfo
- simpleActionSetEnabled :: (MonadIO m, SimpleActionK a) => a -> Bool -> m ()
- data SimpleActionSetStateMethodInfo
- simpleActionSetState :: (MonadIO m, SimpleActionK a) => a -> GVariant -> m ()
- data SimpleActionSetStateHintMethodInfo
- simpleActionSetStateHint :: (MonadIO m, SimpleActionK a) => a -> Maybe GVariant -> m ()
- data SimpleActionEnabledPropertyInfo
- constructSimpleActionEnabled :: Bool -> IO ([Char], GValue)
- getSimpleActionEnabled :: (MonadIO m, SimpleActionK o) => o -> m Bool
- setSimpleActionEnabled :: (MonadIO m, SimpleActionK o) => o -> Bool -> m ()
- simpleActionEnabled :: AttrLabelProxy "enabled"
- data SimpleActionNamePropertyInfo
- constructSimpleActionName :: Text -> IO ([Char], GValue)
- getSimpleActionName :: (MonadIO m, SimpleActionK o) => o -> m (Maybe Text)
- simpleActionName :: AttrLabelProxy "name"
- data SimpleActionParameterTypePropertyInfo
- constructSimpleActionParameterType :: VariantType -> IO ([Char], GValue)
- getSimpleActionParameterType :: (MonadIO m, SimpleActionK o) => o -> m (Maybe VariantType)
- simpleActionParameterType :: AttrLabelProxy "parameterType"
- data SimpleActionStatePropertyInfo
- constructSimpleActionState :: GVariant -> IO ([Char], GValue)
- getSimpleActionState :: (MonadIO m, SimpleActionK o) => o -> m (Maybe GVariant)
- setSimpleActionState :: (MonadIO m, SimpleActionK o) => o -> GVariant -> m ()
- simpleActionState :: AttrLabelProxy "state"
- data SimpleActionStateTypePropertyInfo
- getSimpleActionStateType :: (MonadIO m, SimpleActionK o) => o -> m (Maybe VariantType)
- simpleActionStateType :: AttrLabelProxy "stateType"
- type SimpleActionActivateCallback = Maybe GVariant -> IO ()
- type SimpleActionActivateCallbackC = Ptr () -> Ptr GVariant -> Ptr () -> IO ()
- data SimpleActionActivateSignalInfo
- afterSimpleActionActivate :: (GObject a, MonadIO m) => a -> SimpleActionActivateCallback -> m SignalHandlerId
- mkSimpleActionActivateCallback :: SimpleActionActivateCallbackC -> IO (FunPtr SimpleActionActivateCallbackC)
- noSimpleActionActivateCallback :: Maybe SimpleActionActivateCallback
- onSimpleActionActivate :: (GObject a, MonadIO m) => a -> SimpleActionActivateCallback -> m SignalHandlerId
- simpleActionActivateCallbackWrapper :: SimpleActionActivateCallback -> Ptr () -> Ptr GVariant -> Ptr () -> IO ()
- simpleActionActivateClosure :: SimpleActionActivateCallback -> IO Closure
- type SimpleActionChangeStateCallback = Maybe GVariant -> IO ()
- type SimpleActionChangeStateCallbackC = Ptr () -> Ptr GVariant -> Ptr () -> IO ()
- data SimpleActionChangeStateSignalInfo
- afterSimpleActionChangeState :: (GObject a, MonadIO m) => a -> SimpleActionChangeStateCallback -> m SignalHandlerId
- mkSimpleActionChangeStateCallback :: SimpleActionChangeStateCallbackC -> IO (FunPtr SimpleActionChangeStateCallbackC)
- noSimpleActionChangeStateCallback :: Maybe SimpleActionChangeStateCallback
- onSimpleActionChangeState :: (GObject a, MonadIO m) => a -> SimpleActionChangeStateCallback -> m SignalHandlerId
- simpleActionChangeStateCallbackWrapper :: SimpleActionChangeStateCallback -> Ptr () -> Ptr GVariant -> Ptr () -> IO ()
- simpleActionChangeStateClosure :: SimpleActionChangeStateCallback -> IO Closure
Exported types
newtype SimpleAction Source
GObject SimpleAction | |
((~) * info (ResolveSimpleActionMethod t SimpleAction), MethodInfo * info SimpleAction p) => IsLabelProxy t (SimpleAction -> p) | |
type ParentTypes SimpleAction | |
type AttributeList SimpleAction | |
type SignalList SimpleAction |
class GObject o => SimpleActionK o Source
(GObject o, IsDescendantOf SimpleAction o) => SimpleActionK o |
toSimpleAction :: SimpleActionK o => o -> IO SimpleAction Source
Methods
simpleActionNew
simpleActionNew :: MonadIO m => Text -> Maybe VariantType -> m SimpleAction Source
simpleActionNewStateful
simpleActionNewStateful :: MonadIO m => Text -> Maybe VariantType -> GVariant -> m SimpleAction Source
simpleActionSetEnabled
data SimpleActionSetEnabledMethodInfo Source
((~) * signature (Bool -> m ()), MonadIO m, SimpleActionK a) => MethodInfo * SimpleActionSetEnabledMethodInfo a signature |
simpleActionSetEnabled :: (MonadIO m, SimpleActionK a) => a -> Bool -> m () Source
simpleActionSetState
data SimpleActionSetStateMethodInfo Source
((~) * signature (GVariant -> m ()), MonadIO m, SimpleActionK a) => MethodInfo * SimpleActionSetStateMethodInfo a signature |
simpleActionSetState :: (MonadIO m, SimpleActionK a) => a -> GVariant -> m () Source
simpleActionSetStateHint
data SimpleActionSetStateHintMethodInfo Source
((~) * signature (Maybe GVariant -> m ()), MonadIO m, SimpleActionK a) => MethodInfo * SimpleActionSetStateHintMethodInfo a signature |
simpleActionSetStateHint :: (MonadIO m, SimpleActionK a) => a -> Maybe GVariant -> m () Source
Properties
Enabled
data SimpleActionEnabledPropertyInfo Source
AttrInfo SimpleActionEnabledPropertyInfo | |
type AttrLabel SimpleActionEnabledPropertyInfo = "enabled" | |
type AttrGetType SimpleActionEnabledPropertyInfo = Bool | |
type AttrBaseTypeConstraint SimpleActionEnabledPropertyInfo = SimpleActionK | |
type AttrSetTypeConstraint SimpleActionEnabledPropertyInfo = * ~ Bool | |
type AttrAllowedOps SimpleActionEnabledPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getSimpleActionEnabled :: (MonadIO m, SimpleActionK o) => o -> m Bool Source
setSimpleActionEnabled :: (MonadIO m, SimpleActionK o) => o -> Bool -> m () Source
simpleActionEnabled :: AttrLabelProxy "enabled" Source
Name
data SimpleActionNamePropertyInfo Source
AttrInfo SimpleActionNamePropertyInfo | |
type AttrLabel SimpleActionNamePropertyInfo = "name" | |
type AttrGetType SimpleActionNamePropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint SimpleActionNamePropertyInfo = SimpleActionK | |
type AttrSetTypeConstraint SimpleActionNamePropertyInfo = * ~ Text | |
type AttrAllowedOps SimpleActionNamePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
getSimpleActionName :: (MonadIO m, SimpleActionK o) => o -> m (Maybe Text) Source
simpleActionName :: AttrLabelProxy "name" Source
ParameterType
data SimpleActionParameterTypePropertyInfo Source
constructSimpleActionParameterType :: VariantType -> IO ([Char], GValue) Source
getSimpleActionParameterType :: (MonadIO m, SimpleActionK o) => o -> m (Maybe VariantType) Source
simpleActionParameterType :: AttrLabelProxy "parameterType" Source
State
data SimpleActionStatePropertyInfo Source
AttrInfo SimpleActionStatePropertyInfo | |
type AttrLabel SimpleActionStatePropertyInfo = "state" | |
type AttrGetType SimpleActionStatePropertyInfo = Maybe GVariant | |
type AttrBaseTypeConstraint SimpleActionStatePropertyInfo = SimpleActionK | |
type AttrSetTypeConstraint SimpleActionStatePropertyInfo = * ~ GVariant | |
type AttrAllowedOps SimpleActionStatePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getSimpleActionState :: (MonadIO m, SimpleActionK o) => o -> m (Maybe GVariant) Source
setSimpleActionState :: (MonadIO m, SimpleActionK o) => o -> GVariant -> m () Source
simpleActionState :: AttrLabelProxy "state" Source
StateType
data SimpleActionStateTypePropertyInfo Source
AttrInfo SimpleActionStateTypePropertyInfo | |
type AttrLabel SimpleActionStateTypePropertyInfo = "state-type" | |
type AttrGetType SimpleActionStateTypePropertyInfo = Maybe VariantType | |
type AttrBaseTypeConstraint SimpleActionStateTypePropertyInfo = SimpleActionK | |
type AttrSetTypeConstraint SimpleActionStateTypePropertyInfo = * ~ () | |
type AttrAllowedOps SimpleActionStateTypePropertyInfo = (:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)) |
getSimpleActionStateType :: (MonadIO m, SimpleActionK o) => o -> m (Maybe VariantType) Source
simpleActionStateType :: AttrLabelProxy "stateType" Source
Signals
Activate
type SimpleActionActivateCallback = Maybe GVariant -> IO () Source
afterSimpleActionActivate :: (GObject a, MonadIO m) => a -> SimpleActionActivateCallback -> m SignalHandlerId Source
mkSimpleActionActivateCallback :: SimpleActionActivateCallbackC -> IO (FunPtr SimpleActionActivateCallbackC) Source
onSimpleActionActivate :: (GObject a, MonadIO m) => a -> SimpleActionActivateCallback -> m SignalHandlerId Source
simpleActionActivateCallbackWrapper :: SimpleActionActivateCallback -> Ptr () -> Ptr GVariant -> Ptr () -> IO () Source
ChangeState
type SimpleActionChangeStateCallback = Maybe GVariant -> IO () Source
afterSimpleActionChangeState :: (GObject a, MonadIO m) => a -> SimpleActionChangeStateCallback -> m SignalHandlerId Source
mkSimpleActionChangeStateCallback :: SimpleActionChangeStateCallbackC -> IO (FunPtr SimpleActionChangeStateCallbackC) Source
onSimpleActionChangeState :: (GObject a, MonadIO m) => a -> SimpleActionChangeStateCallback -> m SignalHandlerId Source
simpleActionChangeStateCallbackWrapper :: SimpleActionChangeStateCallback -> Ptr () -> Ptr GVariant -> Ptr () -> IO () Source