Category | UI event | ||
Format | (scl-enter id) | ||
Parameters |
|
||
Description | scl-enter is the event posted when the user has tapped a scrollbar but not yet lifted the pen. |
Category | UI event | ||||
Format | (scl-exit id new) | ||||
Parameters |
|
||||
Description | scl-exit is posted when the user has finished moving a scrollbar. |
Category | Native procedure | |||
Format | (scl-get-val id) | |||
Parameters |
|
|||
Description | scl-get-val returns the values of the scrollbar with
id id as a list of 4 integers:
Have a look at the sample program showing the interaction between fields and scrollbars. |
|||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | UI event | ||||||
Format | (scl-repeat id new old) | ||||||
Parameters |
|
||||||
Description | scl-repeat is posted continuously while the user is moving a scrollbar. You should return #f from your handler to make it work properly. |
Category | Native procedure | ||||
Format | (scl-set-val id vals) | ||||
Parameters |
|
||||
Description | scl-set-val sets the values of the scrollbar with
id id. vals must be a list of
4 integers indicating:
|
The return value is vals.||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | |||
Format | (serial-get-cts serial) | |||
Parameters |
|
|||
Description | serial-get-cts returns the CTS timeout for the open serial port serial. The timeout is measured in ticks, there are (ticks-per-sec) ticks in a second. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (serial-get-timeout serial) | |||
Parameters |
|
|||
Description | serial-get-timeout returns the receive timeout for the open serial port serial. The timeout is measured in ticks, there are (ticks-per-sec) ticks in a second. The receive timeout specifies how long LispMe waits for data on a serial port. If no data arrives in time, EOF is assumed and the read operation is terminated. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||||||||||||||||||||
Format | (serial-info serial) | |||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||
Description | serial-info returns general information about
the open serial port serial as a list of 5 items:
|
|||||||||||||||||||||
R4RS Compliance | LispMe extension | |||||||||||||||||||||
Examples |
|
Category | Native procedure | |||
Format | (serial-input serial) | |||
Parameters |
|
|||
Description | serial-input returns the input port associated with serial. This port can be used as an argument to read etc. to read data from the underlying serial device. Closing this port doesn't affect the serial device. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (serial-number) | |||
Parameters |
|
|||
Description | serial-number returns the serial number of the handheld device as a string. If there doesn't exist a serial number (e.g. with the Palm emulator), #f is returned. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (serial-output serial) | |||
Parameters |
|
|||
Description | serial-output returns the output port associated with serial. This port can be used as an argument to display etc. to write data to the underlying serial device. Closing this port doesn't affect the serial device. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (serial-receive-flush serial) | |||
Parameters |
|
|||
Description | serial-receive-flush discards all data in the receive buffer of the serial device serial. If during the receive timeout (see serial-get-timeout) more data arrives, the buffer is flushed again, the timeout counter is reset, and the function waits again. The return value is #t is successful, #f otherwise. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (serial-send-flush serial) | |||
Parameters |
|
|||
Description | serial-send-flush discards any data not yet sent from the send buffer of the serial device serial. The return value is #t is successful, #f otherwise. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | ||||
Format | (serial-set-break! serial set) | ||||
Parameters |
|
||||
Description | serial-set-break! sets or clears the Break signal on the open serial port serial. The signal is set when set is #t, cleared otherwise. The return value is #t when successful, #f otherwise, | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||
Format | (serial-set-cts! serial timeout) | ||||
Parameters |
|
||||
Description | serial-set-cts! sets the CTS timeout for the open serial port serial. The timeout is measured in ticks, there are (ticks-per-sec) ticks in a second. If successfull, #t is returned, #f otherwise. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||
Format | (serial-set-irda! serial set) | ||||
Parameters |
|
||||
Description | serial-set-irda! enables or disables IrDA connections on the open serial port serial. IrDA is enabled when set is #t, disabled otherwise. The return value is #t when successful, #f otherwise, | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||
Format | (serial-set-rx! serial set) | ||||
Parameters |
|
||||
Description | serial-set-rx! enables or disables the IrDA receiver for the open serial port serial. The receiver is enabled when set is #t, disabled otherwise. The return value is #t when successful, #f otherwise, | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||
Format | (serial-set-timeout! serial timeout) | ||||
Parameters |
|
||||
Description | serial-set-timeout! sets the receive timeout for the open serial port serial. The timeout is measured in ticks, there are (ticks-per-sec) ticks in a second. The return value is timeout. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||||||||||
Format | (serial-status serial) | ||||||||||||
Parameters |
|
||||||||||||
Description | serial-status returns the current status of
the open serial port serial as a pair of
status flags and the number of line errors.
The status is the logical or of the following bit flags
(see System/SerialMgr.h):
|
||||||||||||
R4RS Compliance | LispMe extension | ||||||||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (serial? obj) | ||||||
Parameters |
|
||||||
Description | serial? returns #t for a serial port and #f for any other object. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Special form | ||||||
Format | (set! var expr) | ||||||
Parameters |
|
||||||
Description | set! evaluates expr and assigns the
value to var. var must be
bound (by
define,
lambda,
let, or
letrec),
or an error results. Though R4RS doesn't specify a return value for set!, in LispMe the assigned value is returned. |
||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | ||||
Format | (set-car! pair obj) | ||||
Parameters |
|
||||
Description | set-car! changes the car component of pair to obj and returns the modified pair. | ||||
R4RS Compliance | Full | ||||
Examples |
|
Category | Primitive procedure | ||||
Format | (set-cdr! pair obj) | ||||
Parameters |
|
||||
Description | set-cdr! changes the cdr component of pair to obj and returns the modified pair. | ||||
R4RS Compliance | Full | ||||
Examples |
|
Category | Native procedure | ||||
Format | (set-clipboard-text obj app?) | ||||
Parameters |
|
||||
Description | set-clipboard-text sets the contents of the system clipboard to the printed representation of obj (by using display). If app? is #f, the current clipboard content is replaced, otherwise obj is appended to the current content. The return value is always obj. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||||||
Format | (set-palette index r g b) | ||||||||
Parameters |
|
||||||||
Description | set-palette modifies the current colortable
(palette) by setting the entry index to the
given r g b values. Though according to the
SDK, only indexes from 231 to 254 should be used for user-defined
colors, you can modify any index using this procedure.
The value returned is index. On systems running older OS versions than 3.5, this procedure does nothing. |
||||||||
R4RS Compliance | LispMe extension | ||||||||
Examples |
|
Category | Deprecated | |||
Format | (set-resdb str) | |||
Parameters |
|
|||
Description | set-resdb sets the name of the resource database
being used in future calls to user interface functions. Only
one resource DB can be active at any time, if another DB is
already open, it'll be closed. Note, that the DB name is case-sensitive.
The parameter #f closes the current resource DB. The return
value is str. Beginning with LispMe 3.0, this procedure is obsolete. Setting a special resource database is no more necessary. Instead, LispMe will find the needed resources in any open resource database. If you want to store a reference to an open resource database, the *resdb* variable comes handy. |
|||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | ||||||
Format | (set-sys-pref n val) | ||||||
Parameters |
|
||||||
Description | set-sys-pref converts val to an
unsigned 32 bit integer and sets it as the value of the PalmOS
system preference with the index n. This index
corresponds to the enumeration
SystemPreferencesChoice defined in System/Preferences.h
The value returned is n See also get-sys-pref. |
||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Native procedure | |||
Format | (set-ticks! ticks) | |||
Parameters |
|
|||
Description | set-ticks! updates the ticks value ticks to the current ticks (since device reset). The return value is the assigned ticks value. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (sin z) | |||||||||
Parameters |
|
|||||||||
Description | sin computes the sine of the number z.
z is an angle measured in radians.
For complex arguments z = x + yi,
the formula |
|||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (sinh z) | |||||||||
Parameters |
|
|||||||||
Description | sinh computes the hyperbolic sine of the number
z.
For complex arguments z = x + yi,
the formula |
|||||||||
R4RS Compliance | LispMe extension | |||||||||
Examples |
|
Category | Native procedure | |||
Format | (socket-down? socket) | |||
Parameters |
|
|||
Description | socket-down? returns #t if the socket socket has been shut down by socket-shutdown or #f otherwise. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-host-address socket) | |||
Parameters |
|
|||
Description | socket-host-address returns a string containing the IP address of the distant host attached to socket. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-hostname socket) | |||
Parameters |
|
|||
Description | socket-hostname returns a string containing the official name of the distant host attached to socket. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-input socket) | |||
Parameters |
|
|||
Description | socket-input returns the input port associated with socket. This port can be used as an argument to read etc. to read data from the underlying socket. When this port is closed by close-input-port, the socket is shut down in input direction. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-local-address socket) | |||
Parameters |
|
|||
Description | socket-local-address returns a string containing the IP address of the local host attached to socket. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-output socket) | |||
Parameters |
|
|||
Description | socket-output returns the output port associated with socket. This port can be used as an argument to display etc. to write data to the underlying socket. When this port is closed by close-output-port, the socket is shut down in output direction. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (socket-port-number socket) | |||
Parameters |
|
|||
Description | socket-port-number returns an integer which is the port number of the local host attached to socket. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | ||||
Format | (socket-shutdown socket [close]) | ||||
Parameters |
|
||||
Description | socket-shutdown shuts down the socket socket in both input and output directions and optionally closes it if close is not #f or is omitted. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (socket? obj) | ||||||
Parameters |
|
||||||
Description | socket? returns #t for a socket and #f for any other object. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Native procedure | ||||
Format | (sound freq time) | ||||
Parameters |
|
||||
Description | sound plays a sound of frequency freq
(measured in Hertz) for time milliseconds.
time and freqmust be positive or an
error results. Frequencies below 128 seem to be wrongly reproduced by the Pilot, so they're not allowed. |
||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (sqrt z) | |||||||||
Parameters |
|
|||||||||
Description | sqrt returns the square root of a number z. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (strarr-length stringarray) | ||||||
Parameters |
|
||||||
Description | strarr-length returns the number of strings in string array. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure | ||||
Format | (strarr-ref stringarray index) | ||||
Parameters |
|
||||
Description | strarr-ref returns the indexth string of stringarray. The index of the first string is 0, and the index of the last string is the length of stringarray minus one. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | |||||||||
Format | (string->list string) | |||||||||
Parameters |
|
|||||||||
Description | string->list returns a newly allocated list of the characters in string. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (string->object string) | ||||||||||||
Parameters |
|
||||||||||||
Description | string->object uses the standard LispMe parser to create an object from its textual representation string, so all kind of syntax errors are possible. The type of the object is solely determined by the contents of string. string must not be larger than 4096 characters. | ||||||||||||
R4RS Compliance | LispMe extension. string->object subsumes R4RS procedures string->symbol and string->number. | ||||||||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (string-append stringi ...) | |||||||||
Parameters |
|
|||||||||
Description | string-append returns a newly allocated string, which is the concatenation of all the stringi in the order written. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (string-length string) | |||||||||
Parameters |
|
|||||||||
Description | string-length returns the number of characters in string. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (string-lower string) | ||||||
Parameters |
|
||||||
Description | string-lower creates a newly allocated string containing the characters of string converted to lower case. Accented chars are converted correctly. Please note that there is no string-upper, since the Palm API doesn't have this functionality, either. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (string-ref string index) | ||||||
Parameters |
|
||||||
Description | string-ref returns the indexth character of string. The index of the first character is 0, and the index of the last character is the length of string minus one. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (string-set! string index char) | ||||||
Parameters |
|
||||||
Description | string-set! replaces the indexth character of string by char. The modified string is returned. The index of the first character is 0, and the index of the last character is the length of string minus one. It's no error to modify a constant string in LispMe, as all values are heap-allocated and strings are never shared, so the examples are valid. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure | ||||
Format | (string-tokenize string sepset) | ||||
Parameters |
|
||||
Description | string-tokenize creates a list of strings which are obtained by splitting string into substrings terminated by any of the characters in sepset. This function is similar to C's strtok() but returns all tokens at once. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (string=? string1 string2) | |||||||||
Parameters |
|
|||||||||
Description | string=? returns #t, if both strings consist of the same characters at corresponding index positions and both strings have the same length. Otherwise #f is returned. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (string? obj) | |||||||||
Parameters |
|
|||||||||
Description | string? returns #t for a string and #f for any other object. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (substring string start end) | ||||||||||||
Parameters |
|
||||||||||||
Description | substring returns a newly allocated substring of string starting at index start including characters up to index end-1. The index of the first character is 0, and the index of the last character is the length of string minus one. If end is less or equal to start, the empty string is returned. end may be greater than the length of string. | ||||||||||||
R4RS Compliance | It's no error, when the second index end is out of bounds. In this case, the empty string or all characters upto the end of string are returned. | ||||||||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (symbol? obj) | |||||||||
Parameters |
|
|||||||||
Description | symbol? returns #t for a symbol and #f for any other object. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Back to index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Other