#include <animation.h>
|
| Animation (const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, image::ImageType type) |
|
uint32_t | get_animation_frame_count () const |
|
int | get_current_frame () const |
|
void | next_frame () |
|
void | prev_frame () |
|
void | set_frame (int frame) |
| Selects a specific frame within the animation. More...
|
|
void | set_loop (uint32_t start_frame, uint32_t end_frame, int count) |
|
| Image (const uint8_t *data_start, int width, int height, ImageType type) |
|
Color | get_pixel (int x, int y, Color color_on=display::COLOR_ON, Color color_off=display::COLOR_OFF) const |
|
int | get_width () const override |
|
int | get_height () const override |
|
const uint8_t * | get_data_start () |
|
ImageType | get_type () const |
|
void | draw (int x, int y, display::Display *display, Color color_on, Color color_off) override |
|
void | set_transparency (bool transparent) |
|
bool | has_transparency () const |
|
Definition at line 9 of file animation.h.
◆ Animation()
esphome::animation::Animation::Animation |
( |
const uint8_t * |
data_start, |
|
|
int |
width, |
|
|
int |
height, |
|
|
uint32_t |
animation_frame_count, |
|
|
image::ImageType |
type |
|
) |
| |
◆ get_animation_frame_count()
uint32_t esphome::animation::Animation::get_animation_frame_count |
( |
| ) |
const |
◆ get_current_frame()
int esphome::animation::Animation::get_current_frame |
( |
| ) |
const |
◆ next_frame()
void esphome::animation::Animation::next_frame |
( |
| ) |
|
◆ prev_frame()
void esphome::animation::Animation::prev_frame |
( |
| ) |
|
◆ set_frame()
void esphome::animation::Animation::set_frame |
( |
int |
frame | ) |
|
Selects a specific frame within the animation.
- Parameters
-
frame | If possitive, advance to the frame. If negative, recede to that frame from the end frame. |
Definition at line 50 of file animation.cpp.
◆ set_loop()
void esphome::animation::Animation::set_loop |
( |
uint32_t |
start_frame, |
|
|
uint32_t |
end_frame, |
|
|
int |
count |
|
) |
| |
◆ update_data_start_()
void esphome::animation::Animation::update_data_start_ |
( |
| ) |
|
|
protected |
◆ animation_data_start_
const uint8_t* esphome::animation::Animation::animation_data_start_ |
|
protected |
◆ animation_frame_count_
uint32_t esphome::animation::Animation::animation_frame_count_ |
|
protected |
◆ current_frame_
int esphome::animation::Animation::current_frame_ |
|
protected |
◆ loop_count_
int esphome::animation::Animation::loop_count_ |
|
protected |
◆ loop_current_iteration_
int esphome::animation::Animation::loop_current_iteration_ |
|
protected |
◆ loop_end_frame_
uint32_t esphome::animation::Animation::loop_end_frame_ |
|
protected |
◆ loop_start_frame_
uint32_t esphome::animation::Animation::loop_start_frame_ |
|
protected |
The documentation for this class was generated from the following files:
- /opt/build/esphome/esphome/components/animation/animation.h
- /opt/build/esphome/esphome/components/animation/animation.cpp