HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
scroll_delegate.hpp
1// Copyright Take Vos 2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../geometry/axis.hpp"
8#include <memory>
9#include <functional>
10
11namespace hi::inline v1 {
12template<axis, bool>
13class scroll_widget;
14
15template<axis Axis, bool ControlsWindow>
17public:
18 virtual ~scroll_delegate() = default;
19 virtual void init(scroll_widget<Axis, ControlsWindow> &sender) noexcept {}
20 virtual void deinit(scroll_widget<Axis, ControlsWindow> &sender) noexcept {}
21};
22
23} // namespace hi::inline v1
The scroll widget allows a content widget to be shown in less space than is required.
Definition scroll_widget.hpp:44
Definition scroll_delegate.hpp:16