| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Text.XkbCommon.Context
- data Context
- data ContextFlags
- defaultFlags :: ContextFlags
- pureFlags :: ContextFlags
- contextNoDefaultIncludes :: ContextFlags
- contextNoEnvironment :: ContextFlags
- newContext :: ContextFlags -> IO (Maybe Context)
- getIncludePaths :: Context -> IO [FilePath]
- setIncludePaths :: Context -> [FilePath] -> Bool -> IO (Maybe ())
- appendIncludePath :: Context -> FilePath -> IO (Maybe ())
- numIncludePaths :: Context -> IO Int
- clearIncludePath :: Context -> IO ()
- appendDefaultIncludePath :: Context -> IO (Maybe ())
- includePathShow :: Context -> Int -> IO FilePath
Documentation
data ContextFlags Source #
ContextFlags carry options for construction of a Context. (enum xkb_context_flags)
Instances
defaultFlags :: ContextFlags Source #
Default ContextFlags: consider RMLVO prefs from the environment variables, and search for Keymap files in the default paths.
pureFlags :: ContextFlags Source #
Pure ContextFlags: don't consider env vars or default search paths, which are system-dependent.
newContext :: ContextFlags -> IO (Maybe Context) Source #
Construct a new Xkb context from creation preferences. xkb_context_new can fail if the default include path does not exist.
(xkb_context_new)
Arguments
| :: Context | Context whose search paths we are changing | 
| -> [FilePath] | New list of search paths | 
| -> Bool | Set to True if you also want to search on the default path | 
| -> IO (Maybe ()) | returns Just () if addition of at least one path succeeded | 
Set a new list of include paths for a Context.
appendIncludePath :: Context -> FilePath -> IO (Maybe ()) Source #
Append a search path for Keymap files to a Context. (xkb_context_include_path_append)
Preferred API is to use getIncludePaths and setIncludePaths
numIncludePaths :: Context -> IO Int Source #
(xkb_context_num_include_paths)
Preferred API is to use getIncludePaths and setIncludePaths
clearIncludePath :: Context -> IO () Source #
Remove all Keymap file search paths from a Context.
Preferred API is to use getIncludePaths and setIncludePaths
(xkb_context_include_path_clear)
appendDefaultIncludePath :: Context -> IO (Maybe ()) Source #
Append the default Keymap search path (whose location depends on libxkbcommon compile-time settings) (xkb_context_include_path_append_default)
Preferred API is to use getIncludePaths and setIncludePaths
includePathShow :: Context -> Int -> IO FilePath Source #
Get a specific include path from the context's include path. (xkb_context_include_path_get)
Preferred API is to use getIncludePaths and setIncludePaths