synfig-core
1.0.3
|
#include <time.h>
Public Types | |
enum | Format { FORMAT_NORMAL = 0, FORMAT_NOSPACES = (1<<0), FORMAT_FULL = (1<<1), FORMAT_VIDEO = (1<<2), FORMAT_FRAMES = (1<<3), FORMAT_END = (1<<4) } |
typedef double | value_type |
Public Member Functions | |
Time () | |
Time (const value_type &x) | |
Time (int x) | |
Time (int hour, int minute, float second) | |
Time (const String &string, float fps=0) | |
Constructs Time from the given string. | |
String | get_string (float fps=0, Time::Format format=FORMAT_NORMAL) const |
Returns a string describing the current time value. | |
bool | is_valid () const |
Time | round (float fps) const |
Rounds time to the nearest frame for the given frame rate, fps. | |
bool | is_equal (const Time &rhs) const |
bool | is_less_than (const Time &rhs) const |
bool | is_more_than (const Time &rhs) const |
operator double () const | |
template<typename U > | |
bool | operator< (const U &rhs) const |
template<typename U > | |
bool | operator> (const U &rhs) const |
template<typename U > | |
bool | operator<= (const U &rhs) const |
template<typename U > | |
bool | operator>= (const U &rhs) const |
template<typename U > | |
bool | operator== (const U &rhs) const |
template<typename U > | |
bool | operator!= (const U &rhs) const |
bool | operator< (const Time &rhs) const |
bool | operator> (const Time &rhs) const |
bool | operator<= (const Time &rhs) const |
bool | operator>= (const Time &rhs) const |
bool | operator== (const Time &rhs) const |
bool | operator!= (const Time &rhs) const |
template<typename U > | |
const Time & | operator+= (const U &rhs) |
template<typename U > | |
const Time & | operator-= (const U &rhs) |
template<typename U > | |
const Time & | operator*= (const U &rhs) |
template<typename U > | |
const Time & | operator/= (const U &rhs) |
template<typename U > | |
Time | operator+ (const U &rhs) const |
template<typename U > | |
Time | operator- (const U &rhs) const |
template<typename U > | |
Time | operator* (const U &rhs) const |
template<typename U > | |
Time | operator/ (const U &rhs) const |
Time | operator- () const |
Static Public Member Functions | |
static const Time | begin () |
Marks the exclusive negative boundary of time. | |
static const Time | end () |
Marks the exclusive positive boundary of time. | |
static const Time | zero () |
Marks zero time. | |
static const Time | epsilon () |
The amount of allowable error in calculations. |
typedef double synfig::Time::value_type |
enum synfig::Time::Format |
|
inline |
|
inline |
|
inline |
|
inline |
Time::Time | ( | const String & | string, |
float | fps = 0 |
||
) |
Constructs Time from the given string.
References _, begin(), end(), tolower, and synfig::warning().
|
inlinestatic |
Marks the exclusive negative boundary of time.
Referenced by synfig::Layer_PasteCanvas::accelerated_cairorender(), synfig::Layer_PasteCanvas::accelerated_render(), synfig::KeyframeList::find_prev_next(), get_string(), synfig::Layer_PasteCanvas::Layer_PasteCanvas(), synfig::ValueNode_WPList::operator()(), synfig::ValueNode_BLine::operator()(), Layer_Stroboscope::set_time(), and Time().
|
inlinestatic |
Marks the exclusive positive boundary of time.
Referenced by synfig::KeyframeList::find_prev_next(), get_string(), synfig::Layer::on_changed(), synfig::ValueNode_WPList::operator()(), synfig::ValueNode_BLine::operator()(), and Time().
|
inlinestatic |
Marks zero time.
|
inlinestatic |
The amount of allowable error in calculations.
String Time::get_string | ( | float | fps = 0 , |
Time::Format | format = FORMAT_NORMAL |
||
) | const |
Returns a string describing the current time value.
References std::abs(), begin(), end(), FORMAT_FRAMES, FORMAT_FULL, FORMAT_NOSPACES, and FORMAT_VIDEO.
Referenced by encode_canvas(), encode_keyframe(), encode_time(), OptionsProcessor::extract_renddesc(), synfig::ValueNode_Animated::find(), synfig::ValueNode_DynamicList::ListEntry::find(), synfig::KeyframeList::find(), synfig::ValueNode_Animated::find_next(), synfig::ValueNode_DynamicList::ListEntry::find_next(), synfig::KeyframeList::find_next(), synfig::ValueNode_Animated::find_prev(), synfig::ValueNode_DynamicList::ListEntry::find_prev(), synfig::KeyframeList::find_prev(), and synfig::ValueNode_TimeString::operator()().
bool Time::is_valid | ( | ) | const |
Time Time::round | ( | float | fps | ) | const |
Rounds time to the nearest frame for the given frame rate, fps.
References std::abs().
|
inline |
|
inline |
Referenced by operator<(), synfig::Waypoint::operator<(), and operator<=().
|
inline |
Referenced by operator>(), synfig::Waypoint::operator>(), and operator>=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References is_less_than().
|
inline |
References is_more_than().
|
inline |
References is_equal(), and is_less_than().
|
inline |
References is_equal(), and is_more_than().
|
inline |
References is_equal().
|
inline |
References is_equal().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |