layout

package
v0.0.0-...-c0736c2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcTextWidth

func CalcTextWidth(text string, fontSize float64) float64

CalcTextWidth 计算文本宽度

Types

type ScreenLayout

type ScreenLayout struct {
	// 屏幕宽高(一般是屏幕分辨率)
	Width  int
	Height int
}

Screen 关卡屏幕

func NewScreenLayout

func NewScreenLayout() ScreenLayout

NewScreenLayout ...

type ScreenPos

type ScreenPos struct {
	SX int
	SY int
}

ScreenPos 屏幕坐标

Jump to

Keyboard shortcuts

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