documentation
This commit is contained in:
@@ -83,7 +83,7 @@ If a parent is supplied, the underlying lower-level parent window is passed to
|
||||
@racket[webview-create].
|
||||
}
|
||||
|
||||
@defmethod[(context) any/c]{
|
||||
@defmethod[(context) (is-a?/c wv-context%)]{
|
||||
|
||||
Returns the window context object supplied at construction.
|
||||
}
|
||||
@@ -268,6 +268,37 @@ internal cache.
|
||||
The returned value is the list produced by @racket[webview-unbind!].
|
||||
}
|
||||
|
||||
@defmethod[(set-menu! [menu is-wv-menu?])
|
||||
(is-a?/c wv-window%)]{
|
||||
|
||||
Installs @racket[menu] in this window and returns this window.
|
||||
|
||||
The accepted argument follows the contract of @racket[webview-set-menu!]. The
|
||||
method delegates to:
|
||||
|
||||
@racketblock[
|
||||
(webview-set-menu! wv menu)
|
||||
]
|
||||
}
|
||||
|
||||
@defmethod[(connect-menu! [id symbol?] [callback procedure?])
|
||||
(is-a?/c wv-window%)]{
|
||||
|
||||
Connects @racket[callback] to the menu item identified by @racket[id].
|
||||
|
||||
The method installs a binding for the @racket['menu-item-choosen] event by
|
||||
delegating to:
|
||||
|
||||
@racketblock[
|
||||
(send this bind! id 'menu-item-choosen
|
||||
(λ (el evt data)
|
||||
(callback)))
|
||||
]
|
||||
|
||||
The callback is invoked without arguments when the corresponding menu item is
|
||||
chosen.
|
||||
}
|
||||
|
||||
@defmethod[(set-title! [title string?]) any/c]{
|
||||
|
||||
Sets the window title.
|
||||
|
||||
Reference in New Issue
Block a user