racket/collects/mrlib/scribblings/bitmap-label.scrbl
Eli Barzilay ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00

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].}