IFunctionEditorHost

References
public interface IFunctionEditorHost
Endpoint-specific behaviour for a FunctionEditorForm. Supplies the functions and aspect the pop-out opens with, and receives the user's edits so the owning object can update itself.

Properties

Frame

#
FrameF Frame { get; }
Frame the pop-out opens with.

Functions

#
FunctionUi[] Functions { get; }
Functions to load into the pop-out (copied, not shared).

Ratio

#
double Ratio { get; }
Visible ratio (y-units-per-pixel / x-units-per-pixel) the pop-out opens at. This is the owner's on-screen ratio, not its stored target: the target is not maintained while an axis is locked, so only the visible ratio is guaranteed to match what the user is looking at. Axis locks are deliberately not carried over, so the pop-out stays freely navigable (e.g. to reach a grip outside a locked domain).

Title

#
string Title { get; }
Window title.

Methods

FrameChanged

#
void FrameChanged(FrameF frame)
Apply the pop-out's current frame to the owner (pan / zoom).
frame (FrameF)

FunctionsEdited

#
void FunctionsEdited(FunctionUi[] functions, FrameF frame)
Apply the pop-out's current functions to the owner.
functions (FunctionUi[])
frame (FrameF)

Opened

#
void Opened()
Called once immediately after the window is shown.