Luanti 5.15.0-dev
 
Loading...
Searching...
No Matches
guiEditBoxWithScrollbar.h
Go to the documentation of this file.
1// Copyright (C) 2002-2012 Nikolaus Gebhardt, Modified by Mustapha Tachouct
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef GUIEDITBOXWITHSCROLLBAR_HEADER
6#define GUIEDITBOXWITHSCROLLBAR_HEADER
7
8#include "CGUIEditBox.h"
9
11
12class GUIEditBoxWithScrollBar : public gui::CGUIEditBox
13{
14public:
15
17 GUIEditBoxWithScrollBar(const wchar_t* text, bool border, gui::IGUIEnvironment* environment,
18 IGUIElement* parent, s32 id, const core::rect<s32>& rectangle,
19 ISimpleTextureSource *tsrc, bool writable = true, bool has_vscrollbar = true);
20
23
25 void draw() override;
26
28 void setBackgroundColor(const video::SColor &bg_color);
29
30protected:
32 void createVScrollBar();
33
35 video::SColor m_bg_color;
36
38};
39
40
41#endif // GUIEDITBOXWITHSCROLLBAR_HEADER
42
Definition guiEditBoxWithScrollbar.h:13
void setBackgroundColor(const video::SColor &bg_color)
Change the background color.
Definition guiEditBoxWithScrollbar.cpp:91
void createVScrollBar()
create a Vertical ScrollBar
Definition guiEditBoxWithScrollbar.cpp:59
void draw() override
draws the element and its children
Definition guiEditBoxWithScrollbar.cpp:37
bool m_bg_color_used
Definition guiEditBoxWithScrollbar.h:34
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
Definition guiEditBoxWithScrollbar.cpp:18
video::SColor m_bg_color
Definition guiEditBoxWithScrollbar.h:35
ISimpleTextureSource * m_tsrc
Definition guiEditBoxWithScrollbar.h:37
virtual ~GUIEditBoxWithScrollBar()
destructor
Definition guiEditBoxWithScrollbar.h:22
Definition texturesource.h:34