Skip to content

Instantly share code, notes, and snippets.

@tronical
Created June 24, 2021 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tronical/4d6f0f08e0441159199db9b0e123a723 to your computer and use it in GitHub Desktop.
Save tronical/4d6f0f08e0441159199db9b0e123a723 to your computer and use it in GitHub Desktop.

Project index

  • Namespace sixtyfps

    • ArrayModel - A Model backed by an array of constant size

    • ComponentHandle - The component handle is like a shared pointer to a component in the generated code.

    • ComponentWeakHandle - A weak reference to the component. Can be constructed from a ComponentHandle<T>

    • IntModel - Model to be used when we just want to repeat without data.

    • Model

    • Timer - A Timer that can call a callback at repeated interval

    • VectorModel - A Model backed by a SharedVector

    • Namespace sixtyfps::interpreter

      The types in this namespace allow you to load a .60 file at runtime and show its UI.

      You only need to use them if you do not want to use pre-compiled .60 code, which is the normal way to use SixtyFPS.

      The entry point for this namespace is the ComponentCompiler, which you can use to create ComponentDefinition instances with the ComponentCompiler::build_from_source() or ComponentCompiler::build_from_path() functions.

      • ComponentCompiler - ComponentCompiler is the entry point to the SixtyFPS interpreter that can be used to load .60 files or compile them on-the-fly from a string (using build_from_source()) or from a path (using build_from_source())

      • ComponentDefinition - ComponentDefinition is a representation of a compiled component from .60 markup.

      • ComponentInstance - The ComponentInstance represents a running instance of a component.

      • Diagnostic - Diagnostic describes the aspects of either a warning or an error, along with its location and a description. Diagnostics are typically returned by sixtyfps::interpreter::ComponentCompiler::diagnostics() in a vector.

      • DiagnosticLevel - DiagnosticLevel describes the severity of a diagnostic.

      • PropertyDescriptor - PropertyDescriptor is a simple structure that’s used to describe a property declared in .60 code. It is returned from in a vector from sixtyfps::interpreter::ComponentDefinition::properties().

      • Struct - This type represents a runtime instance of structure in .60.

      • Value - This is a dynamically typed value used in the SixtyFPS interpreter.

    • invoke_from_event_loop - Adds the specified functor to an internal queue, notifies the event loop to wake up.

    • Namespace sixtyfps::testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment