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 IMContext = IMContext (ForeignPtr IMContext)
- class GObject o => IMContextK o
- toIMContext :: IMContextK o => o -> IO IMContext
- noIMContext :: Maybe IMContext
- data IMContextDeleteSurroundingMethodInfo
- iMContextDeleteSurrounding :: (MonadIO m, IMContextK a) => a -> Int32 -> Int32 -> m Bool
- data IMContextFilterKeypressMethodInfo
- iMContextFilterKeypress :: (MonadIO m, IMContextK a) => a -> EventKey -> m Bool
- data IMContextFocusInMethodInfo
- iMContextFocusIn :: (MonadIO m, IMContextK a) => a -> m ()
- data IMContextFocusOutMethodInfo
- iMContextFocusOut :: (MonadIO m, IMContextK a) => a -> m ()
- data IMContextGetPreeditStringMethodInfo
- iMContextGetPreeditString :: (MonadIO m, IMContextK a) => a -> m (Text, AttrList, Int32)
- data IMContextGetSurroundingMethodInfo
- iMContextGetSurrounding :: (MonadIO m, IMContextK a) => a -> m (Bool, Text, Int32)
- data IMContextResetMethodInfo
- iMContextReset :: (MonadIO m, IMContextK a) => a -> m ()
- data IMContextSetClientWindowMethodInfo
- iMContextSetClientWindow :: (MonadIO m, IMContextK a, WindowK b) => a -> Maybe b -> m ()
- data IMContextSetCursorLocationMethodInfo
- iMContextSetCursorLocation :: (MonadIO m, IMContextK a) => a -> Rectangle -> m ()
- data IMContextSetSurroundingMethodInfo
- iMContextSetSurrounding :: (MonadIO m, IMContextK a) => a -> Text -> Int32 -> Int32 -> m ()
- data IMContextSetUsePreeditMethodInfo
- iMContextSetUsePreedit :: (MonadIO m, IMContextK a) => a -> Bool -> m ()
- data IMContextInputHintsPropertyInfo
- constructIMContextInputHints :: [InputHints] -> IO ([Char], GValue)
- getIMContextInputHints :: (MonadIO m, IMContextK o) => o -> m [InputHints]
- setIMContextInputHints :: (MonadIO m, IMContextK o) => o -> [InputHints] -> m ()
- data IMContextInputPurposePropertyInfo
- constructIMContextInputPurpose :: InputPurpose -> IO ([Char], GValue)
- getIMContextInputPurpose :: (MonadIO m, IMContextK o) => o -> m InputPurpose
- setIMContextInputPurpose :: (MonadIO m, IMContextK o) => o -> InputPurpose -> m ()
- type IMContextCommitCallback = Text -> IO ()
- type IMContextCommitCallbackC = Ptr () -> CString -> Ptr () -> IO ()
- data IMContextCommitSignalInfo
- afterIMContextCommit :: (GObject a, MonadIO m) => a -> IMContextCommitCallback -> m SignalHandlerId
- iMContextCommitCallbackWrapper :: IMContextCommitCallback -> Ptr () -> CString -> Ptr () -> IO ()
- iMContextCommitClosure :: IMContextCommitCallback -> IO Closure
- mkIMContextCommitCallback :: IMContextCommitCallbackC -> IO (FunPtr IMContextCommitCallbackC)
- noIMContextCommitCallback :: Maybe IMContextCommitCallback
- onIMContextCommit :: (GObject a, MonadIO m) => a -> IMContextCommitCallback -> m SignalHandlerId
- type IMContextDeleteSurroundingCallback = Int32 -> Int32 -> IO Bool
- type IMContextDeleteSurroundingCallbackC = Ptr () -> Int32 -> Int32 -> Ptr () -> IO CInt
- data IMContextDeleteSurroundingSignalInfo
- afterIMContextDeleteSurrounding :: (GObject a, MonadIO m) => a -> IMContextDeleteSurroundingCallback -> m SignalHandlerId
- iMContextDeleteSurroundingCallbackWrapper :: IMContextDeleteSurroundingCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO CInt
- iMContextDeleteSurroundingClosure :: IMContextDeleteSurroundingCallback -> IO Closure
- mkIMContextDeleteSurroundingCallback :: IMContextDeleteSurroundingCallbackC -> IO (FunPtr IMContextDeleteSurroundingCallbackC)
- noIMContextDeleteSurroundingCallback :: Maybe IMContextDeleteSurroundingCallback
- onIMContextDeleteSurrounding :: (GObject a, MonadIO m) => a -> IMContextDeleteSurroundingCallback -> m SignalHandlerId
- type IMContextPreeditChangedCallback = IO ()
- type IMContextPreeditChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data IMContextPreeditChangedSignalInfo
- afterIMContextPreeditChanged :: (GObject a, MonadIO m) => a -> IMContextPreeditChangedCallback -> m SignalHandlerId
- iMContextPreeditChangedCallbackWrapper :: IMContextPreeditChangedCallback -> Ptr () -> Ptr () -> IO ()
- iMContextPreeditChangedClosure :: IMContextPreeditChangedCallback -> IO Closure
- mkIMContextPreeditChangedCallback :: IMContextPreeditChangedCallbackC -> IO (FunPtr IMContextPreeditChangedCallbackC)
- noIMContextPreeditChangedCallback :: Maybe IMContextPreeditChangedCallback
- onIMContextPreeditChanged :: (GObject a, MonadIO m) => a -> IMContextPreeditChangedCallback -> m SignalHandlerId
- type IMContextPreeditEndCallback = IO ()
- type IMContextPreeditEndCallbackC = Ptr () -> Ptr () -> IO ()
- data IMContextPreeditEndSignalInfo
- afterIMContextPreeditEnd :: (GObject a, MonadIO m) => a -> IMContextPreeditEndCallback -> m SignalHandlerId
- iMContextPreeditEndCallbackWrapper :: IMContextPreeditEndCallback -> Ptr () -> Ptr () -> IO ()
- iMContextPreeditEndClosure :: IMContextPreeditEndCallback -> IO Closure
- mkIMContextPreeditEndCallback :: IMContextPreeditEndCallbackC -> IO (FunPtr IMContextPreeditEndCallbackC)
- noIMContextPreeditEndCallback :: Maybe IMContextPreeditEndCallback
- onIMContextPreeditEnd :: (GObject a, MonadIO m) => a -> IMContextPreeditEndCallback -> m SignalHandlerId
- type IMContextPreeditStartCallback = IO ()
- type IMContextPreeditStartCallbackC = Ptr () -> Ptr () -> IO ()
- data IMContextPreeditStartSignalInfo
- afterIMContextPreeditStart :: (GObject a, MonadIO m) => a -> IMContextPreeditStartCallback -> m SignalHandlerId
- iMContextPreeditStartCallbackWrapper :: IMContextPreeditStartCallback -> Ptr () -> Ptr () -> IO ()
- iMContextPreeditStartClosure :: IMContextPreeditStartCallback -> IO Closure
- mkIMContextPreeditStartCallback :: IMContextPreeditStartCallbackC -> IO (FunPtr IMContextPreeditStartCallbackC)
- noIMContextPreeditStartCallback :: Maybe IMContextPreeditStartCallback
- onIMContextPreeditStart :: (GObject a, MonadIO m) => a -> IMContextPreeditStartCallback -> m SignalHandlerId
- type IMContextRetrieveSurroundingCallback = IO Bool
- type IMContextRetrieveSurroundingCallbackC = Ptr () -> Ptr () -> IO CInt
- data IMContextRetrieveSurroundingSignalInfo
- afterIMContextRetrieveSurrounding :: (GObject a, MonadIO m) => a -> IMContextRetrieveSurroundingCallback -> m SignalHandlerId
- iMContextRetrieveSurroundingCallbackWrapper :: IMContextRetrieveSurroundingCallback -> Ptr () -> Ptr () -> IO CInt
- iMContextRetrieveSurroundingClosure :: IMContextRetrieveSurroundingCallback -> IO Closure
- mkIMContextRetrieveSurroundingCallback :: IMContextRetrieveSurroundingCallbackC -> IO (FunPtr IMContextRetrieveSurroundingCallbackC)
- noIMContextRetrieveSurroundingCallback :: Maybe IMContextRetrieveSurroundingCallback
- onIMContextRetrieveSurrounding :: (GObject a, MonadIO m) => a -> IMContextRetrieveSurroundingCallback -> m SignalHandlerId
Exported types
GObject IMContext Source | |
((~) * info (ResolveIMContextMethod t IMContext), MethodInfo * info IMContext p) => IsLabel t (IMContext -> p) Source | |
((~) * info (ResolveIMContextMethod t IMContext), MethodInfo * info IMContext p) => IsLabelProxy t (IMContext -> p) Source | |
type ParentTypes IMContext Source | |
type AttributeList IMContext Source | |
type SignalList IMContext Source |
class GObject o => IMContextK o Source
(GObject o, IsDescendantOf IMContext o) => IMContextK o Source | |
toIMContext :: IMContextK o => o -> IO IMContext Source
Methods
iMContextDeleteSurrounding
data IMContextDeleteSurroundingMethodInfo Source
((~) (TYPE Lifted) signature (Int32 -> Int32 -> m Bool), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextDeleteSurroundingMethodInfo a signature Source | |
iMContextDeleteSurrounding :: (MonadIO m, IMContextK a) => a -> Int32 -> Int32 -> m Bool Source
iMContextFilterKeypress
data IMContextFilterKeypressMethodInfo Source
((~) (TYPE Lifted) signature (EventKey -> m Bool), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextFilterKeypressMethodInfo a signature Source | |
iMContextFilterKeypress :: (MonadIO m, IMContextK a) => a -> EventKey -> m Bool Source
iMContextFocusIn
data IMContextFocusInMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextFocusInMethodInfo a signature Source | |
iMContextFocusIn :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextFocusOut
data IMContextFocusOutMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextFocusOutMethodInfo a signature Source | |
iMContextFocusOut :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextGetPreeditString
data IMContextGetPreeditStringMethodInfo Source
((~) (TYPE Lifted) signature (m (Text, AttrList, Int32)), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextGetPreeditStringMethodInfo a signature Source | |
iMContextGetPreeditString :: (MonadIO m, IMContextK a) => a -> m (Text, AttrList, Int32) Source
iMContextGetSurrounding
data IMContextGetSurroundingMethodInfo Source
((~) (TYPE Lifted) signature (m (Bool, Text, Int32)), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextGetSurroundingMethodInfo a signature Source | |
iMContextGetSurrounding :: (MonadIO m, IMContextK a) => a -> m (Bool, Text, Int32) Source
iMContextReset
data IMContextResetMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextResetMethodInfo a signature Source | |
iMContextReset :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextSetClientWindow
data IMContextSetClientWindowMethodInfo Source
((~) (TYPE Lifted) signature (Maybe b -> m ()), MonadIO m, IMContextK a, WindowK b) => MethodInfo (TYPE Lifted) IMContextSetClientWindowMethodInfo a signature Source | |
iMContextSetClientWindow :: (MonadIO m, IMContextK a, WindowK b) => a -> Maybe b -> m () Source
iMContextSetCursorLocation
data IMContextSetCursorLocationMethodInfo Source
((~) (TYPE Lifted) signature (Rectangle -> m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextSetCursorLocationMethodInfo a signature Source | |
iMContextSetCursorLocation :: (MonadIO m, IMContextK a) => a -> Rectangle -> m () Source
iMContextSetSurrounding
data IMContextSetSurroundingMethodInfo Source
((~) (TYPE Lifted) signature (Text -> Int32 -> Int32 -> m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextSetSurroundingMethodInfo a signature Source | |
iMContextSetSurrounding :: (MonadIO m, IMContextK a) => a -> Text -> Int32 -> Int32 -> m () Source
iMContextSetUsePreedit
data IMContextSetUsePreeditMethodInfo Source
((~) (TYPE Lifted) signature (Bool -> m ()), MonadIO m, IMContextK a) => MethodInfo (TYPE Lifted) IMContextSetUsePreeditMethodInfo a signature Source | |
iMContextSetUsePreedit :: (MonadIO m, IMContextK a) => a -> Bool -> m () Source
Properties
InputHints
data IMContextInputHintsPropertyInfo Source
AttrInfo IMContextInputHintsPropertyInfo Source | |
type AttrLabel IMContextInputHintsPropertyInfo = "input-hints" Source | |
type AttrGetType IMContextInputHintsPropertyInfo = [InputHints] Source | |
type AttrBaseTypeConstraint IMContextInputHintsPropertyInfo = IMContextK Source | |
type AttrSetTypeConstraint IMContextInputHintsPropertyInfo = TYPE Lifted ~ [InputHints] Source | |
type AttrAllowedOps IMContextInputHintsPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
constructIMContextInputHints :: [InputHints] -> IO ([Char], GValue) Source
getIMContextInputHints :: (MonadIO m, IMContextK o) => o -> m [InputHints] Source
setIMContextInputHints :: (MonadIO m, IMContextK o) => o -> [InputHints] -> m () Source
InputPurpose
data IMContextInputPurposePropertyInfo Source
constructIMContextInputPurpose :: InputPurpose -> IO ([Char], GValue) Source
getIMContextInputPurpose :: (MonadIO m, IMContextK o) => o -> m InputPurpose Source
setIMContextInputPurpose :: (MonadIO m, IMContextK o) => o -> InputPurpose -> m () Source
Signals
Commit
type IMContextCommitCallback = Text -> IO () Source
afterIMContextCommit :: (GObject a, MonadIO m) => a -> IMContextCommitCallback -> m SignalHandlerId Source
iMContextCommitCallbackWrapper :: IMContextCommitCallback -> Ptr () -> CString -> Ptr () -> IO () Source
mkIMContextCommitCallback :: IMContextCommitCallbackC -> IO (FunPtr IMContextCommitCallbackC) Source
onIMContextCommit :: (GObject a, MonadIO m) => a -> IMContextCommitCallback -> m SignalHandlerId Source
DeleteSurrounding
afterIMContextDeleteSurrounding :: (GObject a, MonadIO m) => a -> IMContextDeleteSurroundingCallback -> m SignalHandlerId Source
iMContextDeleteSurroundingCallbackWrapper :: IMContextDeleteSurroundingCallback -> Ptr () -> Int32 -> Int32 -> Ptr () -> IO CInt Source
mkIMContextDeleteSurroundingCallback :: IMContextDeleteSurroundingCallbackC -> IO (FunPtr IMContextDeleteSurroundingCallbackC) Source
onIMContextDeleteSurrounding :: (GObject a, MonadIO m) => a -> IMContextDeleteSurroundingCallback -> m SignalHandlerId Source
PreeditChanged
type IMContextPreeditChangedCallback = IO () Source
type IMContextPreeditChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterIMContextPreeditChanged :: (GObject a, MonadIO m) => a -> IMContextPreeditChangedCallback -> m SignalHandlerId Source
iMContextPreeditChangedCallbackWrapper :: IMContextPreeditChangedCallback -> Ptr () -> Ptr () -> IO () Source
mkIMContextPreeditChangedCallback :: IMContextPreeditChangedCallbackC -> IO (FunPtr IMContextPreeditChangedCallbackC) Source
onIMContextPreeditChanged :: (GObject a, MonadIO m) => a -> IMContextPreeditChangedCallback -> m SignalHandlerId Source
PreeditEnd
type IMContextPreeditEndCallback = IO () Source
type IMContextPreeditEndCallbackC = Ptr () -> Ptr () -> IO () Source
afterIMContextPreeditEnd :: (GObject a, MonadIO m) => a -> IMContextPreeditEndCallback -> m SignalHandlerId Source
iMContextPreeditEndCallbackWrapper :: IMContextPreeditEndCallback -> Ptr () -> Ptr () -> IO () Source
mkIMContextPreeditEndCallback :: IMContextPreeditEndCallbackC -> IO (FunPtr IMContextPreeditEndCallbackC) Source
onIMContextPreeditEnd :: (GObject a, MonadIO m) => a -> IMContextPreeditEndCallback -> m SignalHandlerId Source
PreeditStart
type IMContextPreeditStartCallback = IO () Source
type IMContextPreeditStartCallbackC = Ptr () -> Ptr () -> IO () Source
afterIMContextPreeditStart :: (GObject a, MonadIO m) => a -> IMContextPreeditStartCallback -> m SignalHandlerId Source
iMContextPreeditStartCallbackWrapper :: IMContextPreeditStartCallback -> Ptr () -> Ptr () -> IO () Source
mkIMContextPreeditStartCallback :: IMContextPreeditStartCallbackC -> IO (FunPtr IMContextPreeditStartCallbackC) Source
onIMContextPreeditStart :: (GObject a, MonadIO m) => a -> IMContextPreeditStartCallback -> m SignalHandlerId Source
RetrieveSurrounding
afterIMContextRetrieveSurrounding :: (GObject a, MonadIO m) => a -> IMContextRetrieveSurroundingCallback -> m SignalHandlerId Source
iMContextRetrieveSurroundingCallbackWrapper :: IMContextRetrieveSurroundingCallback -> Ptr () -> Ptr () -> IO CInt Source
mkIMContextRetrieveSurroundingCallback :: IMContextRetrieveSurroundingCallbackC -> IO (FunPtr IMContextRetrieveSurroundingCallbackC) Source
onIMContextRetrieveSurrounding :: (GObject a, MonadIO m) => a -> IMContextRetrieveSurroundingCallback -> m SignalHandlerId Source