[Xcb] xproto.xml QueryTextExtents question

Thomas Hunger hto at arcor.de
Sun Apr 22 15:26:37 PDT 2007


usually for each list type there is a field like "string_len" when the 
list is named "string".

QueryTextExtents has no such field. It could of course be inferred 
that it needs to be there because there is a list. But then why not 
always infer the name of the length-field (when it is not an 


  <request name="ListFonts" opcode="49">
    <pad bytes="1"/>
    <field type="CARD16" name="max_names"/>
    <field type="CARD16" name="pattern_len"/>
    <list type="char" name="pattern">

has "pattern_len".

  <request name="QueryTextExtents" opcode="48">
    <exprfield type="BOOL" name="odd_length">
      <op op="&amp;">
    <field type="FONTABLE" name="font"/>
    <list type="CHAR2B" name="string"/>

should have <field type="CARD32" name="string_len" />

Also, sometimes list is written as <list type="char" name="pattern" /> 
which implies the existance of a field "pattern_len". In other places  
<fieldref>name_len<fieldref> is used to express the same idea. Is is 
intentional? (See e.g. request InternAtom vs. PolyPoint where the 
points_len is implicit again)

I'll try to restate if this is not clear enough.


More information about the Xcb mailing list