mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 00:23:35 +00:00
33 lines
632 B
C++
33 lines
632 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 "base/compiler_specific.h"
|
|
#include "ui/widget.h"
|
|
|
|
namespace ui {
|
|
|
|
class Viewport : public Widget
|
|
{
|
|
public:
|
|
Viewport();
|
|
|
|
gfx::Size calculateNeededSize();
|
|
|
|
protected:
|
|
// Events
|
|
void onResize(ResizeEvent& ev) OVERRIDE;
|
|
void onPreferredSize(PreferredSizeEvent& ev) OVERRIDE;
|
|
void onPaint(PaintEvent& ev) OVERRIDE;
|
|
};
|
|
|
|
} // namespace ui
|
|
|
|
#endif
|