CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::ui::anim::SpriteStore::FrameView Struct Reference

Replay accessors: geometry, flags and pixel pointers of a sprite. More...

#include <CanvasAnim.h>

Public Attributes

const uint8_t * data = nullptr
 Current frame pixels.
const uint8_t * mask = nullptr
 Mask plane or null.
uint16_t w = 0
uint16_t h = 0
uint8_t flags = 0
uint8_t scale = 1
uint16_t scrollX = 0
 Scroll position (scrollWindow > 0).
uint16_t scrollWindow = 0
 Window width; 0 = not scrolling.
uint16_t scrollGap = 0
 Blank gap between wraps.

Detailed Description

Replay accessors: geometry, flags and pixel pointers of a sprite.

Definition at line 267 of file CanvasAnim.h.

Member Data Documentation

◆ data

const uint8_t* cdc::ui::anim::SpriteStore::FrameView::data = nullptr

Current frame pixels.

Definition at line 268 of file CanvasAnim.h.

Referenced by cdc::ui::anim::SpriteStore::frameView(), and host_surface_draw_sprite().

◆ flags

uint8_t cdc::ui::anim::SpriteStore::FrameView::flags = 0

◆ h

uint16_t cdc::ui::anim::SpriteStore::FrameView::h = 0

◆ mask

const uint8_t* cdc::ui::anim::SpriteStore::FrameView::mask = nullptr

Mask plane or null.

Definition at line 269 of file CanvasAnim.h.

Referenced by cdc::ui::anim::SpriteStore::frameView(), and host_surface_draw_sprite().

◆ scale

uint8_t cdc::ui::anim::SpriteStore::FrameView::scale = 1

◆ scrollGap

uint16_t cdc::ui::anim::SpriteStore::FrameView::scrollGap = 0

Blank gap between wraps.

Definition at line 275 of file CanvasAnim.h.

Referenced by cdc::ui::anim::SpriteStore::frameView().

◆ scrollWindow

uint16_t cdc::ui::anim::SpriteStore::FrameView::scrollWindow = 0

Window width; 0 = not scrolling.

Definition at line 274 of file CanvasAnim.h.

Referenced by cdc::ui::anim::SpriteStore::frameView().

◆ scrollX

uint16_t cdc::ui::anim::SpriteStore::FrameView::scrollX = 0

Scroll position (scrollWindow > 0).

Definition at line 273 of file CanvasAnim.h.

Referenced by cdc::ui::anim::SpriteStore::frameView().

◆ w

uint16_t cdc::ui::anim::SpriteStore::FrameView::w = 0

The documentation for this struct was generated from the following file: