graphix-package-gui 0.8.0

A dataflow language for UIs and network programming, GUI package
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
type KeyEvent = {
  key: string,
  modifiers: {shift: bool, ctrl: bool, alt: bool, logo: bool},
  text: string,
  repeat: bool
};

type KeyboardArea = {
  child: &Widget,
  on_key_press: &fn(e: KeyEvent) -> Any,
  on_key_release: &fn(e: KeyEvent) -> Any
};

val keyboard_area: fn(
  ?#on_key_press: fn(e: KeyEvent) -> Any,
  ?#on_key_release: fn(e: KeyEvent) -> Any,
  child: &Widget
) -> Widget