#include <guiChatConsole.h>
◆ GUIChatConsole()
      
        
          | GUIChatConsole::GUIChatConsole  | 
          ( | 
          gui::IGUIEnvironment * |           env,  | 
        
        
           | 
           | 
          gui::IGUIElement * |           parent,  | 
        
        
           | 
           | 
          s32 |           id,  | 
        
        
           | 
           | 
          ChatBackend * |           backend,  | 
        
        
           | 
           | 
          Client * |           client,  | 
        
        
           | 
           | 
          IMenuManager * |           menumgr ) | 
        
      
 
References clamp_u8(), errorstream, FM_Mono, FONT_SIZE_UNSPECIFIED, g_fontengine, g_settings, Settings::getBool(), FontEngine::getFont(), Settings::getS32(), ITextureSource::getTexture(), Settings::getU16(), Settings::getV3F(), ITextureSource::isKnownSourceImage(), m_background, m_background_color, m_cache_clickable_chat_weblinks, m_font, m_fontsize, m_height, m_is_ctrl_down, m_scrollbar, MYMAX, myround(), rangelim, and setCursor().
 
 
◆ acceptsIME()
  
  
      
        
          | virtual bool GUIChatConsole::acceptsIME  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ animate()
  
  
      
        
          | void GUIChatConsole::animate  | 
          ( | 
          u32 |           msec | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ closeConsole()
      
        
          | void GUIChatConsole::closeConsole  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ closeConsoleAtOnce()
      
        
          | void GUIChatConsole::closeConsoleAtOnce  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ draw()
  
  
      
        
          | void GUIChatConsole::draw  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
References animate(), drawBackground(), drawPrompt(), drawText(), porting::getTimeMs(), m_animate_time_old, m_desired_height, m_desired_height_fraction, m_height, m_screensize, m_scrollbar, reformatConsole(), and updateScrollbar().
 
 
◆ drawBackground()
  
  
      
        
          | void GUIChatConsole::drawBackground  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ drawPrompt()
  
  
      
        
          | void GUIChatConsole::drawPrompt  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
References ChatBackend::getConsoleBuffer(), ChatPrompt::getCursorLength(), ChatBackend::getPrompt(), ChatBuffer::getRows(), ChatPrompt::getVisibleCursorPosition(), ChatPrompt::getVisiblePortion(), m_chat_backend, m_cursor_blink, m_cursor_height, m_desired_height, m_font, m_fontsize, m_height, MYMAX, x, and y.
Referenced by draw().
 
 
◆ drawText()
  
  
      
        
          | void GUIChatConsole::drawText  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
References irr::gui::CGUITTFont::draw(), ChatBackend::getConsoleBuffer(), ChatBuffer::getFormattedLine(), ChatBuffer::getRows(), getScrollbarSize(), m_chat_backend, m_desired_height, m_font, m_fontsize, m_height, m_screensize, m_scrollbar, updateScrollbar(), x, and y.
Referenced by draw().
 
 
◆ isOpen()
      
        
          | bool GUIChatConsole::isOpen  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ isOpenInhibited()
      
        
          | bool GUIChatConsole::isOpenInhibited  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ OnEvent()
  
  
      
        
          | bool GUIChatConsole::OnEvent  | 
          ( | 
          const SEvent & |           event | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
References ChatPrompt::addToHistory(), closeConsole(), closeConsoleAtOnce(), ChatPrompt::CURSOROP_DELETE, ChatPrompt::CURSOROP_DIR_LEFT, ChatPrompt::CURSOROP_DIR_RIGHT, ChatPrompt::CURSOROP_MOVE, ChatPrompt::CURSOROP_SCOPE_CHARACTER, ChatPrompt::CURSOROP_SCOPE_LINE, ChatPrompt::CURSOROP_SCOPE_SELECTION, ChatPrompt::CURSOROP_SCOPE_WORD, ChatPrompt::CURSOROP_SELECT, ChatPrompt::cursorOperation(), dir(), Client::getConnectedPlayerNames(), ChatBackend::getConsoleBuffer(), ChatPrompt::getCursorLength(), getKeySetting(), ChatPrompt::getLine(), ChatBackend::getPrompt(), ChatPrompt::getSelection(), ChatPrompt::historyNext(), ChatPrompt::historyPrev(), ChatPrompt::input(), IS_PRIVATE_USE_CHAR, isInCtrlKeys(), m_cache_clickable_chat_weblinks, m_chat_backend, m_client, m_close_on_enter, m_fontsize, m_height, m_is_ctrl_down, m_open_inhibited, m_scrollbar, myround(), ChatPrompt::nickCompletion(), ChatPrompt::replace(), ChatBackend::scroll(), ChatBuffer::scrollAbsolute(), ChatBackend::scrollPageDown(), ChatBackend::scrollPageUp(), Client::typeChatMessage(), updatePrimarySelection(), utf8_to_wide(), weblinkClick(), and wide_to_utf8().
 
 
◆ openConsole()
      
        
          | void GUIChatConsole::openConsole  | 
          ( | 
          f32 |           scale | ) | 
           | 
        
      
 
 
◆ recalculateConsolePosition()
  
  
      
        
          | void GUIChatConsole::recalculateConsolePosition  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ reformatConsole()
  
  
      
        
          | void GUIChatConsole::reformatConsole  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ replaceAndAddToHistory()
      
        
          | void GUIChatConsole::replaceAndAddToHistory  | 
          ( | 
          const std::wstring & |           line | ) | 
           | 
        
      
 
 
◆ setCloseOnEnter()
  
  
      
        
          | void GUIChatConsole::setCloseOnEnter  | 
          ( | 
          bool |           close | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setCursor()
      
        
          | void GUIChatConsole::setCursor  | 
          ( | 
          bool |           visible,  | 
        
        
           | 
           | 
          bool |           blinking = false,  | 
        
        
           | 
           | 
          f32 |           blink_speed = 1.0,  | 
        
        
           | 
           | 
          f32 |           relative_height = 1.0 ) | 
        
      
 
 
◆ setVisible()
  
  
      
        
          | void GUIChatConsole::setVisible  | 
          ( | 
          bool |           visible | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ updatePrimarySelection()
  
  
      
        
          | void GUIChatConsole::updatePrimarySelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ updateScrollbar()
  
  
      
        
          | void GUIChatConsole::updateScrollbar  | 
          ( | 
          bool |           update_size = false | ) | 
           | 
         
       
   | 
  
private   | 
  
 
References ChatBuffer::getBottomScrollPos(), ChatBackend::getConsoleBuffer(), ChatBuffer::getLineCount(), getScrollbarSize(), ChatBuffer::getScrollPosition(), ChatBuffer::getTopScrollPos(), m_chat_backend, m_fontsize, m_height, m_screensize, and m_scrollbar.
Referenced by draw(), drawText(), and reformatConsole().
 
 
◆ weblinkClick()
  
  
      
        
          | bool GUIChatConsole::weblinkClick  | 
          ( | 
          s32 |           col,  | 
         
        
           | 
           | 
          s32 |           row ) | 
         
       
   | 
  
private   | 
  
 
 
◆ m_animate_time_old
  
  
      
        
          | u64 GUIChatConsole::m_animate_time_old | 
         
       
   | 
  
private   | 
  
 
 
◆ m_background
  
  
      
        
          | video::ITexture* GUIChatConsole::m_background = nullptr | 
         
       
   | 
  
private   | 
  
 
 
◆ m_background_color
  
  
      
        
          | video::SColor GUIChatConsole::m_background_color = video::SColor(255, 0, 0, 0) | 
         
       
   | 
  
private   | 
  
 
 
◆ m_cache_clickable_chat_weblinks
  
  
      
        
          | bool GUIChatConsole::m_cache_clickable_chat_weblinks | 
         
       
   | 
  
private   | 
  
 
 
◆ m_chat_backend
◆ m_client
  
  
      
        
          | Client* GUIChatConsole::m_client | 
         
       
   | 
  
private   | 
  
 
 
◆ m_close_on_enter
  
  
      
        
          | bool GUIChatConsole::m_close_on_enter = false | 
         
       
   | 
  
private   | 
  
 
 
◆ m_cursor_blink
  
  
      
        
          | u32 GUIChatConsole::m_cursor_blink = 0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_cursor_blink_speed
  
  
      
        
          | f32 GUIChatConsole::m_cursor_blink_speed = 0.0f | 
         
       
   | 
  
private   | 
  
 
 
◆ m_cursor_height
  
  
      
        
          | f32 GUIChatConsole::m_cursor_height = 0.0f | 
         
       
   | 
  
private   | 
  
 
 
◆ m_desired_height
  
  
      
        
          | f32 GUIChatConsole::m_desired_height = 0.0f | 
         
       
   | 
  
private   | 
  
 
 
◆ m_desired_height_fraction
  
  
      
        
          | f32 GUIChatConsole::m_desired_height_fraction = 0.0f | 
         
       
   | 
  
private   | 
  
 
 
◆ m_font
  
  
      
        
          | irr_ptr<gui::IGUIFont> GUIChatConsole::m_font | 
         
       
   | 
  
private   | 
  
 
 
◆ m_fontsize
  
  
      
        
          | v2u32 GUIChatConsole::m_fontsize | 
         
       
   | 
  
private   | 
  
 
 
◆ m_height
  
  
      
        
          | s32 GUIChatConsole::m_height = 0 | 
         
       
   | 
  
private   | 
  
 
Referenced by GUIChatConsole(), animate(), closeConsoleAtOnce(), draw(), drawBackground(), drawPrompt(), drawText(), OnEvent(), recalculateConsolePosition(), setVisible(), and updateScrollbar().
 
 
◆ m_height_speed
  
  
      
        
          | f32 GUIChatConsole::m_height_speed = 5.0f | 
         
       
   | 
  
private   | 
  
 
 
◆ m_is_ctrl_down
  
  
      
        
          | bool GUIChatConsole::m_is_ctrl_down | 
         
       
   | 
  
private   | 
  
 
 
◆ m_menumgr
◆ m_open
  
  
      
        
          | bool GUIChatConsole::m_open = false | 
         
       
   | 
  
private   | 
  
 
 
◆ m_open_inhibited
  
  
      
        
          | u32 GUIChatConsole::m_open_inhibited = 0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_screensize
  
  
      
        
          | v2u32 GUIChatConsole::m_screensize | 
         
       
   | 
  
private   | 
  
 
 
◆ m_scrollbar
The documentation for this class was generated from the following files: