racket/collects/embedded-gui/scribblings/stretchable-snip.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

31 lines
865 B
Racket

#lang scribble/doc
@(require "common.rkt")
@definterface/title[stretchable-snip<%> ()]{
Must be implemented by any snip class whose objects will be
stretchable when inserted into an @racket[aligned-pasteboard<%>]
within a @racket[snip-wrapper%].
@defmethod[(get-aligned-min-width) (and/c real? (not/c negative?))]{
The minimum width that the snip can be resized to.}
@defmethod[(get-aligned-min-height) (and/c real? (not/c negative?))]{
The minimum height that the snip can be resized to.}
@defmethod*[([(stretchable-width) boolean?]
[(stretchable-width [stretch? boolean?]) void?])]{
Gets/sets whether or not the snip can be stretched in the X
dimension.}
@defmethod*[([(stretchable-height) boolean?]
[(stretchable-height [stretch? boolean?]) void?])]{
Gets/sets whether or not the snip can be stretched in the Y
dimension.}
}