A C++ Analogy of Java Swing Graphics Widget