|
| PixbufAnimationIter (PixbufAnimationIter&& src) noexcept |
|
PixbufAnimationIter& | operator= (PixbufAnimationIter&& src) noexcept |
|
| ~PixbufAnimationIter () noexceptoverride |
|
GdkPixbufAnimationIter* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdkPixbufAnimationIter* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GdkPixbufAnimationIter* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
int | get_delay_time () const |
| Gets the number of milliseconds the current pixbuf should be displayed, or -1 if the current pixbuf should be displayed forever. More...
|
|
Glib::RefPtr< Gdk::Pixbuf > | get_pixbuf () |
| Gets the current pixbuf which should be displayed; the pixbuf will be the same size as the animation itself (Gdk::Pixbuf::get_width(), Gdk::Pixbuf:get_height()). More...
|
|
Glib::RefPtr< const Gdk::Pixbuf > | get_pixbuf () const |
| Gets the current pixbuf which should be displayed; the pixbuf will be the same size as the animation itself (Gdk::Pixbuf::get_width(), Gdk::Pixbuf:get_height()). More...
|
|
bool | on_currently_loading_frame () const |
| Used to determine how to respond to the area_updated signal on Gdk::PixbufLoader when loading an animation. More...
|
|
bool | advance (const Glib::TimeVal& current_time) |
| Possibly advances an animation to a new frame. More...
|
|
bool | advance () |
| Possibly advances an animation to a new frame. More...
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) |
|
void | remove_destroy_notify_callback (void *data) const |
|
An iterator which points to a certain position in a PixbufAnimation.
bool Gdk::PixbufAnimationIter::advance |
( |
const Glib::TimeVal & |
current_time | ) |
|
Possibly advances an animation to a new frame.
Chooses the frame based on the start time passed to Gdk::PixbufAnimation::get_iter().
current_time would normally come from Glib::get_current_time(), and must be greater than or equal to the time passed to Gdk::PixbufAnimation::get_iter(), and must increase or remain unchanged each time get_pixbuf() is called. That is, you can't go backward in time; animations only play forward.
If using the method overload that takes no current_time parameter then the current time will be used. So you only need to explicitly pass current_time if you're doing something odd like playing the animation at double speed.
If this function returns false
, there's no need to update the animation display, assuming the display had been rendered prior to advancing; if true
, you need to call get_pixbuf() and update the display with the new pixbuf.
- Since gtkmm 2.14:
- Parameters
-
current_time | Current time. |
- Returns
true
if the image may need updating.