window

package
v0.0.0-...-a5d0d41 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultWindow

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

func (*DefaultWindow) GetBackground

func (win *DefaultWindow) GetBackground() color.RGBA

func (*DefaultWindow) GetSize

func (win *DefaultWindow) GetSize() common.Size

func (*DefaultWindow) GetTitle

func (win *DefaultWindow) GetTitle() string

func (*DefaultWindow) GetView

func (win *DefaultWindow) GetView() *common.Component

func (*DefaultWindow) Layout

func (win *DefaultWindow) Layout(outsideWidth, outsideHeight int)

func (*DefaultWindow) SetBackground

func (win *DefaultWindow) SetBackground(c color.RGBA)

type Window

type Window interface {
	GetTitle() string
	GetSize() common.Size
	SetBackground(c color.RGBA)
	GetBackground() color.RGBA
	GetView() *common.Component
	Layout(outsideWidth, outsideHeight int)
}

func NewDefaultWindow

func NewDefaultWindow(viewFactory func(core common.Core) common.Component) Window

Jump to

Keyboard shortcuts

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