dplug.wren

Dplug's wren bridge.

Modules

describe
module dplug.wren.describe

Structure to describe D classes with properties dynamically, to avoid generating Wren code ahead of time. Also saves some D code for properties.

wren_ui
module dplug.wren.wren_ui

Dplug-Wren stdlib. This API is accessed from Wren with import "ui".

wrensupport
module dplug.wren.wrensupport

Dplug's wren bridge.

Public Imports

dplug.wren.wrensupport
public import dplug.wren.wrensupport;
Undocumented in source.

Members

Functions

disableWrenSupport
void disableWrenSupport(IUIContext context)

Disable wren support, meaning it will release the Wren VM and integration. Call this in your gui.d ~this.

enableWrenSupport
void enableWrenSupport(IUIContext context)

Create wren support for this UI tree, puts it in UIContext under pimpl idiom. Returns the Wren support object. Call this in your gui.d this.

fieldIdentifiersAreIDs
string fieldIdentifiersAreIDs()

All widgets (derivatives of UIElement) have a string ID. mixin this code to automatically set widgets ID. It generates _member.id = "_member"; for every field that is @ScriptExport, in order to find them from Wren.

wrenSupport
WrenSupport wrenSupport(IUIContext context)

Get the WrenSupport object that holds all wren state and integration with the plugin. The rest of the public API follows in dplug.wren.wrensupport

Meta