Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::SamplePickerController Class Reference

Applies sample-picker actions that cross the editor's platform boundary. More...

#include "donner/editor/SamplePickerController.h"

Public Member Functions

 SamplePickerController (ExternalUrlLaunchFunction launchExternalUrl=LaunchExternalUrl)
bool applyExternalActions (const SamplePickerActions &actions) const
 Apply external side effects requested by the presenter.

Detailed Description

Applies sample-picker actions that cross the editor's platform boundary.

Constructor & Destructor Documentation

◆ SamplePickerController()

donner::editor::SamplePickerController::SamplePickerController ( ExternalUrlLaunchFunction launchExternalUrl = LaunchExternalUrl)
explicit
Parameters
launchExternalUrlPlatform URL launch port. Tests may provide a recording fake.

Member Function Documentation

◆ applyExternalActions()

bool donner::editor::SamplePickerController::applyExternalActions ( const SamplePickerActions & actions) const
nodiscard

Apply external side effects requested by the presenter.

Parameters
actionsSemantic actions emitted for the current frame.
Returns
True when an external launch was requested and accepted.

The documentation for this class was generated from the following file: