Documentation ¶
Index ¶
Constants ¶
View Source
const ( TabSelectedEvent = TabEvent("TabSelected") TabClosedEvent = TabEvent("TabClosed") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionBar ¶
type ActionBar struct {
// contains filtered or unexported fields
}
func (*ActionBar) SetActions ¶
func (ab *ActionBar) SetActions(actions []view.ViewAction)
type D ¶
type D = layout.Dimensions
type NavDrawer ¶
type NavDrawer struct {
// contains filtered or unexported fields
}
func NewNavDrawer ¶
func NewNavDrawer(vm view.ViewManager) *NavDrawer
func (*NavDrawer) AddSection ¶
func (nv *NavDrawer) AddSection(item NavSection)
func (*NavDrawer) OnItemSelected ¶
func (nv *NavDrawer) OnItemSelected(gtx C, item *NavItemStyle)
type NavItem ¶
type NavItem interface { // when there's menu options, a context menu should be attached to this navItem. // The returned boolean value suggest the position of the popup menu should be at // fixed position or not. NavItemStyle should place a clickable icon to guide user interactions. }
type NavItemStyle ¶
type NavItemStyle struct {
// contains filtered or unexported fields
}
func NewNavItem ¶
func NewNavItem(item NavItem, drawer *NavDrawer) *NavItemStyle
func (*NavItemStyle) IsSelected ¶
func (n *NavItemStyle) IsSelected() bool
func (*NavItemStyle) Unselect ¶
func (n *NavItemStyle) Unselect()
func (*NavItemStyle) Update ¶
func (n *NavItemStyle) Update(gtx C) bool
type NaviDrawerStyle ¶
type NaviDrawerStyle struct {}
Click to show internal directories.
Click to hide internal directories.