icon

package
v0.0.0-...-fb6b14c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlayer

func AddPlayer(name string)

AddPlayer 添加音频播放,提供对外使用

Types

type Audio

type Audio struct {
	URL      string `json:"url"`
	Duration int    `json:"duration"`
}

Audio 音频信息

type IconListModel

type IconListModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

IconListModel 场景对象

type IconStack

type IconStack struct {
	core.QObject
	// contains filtered or unexported fields
}

IconStack 选中场景栈

type Info

type Info struct {
	Title      string  `json:"title"`
	EngTitle   string  `json:"engTitle"`
	ColorParam string  `json:"colorParam"`
	Icon       string  `json:"icon"`
	Frequency  int     `json:"frequency"`
	Volume     float32 `json:"volume"`
	Type       int     `json:"type"`
	AudioUrls  []Audio `json:"audioUrls"`
	IsActive   bool    `json:"isActive"`
}

Info 详情

func Load

func Load(file string) (infoList []Info)

Load 加载文件信息

type SelectedStackModel

type SelectedStackModel struct {
	core.QAbstractListModel
	// contains filtered or unexported fields
}

SelectedStackModel 选中音频栈

var (
	SelectedStackObj *SelectedStackModel
)

Jump to

Keyboard shortcuts

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