ICalGLib.TimeSpan

g GObject.Object GObject.Object ICalGLib.Object ICalGLib.Object GObject.Object->ICalGLib.Object ICalGLib.TimeSpan ICalGLib.TimeSpan ICalGLib.Object->ICalGLib.TimeSpan

Subclasses:

None

Methods

Inherited:

ICalGLib.Object (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (dtstart, dtend, is_busy)

class

new_timet (start, end, is_busy)

clone ()

contains (container)

get_end ()

get_is_busy ()

get_start ()

overlaps (s2)

set_end (end)

set_is_busy (is_busy)

set_start (start)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

ICalGLib.Object (5)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class ICalGLib.TimeSpan(**kwargs)
Bases:

ICalGLib.Object

Abstract:

No

Structure:

ICalGLib.TimeSpanClass

This is the ICalGLib.TimeSpan instance.

classmethod new(dtstart, dtend, is_busy)
Parameters:
Returns:

The newly created ICalGLib.TimeSpan

Return type:

ICalGLib.TimeSpan

Creates a new ICalGLib.TimeSpan.

New in version 1.0.

classmethod new_timet(start, end, is_busy)
Parameters:
  • start (int) – Start of the time span

  • end (int) – End of the time span

  • is_busy (bool) – Whether the time span is busy

Returns:

The newly created ICalGLib.TimeSpan.

Return type:

ICalGLib.TimeSpan

Creates a new ICalGLib.TimeSpan. Free it with GObject.Object.unref(), when no longer needed.

New in version 3.0.5.

clone()
Returns:

The newly created ICalGLib.TimeSpan, clone of self.

Return type:

ICalGLib.TimeSpan

Creates a new ICalGLib.TimeSpan, clone of self. Free it with GObject.Object.unref(), when no longer needed.

New in version 3.0.5.

contains(container)
Parameters:

container (ICalGLib.TimeSpan) – The target container of ICalGLib.TimeSpan

Returns:

Whether one ICalGLib.TimeSpan is contained in another ICalGLib.TimeSpan.

Return type:

int

Checks whether one ICalGLib.TimeSpan is contained in another ICalGLib.TimeSpan.

New in version 1.0.

get_end()
Returns:

The end.

Return type:

int

Gets the end of ICalGLib.TimeSpan.

New in version 1.0.

get_is_busy()
Returns:

The is_busy.

Return type:

bool

Gets the is_busy of ICalGLib.TimeSpan.

New in version 1.0.

get_start()
Returns:

The start.

Return type:

int

Gets the start of ICalGLib.TimeSpan.

New in version 1.0.

overlaps(s2)
Parameters:

s2 (ICalGLib.TimeSpan) – The second ICalGLib.TimeSpan

Returns:

Whether these two span are overlapped.

Return type:

int

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.