Racket | (require iup/base) |
---|---|
CHICKEN | (require-extension iup-base) |
(ihandle? [v any/c]) → boolean?
[thread-watchdog (or/c ihandle? #f)]
(iup-version) → string?
(load/led [file path-string?]) → void?
(attribute [handle (or/c ihandle? #f)] [name (or/c symbol? string?)]) → (or/c string? #f)
#f
, a global
attribute is accessed. Attribute values are always returned as strings,
which is the native form in which they are stored.
(attribute-set! [handle (or/c ihandle? #f)] [name (or/c symbol? string?)] [value any/c]) → void?
(set! (attribute [handle (or/c ihandle? #f)] [name (or/c symbol? string?)]) [value any/c]) → void?
#f
, a global
attribute is accessed. If the new value is not a string, it is converted
as follows:
Scheme Value | Native Value |
---|---|
#f |
NULL |
#t |
"YES" |
Handle | Possibly autogenerated global handle name |
Any other value | A string encoding of the value |
(attribute-reset! [handle (or/c ihandle? #f)] [name (or/c symbol? string?)]) → void?
#f
,
a global attribute is accessed.
(handle-name [handle ihandle?]) → (or/c symbol? string? #f)
(handle-name-set! [handle ihandle?] [name (or/c symbol? string? #f)]) → (or/c ihandle? #f)
(set! (handle-name [handle ihandle?]) [name (or/c symbol? string? #f)]) → (or/c ihandle? #f)
(handle-ref [name (or/c symbol? string?)) → (or/c ihandle? #f)
(main-loop) → void?
(main-loop-step [poll? any/c]) → (or/c boolean? symbol? integer?)
poll?
is true, the call returns immediately with
a false result in case there are no events to process. If poll?
is false, the call does not return until at least one event has been processed.
(main-loop-flush) → void?
(main-loop-level) → integer?
(main-loop-exit) → void?
(callback [handle ihandle?] [name (or/c symbol? string?)]) → (or/c procedure? pointer? #f)
NULL
return value is always
converted into a procedure.
(callback-set! [handle ihandle?] [name (or/c symbol? string?)] [proc (or/c procedure? pointer? #f)]) → void?
(set! (callback [handle ihandle?] [name (or/c symbol? string?)]) [proc (or/c procedure? pointer? #f)]) → void?
(make-constructor-procedure [proc procedure?]) → procedure?
#:apply-args [proc (-> list? list?)]
that
allows you to preprocess the positional argument list before it is handed to
the wrapped procedure.
Not re-exported from the [./main.wiki|main] module.
(create [class (or/c symbol? string?)] #: ...) → ihandle?
(destroy! [handle ihandle?]) → void?
(map-peer! [handle ihandle?]) → void?
(unmap-peer! [handle ihandle?]) → void?
(class-name [handle ihandle?]) → (or/c symbol? string?)
(class-type [handle ihandle?]) → (or/c symbol? string?)
(save-attributes! [handle ihandle?]) → void?
(parent [handle ihandle?]) → (or/c ihandle? #f)
(parent-dialog [handle ihandle?]) → (or/c ihandle? #f)
(sibling [handle ihandle?]) → (or/c ihandle? #f)
(child-add! [child ihandle?] [container ihandle?] [anchor (or/c ihandle? #f) #f]) → ihandle?
(child-remove! [child ihandle?]) → void?
(child-move! [child ihandle?] [parent ihandle?] [ref-child (or/c ihandle? #f) #f]) → void?
(child-ref [parent ihandle?] [id (or/c integer? symbol? name?)]) → (or/c ihandle? #f)
(child-pos [child ihandle?]) → (or/c integer? #f)
(child-x/y->pos [parent ihandle?] [x integer?] [y integer?]) → (or/c integer? #f)
(child-count [parent ihandle?]) → integer?
(children [parent ihandle?]) → (listof ihandle?)
in-children
or
:children
.
(refresh [handle ihandle?]) → void?
(redraw [handle ihandle?] #:children? [children? any/c #f] #:sync? [sync? any/c #f]) → void?
children?
is true, child
elements are also redrawn. If sync?
is true, the redrawing is
forced to happen immediately before the call returns.
(show [handle ihandle?] #:x [x (or/c symbol? integer?) 'current] #:y [y (or/c symbol? integer?) 'current] #:modal? [modal? any/c #f]) → (or/c boolean? symbol? integer?)
x
and y
arguments determine where
the dialog is placed on the screen and default to the current position. Apart
from pixel coordinates the following values are acceptable: 'center
,
'start
, 'top
, 'left
, 'end
,
'bottom
, 'right
, 'mouse
,
'parent-center
, 'current
.
If modal?
is true, the dialog is shown as a modal dialog and the
call only returns after the dialog is dismissed.
(hide [handle ihandle?]) → void?
(dialog [child (or/c ihandle? #f)] #: ...) → ihandle?
(fill #: ...) → ihandle?
(hbox [child ihandle?] ... #: ...) → ihandle?
(vbox [child ihandle?] ... #: ...) → ihandle?
(zbox [child ihandle?] ... #: ...) → ihandle?
(cbox [child ihandle?] ... #: ...) → ihandle?
(sbox [child ihandle?] #: ...) → ihandle?
(radio [child ihandle?] #: ...) → ihandle?
(normalizer [child ihandle?] ... #: ...) → ihandle?
(split [child0 ihandle?] [child1 ihandle?] #: ...) → ihandle?
(image/palette [width integer?] [height integer?] [pixels blob?] #: ...) → ihandle?
(image/rgb [width integer?] [height integer?] [pixels blob?] #: ...) → ihandle?
(image/rgba [width integer?] [height integer?] [pixels blob?] #: ...) → ihandle?
(image/file [file path-string?] #: ...) → ihandle?
(image-save [handle ihandle?] [file path-string?] [format (or/c symbol? string?)]) → void?
(current-focus) → (or/c ihandle? #f)
(current-focus [handle (or/c ihandle? #f)]) → (or/c ihandle? #f)
(focus-next [handle (or/c ihandle? #f) (current-focus)]) → (or/c ihandle? #f)
(focus-previous [handle (or/c ihandle? #f) (current-focus)]) → (or/c ihandle? #f)
(menu [child ihandle?] ... #: ...) → ihandle?
(menu-item [title (or/c string? #f)] [action/menu (or/c ihandle? symbol? string? #f)] #: ...) → ihandle?
(menu-separator #: ...) → ihandle?
(clipboard #: ...) → ihandle?
(timer #: ...) → ihandle?
(send-url [url string?]) → void?
[_ihandle ctype?]
[_ihandle/null ctype?]
NULL
.
Not re-exported from the [./main.wiki|main] module.
[_istatus ctype?]
[_iname/upcase ctype?]
[_iname/downcase ctype?]
(in-children [handle ihandle?]) → sequence?
ihandle
, nonnull-ihandle
,
ihandle-list
, istatus
, iname/upcase
and iname/downcase
in your own module, include the file
"iup-types.scm"
((ihandle->pointer [nonnull? any/c]) [handle (or/c ihandle? #f)]) → (or/c pointer? #f)
((pointer->ihandle [nonnull? any/c]) [handle (or/c pointer? #f)]) → (or/c ihandle? #f)
(ihandle-list->pointer-vector [handles (listof ihandle?)]) → pointer-vector?
NULL
-terminated
vector of pointers.
Not re-exported from the [./main.wiki|main] module.
(istatus->integer [status (or/c boolean? symbol? integer?)]) → integer?
(integer->istatus [status integer?]) → (or/c boolean? symbol? integer?)
((iname->string [default-case (one-of/c 'upcase 'downcase)]) [name (or/c symbol? string? #f)] → (or/c string? #f)
((string->iname [default-case (one-of/c 'upcase 'downcase)]) [name (or/c string? #f)]) → (or/c symbol? string? #f)
(optional-args [name default] ...)
#:apply-args
argument of make-constructor-procedure
which recognizes the given arguments with defaults and returns them in a list.
Not re-exported from the [./main.wiki|main] module.
(:children var [handle ihandle?])