virtual void set_background ( color& c ) { m_background = &c; XSetWindowBackground ( m_display, m_window, c.pixel() ); XClearWindow ( m_display, m_window ); XFlush ( m_display ); }
virtual void set_background ( color& c ) { // hold a ref to the alloc'ed color m_background.set ( c ); XSetWindowBackground ( m_display, m_window, c.pixel() ); refresh(); }
void set_background ( color& c ) { XSetBackground ( m_display, m_gc, c.pixel() ); }
void set_foreground ( color& c ) { XSetForeground ( m_display, m_gc, c.pixel() ); }