How does gnome control monitor topology?

I know that ultimately xrandr is used to control monitor settings but between that and the control center is there a wrapper library that gnome uses to control the topology? I’ve searched so much and can’t come up on anything