These allow one to discover what ``properties'' or variables a Gtk object supports and the details of each property such as its type and whether it can be set or only read.
"names"(x)
gtkObjectGetArgInfo(obj, parents=TRUE, collapse=TRUE)
obj
. If this is true, we iterate over the
successive super-classes of obj
.
TRUE
)
or maintained as separate elements in a top-level list that allows
one to determine to which class each property originates.
The names of a property contains the class for which it is defined.
names
returns a character vector giving
the names of the available properties
with the class prefix removed.
gtkObjectGetArgInfo
returns a list giving details of
the properties. At the lowest level, each property
is described by a list containing
GtkType
which identifies the
type (!) of the value of the property.parents
is FALSE
, then a simple list giving
each property for the class of obj
is returned.
If parents
is TRUE
and collapse
is
FALSE
, then a list indexed by class is returned.
Each element is a list containing the property information.
gtkObjectGetArgInfo
with parents = TRUE
, collapse=TRUE
to find all the available properties in the most
convenient format.
Tool writers using the reflectance may want to get the associated
classes and process the properties hierarchically.