BSB Developer Docs
Loading...
Searching...
No Matches
CanvasElement Struct Reference

Data Fields

char * id
 
uint32_t timeout
 
time_t display_until
 
int16_t x
 
int16_t y
 
GuiDisplayId display
 
Align align
 
CanvasElementType type
 
int32_t z_index
 
union { 
 
   struct { 
 
      FuriString *   file_path 
 
      uint8_t   opacity 
 
   }   image 
 
   struct { 
 
      FuriString *   file_path 
 
      FuriString *   section 
 
      AnimFilePlayFlag   flags 
 
      uint8_t   opacity 
 
   }   anim_player 
 
   struct { 
 
      char *   text_str 
 
      char *   font_path 
 
      Color   color 
 
      size_t   width 
 
      size_t   scroll_rate_cpm 
 
      size_t   scroll_start_delay 
 
      size_t   scroll_repeat_delay 
 
   }   text 
 
   struct { 
 
      time_t   timestamp 
 
      Color   color 
 
      CountdownDirection   direction 
 
      CountdownShowHour   hours 
 
   }   countdown 
 
   struct { 
 
enum  {
  RectangleFillNone , RectangleFillSolid , RectangleFillGradientH , RectangleFillGradientV ,
  RectangleFillMax
}
 
      size_t   width 
 
      size_t   height 
 
      size_t   radius 
 
      size_t   border_width 
 
      enum CanvasElement:: { ... }    fill 
 
      Color   fill_color [2] 
 
      Color   border_color 
 
   }   rectangle 
 
   struct { 
 
      void *   data 
 
      size_t   data_size 
 
      uint32_t   width 
 
      uint32_t   height 
 
      ImageColorFormat   format 
 
      uint8_t   opacity 
 
   }   raw_image 
 
};  
 

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