Draw timeline onto a device context and provide information about
drawing.
|
|
draw(self,
dc,
timeline,
view_properties,
config,
fast_draw=False)
Draw a representation of a timeline. |
source code
|
|
|
|
event_is_period(self,
time_period)
Return True if the event time_period will make the event appear below
the center line, as a period event. |
source code
|
|
|
|
snap(self,
time,
snap_region=10)
Snap time to minor strip if within snap_region pixels. |
source code
|
|
|
|
snap_selection(self,
period_selection)
Return a tuple where the selection has been stretched to fit to minor
strip. |
source code
|
|
|
|
event_at(self,
x,
y)
Return the event at pixel coordinate (x, y) or None if no event
there. |
source code
|
|
|
|
event_with_rect_at(self,
x,
y)
Return the event at pixel coordinate (x, y) and its rect in a tuple
(event, rect) or None if no event there. |
source code
|
|
|
|
event_rect_at(self,
event)
Return the rect for the given event or None if no event isn't found. |
source code
|
|
|
|
is_balloon_at(self,
event,
x,
y)
Return True if a balloon for event is drawn at (x, y), otherwise
False. |
source code
|
|
|
|
| get_closest_overlapping_event(self,
event_to_move,
up=True) |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|