is_toplevel


Description:

[ Version ( since = "2.18" ) ]
public bool is_toplevel ()

Determines whether this is a toplevel widget.

Currently only Window and Invisible (and out-of-process Plugs) are toplevel widgets. Toplevel widgets have no parent widget.

Parameters:

this

a Widget

Returns:

true if this is a toplevel, false otherwise