nodesnim/environment

Types

EnvironmentObj = object
  windowptr*: WindowPtr      ## window pointer
  color_value: ColorRef
  screen_mode_value: ScreenMode
  delay_value: int
  brightness_value: float
  grabbed_value: bool
  fullscreen_value: bool
  bordered_value: bool
  resizable_value: bool
EnvironmentRef = ref EnvironmentObj

Procs

proc newEnvironment(color: ColorRef = nil; brightness: float = 1.0'f32;
                    windowptr: WindowPtr = nil): EnvironmentRef {...}{.raises: [],
    tags: [].}

Creates a new EnvironmentRef object.

Arguments:

  • color: ColorRef object for background environment color.
  • brightness - window brightness with value in range 0..1
proc delay(env: EnvironmentRef): int {...}{.raises: [], tags: [].}
proc delay=(env: EnvironmentRef; value: int) {...}{.raises: [], tags: [].}
proc background_color(env: EnvironmentRef): ColorRef {...}{.raises: [], tags: [].}
proc background_color=(env: EnvironmentRef; value: ColorRef) {...}{.raises: [],
    tags: [].}
proc background_color=(env: EnvironmentRef; value: uint32) {...}{.raises: [],
    tags: [].}
proc background_color=(env: EnvironmentRef; value: string) {...}{.
    raises: [ValueError, RegexError], tags: [].}
proc grabbed(env: EnvironmentRef): bool {...}{.raises: [], tags: [].}
proc grabbed=(env: EnvironmentRef; value: bool) {...}{.raises: [], tags: [].}
proc fullscreen(env: EnvironmentRef): bool {...}{.raises: [], tags: [].}
proc fullscreen=(env: EnvironmentRef; value: bool) {...}{.raises: [], tags: [].}
proc bordered(env: EnvironmentRef): bool {...}{.raises: [], tags: [].}
proc bordered=(env: EnvironmentRef; value: bool) {...}{.raises: [], tags: [].}
proc resizable(env: EnvironmentRef): bool {...}{.raises: [], tags: [].}
proc resizable=(env: EnvironmentRef; value: bool) {...}{.raises: [], tags: [].}
proc brightness(env: EnvironmentRef): float {...}{.raises: [], tags: [].}
proc brightness=(env: EnvironmentRef; value: float) {...}{.raises: [], tags: [].}
proc screen_mode(env: EnvironmentRef): ScreenMode {...}{.raises: [], tags: [].}
proc screen_mode=(env: EnvironmentRef; value: ScreenMode) {...}{.raises: [], tags: [].}