"getSizes"

Returns the sizes of the separate modules.

Synopsis

dyn_int shape.getSizes();

Parameter

Parameter Description
shape Object name

Description

The function returns a list of the sizes for the separate modules within the splitter object.

If the orientation of the splitter ("orientation") is horizontal the width of the modules is returned (left to right) and for vertical splitters the height of the modules is returned (top to bottom). Invisible splitters have a size of 0.

Example

The example addes 5 new modules to the splitter and assigns a size of 200 to 4 of the modules. The last module is hidden. The actual sizes of the modules is then send to the log viewer.

main()
{
  dyn_int size = makeDynInt(200,200,200,200,0);
  for( int i = 0; i < 5;i++)
  {
    this.addModule("myModule_" + i);
  }
  this.setSizes(size);
  DebugN(this.getSizes());
}

Assignment

Splitter