Ferreteria/v0.6/sys/text/rendering
|
Ferreteria: text-rendering system
|
To Do
- Document how to access a Style from another object.
- Tentatively: get the device you want to write to (e.g. Screen), then use
$oDevice->Styles()->FindStyle(<style name>)(or->FindStyleSafe(), which should probably be renamed "FindStyleExact" OSLT).
- Tentatively: get the device you want to write to (e.g. Screen), then use
Clades
Example
Configuration:
$oStyles = Screen::Me()->Styles();
$oStyles->SetStyle(StylesMainSpace\OpenPage\cCmd::class);
$oStyles->SetStyle(StylesMainSpace\ShutPage\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\cCall::class);
$oStyles->SetStyle(StylesDiagSpace\CladeSpec\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\FileSpec\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\LineLabel\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\SpaceSlug\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\Stack\cAsTable::class);
$oStyles->SetStyle(StylesDiagSpace\Unavail\cCmd::class);
$oStyles->SetStyle(StylesDiagSpace\Table\cCmd::class);
$oStyles->SetStyle() registers each class using the class's static ClsSlug() slug-string.