Luanti
5.11.0-dev
▼
Luanti
The Minetest engine internal documentation
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
►
benchmark
►
client
►
content
►
database
doc
▼
gui
guiAnimatedImage.cpp
►
guiAnimatedImage.h
guiBackgroundImage.cpp
►
guiBackgroundImage.h
guiBox.cpp
►
guiBox.h
►
guiButton.cpp
►
guiButton.h
guiButtonImage.cpp
►
guiButtonImage.h
guiButtonItemImage.cpp
►
guiButtonItemImage.h
►
guiChatConsole.cpp
►
guiChatConsole.h
guiEditBox.cpp
►
guiEditBox.h
guiEditBoxWithScrollbar.cpp
►
guiEditBoxWithScrollbar.h
►
guiEngine.cpp
►
guiEngine.h
►
guiFormSpecMenu.cpp
►
guiFormSpecMenu.h
►
guiHyperText.cpp
►
guiHyperText.h
guiInventoryList.cpp
►
guiInventoryList.h
guiItemImage.cpp
►
guiItemImage.h
►
guiKeyChangeMenu.cpp
►
guiKeyChangeMenu.h
►
guiMainMenu.h
►
guiOpenURL.cpp
►
guiOpenURL.h
►
guiPasswordChange.cpp
►
guiPasswordChange.h
guiPathSelectMenu.cpp
►
guiPathSelectMenu.h
guiScene.cpp
►
guiScene.h
►
guiScrollBar.cpp
►
guiScrollBar.h
guiScrollContainer.cpp
►
guiScrollContainer.h
guiTable.cpp
►
guiTable.h
►
guiVolumeChange.cpp
►
guiVolumeChange.h
►
mainmenumanager.h
►
modalMenu.cpp
►
modalMenu.h
profilergraph.cpp
►
profilergraph.h
►
StyleSpec.h
►
touchcontrols.cpp
►
touchcontrols.h
►
touchscreeneditor.cpp
►
touchscreeneditor.h
►
touchscreenlayout.cpp
►
touchscreenlayout.h
►
irrlicht_changes
►
mapgen
►
network
►
script
►
server
►
threading
►
unittest
►
util
►
activeobject.h
►
activeobjectmgr.h
►
catch.cpp
►
catch.h
chat.cpp
►
chat.h
►
chat_interface.h
►
chatmessage.h
►
particles.cpp
►
sound.h
clientdynamicinfo.cpp
►
clientdynamicinfo.h
►
collision.cpp
►
collision.h
►
config.h
►
constants.h
►
content_mapnode.cpp
►
content_mapnode.h
►
content_nodemeta.cpp
►
content_nodemeta.h
►
convert_json.cpp
►
convert_json.h
►
craftdef.cpp
►
craftdef.h
►
daynightratio.h
►
debug.cpp
►
debug.h
►
defaultsettings.cpp
►
defaultsettings.h
►
dummygamedef.h
►
dummymap.h
emerge.cpp
►
emerge.h
►
emerge_internal.h
►
environment.cpp
►
environment.h
►
exceptions.h
face_position_cache.cpp
►
face_position_cache.h
►
filesys.cpp
►
filesys.h
►
gamedef.h
►
gameparams.h
►
gettext.cpp
►
gettext.h
►
gettext_plural_form.cpp
►
gettext_plural_form.h
►
gettime.h
►
httpfetch.cpp
►
httpfetch.h
►
hud.cpp
►
hud.h
►
inventory.cpp
►
inventory.h
►
inventorymanager.cpp
►
inventorymanager.h
►
irr_aabb3d.h
►
irr_gui_ptr.h
►
irr_v2d.h
►
irr_v3d.h
►
irrlichttypes.h
irrlichttypes_bloated.h
irrlichttypes_extrabloated.h
►
itemdef.cpp
►
itemdef.h
►
itemgroup.h
►
itemstackmetadata.cpp
►
itemstackmetadata.h
json-forwards.h
light.cpp
►
light.h
►
lighting.h
►
log.cpp
►
log.h
►
log_internal.h
►
main.cpp
►
map.cpp
►
map.h
map_settings_manager.cpp
►
map_settings_manager.h
►
mapblock.cpp
►
mapblock.h
►
mapnode.cpp
►
mapnode.h
mapsector.cpp
►
mapsector.h
metadata.cpp
►
metadata.h
►
migratesettings.h
►
modchannels.cpp
►
modchannels.h
►
modifiedstate.h
nameidmapping.cpp
►
nameidmapping.h
►
nodedef.cpp
►
nodedef.h
nodemetadata.cpp
►
nodemetadata.h
nodetimer.cpp
►
nodetimer.h
►
noise.cpp
►
noise.h
objdef.cpp
►
objdef.h
►
object_properties.cpp
►
object_properties.h
►
particles.h
►
pathfinder.cpp
►
pathfinder.h
►
player.cpp
►
player.h
►
porting.cpp
►
porting.h
►
porting_android.cpp
►
porting_android.h
►
profiler.cpp
►
profiler.h
►
raycast.cpp
►
raycast.h
reflowscan.cpp
►
reflowscan.h
remoteplayer.cpp
►
remoteplayer.h
rollback_interface.cpp
►
rollback_interface.h
►
serialization.cpp
►
serialization.h
►
server.cpp
►
server.h
►
serverenvironment.cpp
►
serverenvironment.h
►
servermap.cpp
►
servermap.h
►
settings.cpp
►
settings.h
►
settings_translation_file.cpp
►
skyparams.h
staticobject.cpp
►
staticobject.h
terminal_chat_console.cpp
►
terminal_chat_console.h
►
texture_override.cpp
►
texture_override.h
tileanimation.cpp
►
tileanimation.h
►
tool.cpp
►
tool.h
►
translation.cpp
►
translation.h
►
version.cpp
►
version.h
►
voxel.cpp
►
voxel.h
►
voxelalgorithms.cpp
►
voxelalgorithms.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
guiScrollContainer.h
Go to the documentation of this file.
1
// Luanti
2
// SPDX-License-Identifier: LGPL-2.1-or-later
3
// Copyright (C) 2020 DS
4
5
#pragma once
6
7
#include "
irrlichttypes_extrabloated.h
"
8
#include "
util/string.h
"
9
#include "
guiScrollBar.h
"
10
11
class
GUIScrollContainer
:
public
gui::IGUIElement
12
{
13
public
:
14
GUIScrollContainer
(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32
id
,
15
const
core::rect<s32> &rectangle,
const
std::string &orientation,
16
f32 scrollfactor);
17
18
virtual
bool
OnEvent
(
const
SEvent &event)
override
;
19
20
virtual
void
draw
()
override
;
21
22
inline
void
setContentPadding
(std::optional<s32> padding)
23
{
24
m_content_padding_px
= padding;
25
}
22
inline
void
setContentPadding
(std::optional<s32> padding) {
…
}
26
27
inline
void
onScrollEvent
(gui::IGUIElement *caller)
28
{
29
if
(caller ==
m_scrollbar
)
30
updateScrolling
();
31
}
27
inline
void
onScrollEvent
(gui::IGUIElement *caller) {
…
}
32
33
void
setScrollBar
(
GUIScrollBar
*scrollbar);
34
35
private
:
36
enum
OrientationEnum
37
{
38
VERTICAL
,
39
HORIZONTAL
,
40
UNDEFINED
41
};
36
enum
OrientationEnum
{
…
};
42
43
GUIScrollBar
*
m_scrollbar
;
44
OrientationEnum
m_orientation
;
45
f32
m_scrollfactor
;
//< scrollbar pos * scrollfactor = scroll offset in pixels
46
std::optional<s32>
m_content_padding_px
;
//< in pixels
47
48
void
updateScrolling
();
49
};
11
class
GUIScrollContainer
:
public
gui::IGUIElement {
…
};
GUIScrollBar
Definition
guiScrollBar.h:24
GUIScrollContainer
Definition
guiScrollContainer.h:12
GUIScrollContainer::GUIScrollContainer
GUIScrollContainer(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, const std::string &orientation, f32 scrollfactor)
Definition
guiScrollContainer.cpp:7
GUIScrollContainer::setContentPadding
void setContentPadding(std::optional< s32 > padding)
Definition
guiScrollContainer.h:22
GUIScrollContainer::setScrollBar
void setScrollBar(GUIScrollBar *scrollbar)
Definition
guiScrollContainer.cpp:55
GUIScrollContainer::m_scrollbar
GUIScrollBar * m_scrollbar
Definition
guiScrollContainer.h:43
GUIScrollContainer::updateScrolling
void updateScrolling()
Definition
guiScrollContainer.cpp:99
GUIScrollContainer::OnEvent
virtual bool OnEvent(const SEvent &event) override
Definition
guiScrollContainer.cpp:21
GUIScrollContainer::draw
virtual void draw() override
Definition
guiScrollContainer.cpp:44
GUIScrollContainer::onScrollEvent
void onScrollEvent(gui::IGUIElement *caller)
Definition
guiScrollContainer.h:27
GUIScrollContainer::OrientationEnum
OrientationEnum
Definition
guiScrollContainer.h:37
GUIScrollContainer::VERTICAL
@ VERTICAL
Definition
guiScrollContainer.h:38
GUIScrollContainer::HORIZONTAL
@ HORIZONTAL
Definition
guiScrollContainer.h:39
GUIScrollContainer::UNDEFINED
@ UNDEFINED
Definition
guiScrollContainer.h:40
GUIScrollContainer::m_content_padding_px
std::optional< s32 > m_content_padding_px
Definition
guiScrollContainer.h:46
GUIScrollContainer::m_orientation
OrientationEnum m_orientation
Definition
guiScrollContainer.h:44
GUIScrollContainer::m_scrollfactor
f32 m_scrollfactor
Definition
guiScrollContainer.h:45
guiScrollBar.h
irrlichttypes_extrabloated.h
string.h
gui
guiScrollContainer.h
Generated on Sat Feb 1 2025 10:20:55 for Luanti by
1.11.0