Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::DocumentPresenter Class Reference

Owns the installed frame; raster and chrome callbacks receive the same immutable object. More...

#include "donner/editor/DocumentPresenter.h"

Public Member Functions

 DocumentPresenter (FramePresentationSink sink)
bool present (std::shared_ptr< const FramePresentation > frame)
 Install a sealed frame. An older frame cannot supersede a newer installed frame.
std::shared_ptr< const FramePresentation > currentFrame () const
 Frame retained by both presentation passes.

Detailed Description

Owns the installed frame; raster and chrome callbacks receive the same immutable object.

Constructor & Destructor Documentation

◆ DocumentPresenter()

donner::editor::DocumentPresenter::DocumentPresenter ( FramePresentationSink sink)
explicit
Parameters
sinkInstalls every draw pass for the frame, or clears them on null.

Member Function Documentation

◆ present()

bool donner::editor::DocumentPresenter::present ( std::shared_ptr< const FramePresentation > frame)

Install a sealed frame. An older frame cannot supersede a newer installed frame.

Parameters
frameComplete presentation, or null to clear the draw callbacks.
Returns
False when a stale or conflicting frame identity was refused.

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