Documentation ¶
Index ¶
- func CareteDir(path string)
- func GetCurrentDirectory() string
- func InitLog()
- func LockFile() bool
- func PathExists(path string) (bool, error)
- func ReadConfig(file string, section string, key string) string
- func SaveWindowInfo(ctx context.Context)
- func WailsOptions(jsBind []interface{}, iconInfos map[string][]byte, assets embed.FS, ...) *options.App
- type AppFun
- func (a *AppFun) BeforeClose(ctx context.Context) (prevent bool)
- func (a *AppFun) ChangeWindowOnTop() bool
- func (a *AppFun) CloseApp() string
- func (a *AppFun) CloseAppNoQuest()
- func (a *AppFun) ErrorMsg(sTitle, sMessage string)
- func (a *AppFun) HasWindow() string
- func (a *AppFun) InfoMsg(sTitle, sMessage string)
- func (a *AppFun) IsWindowOnTop() bool
- func (a *AppFun) OpenDirectoryDialog(dialogOption string) *msgentity.MsgEntity
- func (a *AppFun) OpenFile(defaultPath string) *msgentity.MsgEntity
- func (a *AppFun) OpenFileDialog(dialogOption string) *msgentity.MsgEntity
- func (a *AppFun) QuestionMsg(sTitle, sMessage string) string
- func (a *AppFun) ReadFile(path string) *msgentity.MsgEntity
- func (a *AppFun) SaveAsFile(defaultPath string, text string) *msgentity.MsgEntity
- func (a *AppFun) SaveFile(path string, text string) *msgentity.MsgEntity
- func (a *AppFun) SaveFileDialog(dialogOption string) *msgentity.MsgEntity
- func (a *AppFun) SetWindwIsShow(bl bool)
- func (a *AppFun) Shutdown(ctx context.Context)
- func (a *AppFun) Startup(ctx context.Context)
- func (a *AppFun) SystemType() string
- func (a *AppFun) WarningMsg(sTitle, sMessage string)
- func (a *AppFun) WindowFullscreen()
- func (a *AppFun) WindowHide()
- func (a *AppFun) WindowIsMaximised() bool
- func (a *AppFun) WindowIsMinimised() bool
- func (a *AppFun) WindowMaximise()
- func (a *AppFun) WindowMinimise()
- func (a *AppFun) WindowOnTop(top bool)
- func (a *AppFun) WindowPrint() string
- func (a *AppFun) WindowShow()
- func (a *AppFun) WindowToggleMaximise()
- func (a *AppFun) WindowUnminimise()
- func (a *AppFun) WindwIsShow() bool
- type CustomLogger
- func (*CustomLogger) Critical(message string)
- func (*CustomLogger) Debug(message string)
- func (*CustomLogger) Error(message string)
- func (*CustomLogger) Fatal(message string)
- func (*CustomLogger) Info(message string)
- func (*CustomLogger) Print(message string)
- func (*CustomLogger) Trace(message string)
- func (*CustomLogger) Warning(message string)
- type FileLoader
- type SystemTray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveWindowInfo ¶
Types ¶
type AppFun ¶
type AppFun struct { GiWidth int GiHeight int GiTop int GiLeft int GisMaxWindow bool ClearTrayFun func() //清理托盘函数 // contains filtered or unexported fields }
App struct
func (*AppFun) CloseAppNoQuest ¶
func (a *AppFun) CloseAppNoQuest()
func (*AppFun) OpenDirectoryDialog ¶
打开选择目录对话框
func (*AppFun) OpenFileDialog ¶
打开选择文件对话框
func (*AppFun) QuestionMsg ¶
Question消息
func (*AppFun) SaveAsFile ¶
另存文件
func (*AppFun) SaveFileDialog ¶
打开保存文件对话框
func (*AppFun) SystemType ¶
type CustomLogger ¶
type CustomLogger struct{}
CustomLogger 实现github.com/wailsapp/wails/v2/pkg/logger里logger.Logger接口的自定义日志器的结构体
func GetLog ¶
func GetLog() *CustomLogger
func (*CustomLogger) Critical ¶
func (*CustomLogger) Critical(message string)
Critical 实现了 logger.Logger 接口的 Critical 方法
func (*CustomLogger) Debug ¶
func (*CustomLogger) Debug(message string)
Debug 实现了 logger.Logger 接口的 Debug 方法
func (*CustomLogger) Error ¶
func (*CustomLogger) Error(message string)
Error 实现了 logger.Logger 接口的 Error 方法
func (*CustomLogger) Fatal ¶
func (*CustomLogger) Fatal(message string)
Fatal 实现了 logger.Logger 接口的 Fatal 方法
func (*CustomLogger) Info ¶
func (*CustomLogger) Info(message string)
Info 实现了 logger.Logger 接口的 Info 方法
func (*CustomLogger) Print ¶
func (*CustomLogger) Print(message string)
Panic 实现了 logger.Logger 接口的 Panic 方法
func (*CustomLogger) Trace ¶
func (*CustomLogger) Trace(message string)
Panic 实现了 logger.Logger 接口的 Panic 方法
func (*CustomLogger) Warning ¶
func (*CustomLogger) Warning(message string)
Warning 实现了 logger.Logger 接口的 Warning 方法
type FileLoader ¶
func NewFileLoader ¶
func NewFileLoader() *FileLoader
func (*FileLoader) ServeHTTP ¶
func (h *FileLoader) ServeHTTP(res http.ResponseWriter, req *http.Request)
type SystemTray ¶
type SystemTray struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.