enum

Tryst::NativeWindowKind

Inherits Enum < Comparable < Value < Object

Which platform's window identifier a NativeWindow is carrying.

The three are not interchangeable, and an embedding API wants a specific one: an X Window ID is a number the X server assigns, while the other two are pointers to objects in this process.

Constants

X11 = 0

An X Window ID.

Cocoa = 1

An NSWindow pointer. Always the TOPLEVEL's - see NativeWindow#covers_toplevel?.

Win32 = 2

An HWND.

Instance methods

cocoa?

Returns true if this enum value equals Cocoa

Source
win32?

Returns true if this enum value equals Win32

Source
x11?

Returns true if this enum value equals X11

Source