Documentation
¶
Index ¶
- func WithAlpha(c color.NRGBA, a uint8) color.NRGBA
- type AlphaPalette
- type C
- type D
- type Item
- type Rect
- type Sidebar
- func (s *Sidebar) AddNavItem(item Item)
- func (s *Sidebar) Changed() bool
- func (s *Sidebar) Current() interface{}
- func (s *Sidebar) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
- func (s *Sidebar) LayoutContents(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
- func (s *Sidebar) SetSelected(tag interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlphaPalette ¶
type AlphaPalette struct {
Hover, Selected uint8
}
type D ¶
type D = layout.Dimensions
type Sidebar ¶
type Sidebar struct {
AlphaPalette
// contains filtered or unexported fields
}
func (*Sidebar) AddNavItem ¶
AddNavItem inserts a navigation target into the drawer. This should be invoked only from the layout thread to avoid nasty race conditions.
func (*Sidebar) Layout ¶
func (s *Sidebar) Layout(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
func (*Sidebar) LayoutContents ¶
func (s *Sidebar) LayoutContents(gtx layout.Context, th *chapartheme.Theme) layout.Dimensions
func (*Sidebar) SetSelected ¶
func (s *Sidebar) SetSelected(tag interface{})
Click to show internal directories.
Click to hide internal directories.