Skip to content
Cardeal Russo edited this page Sep 25, 2024 · 2 revisions

API: fenstim

import fenstim

type Fenster

Fenster = object

proc init

proc init(_: type Fenster; title: string; width: int; height: int; fps: int = 60): Fenster

proc loop

proc loop(self: var Fenster): bool {forbids: [].}

proc []

proc `[]`(self: Fenster; x, y: int): uint32 {forbids: [].}

proc []=

proc `[]=`(self: Fenster; x, y: int; color: SomeInteger)

proc width

proc width(self: Fenster): int {forbids: [].}

proc height

proc height(self: Fenster): int {forbids: [].}

proc keys

proc keys(self: Fenster): array[256, cint] {forbids: [].}

proc mouse

proc mouse(self: Fenster): tuple[x, y, click: int] {forbids: [].}

proc modkey

proc modkey(self: Fenster): int {forbids: [].}

proc targetFps

proc targetFps(self: Fenster): int {forbids: [].}

proc targetFps=

proc targetFps=(self: var Fenster; fps: int) {forbids: [].}