| 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 | 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-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 | (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 | 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