robust-parenting #12

Merged
sashakoshka merged 17 commits from robust-parenting into main 2023-03-15 22:34:08 -06:00
Owner

Instead of setting a bunch of callbacks (which look like you can just set them anytime you want) in order to connect a child to a parent, we now have a SetParent method. The child can cast the parent to several other interfaces to probe for capabilities just like the parent can.

Instead of setting a bunch of callbacks (which look like you can just set them anytime you want) in order to connect a child to a parent, we now have a SetParent method. The child can cast the parent to several other interfaces to probe for capabilities just like the parent can.
sashakoshka added 17 commits 2023-03-15 22:33:53 -06:00
Instead of the previous parenting model where parents would set
child callbacks during adoption by probing for callback setters,
child elements will instead probe their parents for notify methods
listed in the standard parent interfaces. This means that an
element cannot be half-parented to something, nor can it be
parented to two things at once. Parent elements may themselves
fulfill these interfaces, or they can pass a hook that fulfills
them to the child.
Still need to fix on X backend window, that will be in the next
commit.
sashakoshka merged commit 6ee3014fda into main 2023-03-15 22:34:08 -06:00
sashakoshka deleted branch robust-parenting 2023-03-15 22:34:09 -06:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tomo/tomo-old#12
No description provided.