panel

package
v0.0.0-...-6915f5a Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Unlicense, Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuoUIpanelStyle

type DuoUIpanelStyle struct {
	PanelObject func(gtx layout.Context) layout.Dimensions
	ScrollBar   *ScrollBarStyle
	// contains filtered or unexported fields
}

func DuoUIpanelSt

func DuoUIpanelSt(t *theme.DuoUItheme) DuoUIpanelStyle

func (*DuoUIpanelStyle) Layout

func (p *DuoUIpanelStyle) Layout(gtx layout.Context, panel *Panel, row func(i int, in func(gtx layout.Context) layout.Dimensions)) layout.Dimensions

func (*DuoUIpanelStyle) ScrollBarLayout

func (p *DuoUIpanelStyle) ScrollBarLayout(gtx layout.Context, panel *Panel) layout.Dimensions

type Panel

type Panel struct {
	VisibleObjectsNumber int
	//totalOffset       int
	PanelContentLayout *layout.List
	PanelObject        interface{}
	PanelObjectsNumber int
	ScrollBar          *ScrollBar
	ScrollUnit         float32
}

func NewPanel

func NewPanel() *Panel

func (*Panel) Layout

func (p *Panel) Layout(gtx *layout.Context)

type ScrollBar

type ScrollBar struct {
	Size   int
	Slider *Slider
	Up     *widget.Clickable
	Down   *widget.Clickable
}

type ScrollBarButton

type ScrollBarButton struct {
	//button      DuoUIbutton
	Height int
	// contains filtered or unexported fields
}

type ScrollBarSlider

type ScrollBarSlider struct {
	Icon widget.Icon
	// contains filtered or unexported fields
}

type ScrollBarStyle

type ScrollBarStyle struct {
	ColorBg      string
	BorderRadius [4]float32
	OperateValue interface{}
	// contains filtered or unexported fields
}

func ScrollBarSt

func ScrollBarSt(t *theme.DuoUItheme, leftMargin int) *ScrollBarStyle

type Slider

type Slider struct {
	Do           func(interface{})
	OperateValue interface{}

	Position     int
	Cursor       int
	Height       int
	CursorHeight int
	// contains filtered or unexported fields
}

func (*Slider) Layout

func (s *Slider) Layout(gtx *layout.Context)

Jump to

Keyboard shortcuts

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