racket/collects/embedded-gui/scribblings/stretchable-snip.scrbl
Matthew Flatt 6fcc293c4a embedded-gui docs
svn: r9389
2008-04-21 20:51:23 +00:00

31 lines
864 B
Racket

#lang scribble/doc
@(require "common.ss")
@definterface/title[stretchable-snip<%> ()]{
Must be implemented by any snip class whose objects will be
stretchable when inserted into an @scheme[aligned-pasteboard<%>]
within a @scheme[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.}
}