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, raises: [Exception], tags: [RootEffect]
.}
proc getClipboard(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getVideoDriverCount(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getVideoDriverName(driver: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getAudioDriverCount(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getAudioDriverName(driver: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScreenCount(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getCurrentScreen(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setCurrentScreen(screen: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScreenPosition(screen: int64 = -1'i64): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScreenSize(screen: int64 = -1'i64): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScreenDpi(screen: int64 = -1'i64): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getWindowPosition(): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowPosition(position: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getWindowSize(): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowSize(size: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getWindowSafeArea(): Rect2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowFullscreen(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isWindowFullscreen(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowResizable(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isWindowResizable(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowMinimized(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isWindowMinimized(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowMaximized(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isWindowMaximized(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowAlwaysOnTop(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isWindowAlwaysOnTop(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc requestAttention() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getRealWindowSize(): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc centerWindow() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setBorderlessWindow(borderless: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getBorderlessWindow(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getWindowPerPixelTransparencyEnabled(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowPerPixelTransparencyEnabled(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setImePosition(position: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setScreenOrientation(orientation: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScreenOrientation(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setKeepScreenOn(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isKeepScreenOn(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasTouchscreenUiHint(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setWindowTitle(title: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setLowProcessorUsageMode(enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isInLowProcessorUsageMode(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getProcessorCount(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getExecutablePath(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc execute(path: string; arguments: PoolStringArray; blocking: bool;
            output: Array = newArray()): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc kill(pid: int64): Error {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc shellOpen(uri: string): Error {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getProcessId(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getEnvironment(environment: string): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasEnvironment(environment: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getName(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getCmdlineArgs(): PoolStringArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getDatetime(utc: bool = false): Dictionary {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getDate(utc: bool = false): Dictionary {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getTime(utc: bool = false): Dictionary {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getTimeZoneInfo(): Dictionary {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getUnixTime(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getDatetimeFromUnixTime(unixTimeVal: int64): Dictionary {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getUnixTimeFromDatetime(datetime: Dictionary): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getSystemTimeSecs(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setIcon(icon: Image) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getExitCode(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setExitCode(code: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc delayUsec(usec: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc delayMsec(msec: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getTicksMsec(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getSplashTickMsec(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getLocale(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getLatinKeyboardVariant(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getModelName(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canDraw(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isUserfsPersistent(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isStdoutVerbose(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc canUseThreads(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isDebugBuild(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc dumpMemoryToFile(file: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc dumpResourcesToFile(file: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasVirtualKeyboard(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc showVirtualKeyboard(existingText: string = "") {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hideVirtualKeyboard() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getVirtualKeyboardHeight(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc printResourcesInUse(short: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc printAllResources(tofile: string = "") {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getStaticMemoryUsage(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getStaticMemoryPeakUsage(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getDynamicMemoryUsage(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getUserDataDir(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getSystemDir(dir: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getUniqueId(): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isOkLeftAndCancelRight(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc printAllTexturesBySize() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc printResourcesByType(types: PoolStringArray) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc nativeVideoPlay(path: string; volume: float64; audioTrack: string;
                    subtitleTrack: string): Error {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc nativeVideoIsPlaying(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc nativeVideoStop() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc nativeVideoPause() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc nativeVideoUnpause() {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getScancodeString(code: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isScancodeUnicode(code: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc findScancodeFromString(string: string): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setUseFileAccessSaveAndSwap(enabled: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc alert(text: string; title: string = "Alert!") {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setThreadName(name: string): Error {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setUseVsync(enable: bool) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isVsyncEnabled(): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc hasFeature(tagName: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getPowerState(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getPowerSecondsLeft(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getPowerPercentLeft(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}