morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::forms::ValueContext Struct Reference

The session options a value conversion reads. More...

#include <values.hpp>

Public Attributes

render::NumericLocale locale {}
 How numbers are typed and shown. The views must outlive the context.
int displayOffsetMinutes = 0
 The display zone for date-times, in minutes east of UTC.
render::TranslationProvider translations
 The host's catalog, for error messages; empty means none.
std::string bcp47 = "en"
 The locale to resolve messages in.

Detailed Description

The session options a value conversion reads.

Definition at line 68 of file values.hpp.

Member Data Documentation

◆ locale

render::NumericLocale morph::forms::ValueContext::locale {}

How numbers are typed and shown. The views must outlive the context.

Definition at line 70 of file values.hpp.

◆ displayOffsetMinutes

int morph::forms::ValueContext::displayOffsetMinutes = 0

The display zone for date-times, in minutes east of UTC.

Definition at line 72 of file values.hpp.

◆ translations

render::TranslationProvider morph::forms::ValueContext::translations

The host's catalog, for error messages; empty means none.

Definition at line 74 of file values.hpp.

◆ bcp47

std::string morph::forms::ValueContext::bcp47 = "en"

The locale to resolve messages in.

Definition at line 76 of file values.hpp.


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