| Top |
ZeitgeistTimeRangeZeitgeistTimeRange — Immutable representation of an interval in time, marked by a beginning and an end |
A light, immutable, encapsulation of an interval in time, marked by a beginning and an end.
#define ZEITGEIST_TYPE_TIME_RANGE (zeitgeist_time_range_get_type ())
The type for ZeitgeistTimeRange.
GVariant *
zeitgeist_time_range_to_variant (ZeitgeistTimeRange *self);
ZeitgeistTimeRange * zeitgeist_time_range_intersect (ZeitgeistTimeRange *self,ZeitgeistTimeRange *time_range);
Check whether two time ranges are intersecting.
self |
the ZeitgeistTimeRange instance |
|
time_range |
. the second time range to compare with. |
[in] |
ZeitgeistTimeRange * zeitgeist_time_range_new (gint64 start_msec,gint64 end_msec);
ZeitgeistTimeRange * zeitgeist_time_range_new_from_variant (GVariant *variant,GError **error);
Create a TimeRange from a variant.
gint64
zeitgeist_time_range_get_start (ZeitgeistTimeRange *self);
Get and return the current value of the "start" property.
gint64
zeitgeist_time_range_get_end (ZeitgeistTimeRange *self);
Get and return the current value of the "end" property.
struct ZeitgeistTimeRange;
Immutable representation of an interval in time, marked by a beginning and an end
A light, immutable, encapsulation of an interval in time, marked by a beginning and an end.
struct ZeitgeistTimeRangeClass {
GObjectClass parent_class;
};
The class structure for ZEITGEIST_TYPE_TIME_RANGE. All the fields in this structure are private and should never be accessed directly.