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

Inputs to the window title / chrome derivation. More...

#include "donner/editor/NativeWindowChrome.h"

Public Attributes

std::optional< std::string > filePath
 Path of the open document, or std::nullopt for an untitled buffer.
std::optional< std::string > documentName
 Display name used for the title when no file path is set (e.g. the name of the built-in sample currently open). Ignored when filePath is set.
bool edited = false
 Whether the document has unsaved changes.

Detailed Description

Inputs to the window title / chrome derivation.

Member Data Documentation

◆ documentName

std::optional<std::string> donner::editor::WindowChromeState::documentName

Display name used for the title when no file path is set (e.g. the name of the built-in sample currently open). Ignored when filePath is set.

◆ edited

bool donner::editor::WindowChromeState::edited = false

Whether the document has unsaved changes.

◆ filePath

std::optional<std::string> donner::editor::WindowChromeState::filePath

Path of the open document, or std::nullopt for an untitled buffer.


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