datas(3U)
π datas(3U) β the InterViews Reference Manual, but make it cute π
okay bestie, welcome to datas(3U) from the InterViews Reference Manual. this is the Unidraw corner of the world and it's literally just a little squad of Data subclasses that exist so undo can remember stuff. yes, undo. the thing you beg for after you delete your whole canvas. iconic behaviour, honestly. π«Ά
β¨ NAME β¨
ColorData, GSData, MobilityData, MoveData, VoidData β Data subclasses for storing common undo information. that's the whole vibe. five little data-holders, each one carrying the receipts so you can rewind. π
β¨ SYNOPSIS β¨
#include <Unidraw/Commands/datas.h>
one include, zero drama. π
β¨ DESCRIPTION β¨
so the Unidraw library ships with several Data subclasses already predefinied for you β wait, predefined, sorry, my fingers slipped, it's giving typo energy π β and they store the common undo information you're gonna need. let's go one by one:
ColorDatastores twoPSColors β usually the foreground and background colors, like a little before-and-after selfie of your palette. π¨GSDatastores a whole complete set of graphics state inside aFullGraphicobject. the full fit. the entire outfit. β¨MobilityDatastores the mobility and the graphics state info you need to undo a change in mobility. both. at once. multitasking queen. πMoveDatastores a horizontal and a vertical distance. that's it, that's the girl. she moves. πVoidDatastores a void pointer β and lowkey it's the useful alternative to deriving trivially fromDatajust to store one word of information. no cap, sometimes you just need one word and a dream. π
π¨ COLORDATA PUBLIC OPERATIONS π¨
ColorData(PSColor*, PSColor*)β creates aColorDatainstance, and you hand it thePSColorobjects it's gonna store. give her the colors, she holds them. that's the arrangement. π
πΌοΈ GSDATA PUBLIC OPERATIONS πΌοΈ
GSData(Graphic*)β creates aGSDatainstance, and you supply theGraphicobject it copies a complete set of graphics state from. theGSDataconstructor copies all of that into its_gsmember, and that's where you can go get it later. it's saved. it's safe. it's in_gs. π«Ά
π¦ MOBILITYDATA PUBLIC OPERATIONS π¦
MobilityData(Mobility, Graphic*)β creates aMobilityDatainstance, and you supply the mobility plus aGraphicobject to copy a complete set of graphics state from. theMobilityDataconstructor copies the graphic into its_gsmember, from whence it can be retrieved later. same_gsenergy, different subclass. πΈ
πΊ MOVEDATA PUBLIC OPERATIONS πΊ
MoveData(float, float)β creates aMoveDatainstance, and you supply two floating point numbers that normally represent horizontal and vertical movement. normally. iykyk. π₯
π³οΈ VOIDDATA PUBLIC OPERATIONS π³οΈ
VoidData(void*)β creates aVoidDatainstance, and you supply a pointer to an object of unknown type. mysterious. ethereal. a void pointer with main character energy. π
π SEE ALSO π
Data(3U)Graphic(3U)globals(3U)
go read those too bestie, they're the extended universe. πβ¨
heads up:VoidDataexists specifically so you don't have to derive trivially fromDatajust to store one word of information. that's not a warning, that's a favour. take it. π
and that's the page!! this one came from Unidraw, dated 24 January 1991, and yeah it's filed under datas(3U) β old school but still serving. periodt. ππβ¨
π¦ 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