EditorInfo(3U)
π NAME π
EditorInfo β the lil container that stores information about an editor's contents. that's it, that's the whole job, and honestly? it does it flawlessly. π
oh also hi bestie, this is the EditorInfo(3U) page from the InterViews Reference Manual and I'm gonna walk you through every single bit of it, no skips, no shortcuts. π«Ά
β¨ SYNOPSIS β¨
#include <Unidraw/editorinfo.h>
one include. that's the entire entrance. we love a low-effort icon. π
π¦ DESCRIPTION π¦
An EditorInfo object is a UMap that stores a list of strings and/or string tuples. periodt.
Application-specific editors can use these objects to store information about what components, commands, and tools they incorporate in their interface. The programmer can write out this information with a catalog object and read it back in later. The application can then let the user change the editor's configuration by editing the catalog-generated file. it's giving "your tool palette but it's a save file" and I'm obsessed. π₯
fr fr example, straight from the source: an EditorInfo object could have a list of names for tools in the editor's interface that have been saved with the catalog. When the application is restarted, the EditorInfo object can be read first, and then the catalog can reconstruct the tools given their names. like?? that's so clean?? π§
π PUBLIC OPERATIONS π
EditorInfo()β Construct anEditorInfoinstance. bam. born. a fresh lil baby map. πvoid Register(const char* name, const char* info = "")void UnregisterName(const char*)void UnregisterInfo(const char*)boolean Registered(const char* name)
okay so these four are a squad and they share a description, so buckle up: Register enters a name or name-info tuple into the EditorInfo object. UnregisterName removes an entry whose name string matches the given one, while UnregisterInfo removes an entry whose info string matches the given one. And the Registered operation returns whether or not an entry with a matching name exists. yes bestie, Registered is literally a vibe check for your entries. β
const char* GetName(const char* info)const char* GetInfo(const char* name)
these two are the name-info tuple lookup operations. The GetName operation returns the name corresponding to a given info string, while the GetInfo operation returns the info string for a given name. it's giving mutuals. they know each other. π¦
const char* GetName(int index)const char* GetInfo(int index)
Name or info strings can be accessed by an index that reflects the order in which they were registered. These operations return the name or info string for a given index. so if you registered it third, it's index three energy. number-coded and unbothered. π’β¨
π SEE ALSO π
Catalog(3U)Editor(3U)UMap(3U)
and that's the whole page bestie!! π«Ά this one is Unidraw, dated 30 July 1990 β yes, the date is older than us, and it's still serving. go forth and store your editor info, you absolute main character. πβ¨π
π¦ 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