Documentation ¶
Index ¶
- func Divider(gtx layout.Context, height unit.Dp) layout.Dimensions
- type Header
- func (h *Header) AddHistory(tag interface{})
- func (h *Header) GetLastHistory() interface{}
- func (h *Header) GetPosition(tag interface{}) int
- func (h *Header) GoBack()
- func (h *Header) HandleKeyGoBack(gtx layout.Context)
- func (h *Header) HandleSwipeRightGoBack(gtx layout.Context)
- func (h *Header) History() []interface{}
- func (h *Header) IsHistory(tag interface{}) bool
- func (h *Header) Layout(gtx layout.Context, th *material.Theme, titleLayout HeaderTitleLayoutFunc) layout.Dimensions
- func (h *Header) ResetHistory()
- type HeaderTitleLayoutFunc
- type ImageHoverClick
- type InfoRow
- type Input
- type LangSelector
- type ListItemMenuItem
- type ListItemSelect
- type PageHeaderAnimation
- type RingSizeSelector
- type TextField
- type ThemeSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct { Title func() string Subtitle func(gtx layout.Context, th *material.Theme) layout.Dimensions LeftLayout func(gtx layout.Context, th *material.Theme) layout.Dimensions RightLayout func(gtx layout.Context, th *material.Theme) layout.Dimensions // contains filtered or unexported fields }
func (*Header) AddHistory ¶
func (h *Header) AddHistory(tag interface{})
func (*Header) GetLastHistory ¶
func (h *Header) GetLastHistory() interface{}
func (*Header) GetPosition ¶
func (*Header) HandleKeyGoBack ¶
func (*Header) HandleSwipeRightGoBack ¶
func (*Header) Layout ¶
func (h *Header) Layout(gtx layout.Context, th *material.Theme, titleLayout HeaderTitleLayoutFunc) layout.Dimensions
func (*Header) ResetHistory ¶
func (h *Header) ResetHistory()
type HeaderTitleLayoutFunc ¶
type ImageHoverClick ¶
type ImageHoverClick struct { Image *components.Image Clickable *widget.Clickable AnimationEnter *animation.Animation AnimationLeave *animation.Animation // contains filtered or unexported fields }
func NewImageHoverClick ¶
func NewImageHoverClick() *ImageHoverClick
func (*ImageHoverClick) Layout ¶
func (item *ImageHoverClick) Layout(gtx layout.Context) layout.Dimensions
type Input ¶
type Input struct { *components.Input // contains filtered or unexported fields }
func NewNumberInput ¶
func NewNumberInput() *Input
func NewPasswordInput ¶
func NewPasswordInput() *Input
type LangSelector ¶
func NewLangSelector ¶
func NewLangSelector(defaultLangKey string) *LangSelector
func (*LangSelector) Layout ¶
func (l *LangSelector) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
type ListItemMenuItem ¶
func (ListItemMenuItem) Layout ¶
func (t ListItemMenuItem) Layout(gtx layout.Context, index int, th *material.Theme) layout.Dimensions
type ListItemSelect ¶
type ListItemSelect struct {
// contains filtered or unexported fields
}
func NewListItemSelect ¶
func NewListItemSelect() *ListItemSelect
func (*ListItemSelect) Layout ¶
func (n *ListItemSelect) Layout(gtx layout.Context, th *material.Theme, buttons []*components.Button) layout.Dimensions
func (*ListItemSelect) SetVisible ¶
func (n *ListItemSelect) SetVisible(visible bool)
func (*ListItemSelect) Toggle ¶
func (n *ListItemSelect) Toggle()
type PageHeaderAnimation ¶
type PageHeaderAnimation struct {
// contains filtered or unexported fields
}
func NewPageHeaderAnimation ¶
func NewPageHeaderAnimation(tag interface{}) *PageHeaderAnimation
func (*PageHeaderAnimation) Enter ¶
func (p *PageHeaderAnimation) Enter(header *Header) bool
This is a helper to load page animation based on the header depth
func (*PageHeaderAnimation) Leave ¶
func (p *PageHeaderAnimation) Leave(header *Header) bool
func (*PageHeaderAnimation) Update ¶
func (p *PageHeaderAnimation) Update(gtx layout.Context, finished func()) (trans op.TransformOp)
type RingSizeSelector ¶
func NewRingSizeSelector ¶
func NewRingSizeSelector(defaultSize int) *RingSizeSelector
func (*RingSizeSelector) Layout ¶
func (r *RingSizeSelector) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
type TextField ¶
type TextField struct {
Input *Input
}
func NewNumberTextField ¶
func NewNumberTextField() *TextField
func NewPasswordTextField ¶
func NewPasswordTextField() *TextField
func NewTextField ¶
func NewTextField() *TextField
type ThemeSelector ¶
func NewThemeSelector ¶
func NewThemeSelector(defaultThemeKey string) *ThemeSelector
func (*ThemeSelector) Layout ¶
func (t *ThemeSelector) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.