26#ifndef TGUI_SCROLLABLE_PANEL_HPP
27#define TGUI_SCROLLABLE_PANEL_HPP
29#include <TGUI/CopiedSharedPtr.hpp>
30#include <TGUI/Widgets/Panel.hpp>
31#include <TGUI/Widgets/Scrollbar.hpp>
32#include <TGUI/Renderers/ScrollablePanelRenderer.hpp>
45 typedef std::shared_ptr<ScrollablePanel>
Ptr;
46 typedef std::shared_ptr<const ScrollablePanel>
ConstPtr;
55 ScrollablePanel(
const char* typeName =
"ScrollablePanel",
bool initRenderer =
true);
311 void leftMousePressed(
Vector2f pos)
override;
316 void leftMouseReleased(
Vector2f pos)
override;
321 void mouseMoved(
Vector2f pos)
override;
326 bool mouseWheelScrolled(
float delta,
Vector2f pos)
override;
331 void mouseNoLongerOnWidget()
override;
336 void leftMouseButtonNoLongerDown()
override;
372 std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
378 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
393 void updateScrollbars();
399 void recalculateMostBottomRightPosition();
411 void disconnectAllChildWidgets();
425 unsigned int m_verticalScrollAmount = 0;
426 unsigned int m_horizontalScrollAmount = 0;
428 std::unordered_map<Widget::Ptr, unsigned int> m_connectedPositionCallbacks;
429 std::unordered_map<Widget::Ptr, unsigned int> m_connectedSizeCallbacks;
Base class for render targets.
Definition: BackendRenderTarget.hpp:48
Definition: CopiedSharedPtr.hpp:40
Class to store the position or size of a widget.
Definition: Layout.hpp:284
Group of widgets that has a background color and optional borders.
Definition: Panel.hpp:41
Wrapper class to store strings.
Definition: String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
States used for drawing.
Definition: RenderStates.hpp:39