v_osdialog
所属分类:通讯编程
开发工具:V
文件大小:0KB
下载次数:0
上传日期:2022-05-30 19:02:31
上 传 者:
sh-1993
说明: 基于C-osdialog的操作系统对话框(如文件保存、打开、消息框、输入等)的V跨平台包装器,
(V cross platform wrapper for OS dialogs like file save, open, message boxes, inputs, etc based on C-osdialog,)
文件列表:
LICENSE (11356, 2021-04-24)
osdialog/ (0, 2021-04-24)
tests/ (0, 2021-04-24)
tests/test.v (925, 2021-04-24)
v.mod (209, 2021-04-24)
v_osdialog.v (2517, 2021-04-24)
# module v_osdialog
A cross platform wrapper for OS dialogs like file save, open, message boxes, inputs, color picking, etc. for [V](https://vlang.io).
Currently tested MacOS, Windows.
# license
Original С-osdialog is released into the public domain [(CC0)](https://github.com/AndrewBelt/osdialog/blob/master/LICENSE.txt) by [AndrewBelt](https://github.com/AndrewBelt).
[V](https://vlang.io)-wrapper is released under [Apache License 2.0](LICENSE).
## Contents
- [file](#file)
- [message](#message)
- [prompt](#prompt)
- [Actions](#Actions)
- [Buttons](#Buttons)
- [Levels](#Levels)
## file
```v
fn file(action Actions, path string, filename string, filters string) string
```
[[Return to contents]](#Contents)
## message
```v
fn message(level Levels, buttons Buttons, message string) bool
```
[[Return to contents]](#Contents)
## prompt
```v
fn prompt(level Levels, message string, text string) string
```
[[Return to contents]](#Contents)
## Actions
```v
enum Actions {
open_file = C.OSDIALOG_OPEN
open_dir = C.OSDIALOG_OPEN_DIR
save = C.OSDIALOG_SAVE
}
```
[[Return to contents]](#Contents)
## Buttons
```v
enum Buttons {
ok = C.OSDIALOG_OK
ok_cancel = C.OSDIALOG_OK_CANCEL
yes_no = C.OSDIALOG_YES_NO
}
```
[[Return to contents]](#Contents)
## Levels
```v
enum Levels {
info = C.OSDIALOG_INFO
warning = C.OSDIALOG_WARNING
error = C.OSDIALOG_ERROR
}
```
[[Return to contents]](#Contents)
#### Powered by vdoc. Generated on: 24 Apr 2021 19:12:45
近期下载者:
相关文件:
收藏者: