isValid

fnbool isValid(WidgetPtr widget) @safe nothrow @nogc

Checks if a widget handle is valid (non-null).

Parameters

widgetWidgetPtr handle to check

Returns

true if handle is valid
fnbool isValid(WindowPtr window) @safe nothrow @nogc

Checks if a window handle is valid (non-null).

Parameters

windowWindowPtr handle to check

Returns

true if handle is valid