• Home
  • Raw
  • Download

Lines Matching refs:elem

70 def matchAPIProfile(api, profile, elem):  argument
74 if ('api' in elem.attrib):
77 elem.get('api') + "'")
78 elif (api != elem.get('api')):
81 if ('profile' in elem.attrib):
84 elem.get('profile') + "'")
85 elif (profile != elem.get('profile')):
100 def __init__(self, elem): argument
103 self.elem = elem
112 def __init__(self, elem): argument
113 BaseInfo.__init__(self, elem)
119 def __init__(self, elem): argument
120 BaseInfo.__init__(self, elem)
128 def __init__(self, elem): argument
129 BaseInfo.__init__(self, elem)
130 self.type = elem.get('type')
142 def __init__(self, elem): argument
143 BaseInfo.__init__(self, elem)
158 def __init__(self, elem): argument
159 BaseInfo.__init__(self, elem)
160 self.name = elem.get('name')
163 if (elem.tag == 'feature'):
165 self.number = elem.get('number')
177 if (feature.elem.tag == 'feature'):
487 for elem in proto:
488 text = noneStr(elem.text)
489 tail = noneStr(elem.tail)
490 if (elem.tag == 'name'):
610 typeElem = typeinfo.elem
612 for elem in typeElem:
613 if (elem.tag == 'apientry'):
614 s += self.genOpts.apientry + noneStr(elem.tail)
616 s += noneStr(elem.text) + noneStr(elem.tail)
625 self.enumBody += '#define ' + name.ljust(33) + ' ' + enuminfo.elem.get('value')
628 t = enuminfo.elem.get('type')
637 decls = self.makeCDecls(cmdinfo.elem)
711 def addElementInfo(self, elem, info, infoName, dictionary): argument
712 if ('api' in elem.attrib):
713 key = (elem.get('name'),elem.get('api'))
715 key = elem.get('name')
808 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle)
812 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle)
816 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle)
820 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle)
824 etree.tostring(self.apidict[key].elem)[0:maxlen], file=filehandle)
828 etree.tostring(self.extdict[key].elem)[0:maxlen], file=filehandle)
845 if (required and ('requires' in type.elem.attrib)):
846 depType = type.elem.get('requires')
886 for ptype in cmd.elem.findall('.//ptype'):
935 if ('requires' in f.elem.attrib):
936 depname = f.elem.get('requires')
942 for ptype in f.elem.findall('.//ptype'):
1005 api = fi.elem.get('api')
1043 pat = '^(' + ei.elem.get('supported') + ')$'
1092 self.requireAndRemoveFeatures(f.elem, self.genOpts.apiname, self.genOpts.profile)
1105 f.elem.get('name'), 'because it is not tagged for emission')
1108 self.gen.beginFeature(f.elem, emit)
1109 self.generateRequiredInterface(f.elem)