The FilmStrip allows to display a line of thumbnails of a video clip. More...
#include <foleys_FilmStrip.h>
Inherits Component.
Classes | |
| class | ThumbnailJob |
Public Member Functions | |
| FilmStrip () | |
| ~FilmStrip () override | |
| void | setClip (std::shared_ptr< AVClip > clip) |
| Set the clip to be shown as thimbnails. | |
| void | paint (juce::Graphics &) override |
| Paints the thumbnails. | |
| void | resized () override |
| Triggers update of thumbnails. | |
| void | setStartAndEnd (double start, double end) |
| Set the start time and the end time of the clip in seconds. | |
The FilmStrip allows to display a line of thumbnails of a video clip.
Because it already uses the paint() and resized() hooks, you cannot inherit that. Instead put it into your Component, that you can decorate. The Filmstrip itself will not catch any mouse events, so you have still all flexibility by doing so.
| FilmStrip | ( | ) |
|
override |
| void setClip | ( | std::shared_ptr< AVClip > | clip | ) |
Set the clip to be shown as thimbnails.
Referenced by MainContentComponent::openFile().
|
override |
Paints the thumbnails.
|
override |
Triggers update of thumbnails.
| void setStartAndEnd | ( | double | start, |
| double | end | ||
| ) |
Set the start time and the end time of the clip in seconds.
This is used to allow only a subset of thumbnails to be shown.
Referenced by MainContentComponent::openFile().