Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLayout = Layout{ Margin: EdgeInsets{ Top: 10, Right: 10, Bottom: 10, Left: 10, }, LabelHeight: 30, HeadlineWidth: 100, TimelineWidth: 900, EntryHeight: 70, OnlineBarHeight: 20, }
Functions ¶
Types ¶
type EdgeInsets ¶ added in v0.0.3
type EntryBuilder ¶
type EntryBuilder struct {
Entry
}
func NewEntryBuilder ¶
func NewEntryBuilder(avatar image.Image, color color.Color) *EntryBuilder
func (*EntryBuilder) AddSection ¶
func (b *EntryBuilder) AddSection(start, end time.Time) *EntryBuilder
func (*EntryBuilder) Build ¶
func (b *EntryBuilder) Build() Entry
type Layout ¶ added in v0.0.3
type Layout struct {
Margin EdgeInsets
HeadlineWidth float64
TimelineWidth float64
LabelHeight float64
EntryHeight float64
OnlineBarHeight float64
}
func (Layout) OnlineBarFillingFactor ¶ added in v0.0.3
type Section ¶
Section represents a time Section in a timeline entry. It is defined by a start and end time.
type Timeline ¶
type TimelineBuilder ¶
type TimelineBuilder struct {
Timeline
}
func NewTimelineBuilder ¶
func NewTimelineBuilder(start, end time.Time) *TimelineBuilder
func (*TimelineBuilder) AddEntries ¶
func (b *TimelineBuilder) AddEntries(entries ...Entry) *TimelineBuilder
func (*TimelineBuilder) Build ¶
func (b *TimelineBuilder) Build() Timeline
func (*TimelineBuilder) SetIndicator ¶
func (b *TimelineBuilder) SetIndicator(indicator time.Time) *TimelineBuilder
func (*TimelineBuilder) SetLayout ¶ added in v0.0.3
func (b *TimelineBuilder) SetLayout(layout Layout) *TimelineBuilder
Click to show internal directories.
Click to hide internal directories.