Documentation ¶
Index ¶
- type FontCache
- type FontManager
- func (self *FontManager) Acquire(fontName string, fontSize int) (*ttf.Font, error)
- func (self *FontManager) Dump()
- func (self *FontManager) GetFontByIndex(index int) string
- func (self *FontManager) GetFontByName(name string) string
- func (self *FontManager) GetFontCacheCount() int
- func (self *FontManager) GetFontCount() int
- func (self *FontManager) GetUseFontCount() int
- func (self *FontManager) Release(font *ttf.Font)
- func (self *FontManager) SetSearchPath(searchPath string)
- type FontMeta
- type GeoLocationManager
- type Location
- type NetworkManager
- type NetworkRequest
- type NetworkResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontManager ¶
type FontManager struct {
// contains filtered or unexported fields
}
func NewFontManager ¶
func NewFontManager() *FontManager
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 GeoLocationManager ¶
type GeoLocationManager struct { }
func NewGeoLocationManager ¶
func NewGeoLocationManager() *GeoLocationManager
func (*GeoLocationManager) GetLocation ¶
func (self *GeoLocationManager) GetLocation() *Location
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()
Click to show internal directories.
Click to hide internal directories.