Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiGetStringResource

hiGetStringResource(
t_resourceName
[ t_resourceClass ]
)
=> g_resource / nil

Description

Gets resources from the resource database of the X Window System.

Arguments

t_resourceName

Name of the resource to look up in the resource database.

t_resourceClass

Resource class to further limit the number of potential matches in the resource database. (See X documentation for a further discussion on X resource classes. For general use, a resourceName is usually sufficient.)

Values Returned

g_resource

The value of the specified resource.

nil

The resource does not exist.

Examples

The following examples are for an .Xdefaults file specifying the following resources:

Opus.someString: hello
Opus.someInt: 1
hiGetStringResource("someString")
=> "hello"
hiGetStringResource("someInt")
=> "1"
hiGetStringResource("notThere")
=> nil

Related Topics

Resource Management Functions


Return to top
 ⠀
X