Picture(3U)
β¨ Picture(3U) β¨
okay bestie, welcome to the InterViews Reference Manual π you're reading about Picture, a composite structured graphic, and honestly? she's the friend who organizes the whole group chat. π
πΈ NAME πΈ
Picture β a composite structured graphic π¦
β¨ SYNOPSIS β¨
#include <Unidraw/Graphic/picture.h>
π DESCRIPTION π
So like, a Picture defines a composition of graphic objects. Think of it as the group chat and the children as the members β the picture runs the whole vibe. π«Ά
A picture has its own graphics state, and it concatenates that state with its children's state when it is drawn or erased. No cap.
Picture adopts the default concatenation semantics supported by the Graphic base class: the picture's graphics state effectively overrides its children's, so that they are drawn with the picture's state information substituted for their own. A child's attribute is used only when the picture does not already define it. It's giving main character energy, and honestly, the picture is the main character. π
Moreover, each child's transformer is postmultiplied by the picture's transformer when the picture is drawn; thus children are drawn relative to the picture's coordinate system. iykyk. π
π PUBLIC OPERATIONS π
Picture(Graphic* = nil)β Construct a new picture, and optionally supply a graphic from which to copy an initial set of graphics state.Pictureis derived fromFullGraphicand therefore defines a full set of graphics state. β¨virtual ~Picture()β The picture deletes its children when it is deleted. π she takes everyone with her, fr fr.boolean IsEmpty()βPicturedefinesIsEmptyin addition to the standardGraphicchild traversal operations, to provide a convenient way to check if the picture has any children. vibe check on the children, basically. π§
π PROTECTED OPERATIONS π
Graphic* graphic(UList*)UList* Elem(Iterator)
Convenience functions for extracting a graphic from a UList element and a UList from an iterator. lowkey the little helper besties. π
π¦ SEE ALSO π¦
Graphic(3U), Iterator(3U), Transformer(3I), UList(3U), pspaint(3U) π
quick reminder babe: this whole page is straight from the Unidraw manual, dated 1 February 1991. periodt. π β¨ go read those SEE ALSOs, they're iconic. ππΈπ
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms