1 Containers
2 Controls
3 Control Snips
4 Helpers
5 Snip Functions
On this page:
get-aligned-min-width
get-aligned-min-height
stretchable-width
stretchable-height
Version: 4.0.2

 

stretchable-snip<%> : interface?

Must be implemented by any snip class whose objects will be stretchable when inserted into an aligned-pasteboard<%> within a snip-wrapper%.

(send a-stretchable-snip get-aligned-min-width)

  (and/c real? (not/c negative?))

The minimum width that the snip can be resized to.

(send a-stretchable-snip get-aligned-min-height)

  (and/c real? (not/c negative?))

The minimum height that the snip can be resized to.

(send a-stretchable-snip stretchable-width)  boolean?

(send a-stretchable-snip stretchable-width stretch?)  void?

  stretch? : boolean?

Gets/sets whether or not the snip can be stretched in the X dimension.

(send a-stretchable-snip stretchable-height)  boolean?

(send a-stretchable-snip stretchable-height stretch?)  void?

  stretch? : boolean?

Gets/sets whether or not the snip can be stretched in the Y dimension.