Esempio n. 1
0
File: window.hpp Progetto: 8l/x11
      virtual void refresh ()
	{
	  XClearWindow ( m_display,
			 m_window );

	  XFlush ( m_display );

	  on_expose();

	}
Esempio n. 2
0
      virtual void create()
      {
         if ( m_window ) return;

         m_window = XCreateSimpleWindow ( m_display,
                                          m_parent.id(),
                                          m_rect.origin().x(),
                                          m_rect.origin().y(),
                                          m_rect.width(),
                                          m_rect.height(),
                                          0,
                                          WhitePixel((void*)m_display,0),
                                          WhitePixel((void*)m_display,0));

         if ( m_window == 0 )
         {
            throw create_edit_exception
            ( "could not create label" );
         }

         m_parent.get_event_dispatcher().register_window ( (window_base*) this );
         //set_background ( m_background );
         on_expose();
      }
Esempio n. 3
0
 virtual void on_show(){ on_expose(); }