GVUpdater(3U)
π GVUpdater β ok bestie, let's talk π
InterViews Reference Manual Β· section 3U Β· yeah we're in the library pages now, buckle up π
β¨ NAME β¨
GVUpdater β she updates the GraphicViews structure so it matches its subject. glow-up service, basically π
π¦ SYNOPSIS π¦
#include <Unidraw/Components/gvupdater.h>
πΈ DESCRIPTION πΈ
okay so. GVUpdater is an implementation class that GraphicViews uses to keep its state and structure consistent with its GraphicComps subject. no cap, she's the behind-the-scenes bestie making sure nobody's out here looking mismatched π
here's what she guarantees:
- the subject's immediate children are identical to the view's β same number, same graphics state attributes. fr fr, exactly matching.
- the root
GraphicViewsandGraphicCompsthemselves have the same graphics state. slay.
and here's the thing she does not do, and this matters:
GVUpdater does not ensure that it will detect and update changes made to deeper child nodes. like, she's not doing a full deep dive, bestie. immediate children only. deeper nodes are on their own π
π PUBLIC OPERATIONS π
GVUpdater(GraphicView*)β the constructor takes theGraphicViewthat it will be updating as a parameter and stores it in the protected member_gv. normally,GraphicViewsare the only objects that will instantiateGVUpdaterβ so if that's you, bestie, you're special β¨virtual void Update()β Update theGraphicViewto make it consistent with its subject. that's the whole assignment. go make them match π«Ά
π§ PROTECTED OPERATIONS π§
void UpdateStructure()void UpdateState()
The Update procedure takes place in two stages, and the order is not vibes-based, it's real:
- the subject's and view's structures are reconciled first by
UpdateStructure - and then the view's graphic state is changed to match the subjects with
UpdateState.
structure first, then state. periodt π
void AddDamage(Graphic*)void IncurDamage(Graphic*)void Unselect(GraphicView*)virtual void Add(GraphicView*)virtual void Append(GraphicView*)virtual void InsertBefore(Iterator, GraphicView*)virtual void Remove(Iterator&)virtual void DeleteView(Iterator&)
GVUpdater is a friend of GraphicViews β yes, actual friend privileges, main character energy π these convenience operations provide an interface to the corresponding protected GraphicViews operations. iykyk π
virtual ClassId ViewCategory()β Returns the view category (seeclasses(3U)) thatGVUpdaterwill use to instantiate views of subjects.ViewCategoryreturnsCOMPONENT_VIEWby default. that's the default, don't forget it π
π₯ SEE ALSO π₯
GraphicComp(3U), GraphicView(3U), classes(3U)
that's the whole page bestie, go forth and keep your views consistent πβ¨
with love from the Unidraw girlies β 19 January 1991 β yeah we've been iconic since then π π
π¦ 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