|
|
constexpr | Animation (std::nullptr_t=nullptr) noexcept |
| | Default ctor.
|
| |
| constexpr | Animation (const AnimationRaw resource) noexcept |
| | Constructs from AnimationParam. More...
|
| |
|
constexpr | Animation (Animation &&other) noexcept |
| | Move constructor.
|
| |
|
constexpr | Animation (const AnimationRef &other)=delete |
| |
|
constexpr | Animation (AnimationRef &&other)=delete |
| |
| | Animation (StringParam file) |
| | Load an animation from a file. More...
|
| |
| | Animation (IOStreamParam src, bool closeio=false) |
| | Load an animation from an IOStream. More...
|
| |
|
constexpr const AnimationRaw | operator-> () const noexcept |
| | member access to underlying AnimationRaw.
|
| |
|
constexpr AnimationRaw | operator-> () noexcept |
| | member access to underlying AnimationRaw.
|
| |
|
| ~Animation () |
| | Destructor.
|
| |
|
constexpr Animation & | operator= (Animation &&other) noexcept |
| | Assignment operator.
|
| |
|
constexpr AnimationRaw | get () const noexcept |
| | Retrieves underlying AnimationRaw.
|
| |
|
constexpr AnimationRaw | release () noexcept |
| | Retrieves underlying AnimationRaw and clear this.
|
| |
|
constexpr auto | operator<=> (const Animation &other) const noexcept=default |
| | Comparison.
|
| |
|
constexpr | operator bool () const noexcept |
| | Converts to bool.
|
| |
|
constexpr | operator AnimationParam () const noexcept |
| | Converts to AnimationParam.
|
| |
| void | Free () |
| | Dispose of an Animation and free its resources. More...
|
| |
|
int | GetWidth () const |
| | Get the width in pixels.
|
| |
|
int | GetHeight () const |
| | Get the height in pixels.
|
| |
|
Point | GetSize () const |
| | Get the size in pixels.
|
| |
|
int | GetCount () const |
| | Return the number of frames.
|
| |
| Surface | GetFrame (int index) const |
| | Return the frame image under given index. More...
|
| |
| int | GetDelay (int index) const |
| | Return the frame delay under given index. More...
|
| |
| void | Save (StringParam file) |
| | Save an animation to a file. More...
|
| |
| void | SaveTyped (IOStreamParam dst, StringParam type, bool closeio=false) |
| | Save an animation to an IOStream. More...
|
| |
| void | SaveANI (IOStreamParam dst, bool closeio=false) |
| | Save an animation in ANI format to an IOStream. More...
|
| |
| void | SaveAPNG (IOStreamParam dst, bool closeio=false) |
| | Save an animation in APNG format to an IOStream. More...
|
| |
| void | SaveAVIF (IOStreamParam dst, int quality, bool closeio=false) |
| | Save an animation in AVIF format to an IOStream. More...
|
| |
| void | SaveGIF (IOStreamParam dst, bool closeio=false) |
| | Save an animation in GIF format to an IOStream. More...
|
| |
| void | SaveWEBP (IOStreamParam dst, int quality, bool closeio=false) |
| | Save an animation in WEBP format to an IOStream. More...
|
| |
| Cursor | CreateCursor (const PointRaw &hotspot) |
| | Create an animated cursor from an animation. More...
|
| |