pixel

package
v0.0.0-...-de0f030 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWindow

func SetupWindow(
	title string,
	winWidth, winHeight, winX, winY float64,
) (*pixelgl.Window, error)

Types

type NotificationText

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

func SetupNotificationText

func SetupNotificationText(
	fontRegular, fontBold font.Face,
	textColor color.Color,
	title, body string,
) *NotificationText

func (*NotificationText) Draw

func (nt *NotificationText) Draw(t pixel.Target)

func (*NotificationText) H

func (nt *NotificationText) H() float64

func (*NotificationText) W

func (nt *NotificationText) W() float64

type NotificationWindow

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

func SetupNotificationWindow

func SetupNotificationWindow(
	winWidth, winHeight, borderWidth float64,
	winColor, borderColor color.Color,
) *NotificationWindow

func (*NotificationWindow) Draw

func (nw *NotificationWindow) Draw(t pixel.Target)

Jump to

Keyboard shortcuts

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