DVT SystemVerilog IDE User Guide
Rev. 24.2.25, 31 October 2024

33.3.1 Layouts

There is a large set of layout options available. A complete reference can be found here. The best approach to finding the desired layout is by using the extensive autocomplete provided by the SWT/XML Editor. Below there is a list common use-cases with examples.

Horizonal Fill

   <Composite id=" -verbosity " layout="layout:fill;">
       <Label text="Verbosity:"/>
       <Button id=" HIGH " style="RADIO" text="High"/>
       <Button id=" MEDIUM " style="RADIO" text="Medium"/>
       <Button id=" LOW " style="RADIO" text="Low"/>
   </Composite>

Vertical Fill

   <Composite id=" -verbosity " layout="layout:fill;type:VERTICAL;">
       <Label text="Verbosity:"/>
       <Button id=" HIGH " style="RADIO" text="High"/>
       <Button id=" MEDIUM " style="RADIO" text="Medium"/>
       <Button id=" LOW " style="RADIO" text="Low"/>
   </Composite>

Grid

   <Composite id=" -verbosity " layout="layout:grid;numColumns:3;">
       <Label text="Verbosity:" layoutData="horizontalSpan:3;"/>
       <Button id=" HIGH " style="RADIO" text="High"/>
       <Button id=" MEDIUM " style="RADIO" text="Medium"/>
       <Button id=" LOW " style="RADIO" text="Low"/>
   </Composite>