Module gd_os

Search:
Group by:

Consts

DAY_SUNDAY* = 0'i64
DAY_MONDAY* = 1'i64
DAY_TUESDAY* = 2'i64
DAY_WEDNESDAY* = 3'i64
DAY_THURSDAY* = 4'i64
DAY_FRIDAY* = 5'i64
DAY_SATURDAY* = 6'i64
MONTH_JANUARY* = 1'i64
MONTH_FEBRUARY* = 2'i64
MONTH_MARCH* = 3'i64
MONTH_APRIL* = 4'i64
MONTH_MAY* = 5'i64
MONTH_JUNE* = 6'i64
MONTH_JULY* = 7'i64
MONTH_AUGUST* = 8'i64
MONTH_SEPTEMBER* = 9'i64
MONTH_OCTOBER* = 10'i64
MONTH_NOVEMBER* = 11'i64
MONTH_DECEMBER* = 12'i64
SCREEN_ORIENTATION_LANDSCAPE* = 0'i64
SCREEN_ORIENTATION_PORTRAIT* = 1'i64
SCREEN_ORIENTATION_REVERSE_LANDSCAPE* = 2'i64
SCREEN_ORIENTATION_REVERSE_PORTRAIT* = 3'i64
SCREEN_ORIENTATION_SENSOR_LANDSCAPE* = 4'i64
SCREEN_ORIENTATION_SENSOR_PORTRAIT* = 5'i64
SCREEN_ORIENTATION_SENSOR* = 6'i64
SYSTEM_DIR_DESKTOP* = 0'i64
SYSTEM_DIR_DCIM* = 1'i64
SYSTEM_DIR_DOCUMENTS* = 2'i64
SYSTEM_DIR_DOWNLOADS* = 3'i64
SYSTEM_DIR_MOVIES* = 4'i64
SYSTEM_DIR_MUSIC* = 5'i64
SYSTEM_DIR_PICTURES* = 6'i64
SYSTEM_DIR_RINGTONES* = 7'i64
POWERSTATE_UNKNOWN* = 0'i64
POWERSTATE_ON_BATTERY* = 1'i64
POWERSTATE_NO_BATTERY* = 2'i64
POWERSTATE_CHARGING* = 3'i64
POWERSTATE_CHARGED* = 4'i64

Procs

proc setClipboard*(clipboard: string) {.
gcsafe, locks: 0
.}
proc getClipboard*(): string {.
gcsafe, locks: 0
.}
proc getScreenCount*(): int64 {.
gcsafe, locks: 0
.}
proc getCurrentScreen*(): int64 {.
gcsafe, locks: 0
.}
proc setCurrentScreen*(screen: int64) {.
gcsafe, locks: 0
.}
proc getScreenPosition*(screen: int64 = 0'i64): Vector2 {.
gcsafe, locks: 0
.}
proc getScreenSize*(screen: int64 = 0'i64): Vector2 {.
gcsafe, locks: 0
.}
proc getScreenDpi*(screen: int64 = 0'i64): int64 {.
gcsafe, locks: 0
.}
proc getWindowPosition*(): Vector2 {.
gcsafe, locks: 0
.}
proc setWindowPosition*(position: Vector2) {.
gcsafe, locks: 0
.}
proc getWindowSize*(): Vector2 {.
gcsafe, locks: 0
.}
proc setWindowSize*(size: Vector2) {.
gcsafe, locks: 0
.}
proc setWindowFullscreen*(enabled: bool) {.
gcsafe, locks: 0
.}
proc isWindowFullscreen*(): bool {.
gcsafe, locks: 0
.}
proc setWindowResizable*(enabled: bool) {.
gcsafe, locks: 0
.}
proc isWindowResizable*(): bool {.
gcsafe, locks: 0
.}
proc setWindowMinimized*(enabled: bool) {.
gcsafe, locks: 0
.}
proc isWindowMinimized*(): bool {.
gcsafe, locks: 0
.}
proc setWindowMaximized*(enabled: bool) {.
gcsafe, locks: 0
.}
proc isWindowMaximized*(): bool {.
gcsafe, locks: 0
.}
proc requestAttention*() {.
gcsafe, locks: 0
.}
proc setBorderlessWindow*(borderless: bool) {.
gcsafe, locks: 0
.}
proc getBorderlessWindow*(): bool {.
gcsafe, locks: 0
.}
proc setImePosition*(position: Vector2) {.
gcsafe, locks: 0
.}
proc setScreenOrientation*(orientation: int64) {.
gcsafe, locks: 0
.}
proc getScreenOrientation*(): int64 {.
gcsafe, locks: 0
.}
proc setKeepScreenOn*(enabled: bool) {.
gcsafe, locks: 0
.}
proc isKeepScreenOn*(): bool {.
gcsafe, locks: 0
.}
proc hasTouchscreenUiHint*(): bool {.
gcsafe, locks: 0
.}
proc setWindowTitle*(title: string) {.
gcsafe, locks: 0
.}
proc setLowProcessorUsageMode*(enable: bool) {.
gcsafe, locks: 0
.}
proc isInLowProcessorUsageMode*(): bool {.
gcsafe, locks: 0
.}
proc getProcessorCount*(): int64 {.
gcsafe, locks: 0
.}
proc getExecutablePath*(): string {.
gcsafe, locks: 0
.}
proc execute*(path: string; arguments: PoolStringArray; blocking: bool; output: Array): int64 {.
gcsafe, locks: 0
.}
proc kill*(pid: int64): int64 {.
gcsafe, locks: 0
.}
proc shellOpen*(uri: string): int64 {.
gcsafe, locks: 0
.}
proc getProcessId*(): int64 {.
gcsafe, locks: 0
.}
proc getEnvironment*(environment: string): string {.
gcsafe, locks: 0
.}
proc hasEnvironment*(environment: string): bool {.
gcsafe, locks: 0
.}
proc getName*(): string {.
gcsafe, locks: 0
.}
proc getCmdlineArgs*(): PoolStringArray {.
gcsafe, locks: 0
.}
proc getDatetime*(utc: bool = false): Dictionary {.
gcsafe, locks: 0
.}
proc getDate*(utc: bool = false): Dictionary {.
gcsafe, locks: 0
.}
proc getTime*(utc: bool = false): Dictionary {.
gcsafe, locks: 0
.}
proc getTimeZoneInfo*(): Dictionary {.
gcsafe, locks: 0
.}
proc getUnixTime*(): int64 {.
gcsafe, locks: 0
.}
proc getDatetimeFromUnixTime*(unixTimeVal: int64): Dictionary {.
gcsafe, locks: 0
.}
proc getUnixTimeFromDatetime*(datetime: Dictionary): int64 {.
gcsafe, locks: 0
.}
proc getSystemTimeSecs*(): int64 {.
gcsafe, locks: 0
.}
proc setIcon*(icon: Image) {.
gcsafe, locks: 0
.}
proc getExitCode*(): int64 {.
gcsafe, locks: 0
.}
proc setExitCode*(code: int64) {.
gcsafe, locks: 0
.}
proc delayUsec*(usec: int64) {.
gcsafe, locks: 0
.}
proc delayMsec*(msec: int64) {.
gcsafe, locks: 0
.}
proc getTicksMsec*(): int64 {.
gcsafe, locks: 0
.}
proc getSplashTickMsec*(): int64 {.
gcsafe, locks: 0
.}
proc getLocale*(): string {.
gcsafe, locks: 0
.}
proc getLatinKeyboardVariant*(): string {.
gcsafe, locks: 0
.}
proc getModelName*(): string {.
gcsafe, locks: 0
.}
proc canDraw*(): bool {.
gcsafe, locks: 0
.}
proc isStdoutVerbose*(): bool {.
gcsafe, locks: 0
.}
proc canUseThreads*(): bool {.
gcsafe, locks: 0
.}
proc isDebugBuild*(): bool {.
gcsafe, locks: 0
.}
proc dumpMemoryToFile*(file: string) {.
gcsafe, locks: 0
.}
proc dumpResourcesToFile*(file: string) {.
gcsafe, locks: 0
.}
proc hasVirtualKeyboard*(): bool {.
gcsafe, locks: 0
.}
proc showVirtualKeyboard*(existingText: string = "") {.
gcsafe, locks: 0
.}
proc hideVirtualKeyboard*() {.
gcsafe, locks: 0
.}
proc printResourcesInUse*(short: bool = false) {.
gcsafe, locks: 0
.}
proc printAllResources*(tofile: string = "") {.
gcsafe, locks: 0
.}
proc getStaticMemoryUsage*(): int64 {.
gcsafe, locks: 0
.}
proc getStaticMemoryPeakUsage*(): int64 {.
gcsafe, locks: 0
.}
proc getDynamicMemoryUsage*(): int64 {.
gcsafe, locks: 0
.}
proc getDataDir*(): string {.
gcsafe, locks: 0
.}
proc getSystemDir*(dir: int64): string {.
gcsafe, locks: 0
.}
proc getUniqueId*(): string {.
gcsafe, locks: 0
.}
proc isOkLeftAndCancelRight*(): bool {.
gcsafe, locks: 0
.}
proc printAllTexturesBySize*() {.
gcsafe, locks: 0
.}
proc printResourcesByType*(types: PoolStringArray) {.
gcsafe, locks: 0
.}
proc nativeVideoPlay*(path: string; volume: float64; audioTrack: string;
                     subtitleTrack: string): int64 {.
gcsafe, locks: 0
.}
proc nativeVideoIsPlaying*(): bool {.
gcsafe, locks: 0
.}
proc nativeVideoStop*() {.
gcsafe, locks: 0
.}
proc nativeVideoPause*() {.
gcsafe, locks: 0
.}
proc nativeVideoUnpause*() {.
gcsafe, locks: 0
.}
proc getScancodeString*(code: int64): string {.
gcsafe, locks: 0
.}
proc isScancodeUnicode*(code: int64): bool {.
gcsafe, locks: 0
.}
proc findScancodeFromString*(string: string): int64 {.
gcsafe, locks: 0
.}
proc setUseFileAccessSaveAndSwap*(enabled: bool) {.
gcsafe, locks: 0
.}
proc alert*(text: string; title: string = "Alert!") {.
gcsafe, locks: 0
.}
proc setThreadName*(name: string): int64 {.
gcsafe, locks: 0
.}
proc setUseVsync*(enable: bool) {.
gcsafe, locks: 0
.}
proc isVsyncEnabled*(): bool {.
gcsafe, locks: 0
.}
proc getPowerState*(): int64 {.
gcsafe, locks: 0
.}
proc getPowerSecondsLeft*(): int64 {.
gcsafe, locks: 0
.}
proc getPowerPercentLeft*(): int64 {.
gcsafe, locks: 0
.}