Esempio n. 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 );
      }
Esempio n. 2
0
File: window.hpp Progetto: 8l/x11
      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();

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