Luanti 5.19.0-dev
Loading...
Searching...
No Matches
guiChatConsole.cpp File Reference
#include "guiChatConsole.h"
#include "chat.h"
#include "client/client.h"
#include "client/keycode.h"
#include "settings.h"
#include "porting.h"
#include "client/texturesource.h"
#include "client/fontengine.h"
#include "log.h"
#include "gettext.h"
#include "irrlicht_changes/CGUITTFont.h"
#include "util/string.h"
#include "guiScrollBar.h"
#include <IOSOperator.h>
#include <IVideoDriver.h>
#include <string>
Include dependency graph for guiChatConsole.cpp:

Functions

u32 clamp_u8 (s32 value)
bool isInCtrlKeys (const EKEY_CODE &kc)
u32 getScrollbarSize (IGUIEnvironment *env)

Variables

static constexpr s32 SCROLLBAR_SCALE = 128
 Scrollbars use integers, hence give enough room to interpolate for smooth scrolling.
static constexpr s32 SCROLL_SMALL_STEP = 3

Function Documentation

◆ clamp_u8()

u32 clamp_u8 ( s32 value)
inline

References clamp_u8(), MYMAX, and MYMIN.

Referenced by GUIChatConsole::GUIChatConsole(), clamp_u8(), and GUIFormSpecMenu::regenerateGui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getScrollbarSize()

u32 getScrollbarSize ( IGUIEnvironment * env)
inline

References getScrollbarSize().

Referenced by GUIChatConsole::drawText(), getScrollbarSize(), and GUIChatConsole::updateScrollbar().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInCtrlKeys()

bool isInCtrlKeys ( const EKEY_CODE & kc)
inline

References isInCtrlKeys().

Referenced by isInCtrlKeys(), and GUIChatConsole::OnEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ SCROLL_SMALL_STEP

s32 SCROLL_SMALL_STEP = 3
staticconstexpr

◆ SCROLLBAR_SCALE

s32 SCROLLBAR_SCALE = 128
staticconstexpr

Scrollbars use integers, hence give enough room to interpolate for smooth scrolling.

Referenced by GUIChatConsole::GUIChatConsole(), GUIChatConsole::OnEvent(), and GUIChatConsole::updateScrollbar().