Added widget class and some GFX operations.