Imagine a document is 1000x1000 in size for sake of demonstration.
max_width = 1000
max_height = 1000
Pressing a modifier key on the ruler and pulling out a guide like would call a mirror Guide. this would be a guide in the opposite corner or the document mirroring the one you are holding. this would help making measures to the center of the document or too the edges of the document.
guide_1 = event.x()
guide_2 = max_width - guide_1
guide_3 = event.y()
guide_4 = max_height - guide_3
If you pressed on the mirrored one location they would simply flip locations.
hope my made up math is still understandable.
image made for display (it is not exact)
