-
Notifications
You must be signed in to change notification settings - Fork 1
API Usage
Cardeal Russo edited this page Sep 25, 2024
·
2 revisions
import fenstim
Fenster = object
proc init(_: type Fenster; title: string; width: int; height: int; fps: int = 60): Fenster
proc loop(self: var Fenster): bool {forbids: [].}
proc `[]`(self: Fenster; x, y: int): uint32 {forbids: [].}
proc `[]=`(self: Fenster; x, y: int; color: SomeInteger)
proc width(self: Fenster): int {forbids: [].}
proc height(self: Fenster): int {forbids: [].}
proc keys(self: Fenster): array[256, cint] {forbids: [].}
proc mouse(self: Fenster): tuple[x, y, click: int] {forbids: [].}
proc modkey(self: Fenster): int {forbids: [].}
proc targetFps(self: Fenster): int {forbids: [].}
proc targetFps=(self: var Fenster; fps: int) {forbids: [].}