Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Children of KContainerRenderings are placed inside, depending on the KPlacement of the container. Currently KRendering offers KStackPlacement for placing renderings in one column and KGridPlacement for placing renderings on a grid. KDirectPlacement is the default placement of all renderings. A children can refine its placement by using KPlacementData. A children's placement can be refined by attaching KPlacementData to it. For example by using KDirectPlacementData you can specify the bounding box of a KRendering. The coordinates are relativ to left/right and top/bottom of the parent and have an absolute and relative part.

 

Rendering details e.g. LineWidth, ForegroundColor, Foreground visibility are specified by lists of KStyle objects. The convention is that early styles in the list overwrite later ones. By setting the attribute propagateToChildren you can apply the style to all children of the rendering.