Exemple #1
0
      virtual void set_background ( color& c )
      {
         m_background = &c;

         XSetWindowBackground ( m_display, m_window, c.pixel() );

         XClearWindow ( m_display, m_window );

         XFlush ( m_display );
      }
Exemple #2
0
      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();

	}
Exemple #3
0
      void set_background ( color& c )
	{
	  XSetBackground ( m_display,
			   m_gc,
			   c.pixel() );
	}
Exemple #4
0
      void set_foreground ( color& c )
	{
	  XSetForeground ( m_display,
			   m_gc,
			   c.pixel() );
	}