view

package
v0.0.0-...-40caaf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Rigid   = layout.Rigid
	Flexed  = layout.Flexed
	Stacked = layout.Stacked
)

Functions

This section is empty.

Types

type Animation

type Animation = component.VisibilityAnimation

type AvatarView

type AvatarView struct {
	Size  image.Point
	Image image.Image
	widget.Clickable
	AppTheme      theme.AppTheme
	Selected      bool
	SelectionMode bool
}

func (*AvatarView) Layout

func (v *AvatarView) Layout(gtx layout.Context) layout.Dimensions

type Dim

type Dim = layout.Dimensions

func DrawAppImageCenter

func DrawAppImageCenter(gtx Gtx, theme theme.AppTheme) Dim

type EditorAnimated

type EditorAnimated struct {
	Animation component.VisibilityAnimation
	widget.Editor
	AppTheme theme.AppTheme
	layout.Inset
	// contains filtered or unexported fields
}

func (*EditorAnimated) Layout

type Flex

type Flex = layout.Flex

type Gtx

type Gtx = layout.Context

type IconButton

type IconButton struct {
	*material.Theme
	Button widget.Clickable
	Icon   *widget.Icon
	Text   string
	layout.Inset
}

func (*IconButton) Layout

func (b *IconButton) Layout(gtx Gtx) Dim

type ImportAccountView

type ImportAccountView struct {
	// contains filtered or unexported fields
}

func NewImportAccountView

func NewImportAccountView() *ImportAccountView

func (*ImportAccountView) Layout

func (i *ImportAccountView) Layout(gtx Gtx) layout.Dimensions

type Loader

type Loader struct {
	AppTheme theme.AppTheme

	Size image.Point
	// contains filtered or unexported fields
}

func (*Loader) Layout

func (l *Loader) Layout(gtx layout.Context) layout.Dimensions
type Modal struct {
	// contains filtered or unexported fields
}

func (*Modal) DismissWithAnim

func (m *Modal) DismissWithAnim()

func (*Modal) DismissWithoutAnim

func (m *Modal) DismissWithoutAnim()

func (*Modal) Layout

func (m *Modal) Layout(gtx layout.Context) layout.Dimensions

func (*Modal) Show

func (m *Modal) Show(option fwk.ModalOption)

type ModalContent

type ModalContent struct {
	OnCloseClick func()
	layout.List
	// contains filtered or unexported fields
}

func NewModalContent

func NewModalContent(onCloseClick func()) *ModalContent

func (*ModalContent) DrawContent

func (m *ModalContent) DrawContent(gtx layout.Context, theme theme.AppTheme, contentWidget layout.Widget) layout.Dimensions

type PasswordForm

type PasswordForm struct {
	AppTheme theme.AppTheme

	OnSuccess func()

	layout.List
	// contains filtered or unexported fields
}

func NewPasswordForm

func NewPasswordForm(OnSuccess func()) *PasswordForm

func (*PasswordForm) Layout

func (p *PasswordForm) Layout(gtx Gtx) Dim
type Search struct {
	widget.Clickable
	EditorAnimated
	Icon     *widget.Icon
	AppTheme theme.AppTheme
	// contains filtered or unexported fields
}

func (*Search) Layout

func (s *Search) Layout(gtx layout.Context) layout.Dimensions

type Slider

type Slider struct {
	Duration time.Duration
	// contains filtered or unexported fields
}

Slider implements sliding between old/new widget values.

func (*Slider) Layout

func (s *Slider) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions

Layout lays out widget that can be pushed.

func (*Slider) PushLeft

func (s *Slider) PushLeft()

PushLeft pushes the existing widget to the left.

func (*Slider) PushRight

func (s *Slider) PushRight()

PushRight pushes the existing widget to the right.

type Swiper

type Swiper struct {
	layout.Axis

	AllowInfSwipe bool
	// contains filtered or unexported fields
}

func (*Swiper) Layout

func (s *Swiper) Layout(gtx layout.Context, length int, element layout.ListElement) layout.Dimensions

type TabItem

type TabItem struct {
	*widget.Icon
	Title string
}

type Tabs

type Tabs struct {
	layout.List
	TabItems []TabItem
}

type View

type View = fwk.View

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL