worlds

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type Map

type Map struct {
	MapImage  *image.RGBA
	BoundsMin protocol.ChunkPos
	BoundsMax protocol.ChunkPos
	// contains filtered or unexported fields
}

func (*Map) HandlePointerEvent added in v1.28.1

func (m *Map) HandlePointerEvent(e pointer.Event)

func (*Map) Layout

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

func (*Map) Update

func (m *Map) Update(u *messages.UpdateMap)

type Page

type Page struct {
	*pages.Router

	State messages.UIState
	// contains filtered or unexported fields
}

func New

func New(router *pages.Router) *Page

func (*Page) Actions

func (p *Page) Actions() []component.AppBarAction

func (*Page) Handler

func (u *Page) Handler(data any) messages.MessageResponse

func (*Page) Layout

func (p *Page) Layout(gtx C, th *material.Theme) D

func (*Page) NavItem

func (p *Page) NavItem() component.NavItem

func (*Page) Overflow

func (p *Page) Overflow() []component.OverflowAction

Jump to

Keyboard shortcuts

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