Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
GUIEditBoxWithScrollBar Class Reference

#include <guiEditBoxWithScrollbar.h>

+ Inheritance diagram for GUIEditBoxWithScrollBar:
+ Collaboration diagram for GUIEditBoxWithScrollBar:

Public Member Functions

 GUIEditBoxWithScrollBar (const wchar_t *text, bool border, gui::IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, ISimpleTextureSource *tsrc, bool writable=true, bool has_vscrollbar=true)
 constructor
 
virtual ~GUIEditBoxWithScrollBar ()
 destructor
 
void draw () override
 draws the element and its children
 
void setBackgroundColor (const video::SColor &bg_color)
 Change the background color.
 

Protected Member Functions

void createVScrollBar ()
 create a Vertical ScrollBar
 

Protected Attributes

bool m_bg_color_used
 
video::SColor m_bg_color
 
ISimpleTextureSourcem_tsrc
 

Constructor & Destructor Documentation

◆ GUIEditBoxWithScrollBar()

GUIEditBoxWithScrollBar::GUIEditBoxWithScrollBar ( const wchar_t * text,
bool border,
gui::IGUIEnvironment * environment,
IGUIElement * parent,
s32 id,
const core::rect< s32 > & rectangle,
ISimpleTextureSource * tsrc,
bool writable = true,
bool has_vscrollbar = true )

constructor

References createVScrollBar().

+ Here is the call graph for this function:

◆ ~GUIEditBoxWithScrollBar()

virtual GUIEditBoxWithScrollBar::~GUIEditBoxWithScrollBar ( )
inlinevirtual

destructor

Member Function Documentation

◆ createVScrollBar()

void GUIEditBoxWithScrollBar::createVScrollBar ( )
protected

create a Vertical ScrollBar

create a vertical scroll bar

References m_tsrc.

Referenced by GUIEditBoxWithScrollBar().

+ Here is the caller graph for this function:

◆ draw()

void GUIEditBoxWithScrollBar::draw ( )
override

draws the element and its children

References m_bg_color, and m_bg_color_used.

◆ setBackgroundColor()

void GUIEditBoxWithScrollBar::setBackgroundColor ( const video::SColor & bg_color)

Change the background color.

References m_bg_color, and m_bg_color_used.

Member Data Documentation

◆ m_bg_color

video::SColor GUIEditBoxWithScrollBar::m_bg_color
protected

Referenced by draw(), and setBackgroundColor().

◆ m_bg_color_used

bool GUIEditBoxWithScrollBar::m_bg_color_used
protected

Referenced by draw(), and setBackgroundColor().

◆ m_tsrc

ISimpleTextureSource* GUIEditBoxWithScrollBar::m_tsrc
protected

Referenced by createVScrollBar().


The documentation for this class was generated from the following files: