On this page:
View
View.handle
View.gui_  handle
View.get_  gui_  handle
View.normal_  control_  font
View.small_  control_  font
View.tiny_  control_  font
View.view_  control_  font
0.45+9.0

3.2 View Interface🔗ℹ

interface

interface gui.View:

  implementable hidden

A view describes a GUI window, control, or menu that is created when the view is rendered.

Implementations of View include Window, Button, Canvas, Menu, and MenuItem. Since the implementable name of View is kept private, all implementations or View are part of the gui library.

property

property (v :: gui.View).handle :: Any

Returns a Racket object that corresponds to the view for use directly with racket/gui/easy.

property

property (v :: gui.View).gui_handle :: Any

 

method

method (v :: gui.View).get_gui_handle(

  ~who: who :: maybe(error.Who) = #false

) :: Any

The View.gui_handle property and View.get_gui_handle method normally return the same value: a Racket-level object for the racket/gui library representing the most recent rendering of a view.

If the view has not been rendered, yet, View.gui_handle returns #false, while View.get_gui_handle throws an exception. The who argument to View.get_gui_handle is included in the exception message, if any.

A view might be rendered multiple times because it is nested multiple times within an enclosing view, or because render is used multiple time on the view or an enclosing view. Only the most recent rendering is accessible, even if it has become hidden and an older rendering is still active. See also Views, State, and Rendered Controls.

Standard fonts for GUI controls.