api

types.ch

Declarations in types.ch

1 declarationswindow

Declarations

Public only
window#
Publicnamespace
namespace window
- The resize callback and window_client_size report PHYSICAL pixels (the
WindowError#
Publicvariant
variant WindowError { var PlatformNotSupported : WindowError var CreateFailed : WindowError var InvalidState : WindowError }
message#
Publicfunction
func message(self : &WindowError) : string
delete#
function
func delete(self : *WindowError) : void
Size#
Publicstruct
struct Size { var width : int var height : int }
===========================================================================
make#
PublicfunctionConstructor
func make(width_ : int, height_ : int) : Size
Position#
Publicstruct
struct Position { var x : int var y : int }
make#
PublicfunctionConstructor
func make(x_ : int, y_ : int) : Position
Rect#
Publicstruct
struct Rect { var x : int var y : int var width : int var height : int }
make#
PublicfunctionConstructor
func make(x_ : int, y_ : int, w_ : int, h_ : int) : Rect
Event#
Publicstruct
struct Event { var kind : int var x : int var y : int var button : int var key : int var key_char : uchar var modifiers : int }
make#
PublicfunctionConstructor
func make() : Event
MOD_* bit flags
ResizeCallback#
Publictypealias
type ResizeCallback = func(*void, int, int) : void
===========================================================================
CloseCallback#
Publictypealias
type CloseCallback = func(*void) : void
FocusCallback#
Publictypealias
type FocusCallback = func(*void, bool) : void
EventCallback#
Publictypealias
type EventCallback = func(*void, *Event) : void
DropCallback#
Publictypealias
type DropCallback = func(*void, *char) : void
CommandCallback#
Publictypealias
type CommandCallback = func(*void, int) : void
TimerCallback#
Publictypealias
type TimerCallback = func(*void) : void