ICalGLib.TimeSpan¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ICalGLib.TimeSpan(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This is the
ICalGLib.TimeSpan
instance.- classmethod new(dtstart, dtend, is_busy)¶
- Parameters:
dtstart (
ICalGLib.Time
) – The start ofICalGLib.TimeSpan
dtend (
ICalGLib.Time
) – The end ofICalGLib.TimeSpan
is_busy (
int
) – Whether this span is busy
- Returns:
The newly created
ICalGLib.TimeSpan
- Return type:
Creates a new
ICalGLib.TimeSpan
.New in version 1.0.
- classmethod new_timet(start, end, is_busy)¶
- Parameters:
- Returns:
The newly created
ICalGLib.TimeSpan
.- Return type:
Creates a new
ICalGLib.TimeSpan
. Free it withGObject.Object.unref
(), when no longer needed.New in version 3.0.5.
- clone()¶
- Returns:
The newly created
ICalGLib.TimeSpan
, clone of self.- Return type:
Creates a new
ICalGLib.TimeSpan
, clone of self. Free it withGObject.Object.unref
(), when no longer needed.New in version 3.0.5.
- contains(container)¶
- Parameters:
container (
ICalGLib.TimeSpan
) – The target container ofICalGLib.TimeSpan
- Returns:
Whether one
ICalGLib.TimeSpan
is contained in anotherICalGLib.TimeSpan
.- Return type:
Checks whether one
ICalGLib.TimeSpan
is contained in anotherICalGLib.TimeSpan
.New in version 1.0.
- get_end()¶
- Returns:
The end.
- Return type:
Gets the end of
ICalGLib.TimeSpan
.New in version 1.0.
- get_is_busy()¶
- Returns:
The is_busy.
- Return type:
Gets the is_busy of
ICalGLib.TimeSpan
.New in version 1.0.
- get_start()¶
- Returns:
The start.
- Return type:
Gets the start of
ICalGLib.TimeSpan
.New in version 1.0.
- overlaps(s2)¶
- Parameters:
s2 (
ICalGLib.TimeSpan
) – The secondICalGLib.TimeSpan
- Returns:
Whether these two span are overlapped.
- Return type:
Checks whether two spans overlap.
New in version 1.0.
- set_end(end)¶
- Parameters:
end (
int
) – The end
Sets the end of
ICalGLib.TimeSpan
.New in version 1.0.
- set_is_busy(is_busy)¶
- Parameters:
is_busy (
bool
) – The is_busy
Sets the is_busy of
ICalGLib.TimeSpan
.New in version 1.0.
- set_start(start)¶
- Parameters:
start (
int
) – The start
Sets the start of
ICalGLib.TimeSpan
.New in version 1.0.