
Also, updates some of the mzlib files to point at `racket/*' libraries rather than to `scheme/*' ones.
24 lines
809 B
Racket
24 lines
809 B
Racket
#lang scribble/doc
|
|
@(require "common.rkt" (for-label mrlib/bitmap-label))
|
|
|
|
@title{Bitmap Label}
|
|
|
|
@defmodule[mrlib/bitmap-label]
|
|
|
|
@defproc[(make-bitmap-label [str string?]
|
|
[img (or/c (is-a?/c bitmap%) path-string?)]
|
|
[font (is-a?/c font%) normal-control-font])
|
|
(is-a?/c bitmap%)]{
|
|
|
|
Constructs a bitmap label suitable for use a button that contains the
|
|
image specified by @racket[img] followed by the text in @racket[str].}
|
|
|
|
|
|
@defproc[((bitmap-label-maker [str string?]
|
|
[img (or/c (is-a?/c bitmap%) path-string?)])
|
|
[future-parent (is-a?/c area-container<%>)])
|
|
(is-a?/c bitmap%)]{
|
|
|
|
And older variant of @racket[make-bitmap-label] that obtains a
|
|
font to use from a container @racket[future-parent].}
|