mirror of https://github.com/status-im/nimqml.git
commit
47207e4f17
|
@ -124,6 +124,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
|||
# QCoreApplication
|
||||
proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qapplication_initialize_opengl() {.cdecl, dynlib: dynLibName, importc.}
|
||||
|
||||
# QApplication
|
||||
proc dos_qapplication_create(appName: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
proc enableHDPI*() =
|
||||
dos_qapplication_enable_hdpi()
|
||||
|
||||
proc initializeOpenGL*() =
|
||||
dos_qapplication_initialize_opengl()
|
||||
|
||||
proc applicationDirPath*(app: QCoreApplication): string =
|
||||
let str = dos_qcoreapplication_application_dir_path()
|
||||
|
|
Loading…
Reference in New Issue