Function VisualServerSingleton.viewportSetCanvasStacking

Sets the stacking order for a viewport's canvas. layer is the actual canvas layer, while sublayer specifies the stacking order of the canvas among those in the same layer.

void viewportSetCanvasStacking (
  const(RID) viewport,
  const(RID) canvas,
  const(long) layer,
  const(long) sublayer
) nothrow @nogc;