Appendix A  Datatypes in gDesklets

Datatype Description
boolean Either true or false.
color Can either be a textual name such as "red", or a hexadecimal value initiated by a hash sign (#), consisting of red, green, blue, and alpha values. Each value is 8 bit (between 00 and FF. The alpha byte is optional and not supported always.
direction One of the strings nw, n, ne, e, se, s, sw, w, center. The strings represent the directions north-west, north, north-east, east, south-east, south, south-west, west, center, respectively.
float A floating point value.
font A font string consists of the font family, some styles (like bold or italic), and a size value, which is a valid unit value.
integer An integer value.
object An object with which you can interact with.
script A string of Python script.
string A string of characters enclosed in single (') or double quotes (").
unit A size or coordinate value with a measurement unit. The measurement units can be cm, in, pt, % for centimeters, inches, DTP points, or percentage values, respectively. If no unit is given, pixels are used.
URI A Uniform Resource Identifier. This can be a valid URL, a local file path, or a valid VFS path.