pub fn query_xrdb<'a>(display: *mut Display, class: &'a str, name: &'a str) -> Option<&'a str> {
    unsafe {
        let rms = XResourceManagerString(display);
        if !rms.is_null() {
            let db = XrmGetStringDatabase(rms);
            if !db.is_null() {
                defer!({
                    XrmDestroyDatabase(db);
                });
                return get_xrm_resource(db, class, name);
            }
        }
    }
    None
}
/// Return the value corresponding to the class-name pair from the XrmDatabase if found.
/// This function provides high-level access to the database via the given display.
Return the value corresponding to the class-name pair from the XrmDatabase if found.
This function provides high-level access to the database via the given display.
Return the value corresponding to the class - name pair from the XrmDatabase if found . This function provides high - level access to the database via the given display .
pub fn query_xrdb<'a>(display: *mut Display, class: &'a str, name: &'a str) -> Option<&'a str> {
    unsafe {
        let rms = XResourceManagerString(display);
        if !rms.is_null() {
            let db = XrmGetStringDatabase(rms);
            if !db.is_null() {
                defer!({
                    XrmDestroyDatabase(db);
                });
                return get_xrm_resource(db, class, name);
            }
        }
    }
    None
}
pub fn query_xrdb < ' a > ( display : * mut Display , class : & ' a str , name : & ' a str ) -> Option < & ' a str > { unsafe { let rms = XResourceManagerString ( display ) ; if ! rms . is_null ( ) { let db = XrmGetStringDatabase ( rms ) ; if ! db . is_null ( ) { defer ! ( { XrmDestroyDatabase ( db ) } ) ; return get_xrm_resource ( db , class , name ) ; } } } None }
Return the value corresponding to the class-name pair from the XrmDatabase if found.
Return the value corresponding to the class - name pair from the XrmDatabase if found .
display
*mut Display
class
&'a str
name
&'a str
display
*mut Display
class
&'a str
name
&'a str