Home | Trees | Index | Help |
|
---|
Package yagdoc :: Module inspector :: Class Type |
|
object
--+
|
Type
Representation of the inspected information about one GType.
All instance variables always exist, even if they do not make sense for a particular type.Method Summary | |
---|---|
Create a new Type. | |
Add a binding from a Bindings record. | |
Add a property from a Properties or special properties
record. | |
Add a signal from a Signals record. | |
Set children from a Children record. | |
Set flags from a Flags record. | |
Set implemented interfaces from a Interfaces record. | |
Set interface prerequisites from a Prerequisites
record. | |
Set get-type function from a Types record. | |
Set the parent of all children types to own name. | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
list of Binding |
bindings : Default keyboard bindings (useful only for GtkWidget subclasses). |
list of str |
children : Names of types derived from this type. |
int |
flags : Object flags (combination of FUNDAMENTAL , DERIVABLE , DEEP_DERIVABLE , INSTANTIABLE , INTERFACE , ABSTRACT , CLASSED , HAS_VALUE_TABLE , IS_VALUE_TYPE flag bits). |
list of str |
interfaces : Names of interfaces this type implementes (useful only for derivable
non-interface types). |
str |
name : Type name. |
str or None |
parent : Name of parent type, None if type is fundamental. |
list of str |
prerequisites : Names of interface implementation prerequisites (useful only for
interface types). |
list of Property |
properties : Properties this type registered. |
list of Signal |
signals : Signals this type registered. |
dict of list of Property |
sproperties : Special properties this type registered. |
str or None |
type_func : Name of the get-type function. |
Class Variable Summary | |
---|---|
int |
FUNDAMENTAL = 1 |
int |
DERIVABLE = 2 |
int |
DEEP_DERIVABLE = 4 |
int |
INSTANTIABLE = 8 |
int |
INTERFACE = 16 |
int |
ABSTRACT = 32 |
int |
CLASSED = 64 |
int |
HAS_VALUE_TABLE = 128 |
int |
IS_VALUE_TYPE = 256 |
dict |
flag_values = {'a': 32, 'c': 64, 'd': 2, 'f': 1, 'i': 8,...
|
Method Details |
---|
__init__(self,
name)
Create a new Type.
|
add_binding(self, record)Add a binding from aBindings record.
|
add_property(self, record, ptype=None)Add a property from aProperties or special properties
record.
|
add_signal(self, record)Add a signal from aSignals record.
|
set_children(self, record)Set children from aChildren record.
|
set_flags(self, record)Set flags from aFlags record.
|
set_interfaces(self, record)Set implemented interfaces from aInterfaces
record.
|
set_prerequsites(self, record)Set interface prerequisites from aPrerequisites
record.
|
set_type_func(self, record)Set get-type function from aTypes record.
|
update_parentage(self, types)Set the parent of all children types to own name.
|
Instance Variable Details |
---|
bindingsDefault keyboard bindings (useful only for GtkWidget subclasses).
|
childrenNames of types derived from this type.
|
flagsObject flags (combination ofFUNDAMENTAL , DERIVABLE , DEEP_DERIVABLE , INSTANTIABLE , INTERFACE , ABSTRACT , CLASSED , HAS_VALUE_TABLE , IS_VALUE_TYPE flag bits).
|
interfacesNames of interfaces this type implementes (useful only for derivable non-interface types).
|
nameType name. For instance'GtkTreeModel' .
|
parentName of parent type,None if type is fundamental. This
attribute is set by update_parentage .
|
prerequisitesNames of interface implementation prerequisites (useful only for interface types).
|
propertiesProperties this type registered.
|
signalsSignals this type registered.
|
spropertiesSpecial properties this type registered. The keys of the dictionary are the special property types, e.g.'Child' or
'Style' . Particular lists exists only for special property
types this type actually registered.
|
type_funcName of the get-type function. For instance'gtk_tree_model_get_type' . Only for explictly inspected
types; set to None for types discovered by inspection.
|
Class Variable Details |
---|
FUNDAMENTAL
|
DERIVABLE
|
DEEP_DERIVABLE
|
INSTANTIABLE
|
INTERFACE
|
ABSTRACT
|
CLASSED
|
HAS_VALUE_TABLE
|
IS_VALUE_TYPE
|
flag_values
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Oct 5 00:36:53 2007 | http://epydoc.sf.net |