util

package
v0.0.0-...-1c0f6f5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontCache

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

type FontManager

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

func NewFontManager

func NewFontManager() *FontManager

func (*FontManager) Acquire

func (self *FontManager) Acquire(fontName string, fontSize int) (*ttf.Font, error)

func (*FontManager) Dump

func (self *FontManager) Dump()

func (*FontManager) GetFontByIndex

func (self *FontManager) GetFontByIndex(index int) string

func (*FontManager) GetFontByName

func (self *FontManager) GetFontByName(name string) string

func (*FontManager) GetFontCacheCount

func (self *FontManager) GetFontCacheCount() int

func (*FontManager) GetFontCount

func (self *FontManager) GetFontCount() int

func (*FontManager) GetUseFontCount

func (self *FontManager) GetUseFontCount() int

func (*FontManager) Release

func (self *FontManager) Release(font *ttf.Font)

func (*FontManager) SetSearchPath

func (self *FontManager) SetSearchPath(searchPath string)

type FontMeta

type FontMeta struct {
	Name string
	Path string
}

type GeoLocationManager

type GeoLocationManager struct {
}

func NewGeoLocationManager

func NewGeoLocationManager() *GeoLocationManager

func (*GeoLocationManager) GetLocation

func (self *GeoLocationManager) GetLocation() *Location

type Location

type Location struct {
	Latitude  float64
	Longitude float64
}

type NetworkManager

type NetworkManager struct {
}

func NewNetworkManager

func NewNetworkManager() *NetworkManager

func (*NetworkManager) MakeRequest

func (self *NetworkManager) MakeRequest(owner string, method string, url string, timeout int) (*NetworkRequest, error)

func (*NetworkManager) Perform

func (self *NetworkManager) Perform(networkRequest *NetworkRequest) (*NetworkResponse, error)

type NetworkRequest

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

func (*NetworkRequest) AddHeader

func (self *NetworkRequest) AddHeader(headerName string, headerValue string)

func (*NetworkRequest) AddQueryParam

func (self *NetworkRequest) AddQueryParam(key string, value string)

type NetworkResponse

type NetworkResponse struct {
	Body []byte
}

func (*NetworkResponse) Bytes

func (self *NetworkResponse) Bytes() []byte

func (*NetworkResponse) Close

func (self *NetworkResponse) Close()

Jump to

Keyboard shortcuts

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