Versions in this module Expand all Collapse all v1 v1.1.2 Sep 6, 2016 Changes in this version + const BrdStyleDashed + const BrdStyleDotted + const BrdStyleDouble + const BrdStyleGroove + const BrdStyleInset + const BrdStyleOutset + const BrdStyleRidge + const BrdStyleSolid + const ClrAqua + const ClrBlack + const ClrBlue + const ClrFuchsia + const ClrGray + const ClrGreen + const ClrGrey + const ClrLime + const ClrMaroon + const ClrNavy + const ClrOlive + const ClrPurple + const ClrRed + const ClrSilver + const ClrTeal + const ClrWhite + const ClrYellow + const CursorAuto + const CursorCrosshair + const CursorDefault + const CursorHelp + const CursorInherit + const CursorMove + const CursorPointer + const CursorProgress + const CursorText + const CursorWait + const DisplayBlock + const DisplayInherit + const DisplayInline + const DisplayNone + const EmptyEHandler + const FontStyleItalic + const FontStyleNormal + const FontWeightBold + const FontWeightBolder + const FontWeightLighter + const FontWeightNormal + const GowutRelDateLayout + const GowutReleaseDate + const GowutVersion + const HACenter + const HADefault + const HALeft + const HARight + const Key0 + const Key9 + const KeyA + const KeyAlt + const KeyBackspace + const KeyCapsLock + const KeyCtrl + const KeyDel + const KeyDown + const KeyEnd + const KeyEnter + const KeyEscape + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyHome + const KeyInsert + const KeyLeft + const KeyNumLock + const KeyNumpad0 + const KeyNumpad9 + const KeyNumpadDiv + const KeyNumpadDot + const KeyNumpadMinus + const KeyNumpadMul + const KeyNumpadPlus + const KeyPgDown + const KeyPgUp + const KeyPrintScrn + const KeyRight + const KeyScrollLock + const KeyShift + const KeySpace + const KeyUp + const KeyWin + const KeyZ + const MouseBtnLeft + const MouseBtnMiddle + const MouseBtnRight + const MouseBtnUnknown + const StBackground + const StBorder + const StBorderBottom + const StBorderLeft + const StBorderRight + const StBorderTop + const StColor + const StCursor + const StDisplay + const StFontSize + const StFontStyle + const StFontWeight + const StHeight + const StMargin + const StMarginBottom + const StMarginLeft + const StMarginRight + const StMarginTop + const StPadding + const StPaddingBottom + const StPaddingLeft + const StPaddingRight + const StPaddingTop + const StWhiteSpace + const StWidth + const ThemeDebug + const ThemeDefault + const VABottom + const VADefault + const VAMiddle + const VATop + const WhiteSpaceInherit + const WhiteSpaceNormal + const WhiteSpaceNowrap + const WhiteSpacePre + const WhiteSpacePreLine + const WhiteSpacePreWrap + type AppRootHandlerFunc func(w http.ResponseWriter, r *http.Request, sess Session) + type Button interface + func NewButton(text string) Button + type CellFmt interface + Style func() Style + type CheckBox interface + func NewCheckBox(text string) CheckBox + type Comp interface + AddEHandler func(handler EventHandler, etypes ...EventType) + AddEHandlerFunc func(hf func(e Event), etypes ...EventType) + AddSyncOnETypes func(etypes ...EventType) + Attr func(name string) string + DescendantOf func(c2 Comp) bool + Equals func(c2 Comp) bool + HandlersCount func(etype EventType) int + IAttr func(name string) int + Id func() ID + Parent func() Container + Render func(w Writer) + SetAttr func(name, value string) + SetIAttr func(name string, value int) + SetToolTip func(toolTip string) + Style func() Style + SyncOnETypes func() []EventType + ToolTip func() string + type Container interface + ById func(id ID) Comp + Clear func() + Remove func(c Comp) bool + type Event interface + KeyCode func() Key + MarkDirty func(comps ...Comp) + ModKey func(modKey ModKey) bool + ModKeys func() int + Mouse func() (x, y int) + MouseBtn func() MouseBtn + MouseWin func() (x, y int) + NewSession func() Session + Parent func() Event + ReloadWin func(name string) + RemoveSess func() + Session func() Session + SetFocusedComp func(comp Comp) + Src func() Comp + Type func() EventType + type EventCategory int + const ECatGeneral + const ECatInternal + const ECatUnknown + const ECatWindow + type EventHandler interface + HandleEvent func(e Event) + type EventType int + const ETypeBlur + const ETypeChange + const ETypeClick + const ETypeDblClick + const ETypeFocus + const ETypeKeyDown + const ETypeKeyPress + const ETypeKeyUp + const ETypeMouseMove + const ETypeMouseOut + const ETypeMouseOver + const ETypeMouseUp + const ETypeMousedown + const ETypeStateChange + const ETypeWinLoad + const ETypeWinUnload + func (etype EventType) Category() EventCategory + func (etype EventType) String() string + type Expander interface + Content func() Comp + ContentFmt func() CellFmt + Expanded func() bool + Header func() Comp + HeaderFmt func() CellFmt + SetContent func(c Comp) + SetExpanded func(expanded bool) + SetHeader func(h Comp) + func NewExpander() Expander + type HAlign string + type HasEnabled interface + Enabled func() bool + SetEnabled func(enabled bool) + type HasHVAlign interface + HAlign func() HAlign + SetAlign func(halign HAlign, valign VAlign) + SetHAlign func(halign HAlign) + SetVAlign func(valign VAlign) + VAlign func() VAlign + type HasRequestResponse interface + Request func() *http.Request + ResponseWriter func() http.ResponseWriter + type HasText interface + SetText func(text string) + Text func() string + type HasUrl interface + SetUrl func(url string) + Url func() string + type Html interface + Html func() string + SetHtml func(html string) + func NewHtml(html string) Html + type ID int + func AtoID(s string) (ID, error) + func (id ID) String() string + type Image interface + func NewImage(text, url string) Image + type Key int + type Label interface + func NewLabel(text string) Label + type Layout int + const LayoutHorizontal + const LayoutNatural + const LayoutVertical + type Link interface + Comp func() Comp + SetComp func(c Comp) + SetTarget func(target string) + Target func() string + func NewLink(text, url string) Link + type ListBox interface + ClearSelected func() + Multi func() bool + Rows func() int + Selected func(i int) bool + SelectedIdx func() int + SelectedIndices func() []int + SelectedValue func() string + SelectedValues func() []string + SetMulti func(multi bool) + SetRows func(rows int) + SetSelected func(i int, selected bool) + SetSelectedIndices func(indices []int) + func NewListBox(values []string) ListBox + type ModKey int + const ModKeyAlt + const ModKeyCtrl + const ModKeyMeta + const ModKeyShift + type MouseBtn int + type Panel interface + Add func(c Comp) + AddHConsumer func() Comp + AddHSpace func(width int) Comp + AddSpace func(width, height int) Comp + AddVConsumer func() Comp + AddVSpace func(height int) Comp + Insert func(c Comp, idx int) bool + func NewHorizontalPanel() Panel + func NewNaturalPanel() Panel + func NewPanel() Panel + func NewVerticalPanel() Panel + type PanelView interface + CellFmt func(c Comp) CellFmt + CompAt func(idx int) Comp + CompIdx func(c Comp) int + CompsCount func() int + Layout func() Layout + SetLayout func(layout Layout) + type PasswBox interface + type RadioButton interface + Group func() RadioGroup + func NewRadioButton(text string, group RadioGroup) RadioButton + type RadioGroup interface + Name func() string + PrevSelected func() RadioButton + Selected func() RadioButton + func NewRadioGroup(name string) RadioGroup + type Server interface + AddRootHeadHtml func(html string) + AddSHandler func(handler SessionHandler) + AddSessCreatorName func(name, text string) + AddStaticDir func(path, dir string) error + AppPath func() string + AppUrl func() string + Headers func() map[string][]string + Logger func() *log.Logger + RemoveRootHeadHtml func(html string) + Secure func() bool + SetAppRootHandler func(f AppRootHandlerFunc) + SetHeaders func(headers map[string][]string) + SetLogger func(logger *log.Logger) + SetTheme func(theme string) + Start func(openWins ...string) error + Theme func() string + func NewServer(appName, addr string) Server + func NewServerTLS(appName, addr, certFile, keyFile string) Server + type SessMonitor interface + JsConverter func() string + SetJsConverter func(jsFuncName string) + func NewSessMonitor() SessMonitor + type Session interface + Accessed func() time.Time + AddWin func(w Window) error + Attr func(name string) interface{} + Created func() time.Time + Id func() string + New func() bool + Private func() bool + RemoveWin func(w Window) bool + SetAttr func(name string, value interface{}) + SetTimeout func(timeout time.Duration) + SortedWins func() []Window + Timeout func() time.Duration + WinByName func(name string) Window + type SessionHandler interface + Created func(sess Session) + Removed func(sess Session) + type StateButton interface + SetState func(state bool) + State func() bool + type Style interface + AddClass func(class string) Style + Background func() string + Border func() string + BorderBottom func() string + BorderLeft func() string + BorderRight func() string + BorderTop func() string + Color func() string + Cursor func() string + Display func() string + FontSize func() string + FontStyle func() string + FontWeight func() string + Get func(name string) string + Height func() string + Margin func() string + MarginBottom func() string + MarginLeft func() string + MarginRight func() string + MarginTop func() string + Padding func() string + PaddingBottom func() string + PaddingLeft func() string + PaddingRight func() string + PaddingTop func() string + RemoveClass func(class string) Style + Set func(name, value string) Style + SetBackground func(value string) Style + SetBorder func(value string) Style + SetBorder2 func(width int, style, color string) Style + SetBorderBottom func(value string) Style + SetBorderBottom2 func(width int, style, color string) Style + SetBorderLeft func(value string) Style + SetBorderLeft2 func(width int, style, color string) Style + SetBorderRight func(value string) Style + SetBorderRight2 func(width int, style, color string) Style + SetBorderTop func(value string) Style + SetBorderTop2 func(width int, style, color string) Style + SetClass func(class string) Style + SetColor func(value string) Style + SetCursor func(value string) Style + SetDisplay func(value string) Style + SetFontSize func(value string) Style + SetFontStyle func(value string) Style + SetFontWeight func(value string) Style + SetFullHeight func() Style + SetFullSize func() Style + SetFullWidth func() Style + SetHeight func(value string) Style + SetHeightPx func(height int) Style + SetMargin func(value string) Style + SetMargin2 func(top, right, bottom, left string) Style + SetMarginBottom func(value string) Style + SetMarginBottomPx func(height int) Style + SetMarginLeft func(value string) Style + SetMarginLeftPx func(width int) Style + SetMarginPx func(top, right, bottom, left int) Style + SetMarginRight func(value string) Style + SetMarginRightPx func(width int) Style + SetMarginTop func(value string) Style + SetMarginTopPx func(height int) Style + SetPadding func(value string) Style + SetPadding2 func(top, right, bottom, left string) Style + SetPaddingBottom func(value string) Style + SetPaddingBottomPx func(height int) Style + SetPaddingLeft func(value string) Style + SetPaddingLeftPx func(width int) Style + SetPaddingPx func(top, right, bottom, left int) Style + SetPaddingRight func(value string) Style + SetPaddingRightPx func(width int) Style + SetPaddingTop func(value string) Style + SetPaddingTopPx func(height int) Style + SetSize func(width, height string) Style + SetSizePx func(width, height int) Style + SetWhiteSpace func(value string) Style + SetWidth func(value string) Style + SetWidthPx func(width int) Style + Size func() (width, height string) + WhiteSpace func() string + Width func() string + type SwitchButton interface + Off func() string + On func() string + SetOnOff func(on, off string) + SetState func(state bool) + State func() bool + func NewSwitchButton() SwitchButton + type TabBar interface + type TabBarPlacement int + const TbPlacementBottom + const TbPlacementLeft + const TbPlacementRight + const TbPlacementTop + type TabPanel interface + Add func(tab, content Comp) + AddString func(tab string, content Comp) + PrevSelected func() int + Selected func() int + SetSelected func(idx int) + SetTabBarPlacement func(tabBarPlacement TabBarPlacement) + TabBar func() TabBar + TabBarFmt func() CellFmt + TabBarPlacement func() TabBarPlacement + func NewTabPanel() TabPanel + type Table interface + Add func(c Comp, row, col int) bool + CellFmt func(row, col int) CellFmt + ColSpan func(row, col int) int + CompAt func(row, col int) Comp + CompIdx func(c Comp) (row, col int) + CompsCount func() int + EnsureCols func(row, cols int) + EnsureSize func(rows, cols int) + RowFmt func(row int) CellFmt + RowSpan func(row, col int) int + SetColSpan func(row, col, colSpan int) + SetRowSpan func(row, col, rowSpan int) + Trim func() + TrimRow func(row int) + func NewTable() Table + type TableView interface + Border func() int + CellPadding func() int + CellSpacing func() int + SetBorder func(width int) + SetCellPadding func(padding int) + SetCellSpacing func(spacing int) + type TextBox interface + Cols func() int + MaxLength func() int + ReadOnly func() bool + Rows func() int + SetCols func(cols int) + SetMaxLength func(maxLength int) + SetReadOnly func(readOnly bool) + SetRows func(rows int) + func NewPasswBox(text string) TextBox + func NewTextBox(text string) TextBox + type Timer interface + Active func() bool + Repeat func() bool + Reset func() + SetActive func(active bool) + SetRepeat func(repeat bool) + SetTimeout func(timeout time.Duration) + Timeout func() time.Duration + func NewTimer(timeout time.Duration) Timer + type VAlign string + type WinSlice []Window + func (w WinSlice) Len() int + func (w WinSlice) Less(i, j int) bool + func (w WinSlice) Swap(i, j int) + type Window interface + AddHeadHtml func(html string) + Name func() string + RemoveHeadHtml func(html string) + RenderWin func(w Writer, s Server) + SetFocusedCompId func(id ID) + SetName func(name string) + SetTheme func(theme string) + Theme func() string + func NewWindow(name, text string) Window + type Writer interface + WriteAttr func(name, value string) (n int, err error) + Writees func(s string) (n int, err error) + Writes func(s string) (n int, err error) + Writess func(ss ...string) (n int, err error) + Writev func(v interface{}) (n int, err error) + Writevs func(v ...interface{}) (n int, err error) + func NewWriter(w io.Writer) Writer v1.1.1 Jul 28, 2016