Ignore:
Timestamp:
07/23/15 21:16:01 (10 years ago)
Author:
epyon
Message:
  • massive std::string removal
  • no header depends on std::string anymore (or any other STL header)
  • still some code files do (WIP)
  • massive refactoring where std::string was used
  • lua still messy (grep for string128 - used everywhere)
  • string_twine added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/gui/gui_environment.hh

    r433 r440  
    3434                        handle create_element( const rectangle& r );
    3535                        handle create_element( handle parent, const rectangle& r );
    36                         void set_text( handle e, const std::string& text );
    37                         void set_class( handle  e, const std::string& text );
     36                        void set_text( handle e, const string_twine& text );
     37                        void set_class( handle e, const string_view& text );
    3838                        void update();
    3939                        void draw();
    4040                        void destroy_element( handle e );
    4141                        bool process_io_event( const io_event& ev );
     42                        string_view get_string( shash64 h );
    4243                        virtual ~environment();
    4344                protected:
     
    5354                        handle get_deepest_child( handle e, const position& p );
    5455                        void move_to_top( handle child );
    55                         void move_to_bottom( handle child );
    5656                        void set_relative( handle e, const rectangle& r );
    5757                        void set_relative( handle e, const position& p );
     
    5959
    6060                        handle_store< element, handle > m_elements;
     61                        string_table  m_strings;
    6162                        renderer*     m_renderer;
    6263                        handle        m_screen;
Note: See TracChangeset for help on using the changeset viewer.