Lines Matching refs:elem

55 def matchAPIProfile(api, profile, elem):  argument
59 if ('api' in elem.attrib):
62 elem.get('api') + "'")
63 elif (api != elem.get('api')):
66 if ('profile' in elem.attrib):
69 elem.get('profile') + "'")
70 elif (profile != elem.get('profile')):
85 def __init__(self, elem): argument
88 self.elem = elem
97 def __init__(self, elem): argument
98 BaseInfo.__init__(self, elem)
104 def __init__(self, elem): argument
105 BaseInfo.__init__(self, elem)
112 def __init__(self, elem): argument
113 BaseInfo.__init__(self, elem)
114 self.type = elem.get('type')
121 def __init__(self, elem): argument
122 BaseInfo.__init__(self, elem)
138 def __init__(self, elem): argument
139 BaseInfo.__init__(self, elem)
140 self.name = elem.get('name')
143 if (elem.tag == 'feature'):
145 self.version = elem.get('number')
150 self.number = elem.get('number')
224 def addElementInfo(self, elem, info, infoName, dictionary): argument
225 if ('api' in elem.attrib):
226 key = (elem.get('name'),elem.get('api'))
228 key = elem.get('name')
351 gi.elem.append(enum)
371 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
375 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
379 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
383 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
387 etree.tostring(self.apidict[key].elem)[0:maxlen], file=filehandle)
391 etree.tostring(self.extdict[key].elem)[0:maxlen], file=filehandle)
409 if ('requires' in type.elem.attrib):
410 depType = type.elem.get('requires')
418 for subtype in type.elem.findall('.//type'):
423 for subenum in type.elem.findall('.//enum'):
466 for type in cmd.elem.findall('.//type'):
520 if ('requires' in f.elem.attrib):
521 depname = f.elem.get('requires')
525 for subtype in f.elem.findall('.//type'):
529 for subtype in f.elem.findall('.//enum'):
535 if (f.elem.get('category') == 'enum'):
547 for type in f.elem.findall('.//type'):
605 api = fi.elem.get('api')
643 pat = '^(' + ei.elem.get('supported') + ')$'
692 self.requireAndRemoveFeatures(f.elem, self.genOpts.apiname, self.genOpts.profile)
705 f.elem.get('name'), 'because it is not tagged for emission')
708 self.gen.beginFeature(f.elem, emit)
709 self.generateRequiredInterface(f.elem)