On this page:
new
top
up

10Editor SnipπŸ”— i

implements: editor-snip%

method

(send an-editor-snip:decorated get-corner-bitmap )

Returns a bitmap that is drawn in the upper-right corner of this snip.

method

(send an-editor-snip:decorated get-color )

Returns the color used to draw the background part of the snip.

method

(send an-editor-snip:decorated get-menu )

Returns a popup menu that is used when clicking on the top part of the snip.

method

(send an-editor-snip:decorated get-position )

(symbols 'top-right'left-top)
Returns the location of the image and the clickable region. The symbol 'top-right indicates top portion is clickable and icon on right. The symbol 'left-top means left portion is clickable and icon on top.

method

(send an-editor-snip:decorated reset-min-sizes )void?

Sets the minimum sizes based on the result of get-corner-bitmap .

argument extends/implements: editor-snip%
result implements: editor-snip:decorated<%>

method

(send an-editor-snip:decorated get-corner-bitmap )

Returns #f.

method

(send an-editor-snip:decorated get-color )

Returns
(if (preferences:get 'framework:white-on-black?)
"white"
"black")

method

(send an-editor-snip:decorated get-menu )

Returns #f.

method

(send an-editor-snip:decorated get-position )

(symbols 'top-right'left-top)
Returns 'top-right.

constructor

( new editor-snip:decorated% ...superclass-args...)

Invokes the super constructor with the keyword editor as a call to make-editor .

method

(send an-editor-snip:decorated make-snip )

This method should return an instance of the class it is invoked in. If you create a subclass of this class, be sure to override this method and have it create instances of the subclass.

method

(send an-editor-snip:decorated make-editor )

Creates an editor to be used in this snip.

method

(send an-editor-snip:decorated copy )

Uses the make-editor and make-snip methods to create a copy of this snip, as follows:

#lang (let ([snip(make-snip)])(send snipset-editor(send (get-editor)copy-self))(send snipset-style(get-style))snip)

superclass:snip-class%

method

(send an-editor-snip:decorated-snipclass make-snip stream-in)

Returns an instance of editor-snip:decorated% .

method

(send an-editor-snip:decorated-snipclass read stream-in)

Calls make-snip to get an object and then invokes its editor<%> ’s read-from-file method in order to read a snip from stream-in, eg:
(let ([snip(make-snipstream-in)])
(send (send snipget-editor)read-from-filestream-in#f)
snip)

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /