1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

more C fn definitions

This commit is contained in:
Alexander Medvednikov 2019-11-24 13:16:02 +03:00
parent f4fe90ea6d
commit 81c17e55a6
2 changed files with 13 additions and 7 deletions

View File

@ -105,3 +105,7 @@ fn C.GetFileAttributesW(lpFileName byteptr) u32
fn C.RegQueryValueExW(hKey voidptr, lpValueName &u16, lpReserved &u32, lpType &u32, lpData byteptr, lpcbData &u32) int
fn C.RegOpenKeyExW(hKey voidptr, lpSubKey &u16, ulOptions u32, samDesired u32, phkResult voidptr) int
fn C.RemoveDirectory() int
fn C.GetStdHandle()
fn C.SetConsoleMode()
fn C._putsws()
fn C.wprintf()

View File

@ -32,6 +32,8 @@ fn C.XConvertSelection(d &Display, selection Atom, target Atom, property Atom, r
fn C.XSync(d &Display, discard int) int
fn C.XGetWindowProperty(d &Display, w Window, property Atom, offset i64, length i64, delete int, req_type Atom, actual_type_return &Atom, actual_format_return &int, nitems &i64, bytes_after_return &i64, prop_return &byteptr) int
fn C.XDeleteProperty(d &Display, w Window, property Atom) int
fn C.DefaultScren() int
struct C.XSelectionRequestEvent{
mut:
selection Atom
@ -409,7 +411,7 @@ fn new_atom(value int) &Atom {
}
fn create_xwindow(display &Display) Window {
N := int(C.DefaultScreen(display))
N := C.DefaultScreen(display)
return XCreateSimpleWindow(display, C.RootWindow(display, N), 0, 0, 1, 1, 0, C.BlackPixel(display, N), C.WhitePixel(display, N))
}