Skip to content

Latest commit

 

History

History
126 lines (91 loc) · 3.58 KB

File metadata and controls

126 lines (91 loc) · 3.58 KB

FROG logo

Default Realization — Boolean Widgets

Default realization posture for standardized boolean widgets
FROG — Free Open Graphical Language


Navigation


1. Overview

This document describes the default realization posture for the standardized boolean widget classes:

  • frog.widgets.boolean_control
  • frog.widgets.boolean_indicator

It does not define boolean widget semantics. The class law belongs to Libraries/Widgets/Boolean.md. This document describes how the default realization family can embody that law through SVG template resources, part bindings, state maps, and realization variants.


2. Label, Caption, and State Text

The default boolean realization follows the shared widget convention:

  • label realizes the structural/logical label surface when a host chooses to expose it.
  • caption realizes the front-panel display caption.
  • state_text realizes optional internal true/false text.

3. Published Default Variants

  • rectangular
  • circular
frog.widgets.boolean_control
frog.widgets.boolean_indicator
    |
    +-- frog.realizations.default.boolean.rectangular
    |
    +-- frog.realizations.default.boolean.circular

4. Machine-Readable Manifest

Libraries/Realizations/Default/boolean.default.wfrog

That manifest declares target classes, realization records, variants, SVG resources, part bindings, state maps, property bindings, anchors, and host hints.


5. Public Parts Realized

  • root
  • label
  • caption
  • outer_face
  • inner_face
  • state_text
  • focus_ring

6. SVG Template Assets

  • assets/boolean/templates/boolean_rectangular.svg
  • assets/boolean/templates/boolean_circular.svg

7. Property Binding Posture

boolean public property
    -> realization property binding
        -> SVG template part or host-rendered surface

Representative bindings include label.text to label, caption.text to caption, state_text.true_text and state_text.false_text to state_text, style.outer.* to outer_face, style.inner.* to inner_face, and style.focus_ring.* to focus_ring.


8. Summary

The default boolean realization keeps class law in Libraries/Widgets/Boolean.md, publishes SVG template resources under assets/boolean/, and binds them through boolean.default.wfrog.