The GraphicsPort class is underway. It works! I can now do this to draw a correctly clipped (and thus depth-sorted) line on any gadget:
GraphicsPort* port = gadget->getNewGraphicsPort(); port->drawHorizLine(10, 20, 100, PA_Color(0, 0, 0)); delete port;
Is it best to have a factory method that returns a new GraphicsPort object, or have an instance of the GraphicsPort as a member variable? Jeff, over to you!