Skip to content
  • Benjamin Otte's avatar
    snapshot: Change how gtk_snapshot_push/pop works · 02131d59
    Benjamin Otte authored
    Instead of appending a container node and adding the nodes to it as they
    come in, we now collect the nodes until gtk_snapshot_pop() is called and
    then hand them out in a container node.
    
    The caller of gtk_snapshot_push() is then responsible for doing whatever
    he wants with the created node.
    
    Another addigion is the keep_coordinates flag to gtk_snapshot_push()
    which allows callers to keep the current offset and clip region or
    discard it. Discarding is useful when doing transforms, keeping it is
    useful when inserting effect nodes (like the ones I'm about to add).
    02131d59