Skip to main content

Crate oxframe_macros

Crate oxframe_macros 

Source
Expand description

Macros re-exported by the oxframe facade. Generated code refers to ::oxframe, so they are meant to be used through it.

Status: oxframe is under very active development. The API is not stable yet and may change from version to version. Pin the exact version in your Cargo.toml and check the changelog before upgrading.

Macros§

color
color!("#e13238") — a Color checked at compile time. Accepts #rgb, #rgba, #rrggbb and #rrggbbaa.
ease
ease!("slide") or ease!("slide", presets::OUT_BACK) — a named Bézier easing editable in the curve editor; the value lives in meta.json.
tune
tune!("speed", 1.4) — a number editable with a slider in the inspector; the value lives in meta.json.

Attribute Macros§

scene
Turns async fn intro(view: View) { .. } into fn intro() -> SceneDef.

Derive Macros§

Node
A node of your own from a struct that implements Draw.