aseprite/src/ui/viewport.h
2015-12-03 21:50:05 -03:00

31 lines
584 B
C++

// Aseprite UI Library
// Copyright (C) 2001-2013 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef UI_VIEWPORT_H_INCLUDED
#define UI_VIEWPORT_H_INCLUDED
#pragma once
#include "ui/widget.h"
namespace ui {
class Viewport : public Widget {
public:
Viewport();
gfx::Size calculateNeededSize();
protected:
// Events
void onResize(ResizeEvent& ev) override;
void onSizeHint(SizeHintEvent& ev) override;
void onPaint(PaintEvent& ev) override;
};
} // namespace ui
#endif