i try to create a scrolling table. Therefore i use clipping mode stencil at my parent node.
I know already, that clipping makes the node to ignore layering. It tells me to reorder the nodes inside the outline, to modify the render order.
My observation is this, and could to be honest be completely wrong, but it seems to be true
The stencils layer only matter for its own children, assigning a layer that is rendered after its children will make it render after it, as expected. But in the context of all other nodes the stencils are always rendered first (in the “null” layer, I assume) regardless of the layer assigned, this means that its parents layer (and all its parents layers) must be the “null” layer (i.e. no layer assigned), the parent will be drawn on top of the stencil. The layer order does’t seem to affect this behaviour at all.
Yes this sounds like it is. But isnt that quite impractical that its not possible to order clippings inside the gui?
Its not possible to draw the clipping node above some other nodes which got ordered by layers.
But i dont understand rendering, maybe its hard to do that technicaly
Edit:
I dont know why, but my background is now behind the previous screen again
I know that monarch stacks the screens and thats why i can see the lower one if i have no background in my new screen. But i have a background in my gui
For clipping to work properly, the clipper must be drawn before its children. Normally we can change the draw order of nodes by assigning layers to nodes. But doing that for clipper child nodes to draw it before the clipper would be pointless. Instead the meaning of layers within clippers is changed to only affect the relative draw order of the nodes in its scope. The layer set on the clipper node itself does not affect its draw order - but it is inherited by any child node with no layer set (just like outside clippers) and especially by the generated node representing a visible clipper. The clipper is effectively drawn in the “null” layer.
All nodes are using the “stencil” layer. The “green” box should be rendered before (under) the white box, and the only way to get it to do that is to remove the layers from the nodes.