resolution

package
v0.0.0-...-f1991a8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAspecRatio

func GetAspecRatio(res Resolution) float64

func IsLandScape

func IsLandScape(res Resolution) bool

Types

type Resolution

type Resolution interface {
	GetID() ResolutionID
	GetHeight() uint64
	GetWidth() uint64
}

func NewMasterResolution

func NewMasterResolution(height, width uint64) Resolution

func NewOriginalResolution

func NewOriginalResolution(height, width uint64) Resolution

func NewResolution

func NewResolution(height, width uint64) Resolution

type ResolutionID

type ResolutionID string
const (
	OriginalResolution ResolutionID = "original"
	MasterResolution   ResolutionID = "master"
)

func GenerateResolutionID

func GenerateResolutionID(height, width uint64) ResolutionID

Jump to

Keyboard shortcuts

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