Learn R Programming

RGtk2 (version 2.8.7)

assertions: RGtk2 Type Assertion

Description

Assert that an object is of a particular type

Usage

checkPtrType(w, klass = "GtkWidget", nullOk = FALSE, critical = TRUE)
implements(obj, interface)

Arguments

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.