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
- iMContextDeleteSurrounding :: (MonadIO m, IMContextK a) => a -> Int32 -> Int32 -> m Bool
- iMContextFilterKeypress :: (MonadIO m, IMContextK a) => a -> EventKey -> m Bool
- iMContextFocusIn :: (MonadIO m, IMContextK a) => a -> m ()
- iMContextFocusOut :: (MonadIO m, IMContextK a) => a -> m ()
- iMContextGetPreeditString :: (MonadIO m, IMContextK a) => a -> m (Text, AttrList, Int32)
- iMContextGetSurrounding :: (MonadIO m, IMContextK a) => a -> m (Bool, Text, Int32)
- iMContextReset :: (MonadIO m, IMContextK a) => a -> m ()
- iMContextSetClientWindow :: (MonadIO m, IMContextK a, WindowK b) => a -> Maybe b -> m ()
- iMContextSetCursorLocation :: (MonadIO m, IMContextK a) => a -> RectangleInt -> m ()
- iMContextSetSurrounding :: (MonadIO m, IMContextK a) => a -> Text -> Int32 -> Int32 -> m ()
- 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 | |
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
iMContextDeleteSurrounding :: (MonadIO m, IMContextK a) => a -> Int32 -> Int32 -> m Bool Source
iMContextFilterKeypress
iMContextFilterKeypress :: (MonadIO m, IMContextK a) => a -> EventKey -> m Bool Source
iMContextFocusIn
iMContextFocusIn :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextFocusOut
iMContextFocusOut :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextGetPreeditString
iMContextGetPreeditString :: (MonadIO m, IMContextK a) => a -> m (Text, AttrList, Int32) Source
iMContextGetSurrounding
iMContextGetSurrounding :: (MonadIO m, IMContextK a) => a -> m (Bool, Text, Int32) Source
iMContextReset
iMContextReset :: (MonadIO m, IMContextK a) => a -> m () Source
iMContextSetClientWindow
iMContextSetClientWindow :: (MonadIO m, IMContextK a, WindowK b) => a -> Maybe b -> m () Source
iMContextSetCursorLocation
iMContextSetCursorLocation :: (MonadIO m, IMContextK a) => a -> RectangleInt -> m () Source
iMContextSetSurrounding
iMContextSetSurrounding :: (MonadIO m, IMContextK a) => a -> Text -> Int32 -> Int32 -> m () Source
iMContextSetUsePreedit
iMContextSetUsePreedit :: (MonadIO m, IMContextK a) => a -> Bool -> m () Source
Properties
InputHints
data IMContextInputHintsPropertyInfo Source
AttrInfo IMContextInputHintsPropertyInfo Source | |
type AttrLabel IMContextInputHintsPropertyInfo = "IMContext::input-hints" Source | |
type AttrGetType IMContextInputHintsPropertyInfo = [InputHints] Source | |
type AttrBaseTypeConstraint IMContextInputHintsPropertyInfo = IMContextK Source | |
type AttrSetTypeConstraint IMContextInputHintsPropertyInfo = * ~ [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
AttrInfo IMContextInputPurposePropertyInfo Source | |
type AttrLabel IMContextInputPurposePropertyInfo = "IMContext::input-purpose" Source | |
type AttrGetType IMContextInputPurposePropertyInfo = InputPurpose Source | |
type AttrBaseTypeConstraint IMContextInputPurposePropertyInfo = IMContextK Source | |
type AttrSetTypeConstraint IMContextInputPurposePropertyInfo = * ~ InputPurpose Source | |
type AttrAllowedOps IMContextInputPurposePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) 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