X11-rm-0.2: A binding to the resource management functions missing from X11.

Graphics.X11.XRM

Contents

Description

Note that XrmInitialize is already wrapped in the base X11 library as rmInitialize.

Synopsis

Resource manager

data RMDatabase Source

pointer to an X11 XrmDatabase structure

data RMValue Source

counterpart of an X11 XrmValue structure

Constructors

RMValue 

resourceManagerString :: Display -> IO (Maybe String)Source

interface to the X11 library function XResourceManagerString(). The one in the X11 library (Display) is unsafe, this one is safe.

rmGetFileDatabase :: String -> IO (Maybe RMDatabase)Source

interface to the X11 library function XrmGetFileDatabase().

rmPutFileDatabase :: RMDatabase -> String -> IO ()Source

interface to the X11 library function XrmPutFileDatabase().

rmGetStringDatabase :: String -> IO (Maybe RMDatabase)Source

interface to the X11 library function XrmGetStringDatabase().

rmLocaleOfDatabase :: RMDatabase -> IO StringSource

interface to the X11 library function XrmLocaleOfDatabase().

rmDestroyDatabase :: RMDatabase -> IO ()Source

interface to the X11 library function XrmDestroyDatabase().

rmSetDatabase :: Display -> RMDatabase -> IO ()Source

interface to the X11 library function XrmSetDatabase().

rmGetDatabase :: Display -> IO (Maybe RMDatabase)Source

interface to the X11 library function XrmGetDatabase().

rmCombineFileDatabase :: String -> RMDatabase -> Bool -> IO ()Source

interface to the X11 library function XrmCombineFileDatabase().

rmCombineDatabase :: RMDatabase -> RMDatabase -> Bool -> IO ()Source

interface to the X11 library function XrmCombineDatabase().

rmMergeDatabases :: RMDatabase -> RMDatabase -> IO ()Source

interface to the X11 library function XrmMergeDatabases().

rmGetResource :: RMDatabase -> String -> String -> IO (Maybe (String, RMValue))Source

interface to the X11 library function XrmGetResource().

rmPutResource :: RMDatabase -> String -> String -> RMValue -> IO ()Source

interface to the X11 library function XrmPutResource().

rmPutStringResource :: RMDatabase -> String -> String -> IO ()Source

interface to the X11 library function XrmPutStringResource().

rmPutLineResource :: RMDatabase -> String -> IO ()Source

interface to the X11 library function XrmPutLineResource().

getDefault :: Display -> String -> String -> IO (Maybe String)Source

interface to the X11 library function XGetDefault().

rmValue :: RMValue -> IO StringSource

Extract string from RMValue structure. Make sure the RMValue actually points at a null-terminated string.