DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
DekiEditor::Localization::ScopedPackage Class Reference

While it lives, Tr and TrLabel look in package's own table first, so text a package's class shows (its component, property and enum names) reads as that package translates it even when the editor or another package translates the same English word differently: deki-fsm's "Add" (an arithmetic operation) is not the editor's "Add" button. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/Localization.h>

Public Member Functions

 ScopedPackage (const char *package)
 ~ScopedPackage ()
 ScopedPackage (const ScopedPackage &)=delete
ScopedPackage & operator= (const ScopedPackage &)=delete

Detailed Description

While it lives, Tr and TrLabel look in package's own table first, so text a package's class shows (its component, property and enum names) reads as that package translates it even when the editor or another package translates the same English word differently: deki-fsm's "Add" (an arithmetic operation) is not the editor's "Add" button.

Draw each component or node inside one, with Deki::ComponentMeta::package or DekiNodeMeta::package. nullptr or "" means the shared table only. Scopes nest.

Constructor & Destructor Documentation

◆ ScopedPackage() [1/2]

DekiEditor::Localization::ScopedPackage::ScopedPackage ( const char * package)
explicit

◆ ~ScopedPackage()

DekiEditor::Localization::ScopedPackage::~ScopedPackage ( )

◆ ScopedPackage() [2/2]

DekiEditor::Localization::ScopedPackage::ScopedPackage ( const ScopedPackage & )
delete

Member Function Documentation

◆ operator=()

ScopedPackage & DekiEditor::Localization::ScopedPackage::operator= ( const ScopedPackage & )
delete

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