#include <import.h>
Public Member Functions | |
~Import () | |
virtual bool | set_param (const synfig::String ¶m, const synfig::ValueBase &value) |
Sets the parameter described by param to value. | |
virtual synfig::ValueBase | get_param (const synfig::String ¶m) const |
Get the value of the specified parameter. | |
virtual Vocab | get_param_vocab () const |
Gets the parameter vocabulary. | |
virtual void | on_canvas_set () |
virtual void | set_time (synfig::Context context, synfig::Time time) const |
Sets the time for the selected Layer and those under it. | |
virtual void | set_time (synfig::Context context, synfig::Time time, const synfig::Point &point) const |
Sets the time for the selected Layer and those under it for a specific point. | |
Protected Member Functions | |
Import () |
Import::Import | ( | ) | [protected] |
Import::~Import | ( | ) |
bool Import::set_param | ( | const synfig::String & | param, | |
const synfig::ValueBase & | value | |||
) | [virtual] |
Sets the parameter described by param to value.
param | The name of the parameter to set | |
value | What the parameter is to be set to. |
true
on success, false
upon rejection or failure. If it returns false
, then the Layer is assumed to remain unchanged. const String ¶m
Reimplemented from synfig::Layer_Composite.
References _, synfig::Surface::clear(), synfig::error(), synfig::ValueBase::get(), synfig::Layer::get_canvas(), synfig::Layer_Bitmap::height, IMPORT, synfig::info(), synfig::Layer_Bitmap::left, synfig::ValueBase::same_type_as(), synfig::Layer_Composite::set_amount(), synfig::Layer_Bitmap::surface, synfig::Layer_Bitmap::top, synfig::Layer_Bitmap::trimmed, synfig::warning(), and synfig::Layer_Bitmap::width.
Referenced by on_canvas_set().
ValueBase Import::get_param | ( | const synfig::String & | param | ) | const [virtual] |
Get the value of the specified parameter.
const String &
Reimplemented from synfig::Layer_Bitmap.
References EXPORT, EXPORT_NAME, EXPORT_VERSION, and synfig::Layer::get_canvas().
Layer::Vocab Import::get_param_vocab | ( | void | ) | const [virtual] |
Gets the parameter vocabulary.
Reimplemented from synfig::Layer_Bitmap.
References _, and synfig::Layer::set_description().
void Import::on_canvas_set | ( | ) | [virtual] |
void Import::set_time | ( | synfig::Context | context, | |
synfig::Time | time | |||
) | const [virtual] |
Sets the time for the selected Layer and those under it.
context | Context iterator referring to next Layer. | |
time | writeme |
Reimplemented from synfig::Layer.
References synfig::Layer_Composite::get_amount(), synfig::Layer_Bitmap::height, synfig::Layer_Bitmap::left, synfig::Context::set_time(), synfig::Layer_Bitmap::surface, synfig::Layer_Bitmap::top, synfig::Layer_Bitmap::trimmed, and synfig::Layer_Bitmap::width.
void Import::set_time | ( | synfig::Context | context, | |
synfig::Time | time, | |||
const synfig::Point & | point | |||
) | const [virtual] |
Sets the time for the selected Layer and those under it for a specific point.
context | Context iterator referring to next Layer. | |
time | writeme | |
point | writeme |
const Point &
Reimplemented from synfig::Layer.
References synfig::Layer_Composite::get_amount(), synfig::Layer_Bitmap::height, synfig::Layer_Bitmap::left, synfig::Context::set_time(), synfig::Layer_Bitmap::surface, synfig::Layer_Bitmap::top, synfig::Layer_Bitmap::trimmed, and synfig::Layer_Bitmap::width.