assertions: RGtk2 Type Assertion
Description
Assert that an object is of a particular typeUsage
checkPtrType(w, klass = "GtkWidget", nullOk = FALSE, critical = TRUE)
implements(obj, interface)
Details
All RGtk2 functions check that the arguments are of the correct type, if possible.
The checkPtrType
function is most useful to the user when it is not known if an object is of
the required type. A good example is the user data argument of a callback function.
To see if a GObject
implements a certain interface, use implements
.