Versions in this module Expand all Collapse all v0 v0.1.1 Dec 5, 2020 Changes in this version + const ButtonInput + const CheckboxInput + const Circle + const ColorInput + const DateInput + const DatetimeLocalInput + const Default + const EmailInput + const FileInput + const Function + const H1 + const H2 + const H3 + const H4 + const HiddenInput + const ImageInput + const MonthInput + const NumberInput + const OnBlur + const OnChange + const OnContextmenu + const OnFocus + const OnInput + const OnInvalid + const OnReset + const OnSearch + const OnSelect + const OnSubmit + const PasswordInput + const Polygon + const RadioInput + const RangeInput + const Rectangle + const ResetInput + const SearchInput + const SubmitInput + const TelInput + const TextInput + const TimeInput + const URL + const URLInput + const WeekInput + type Area struct + Alt string + Coords Coordinates + LinkType LinkType + Shape AreaShape + URL string + func (a Area) String() string + type AreaShape string + type BR struct + StyleName string + func LineBreak() *BR + func (br *BR) Bindings() *Binding + func (br *BR) Children() *Elements + func (br *BR) Class() string + func (br *BR) String() string + func (br *BR) Style() string + type Base struct + ID string + Style string + UI *lorca.UI + func (b *Base) Disable() + func (b *Base) Enable() + func (b *Base) GetUI() *lorca.UI + func (b *Base) Name() string + func (b *Base) Set(v string) + func (b *Base) SetText(s string) error + func (b *Base) SetUI(ui *lorca.UI) + func (b *Base) Value() string + type Binding struct + BoundFunction func() + FunctionName string + type BodyElement struct + Binding *Binding + Elements *Elements + Style string + func NewBodyElement(onLoad string) *BodyElement + func (b *BodyElement) Bindings() *Binding + func (b *BodyElement) Children() *Elements + func (b *BodyElement) String() string + type Button struct + ButtonText string + Style string + func NewButton(label, name, funcName string) *Button + func (b *Button) BindFunction(f func()) + func (b *Button) Bindings() *Binding + func (b *Button) Children() *Elements + func (b *Button) Class() string + func (b *Button) Clickable() bool + func (b *Button) OnClick() string + func (b *Button) String() string + type Canvas struct + Height int + Width int + func NewCanvas(width, height int, name string) *Canvas + func (c *Canvas) Bindings() *Binding + func (c *Canvas) Children() *Elements + func (c *Canvas) Class() string + func (c *Canvas) Clickable() bool + func (c *Canvas) String() string + type Coordinates []int + func (c Coordinates) String() string + type Div struct + Elements *Elements + func NewDiv(name string) *Div + func (p *Div) Bindings() *Binding + func (p *Div) Children() *Elements + func (p *Div) Class() string + func (p *Div) String() string + type Element interface + Bindings func() *Binding + Children func() *Elements + Class func() string + Clickable func() bool + GetUI func() *lorca.UI + Name func() string + SetUI func(*lorca.UI) + String func() string + Styles func() Styles + Value func() string + type Elements struct + func (els *Elements) AddElement(e Element) + func (els *Elements) String() string + type HeadElement struct + Elements *Elements + Title string + func NewHeadElement() *HeadElement + func (h *HeadElement) Bindings() *Binding + func (h *HeadElement) Children() *Elements + func (h *HeadElement) Class() string + func (h *HeadElement) String() string + func (h *HeadElement) Style() string + type Header struct + ID string + Level HeaderLevel + StyleName string + Text string + func NewHeader(level HeaderLevel, name, text string) *Header + func (h *Header) Bindings() *Binding + func (h *Header) Children() *Elements + func (h *Header) Class() string + func (h *Header) String() string + func (h *Header) Style() string + type HeaderLevel int + type Image struct + Alt string + AreaMap Map + Height int + URL string + Width int + func NewImage(name string, width, height int, url string) *Image + func (i *Image) AddMapArea(shape AreaShape, coords Coordinates, alt string, linkType LinkType, ...) error + func (i *Image) Bindings() *Binding + func (i *Image) Children() *Elements + func (i *Image) Class() string + func (i *Image) Clickable() bool + func (i *Image) Load(img *image.RGBA) error + func (i *Image) String() string + type InputElement struct + Text string + func NewInputElement(name string, inputType InputType) *InputElement + func (tf *InputElement) Bindings() *Binding + func (tf *InputElement) Children() *Elements + func (tf *InputElement) String() string + type InputEventType string + type InputType string + type LinkType string + type Map struct + Areas []Area + Name string + func (m Map) String() string + type OptionElement struct + Text string + Value string + func (oe *OptionElement) String() string + type OptionSlice []*OptionElement + func (oes *OptionSlice) String() string + type ScriptElement struct + Text string + URL string + func (scr *ScriptElement) Bindings() *Binding + func (scr *ScriptElement) Children() *Elements + func (scr *ScriptElement) Class() string + func (scr *ScriptElement) String() string + func (scr *ScriptElement) Style() string + type SelectElement struct + Options *OptionSlice + func NewSelectElement(name, functionName string) *SelectElement + func (se *SelectElement) AddOption(label, value string) + func (se *SelectElement) Bindings() *Binding + func (se *SelectElement) Children() *Elements + func (se *SelectElement) String() string + type Span struct + Text string + func (s *Span) Bindings() *Binding + func (s *Span) Children() *Elements + func (s *Span) Class() string + func (s *Span) String() string + type StyleSheet struct + URL string + func (style StyleSheet) String() string + type Styles map[string]string + func (s Styles) String() string + type TextElement struct + func Text(t string) *TextElement + func (t *TextElement) Bindings() *Binding + func (t *TextElement) Children() *Elements + func (t *TextElement) Class() string + func (t *TextElement) String() string + func (t *TextElement) Style() string + type TitleElement struct + Text string + func (t *TitleElement) Bindings() *Binding + func (t *TitleElement) Children() *Elements + func (t *TitleElement) Class() string + func (t *TitleElement) String() string + func (t *TitleElement) Style() string + type Window struct + Args []string + Bindings []Binding + Elements *Elements + Height int + ProfileDir string + Style StyleSheet + Width int + func NewWindow(width, height int, profileDir string, styleSheet string, args ...string) *Window + func (w *Window) Bind(jscriptFunction string, golangFunction func()) + func (w *Window) BindChildren(el *Element) + func (w *Window) Close() + func (w *Window) GetUI() lorca.UI + func (w *Window) Start() error + func (w *Window) String() string