2015-11-29 02:55:30 +00:00
|
|
|
#ifndef SPECTER_SCROLLVIEW_HPP
|
|
|
|
#define SPECTER_SCROLLVIEW_HPP
|
|
|
|
|
|
|
|
#include "View.hpp"
|
|
|
|
|
|
|
|
namespace Specter
|
|
|
|
{
|
2015-12-02 01:32:15 +00:00
|
|
|
class ViewResources;
|
2015-11-29 02:55:30 +00:00
|
|
|
|
|
|
|
class ScrollView : public View
|
|
|
|
{
|
|
|
|
public:
|
2015-12-15 21:53:15 +00:00
|
|
|
enum class Style
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
View* m_contentView = nullptr;
|
|
|
|
|
|
|
|
public:
|
|
|
|
ScrollView(ViewResources& res, View& parentView);
|
2015-12-23 00:25:46 +00:00
|
|
|
void setContentView(View* v)
|
|
|
|
{
|
|
|
|
m_contentView = v;
|
|
|
|
updateSize();
|
|
|
|
}
|
2015-11-29 02:55:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SPECTER_SCROLLVIEW_HPP
|