Skip to main content

Module editor

Module editor 

Source
Expand description

Traits for working with plugin editors.

Modules§

dpi

Structs§

DummyEditorError
HostMethods
Callbacks that baseview windows can use to interact with the host.
Modifiers
Modifier keys held while a keyboard event was generated, as reported by [Editor::on_virtual_key_from_host]. Use the standard bitflags API (contains, intersects, is_empty, etc.) to query individual modifiers.
ResizeHint
Describes whether and how a host may resize an Editor, returned from Editor::resize_hint().
SpawnedEditor
An EditorHandle and window pair spawned with Editor::spawn().

Enums§

ParentWindowHandle
A raw window handle for platform and GUI framework agnostic editors. This implements HasWindowHandle so it can be used directly with GUI libraries that use the same raw_window_handle version. If the library links against a different version of raw_window_handle, then you’ll need to wrap around this type and implement the trait yourself.
SizeConstraints
The minimum/maximum size constraints for an editor window.
VirtualKeyCode
A non-character key delivered to EditorHandle::on_virtual_key_from_host. Variant names mirror standard keyboard nomenclature; printable ASCII characters never appear here because they flow through the plugin window’s native keyboard path instead.

Traits§

Editor
An editor for a Plugin.
EditorHandle
A handle to spawned instance of an Editor.
HostCallbacks
A handler for baseview windows to interact with their host.
HostMainThreadCaller
A special handler for the Window thread to wake up and call methods on the main thread.