CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
host_anim_t Struct Reference

Tween description for host_anim_start(); zero-init unused fields. More...

#include <host_api.h>

Public Attributes

uint32_t elem_id
int16_t from_x
int16_t from_y
int16_t to_x
int16_t to_y
uint16_t duration_ms
uint16_t delay_ms
uint16_t repeat
uint8_t easing
uint8_t flags
uint32_t done_action_id
uint32_t start_after

Detailed Description

Tween description for host_anim_start(); zero-init unused fields.

Definition at line 1500 of file host_api.h.

Member Data Documentation

◆ delay_ms

uint16_t host_anim_t::delay_ms

Wait before the first run, 0..60000.

Definition at line 1507 of file host_api.h.

Referenced by host_anim_start().

◆ done_action_id

uint32_t host_anim_t::done_action_id

plugin_on_action(id, handle, elem_id) when a finite tween completes; 0 = none.

Definition at line 1512 of file host_api.h.

Referenced by host_anim_start().

◆ duration_ms

uint16_t host_anim_t::duration_ms

Active time per run, 1..60000.

Definition at line 1506 of file host_api.h.

Referenced by host_anim_start().

◆ easing

uint8_t host_anim_t::easing

HOST_EASE_*.

Definition at line 1510 of file host_api.h.

Referenced by host_anim_start().

◆ elem_id

uint32_t host_anim_t::elem_id

Target element (must exist).

Definition at line 1501 of file host_api.h.

Referenced by host_anim_start().

◆ flags

uint8_t host_anim_t::flags

HOST_ANIM_FLAG_*.

Definition at line 1511 of file host_api.h.

Referenced by host_anim_start().

◆ from_x

int16_t host_anim_t::from_x

Start offset (see FLAG_FROM_CURRENT).

Definition at line 1502 of file host_api.h.

Referenced by host_anim_start().

◆ from_y

int16_t host_anim_t::from_y

Definition at line 1503 of file host_api.h.

Referenced by host_anim_start().

◆ repeat

uint16_t host_anim_t::repeat

Extra runs: 0 = play once, HOST_ANIM_REPEAT_FOREVER = endless.

Definition at line 1508 of file host_api.h.

Referenced by host_anim_start().

◆ start_after

uint32_t host_anim_t::start_after

Live tween handle to chain behind; 0 = start immediately. Cancelling the predecessor cancels the whole chain.

Definition at line 1514 of file host_api.h.

Referenced by host_anim_start().

◆ to_x

int16_t host_anim_t::to_x

End offset.

Definition at line 1504 of file host_api.h.

Referenced by host_anim_start().

◆ to_y

int16_t host_anim_t::to_y

Definition at line 1505 of file host_api.h.

Referenced by host_anim_start().


The documentation for this struct was generated from the following file:
  • components/plugin_manager/include/plugin_manager/host_api.h