add move frame buttons

This commit is contained in:
2019-11-10 14:54:20 +01:00
parent 35937ad4c6
commit 802bce7383
5 changed files with 48 additions and 5 deletions

View File

@@ -69,13 +69,14 @@ public:
LayerFrame& frame(int frame = -1);
void resize(int width, int height);
bool create(int width, int height, std::string name);
bool add_frame();
bool add_frame(int index = -1);
void remove_frame(int frame);
void duplicate_frame(int frame);
void frames_gpu_update();
int frames_count() const noexcept { return m_frames.size(); }
int frame_duration(int frame) const noexcept { return m_frames[frame].m_duration; }
void set_frame_duration(int frame, int duration) noexcept { m_frames[frame].m_duration = duration; }
int move_frame_offset(int frame, int offset) noexcept;
int total_duration() const noexcept;
void goto_frame(int frame) noexcept;
void clear(const glm::vec4& c, int frame = -1);